* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: webfont;
  image-randering: pixelated;
}

html {
  cursor: url(pixels/matflowecursor.gif), auto;
}

a {
  cursor: url(pixels/matflowecursorhover.gif), auto;
}

img {
  image-rendering: pixelated;
}

button {
  cursor: url(pixels/matflowecursorhover.gif), auto;
}

iframe {
  width: 100%;
  height: 400px;
  border: unset;
}

:root {
  --viewport-height: 100vh;
}

@font-face {
  font-family: webfont;
  src: url(https://file.garden/aDEdCj_ktCALOJoj/fonts/000webfont.ttf);
}

#wrapper {
  -webkit-overflow-scrolling: touch;
  flex-direction: column;
  justify-content: center;
  min-height: var(--viewport-height);
  overflow: hidden;
  margin: auto;
  display: flex;
  width: 60%;
  z-index: 2;
}

#lace {
  border-image: url(borders/big-black-rose-lace.png) 65 round;
  image-rendering: pixelated;
  border-width: 40px;
  border-color: black;
  border-style: solid;
}

.bookcover {
  background: black;
}

/* Style the header */
.header {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
}

/* Style the top navigation bar */
.topnav {
  overflow: hidden;
  background-color: black;
  margin-bottom: 5px;
  border-radius: 999px;
}

/* Style the topnav links */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 9px;
  text-decoration: none;
  font-size: 15px;
}

.navscroll {
  width: 100%;
  overflow: scroll;
}

/* Change color on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Create three unequal columns that floats next to each other */
.column {
  float: left;
  padding: 10px;
}

/* Left and right column */
.column.side {
  width: 48.7%;
  padding: 15px;
}

/* Middle column */
.column.middle {
  background-image: url(images/dark-book-rim.png);
  background-repeat: repeat-y;
  background-position: center;
  width: 1%;
  filter: drop-shadow(0px 0px 6px #00000030);
}

/* Clear floats after the columns */
.row {
  border-radius: 20px;
  display: flex;
  background-image: url(backgrounds/lined-paper.png);
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Style the footer */
.footer {
  background-color: #f1f1f1;
  padding: 10px;
  text-align: center;
}

.switchon {
  height: 400px;
  overflow: scroll;
}

button.tablink {
  background: black;
  border: 4px solid black;
  color: white;
  font-size: 20px;
  font-family: webfont;
}

#buttonlace {
  border-image: url(borders/black-ruffle-with-yellow-rose.png) 19 round;
  border-width: 10px;
  border-style: solid;
  margin: 3px;
}

flex {
  display: flex;
  flex-wrap: wrap;
}

flex2 {
  display: flex;
}

.buttonarea {
  background: transparent;
  overflow: scroll;
  height: 345px;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #000;
}

.separator:not(:empty)::before {
  margin-right: .25em;
}

.separator:not(:empty)::after {
  margin-left: .25em;
}

/* ////////////////////////////////////////////////////// */
.container {
  max-width: 400px;
  margin: 30px auto;
}

.box {
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  background-color: #fff;
  border-radius: 3px;
  overflow: hidden;
}

.tab-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  position: relative;
}

/* tab list 會動的底線 */
.tab-list::before {
  content: '';
  display: block;
  height: 2px;
  width: 33.333%;
  position: absolute;
  bottom: 0;
  background-color: #aaa;
  transition: .3s;
}

.tab-item {
  flex: 1;
  text-align: center;
  transition: .3s;
  opacity: 0.5;
}

.tab-toggle {
  display: none;
}

.tab-content {
  display: none;
}

.tab-toggle:nth-child(1):checked ~ .tab-list .tab-item:nth-child(1),
.tab-toggle:nth-child(2):checked ~ .tab-list .tab-item:nth-child(2), 
.tab-toggle:nth-child(3):checked ~ .tab-list .tab-item:nth-child(3) {
  opacity: 1;
}

/* tab bar 底線位移控制 */
.tab-toggle:nth-child(2):checked ~ .tab-list::before {
  transform: translateX(100%);
}

.tab-toggle:nth-child(3):checked ~ .tab-list::before {
  transform: translateX(200%);
}

/* 內容顯示控制 */
.tab-toggle:nth-child(1):checked ~ .tab-container .tab-content:nth-child(1),
.tab-toggle:nth-child(2):checked ~ .tab-container .tab-content:nth-child(2),
.tab-toggle:nth-child(3):checked ~ .tab-container .tab-content:nth-child(3) {
  display: block;
}

.tab-trigger {
  display: block;
  padding: 10px 0;
}

.tab-container {
  padding: 15px 30px;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column.side {
    width: 47%;
    padding: 10px;
  }
}

@media screen and (max-width: 600px) {
  .column.middle {
    width: 1%;
  }
}

@media screen and (max-width: 600px) {
  #wrapper {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  #lace {
    width: 100%;
    border-width: 30px;
  }
}

@media screen and (max-width: 600px) {
  .switchon {
    height: 270px;
  }
}

@media screen and (max-width: 600px) {
  .buttonarea {
    height: 230px;
  }
}

@media screen and (max-width: 600px) {
  .topnav a {
    padding: 4px 6px;
    font-size: 10px;
  }
}

@media screen and (max-width: 600px) {
  button.tablink {
    font-size: 13px;
  }
}

@media screen and (max-width: 600px) {
  iframe {
    height: 265px;
  }
}














