*{
  box-sizing: border-box;
}
/**/
body{
  background-color: #e9c39d;
}

@font-face {
  font-family: "Germanica";
  src: url(assets/lib/fon/Germanica.otf);
}

@font-face {
  font-family: "Regular";
  src: url(assets/lib/fon/Testuale.woff2);
}

@font-face {
  font-family: "Bold";
  src: url(assets/lib/fon/Testuale2.woff2);
}

@font-face {
  font-family: "Oak";
  src: url(assets/lib/fon/OakSans.ttf);
}

main{
  flex: 1;
}

h1{
  font-family: "Germanica";
  font-size: 36px;
  font-weight: normal;
  letter-spacing: 1px;
  word-spacing: 2px;
}

h2{
  font-family: "Bold";
  font-size: 24px;
  font-weight: normal;
  word-spacing: 1px;
}

p{
  font-family: "Regular";
  font-size: 16px;
  color: #000000;
}

a{
  font-family: "Oak";
  color: #8463ff;
}

hr{
  border-color: #cc9761;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

button{
  padding: 8px;
  min-width: 6em;
  color: #000000;
  border-right-color: #cc9761;
  border-left-color: #ffffff;
  border-top-color: #ffffff;
  border-bottom-color: #a9713a;
  font-family: "Bold";
  font-size: 16px;
  background: #e9c39d;
  background: linear-gradient(0deg,rgba(233, 195, 157, 1) 0%, rgba(248, 224, 200, 1) 100%);
}

button:hover{
  padding: 8px;
  min-width: 6em;
  color: #000000;
  border-right-color: #bd751f;
  border-left-color: #ffffff;
  border-top-color: #ffffff;
  border-bottom-color: #8f4813;
  font-family: "Bold";
  font-size: 16px;
  background: #f0b130;
  background: linear-gradient(0deg,rgba(240, 177, 48, 1) 0%, rgba(250, 214, 142, 1) 100%);
}

#shadow{
  -webkit-box-shadow: 5px 5px 9px -3px #000000; 
  box-shadow: 5px 5px 9px -3px #000000;
}

#yellow{
  color: #f0b527; 
}

#white{
  color: #ffffff; 
}

#green{
  color: #2fc924; 
}

#darkgreen{
  color: #248a1d; 
}

#floating{
  float: left; 
}

#rainbow-text{
  display: inline-block;
  color: white;
  background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, violet);
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-hue 2s linear infinite;
  filter: hue-rotate(0deg);
}

@keyframes rainbow-hue {
  0%{
    filter: hue-rotate(0deg);
  }
  100%{
    filter: hue-rotate(360deg);
  }
}

#bookbottom{
  font-family: "Regular";
  font-size: 10px;
}

.hr2{
  border-color: #f6f6f6;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-width: 1px;
}

.header{
  width: 100%;
  height: 8em;
  padding: 1em;
  background-color: #f8e0c8;
  top: 0;
  left: 0;
}

.footer{
  width: 100%;
  height: 8em;
  padding: 1em;
  background-color: #f8e0c8;
  bottom: 0;
  left: 0;
}

.content{
  width: 100%;
  height: 8em;
  padding: 1em;
  background-color: #f8e0c8; 
  left: 0;
}

.content-book{
  width: 100%;
  height: 8em;
  padding: 1em;
  background-color: #f0ebe3; 
  left: 0;
  border-bottom: 8px solid #2f1608;
  border-top: 2px solid #724920;
  border-left: 4px solid #724920;
  border-right: 4px solid #2f1608;
}

.content-book h2{
  font-family: "Bold";
  font-size: 20px;
  font-weight: normal; 
}

.content-book-bottomline{
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 1000;
}

.content-book-topline{
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
}

.invis-but{
  padding: 8px;
  min-width: 6em;
  color: transparent;
  font-family: "Bold";
  font-size: 16px;
  text-align: center;
  vertical-align: middle;
}

.grid-img{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 1fr);
  width: 100%;
  max-width: 100%;
}

.grid-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell{
  width: 100%;
  position: relative;
  display: block;
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.img1{
  grid-row-start: 1;
  grid-row-end: 3;
  grid-column-start: 1;
  grid-column-end: 2;
}

.img2{
  grid-row-start: 3;
  grid-row-end: 5;
  grid-column-start: 2;
  grid-column-end: 3;
}

.img-square{
  aspect-ratio: 1 / 1;
}

.box-top{
  border-image: url(assets/tabs/inverted_top.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
}

.box-left{
  border-image: url(assets/tabs/inverted_left.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 50%;
}

.box-left-middle{
  border-image: url(assets/tabs/inverted_left_middle.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-right{
  border-image: url(assets/tabs/inverted_right.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-right-middle{
  border-image: url(assets/tabs/inverted_right_middle.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-inner{
  border-image: url(assets/tabs/inverted_invert.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-invis{
  border-image: url(assets/tabs/invis.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
}

.box-checkered{
  border-image: url(assets/tabs/checkered.png) 28 round;
  border-style: solid;
  border-image-width: 19px;
  border-image-slice: 28 fill;
  flex: 1 1 25%;
}

.box-checkered-switched{
  border-image: url(assets/tabs/checkered_qblock.png) 28 round;
  border-style: solid;
  border-image-width: 21px;
  border-image-slice: 28 fill;
  flex: 1 1 25%;
}

.box-top-switched{
  border-image: url(assets/tabs/inverted_top_switched.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
}

.box-left-switched{
  border-image: url(assets/tabs/inverted_left_switched.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 50%;
}

.box-left-middle-switched{
  border-image: url(assets/tabs/inverted_left_middle_switched.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-right-switched{
  border-image: url(assets/tabs/inverted_right_switched.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-right-middle-switched{
  border-image: url(assets/tabs/inverted_right_middle_switched.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-inner-switched{
  border-image: url(assets/tabs/inverted_invert_switched.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%;
  max-width: 75%;
}

.box-window{
  border-image: url(assets/tabs/window.png);
  border-image-slice: 128 128 fill;
  border-image-width: 64px;
  flex: 1 1 25%; 
}

.close-btn{
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1000;
  cursor: pointer;
}

.close-btn img{
  width: 16px;
  height: 16px;
}

.emoji{
  width: 1em;
  height: 1em;
  vertical-align: middle;
}