/* Example CSS file */ 
/* typos */
@font-face {
    font-family: "Rusch";
    src: url(../../assets/src/fonts/Rusch-GoticoAntiqua100G.otf);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Infini";
    src: url(../../assets/src/fonts/infini-romain.otf);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "Infini";
    src: url(../../assets/src/fonts/infini-gras.otf);
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: "Infini";
    src: url(../../assets/src/fonts/infini-italique.otf);
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: "Javanese";
    src: url(../../assets/src/fonts/Javanese\ text.ttf);
    font-style: normal;
    font-weight: normal;
}

/* reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* variables */
:root{
    --bg_clr : #FFFCF2;
    --main_clr : #132f4d; 

    --main_mrgn : 80px;
    --main_brd : 1.5px;
    --book_marg : 13px;
}
    
/** Main **/
body{
    background-color: var(--bg_clr);
    color: var(--main_clr);
    font-family: Infini;

    overflow-y: hidden;
    overflow-x: scroll;
    
}

body::-webkit-scrollbar {
    display: none;
}

main{
    overflow-x: hidden;
    display: flex;
    height: 100vh;
}

/* Lang */
.lang-switch{
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    font-size: 10px;

}
.lang-switch a{
    margin-right: 5px;
    z-index: 10;
    cursor: pointer;
}
.lang-switch::before {
    content: ' ';
    display: block;
    position: absolute; 

    left: -19%;
    top: -11px;
    width: 94px;
    height: 35px;
    z-index: 2;

    --mask: 
    conic-gradient(from 45deg at left,#0000,#000 1deg 89deg,#0000 90deg) left/51% 8.00px repeat-y,
    conic-gradient(from -135deg at right,#0000,#000 1deg 89deg,#0000 90deg) right/51% 8.00px repeat-y;
  -webkit-mask: var(--mask);
          mask: var(--mask);
          
    background-color: rgba(251, 237, 159, 0.671);
}

/* Home Button */
#button-container{
    position: fixed;
    display: flex;
    align-items: flex-end;
    right: 0;
    top: 0;
    margin: 30px;
    z-index: 10;
}

.buttonBook{
    width: 10px;
    height: 34px;
    border: solid 1px var(--main_clr);
    margin-right: 2px;
}

#book-one{
    background-color: #f8b9d8;
}

#book-two{
    background-color: #ddfae0;
}

#book-three{
    background-color: #ffe284;
}

#button-container:hover {
  cursor: pointer;
  
  /* .buttonBook {
    animation: buttonBook-bounce 0.6s ease;
    animation-iteration-count: 1;
  }
  
  #book-two {
    animation-delay: 0.04s;
  }

  #book-three {
    animation-delay: 0.08s;
  } */
}

@keyframes buttonBook-bounce {
    0% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(0); }
    100% { transform: translateY(0); }
}
  

/** Intro **/
#intro{
    width: 700px;
    margin: var(--main_mrgn);
}

#intro-text{
    font-size: 14px;
    position: relative;
    top: 50%;
    transform: translate(0, -50%);

    display: grid;
    justify-content: center;
    justify-items: center;
}

h1{
    font-family: Rusch;
    font-size: 85px;
    font-weight: normal;
    margin-bottom: 60px;
    position: relative;  
    width: fit-content;
}

#sticky-note{
    width: 650px;
    padding: 50px;
    border: solid var(--main_brd) var(--main_clr);
    transform: rotate(-.5deg);  
}

#sticky-note::before {
    content: ' ';
    display: block;
    position: absolute; 

    left: 50%;
    top: -22px;
    width: 85px;
    height: 35px;
    z-index: 2;

    --mask: 
    conic-gradient(from 45deg at left,#0000,#000 1deg 89deg,#0000 90deg) left/51% 8.00px repeat-y,
    conic-gradient(from -135deg at right,#0000,#000 1deg 89deg,#0000 90deg) right/51% 8.00px repeat-y;
  -webkit-mask: var(--mask);
          mask: var(--mask);
          
    background-color: rgba(118, 131, 226, 0.89);
    transform: rotate(-6deg) translateX(-50%); 
}

/* Menu */
#menu{
    width: 80vw;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    visibility: visible;
    z-index: 9;
    background-color: var(--bg_clr);
    border-left: solid var(--main_brd) var(--main_clr);
    transform: translate(110%);
    transition: 1s;
    overflow: auto;
}
#menu-container{
    margin: 60px;    
    position: relative;
    top: 6%;
    display: grid;
    justify-content: center;
    justify-items: center;
}
#menu-container h1{
    font-size: 35px;
}
#menu-text{
    padding: 50px;
    border: solid var(--main_brd) var(--main_clr);
    transform: rotate(-.5deg);  
    font-size: 12px;
}

#menu-text::before {
    content: ' ';
    display: block;
    position: absolute; 

    left: 50%;
    top: -22px;
    width: 85px;
    height: 35px;
    z-index: 2;

    --mask: 
    conic-gradient(from 45deg at left,#0000,#000 1deg 89deg,#0000 90deg) left/51% 8.00px repeat-y,
    conic-gradient(from -135deg at right,#0000,#000 1deg 89deg,#0000 90deg) right/51% 8.00px repeat-y;
  -webkit-mask: var(--mask);
          mask: var(--mask);
          
    background-color: rgba(118, 131, 226, 0.89);
    transform: rotate(-6deg) translateX(-50%); 
}

/* Shelf */
#shelf{
    position: absolute;
    height: 20px;
    width: calc(100% - 60px);
    background-color: var(--bg_clr);
    border: solid var(--main_brd) var(--main_clr);
    bottom: 50px;
}

#support-container{
    position: absolute;
    height: 50px;
    width: calc(100% - 60px);
    display: inline-flex;
}

#support-left{
    position: absolute;
    height: 40px;
    margin-left: 60px;
    top: -1.2px;
}

#support-right{
    position: absolute;
    height: 40px;
    right: 0;
    margin-right: 60px;
    top: -1.2px;
}

/** Bookshelf **/
#bookshelf{
    display: inline-flex;
    position: relative;
    align-items: flex-end;
    padding-right: 370px;
    width: fit-content;
}

.books{
    margin-top: var(--main_mrgn);
    margin-bottom: 70px;
    margin-right: -1.2px;
    display: inline-flex;
}

.book-back{
    height: 640px;
    width: 80px;
    border: solid var(--main_brd) #000;
    border-bottom: none;
    background-color: #FFCECE;
    cursor: pointer;
    z-index: 99;
}

.title {
    font-family: Rusch;
    font-size: 30px; 
    writing-mode: vertical-rl;
    text-orientation: mixed;
    align-self: center;
    justify-self: center;
    letter-spacing: .3px;

    position: relative;
    right: 1px;

    /* user-select: none; */
}

.date {
    font-family: Javanese;
    font-size: 13px;
    width: fit-content;
    writing-mode: vertical-rl;
    text-orientation: mixed;

    align-self: center;
    justify-self: center;

    position: relative;
    right: 2px;
    margin-bottom: var(--book_marg);

    user-select: none;
}

.book-front{
    width: 0;

    margin-right: -1.2px;
    overflow: hidden;

    border: solid var(--main_brd) var(--main_clr);
    border-bottom: solid var(--main_brd) var(--main_clr);
    border-left-style: none;

    transform: perspective(1000px) rotateY(90deg);
    transform-origin: left;

    transition: width 0.5s ease-in-out, transform 0.5s ease-in-out, border-bottom 1s ease-in-out;
    z-index: 100;
}

.book-front.show {
    margin-right: 0;
    width: 450px; 
    border-bottom: none;

    display: grid; 

    transform: perspective(1000px) rotateY(0deg);
    transform-origin: left;
    
    transition: width 0.5s ease-in-out, transform 0.5s ease-in-out, border-bottom 1s ease-in-out;
}

.front-title{
    position: absolute;
    font-family: Rusch;
    font-size: 23px; 
    text-align: center;
    padding: var(--book_marg);
    padding-top: 37px;
    display: grid;
    /* user-select: none; */

    width: 450px; 
    height: -webkit-fill-available;
}

a:link { 
    text-decoration: none; 
    color: var(--main_clr);
} 

a:visited { 
   text-decoration: none; 
   color: var(--main_clr);
} 

a:hover { 
   text-decoration: none; 
   color: var(--main_clr);
} 

.coverimage{
    position: relative;
    height: fit-content;
    margin: 19px;
    bottom: 0;
    right: 0;
    left: 0;
}
.coverimage img{
    width: 100%;
}

/* therealmofevergreendreams */
#therealmofevergreendreams{
    margin-left: 60px;
}

#therealmofevergreendreams .book-back{
    background-color: #E4FEE6;
    color: #113F3D;
    height: 540px;
    width: 70px;
}

.back-content-vers1 {
    height: 100%;
    text-align: center;

    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: center;
    grid-template-rows: auto min-content;
}

#therealmofevergreendreams .book-front{
    width: 0;
    height: 540px;
    background-color: #E4FEE6;
    color: #113F3D;
}
#therealmofevergreendreams .book-front.show, #therealmofevergreendreams .front-title{
    width: 390px;
}

#therealmofevergreendreams .front-title a, #therealmofevergreendreams .title{
    color: #113F3D;
}

/* Frost and Ember*/
#frostandember .book-back{
    background-color: #FFCECE;
    width: 110px;
    z-index: 100;
}

.back-content-vers2 {
    height: 100%;
    text-align: center;

    display: grid;
    justify-content: center;
    justify-items: center;

    align-items: center;
    grid-template-rows: auto min-content;
}

.back-content-vers2 .title {
    text-transform: uppercase;
    font-size: 57px;
    
    align-self: center;
    justify-self: center;

    position: relative;
    right: 5px;
}

.back-content-vers2 .date{
    writing-mode: horizontal-tb;
    align-self: end;
    margin-bottom: 0;
    right: 0;
}

#frostandember .book-front{
    width: 0;
    height: 640px;
    background-color:#FFCECEE3;
}
#frostandember .book-front.show, #frostandember .front-title{
    width: 450px; 
    font-size: 25px;
}
#frostandember .coverimage{
    top: 27px;
}

/* themazeofchallenges */
#themazeofchallenges .book-back{
    background-color: #7D576C;
    color: #DA9BB9;
    height: 590px;
    width: 46px;
}

#themazeofchallenges .title{
    font-size: 20px;
    align-self: start;
    margin-top: var(--book_marg);
}

#themazeofchallenges .book-front{
    background-color: #7D576C;
    height: 590px;
    width: 0;
}
#themazeofchallenges .book-front.show, #themazeofchallenges .front-title{
    width: 400px;
}

#themazeofchallenges .front-title a{
    color: #DA9BB9;
}

/* the-twilight-of-unnamed */
#the-twilight-of-unnamed .book-back{
    background-color: #84A2E3;
    color: #12263A;
    width: 145px;
    z-index: 100;
}

.back-content-vers3 {
    height: 100%;
    text-align: center;

    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: center;
    grid-template-rows: min-content auto min-content;
}

.rect {
    margin-top: var(--book_marg);
    width: 98px;
    height: 25px;
    border: 2px solid #12263A;
}

#the-twilight-of-unnamed .title{
    font-size: 27px;
    height: 317px;
}

.back-content-vers3 .date{
    writing-mode: horizontal-tb;
    align-self: end;
    margin-bottom: 0;
    font-size: 15px;
}

.back-content-vers3 .date br {
    display: block; /* makes it have a width */
    content: ""; /* clears default height */
    margin-top: -10px; /* change this to whatever height you want it */
}

#the-twilight-of-unnamed .book-front{
    background-color: #84A2E3;
    width: 0;
    height: 640px;
}
#the-twilight-of-unnamed .book-front.show, #the-twilight-of-unnamed .front-title{
    width: 500px;
}

#the-twilight-of-unnamed .front-title a{
    color: #12263A;
}

/* whispered-rhythms */
#whispered-rhythms .book-back{
    color: #12263A;
    width: 90px;
    height: 620px;
}

.back-content-vers4{
    height: 100%;

    display: grid;
    gap: var(--main_brd);
    background-color: #CE2D2D;
    grid-template-rows: 1fr 4fr 4fr 1fr;
    grid-template-columns: 1fr 1fr;
}

.back-content-vers4 > div{
    background-color: #FFFAE0;
    color: #CE2D2D;
    padding: 6px;
}

.back-content-vers4 .title{
    font-size: 15px;
}

.back-content-vers4 .date{
    font-size: 11px;
    line-height: 1;
}

#whispered-rhythms .book-front{
    background-color: #FFFAE0;
    height: 620px;
    width: 0;
}
#whispered-rhythms .book-front.show, #whispered-rhythms .front-title{
    background-color: #FFFAE0;
    width: 450px; 
}

#whispered-rhythms .front-title a{
    color: #CE2D2D;
}

#whispered-rhythms .coverimage{
    margin: 0;
}

/* the-solidification-experiment */
#the-solidification-experiment .book-back{
    background-color: #8561A7;
    color: #EBCE73;
    width: 120px;
    z-index: 100;
}

.back-content-vers5 {
    height: 100%;
    text-align: center;

    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: center;
    grid-template-rows: auto;
}

.circle{
    height: 25px;
    width: 25px;
    border: 2px solid #EBCE73;
    border-radius: 50%;
    justify-self: center;
    position: relative;
    left: 0.5px;
}

.back-content-vers5 .title{
    font-size: 28px;
}

.back-content-vers5 .date{
    font-size: 15px;
    margin: 0;
}

#the-solidification-experiment .book-front{
    width: 0;
    height: 640px;
    background-color: #8561A7;
}
#the-solidification-experiment .book-front.show, #the-solidification-experiment .front-title{
    width: 450px; 
}

#the-solidification-experiment .front-title a{
    color: #EBCE73;
}

#the-solidification-experiment .coverimage{
    top: 27px;
}

/* shadows-of-darkhos-a-whisper-in-the-abyss */
#shadows-of-darkhos-a-whisper-in-the-abyss .book-back{
    background-color: #E46464;
    color: #200303;
    height: 600px;
    width: 46px;
    z-index: 10;
}

#shadows-of-darkhos-a-whisper-in-the-abyss .title{
    font-size: 20px;
    align-self: start;
    margin-top: var(--book_marg);
}

#shadows-of-darkhos-a-whisper-in-the-abyss .book-front{
    background-color: #E46464;
    height: 600px;
    width: 0;
}
#shadows-of-darkhos-a-whisper-in-the-abyss .book-front.show, #shadows-of-darkhos-a-whisper-in-the-abyss .front-title{
    width: 370px;
}

#shadows-of-darkhos-a-whisper-in-the-abyss .front-title a{
    color: #200303;
}

/* rpg-escapade-i */
#rpg-escapade-i .book-back {
    background-color: #F8F99A;
    height: 460px;
    width: 110px;
}

.back-content-vers6 {
    height: 100%;
    text-align: center;

    display: grid;
    justify-content: center;
    justify-items: center;
    align-items: center;
    grid-template-rows: min-content auto min-content;

    position: relative;
}

.back-content-vers6 .logo {
    height: 10vh;
    position: relative;
}
.back-content-vers6 .logo img{
    height: 100%;
}

.back-content-vers6 .title {
    font-size: 15px;
    margin-top: var(--book_marg);
    writing-mode: horizontal-tb;
    align-self: start;
    justify-self: center;
    right: 0;
    line-height: 20px;

    width: 60px;
}

.back-content-vers6 .date{
    writing-mode: horizontal-tb;
    align-self: end;
    margin-bottom: 0;
    right: 0;
}

#rpg-escapade-i .book-front{
    background-color: #F8F99A;
    height: 460px;
    width: 0;
}
#rpg-escapade-i .book-front.show, #rpg-escapade-i .front-title{
    width: 340px;
}

#rpg-escapade-i .coverimage img{
    width: 94%;
}

/* rpg-escapade-ii */
#rpg-escapade-ii .book-back {
    background-color: #F9D69A;
    height: 460px;
    width: 110px;
}

#rpg-escapade-ii .book-front{
    background-color: #F9D69A;
    height: 460px;
    width: 0;
}
#rpg-escapade-ii .book-front.show, #rpg-escapade-ii .front-title{
    width: 340px;
}

#rpg-escapade-ii .coverimage img{
    width: 94%;
}


/* the-powers-we-unlocked */
#the-powers-we-unlocked .book-back {
    background-color: #F997C4;
    width: 25px;
    /* border-bottom: solid;
    transform: rotate(-5deg) translateX(13px) translateY(2px); */
}

#the-powers-we-unlocked .title{
    font-size: 15px;
    align-self: start;
    margin-top: var(--book_marg);
}

#the-powers-we-unlocked .book-front{
    background-color: #F997C4;
    width: 0;
    /* border-bottom: solid;
    transform: rotate(-5deg) translateX(12px) translateY(1px);
    transition: width 0.5s ease-in-out, transform 0.5s ease-in-out; */
}
#the-powers-we-unlocked .book-front.show{
    width: 340px;
    /* border-bottom: solid;
    transform: rotate(-5deg) translateX(14px) translateY(1px);
    transition: width 0.5s ease-in-out, transform 0.5s ease-in-out; */
}
#the-powers-we-unlocked .front-title{
    width: 340px;
}

/* flower */
#flower{
    height: 500px;
    margin-right: 50px;
    margin-left: 70px;
    margin-bottom: -1px;
}

/* game-of-illusions */
#game-of-illusions .book-back{
    color: #12263A;
    width: 110px;
    height: 620px;
}

.back-content-vers7{
    height: 100%;

    display: grid;
    background-color: #94E1E3;
    grid-template-rows: 2fr 30px 5fr 30px 5fr 30px 2fr;
}

.band1{
    grid-row: 2;
    background-color: #30A0A3;
}
.band2{
    grid-row: 4;
    background-color: #30A0A3;
}
.band3{
    grid-row: 6;
    background-color: #30A0A3;
}

.back-content-vers7 .title{
    grid-row: 3;
    font-size: 20px;
}

.back-content-vers7 .date{
    grid-row: 5;
    font-size: 13px;
}

#game-of-illusions .book-front{
    background-color: #94E1E3;
    height: 620px;
}
#game-of-illusions .book-front.show, #game-of-illusions .front-title{
    width: 450px; 
}

#game-of-illusions .front-title a{
    color: #12263A;
}


/* code-of-the-fortress */
#code-of-the-fortress .book-back{
    background-color: #E4EDFE;
    color: #113F3D;
    height: 570px;
    width: 65px;
}

#bocode-of-the-fortressok12 .title{
    font-size: 28px;
    align-self: start;
    margin-top: var(--book_marg);
}

#code-of-the-fortress .book-front{
    background-color: #E4EDFE;
    height: 570px;
    width: 0;
}
#code-of-the-fortress .book-front.show, #code-of-the-fortress .front-title{
    width: 370px;
}

#code-of-the-fortress .front-title a{
    color: #113F3D;
}

/* murder */
#murder .book-back{
    background-color: #eb4b4b;
    width: 25px;
}

#murder .title{
    font-size: 15px;
    align-self: start;
    margin-top: var(--book_marg);
    right: 1.5px;
}

#murder .book-front{
    background-color: #eb4b4b;
    width: 0;
}
#murder .book-front.show, #murder .front-title{
    width: 380px;
}

/* turtle-tales */
#turtle-tales .book-back{
    background-color: #D6CECA;
    width: 100px;
}

#turtle-tales .circle{
    border: 2px solid var(--main_clr);
}

#turtle-tales .book-front{
    background-color: #D6CECA;
    width: 0;
}
#turtle-tales .book-front.show, #turtle-tales .front-title{
    width: 440px;
}

/* boy */
#boy .book-back{
    background-color: #2B3E7E;
    color: #9BD6DA;
    height: 590px;
    width: 46px;
}

#boy .title{
    font-size: 20px;
    align-self: start;
    margin-top: var(--book_marg);
}

#boy .book-front{
    background-color: #2B3E7E;
    height: 590px;
    width: 0;
}
#boy .book-front.show, #boy .front-title{
    width: 360px;
}

#boy .front-title a{
    color: #9BD6DA;
}

#boy .coverimage{
    margin: 0;
    bottom: -56px;
}

/* Frame */
#frame{
    height: 400px;
    margin-bottom: -1px;
    margin-right: -1px;
}

/* terrifying-grade */
#terrifying-grade .book-back{
    background-color: #DCCDFE;
    color: #12263A;
    width: 125px;
}

#terrifying-grade .title{
    font-size: 30px;
}

#terrifying-grade .book-front{
    background-color: #DCCDFE;
    height: 640px;
    width: 0;
}
#terrifying-grade .book-front.show, #terrifying-grade .front-title{
    width: 460px;
}

#terrifying-grade .front-title a{
    color: #12263A;
}

/* newjeans-the-killers */
#newjeans-the-killers .book-back{
    background-color: #4D775A;
    color: #B0D9BE;
    width: 100px;
}

#newjeans-the-killers .title{
    font-size: 30px;
    right: 6px;
}

#newjeans-the-killers .book-front{
    background-color: #4D775A;
    height: 640px;
    width: 0;
}
#newjeans-the-killers .book-front.show, #newjeans-the-killers .front-title{
    width: 460px;
}

#newjeans-the-killers .front-title a{
    color: #B0D9BE;
}

/* blade-of-fear */
#blade-of-fear .book-back{
    background-color: #6B2328;
    color: #EDD38C;
    height: 390px;
    width: 53px;
}

#blade-of-fear .title{
    font-size: 18px;
    align-self: start;
    text-align: left;
    margin-top: var(--book_marg);
}

#blade-of-fear .book-front{
    background-color: #6B2328;
    height: 390px;
    width: 0;
}
#blade-of-fear .book-front.show, #blade-of-fear .front-title{
    width: 260px;
}

#blade-of-fear .front-title a{
    color: #EDD38C;
}

#blade-of-fear .coverimage{
    margin: 0;
}

/* crocodile-chronicles */
#crocodile-chronicles .book-back{
    background-color: #B1D8FF;
    height: 460px;
    width: 110px;
}

#crocodile-chronicles .title{
    font-size: 20px;
    text-align: center;
    width: fit-content;
}

#crocodile-chronicles .logo {
    height: 8vh;
}

#crocodile-chronicles .book-front{
    background-color: #B1D8FF;
    height: 460px;
    width: 0;
}
#crocodile-chronicles .book-front.show, #crocodile-chronicles .front-title{
    width: 340px;
}

#crocodile-chronicles .coverimage{
    /* margin: 0; */
    left: -13px;
}

/* a-fusion-of-fragments*/
#a-fusion-of-fragments .book-back{
    background-color: #FFEAA7;
    width: 25px;
}

#a-fusion-of-fragments .title{
    font-size: 14px;
    align-self: start;
    margin-top: var(--book_marg);
}

#a-fusion-of-fragments .book-front{
    background-color: #FFEAA7;
    width: 0;
}
#a-fusion-of-fragments .book-front.show, #a-fusion-of-fragments .front-title{
    width: 380px;
}

#a-fusion-of-fragments .coverimage{
    margin: 0;
    bottom: -13px;
}

/* sinister-neighbor */
#sinister-neighbor .book-back{
    background-color: #FFB7B7;
    width: 75px;
    height: 540px;
}
#sinister-neighbor .title{
    font-size: 30px;
}
#sinister-neighbor .book-front{
    background-color: #FFB7B7;
    height: 540px;
    width: 0;
}
#sinister-neighbor .book-front.show, #sinister-neighbor .front-title{
    width: 400px;
}

/* three-journeys-with-my-mother */
#three-journeys-with-my-mother .book-back{
    color: #3e1154;
    width: 110px;
    height: 620px;
}

#three-journeys-with-my-mother .back-content-vers7{
    height: 100%;
    display: grid;
    background-color: #ec9bd0;
    grid-template-rows: 2fr 30px 5fr 30px 5fr 30px 2fr;
}

#three-journeys-with-my-mother .band1{
    grid-row: 2;
    background-color: #9f1e72;
}
#three-journeys-with-my-mother .band2{
    grid-row: 4;
    background-color: #9f1e72;
}
#three-journeys-with-my-mother .band3{
    grid-row: 6;
    background-color: #9f1e72;
}

#three-journeys-with-my-mother .back-content-vers7 .title{
    grid-row: 3;
    font-size: 20px;
    text-align: center;
    padding: 10px;
}

#three-journeys-with-my-mother .back-content-vers7 .date{
    grid-row: 5;
    font-size: 13px;
}

#three-journeys-with-my-mother .book-front{
    background-color: #ec9bd0;
    height: 620px;
    width: 0; 
}
#three-journeys-with-my-mother .book-front.show, #three-journeys-with-my-mother .front-title{
    width: 450px; 
}

#three-journeys-with-my-mother .front-title a{
    color: #3e1154;
}


/* the-snow-giant */
#the-snow-giant .book-back{
    background-color: #F3F6FF;
    color: #1E888F;
    height: 590px;
    width: 46px;
}

#the-snow-giant .title{
    font-size: 20px;
    align-self: start;
    margin-top: var(--book_marg);
}

#the-snow-giant .book-front{
    background-color: #F3F6FF;
    height: 590px;
    width: 0;
}
#the-snow-giant .book-front.show, #the-snow-giant .front-title{
    width: 360px;
}

#the-snow-giant .front-title a{
    color: #1E888F;
}


/** Responsive **/
/* height 885px */
@media (max-width: 968px) and (min-height: 885px){
    main{
        overflow-x: auto;
        flex-direction: column;
    }
    #button-container{
        margin: 14px;
        scale: 0.8;
    }
    #intro{
        width: 100vw;
        margin: 0;
        padding: 13px;
        position: fixed;
    }
    #intro-text {
        top: 0;
        transform: none;
    }
    #intro-text h1{
        font-size: 36px;
        margin-bottom: 0;
    }
    #sticky-note{
        display: none;
    }
    #bookshelf{
        scale: 0.9;
        bottom: -67px;
        left: -80px;
    }
    .book-back{
        max-width: 75px;
    }
    .book-front.show{
        max-width: 340px;
    }

    #therealmofevergreendreams{
        margin-left: 40px;
    }
    .back-content-vers3 .rect{
        scale: 0.6;
    }
    #the-twilight-of-unnamed .title{
        font-size: 17px;
    }
    #crocodile-chronicles .title{
        font-size: 16.5px;
    }
    #a-fusion-of-fragments .title {
        font-size: 13px;
    }
}
@media (max-width: 414px) and (min-height: 885px){
    main{
        overflow-y: hidden;
    }
    #bookshelf{
        bottom: -60px ;
        scale: 0.9;
        margin-left: 0 ;
    }
}
@media (max-width: 390px) and (min-height: 885px){
    main{
        overflow-y: hidden;
    }
    #bookshelf{
        bottom: -60px ;
        scale: 0.9 ;
        margin-left: -100px;
        margin-right: -100px;
        left: 0 ;
    }
}
@media (max-width: 376px) and (min-height: 885px){
    #bookshelf{
        bottom: 43px;
        scale: 0.8;
        margin-left: -200px;
        margin-right: -200px;
    }
    #intro{
        padding: 16px;
    }
    #intro-text h1{
        font-size: 32px;
        margin-bottom: 0;
    }
}
@media (max-width: 360px) and (min-height: 885px){
    #bookshelf{
        bottom: -12px;
    }
}

/* height 839px */
@media (max-width: 1236px) and (min-height: 839px){
    #bookshelf{
        scale: 0.95;
        left: -68px;
        bottom: 0;
    }
    #intro-text{
        scale: 0.95;
        position: relative;
        top: 50%;
        transform: translate(0, -50%);    
    }
    #button-container{
        scale: 0.9;
        margin: 30px;
    }
}

/* height 752px */
@media (max-width: 1024px) and (min-height: 752px){
    #bookshelf{
        scale: 0.9;
        left: -264.2px;
        bottom: -26px;
    }
    #intro-text{
        scale: 0.85;
        left: -38px;
        top: 297px;
    }
    #button-container{
        scale: 0.8;
        margin: 30px;
    }
}
@media (max-width: 800px) and (min-height: 752px){
    main{
        overflow-x: auto;
        flex-direction: column;
    }
    #button-container{
        margin: 14px;
        scale: 0.8;
    }
    #intro{
        width: 100vw;
        margin: 0;
        padding: 18px;
        position: fixed;
    }
    #intro-text {
        top: 0;
        transform: none;
        scale: 1;
        left: 0;
    }
    #intro-text h1{
        font-size: 29px;
        margin-bottom: 0;
    }
    #sticky-note{
        display: none;
    }
    #bookshelf{
        scale: 0.8;
        left: -260px;
        bottom: -30px;
    }
}
@media (max-width: 486px) and (min-height: 752px){
    #intro{
        padding: 21px;
    }
    #intro-text{
        top: 0;
        transform: none;
        scale: 1;
        left: 0;
    }
    #intro-text h1{
        font-size: 26px;
        margin-bottom: 0;
    }
    #button-container {
        margin: 15px;
        scale: 0.7;
    }
}
@media (max-width: 426px) and (min-height: 752px){
    #intro{
        padding: 21px;
    }
    #intro-text{
        top: 0;
        transform: none;
        scale: 1;
        left: 0;
    }
    #intro-text h1{
        font-size: 26px;
        margin-bottom: 0;
    }
    #button-container {
        margin: 15px;
        scale: 0.7;
    }
    #bookshelf {
        scale: 0.8;
        left: -228px;
        bottom: -30px;
    }
    .book-back{
        max-width: 75px;
    }
    .book-front.show{
        max-width: 340px;
    }
    .front-title{
        width: 340px !important;
    }
    #therealmofevergreendreams{
        margin-left: 40px;
    }
    .back-content-vers3 .rect{
        scale: 0.6;
    }
    #the-twilight-of-unnamed .title{
        font-size: 17px;
    }
    #crocodile-chronicles .title{
        font-size: 13.5px;
    }
    .back-content-vers6 .logo img{
        height: 72%;
    }
    #a-fusion-of-fragments .title {
        font-size: 13px;
    }
}


/* height 1672px */
@media (max-width: 2742px) and (min-height: 1671px){
    #bookshelf{
        scale: 1.7;
        bottom: 688px !important;
        left: 1430px;
    }
    #intro-text{
        scale: 1.6;
        left: 230px;
        top: 918px;
    }
    #button-container{
        scale: 1.7;
        margin: 53px;
    }
}
@media (max-width: 1546px) and (min-height: 1672px){
    main{
        overflow-x: auto;
        flex-direction: column;
    }
    #button-container{
        scale: 1.7;
        margin: 53px;
    }
    #intro{
        width: 100vw;
        margin: 0;
        padding: 47px;
        position: fixed;
    }
    #intro-text{
        top: 0;
        transform: none;
        scale: 1;
        left: 0;
    }
    #intro-text h1{
        font-size: 60px;
        margin-bottom: 0;
    }
    #sticky-note{
        display: none;
    }
    #bookshelf{
        scale: 1.8;
        bottom: -512px;
        left: 1210px;
    }
}

/* iPone SE */
@media (max-width: 376px) and (min-height: 667px){
    main{
        overflow-x: auto;
        flex-direction: column;
    }
    #button-container{
        margin: 14px;
        scale: 0.7;
    }
    #intro{
        width: 100vw;
        margin: 0;
        padding: 19px;
        position: fixed;
    }
    #intro-text {
        top: 0;
        transform: none;
    }
    #intro-text h1{
        font-size: 27px;
        margin-bottom: 0;
    }
    #sticky-note{
        display: none;
    }
    #bookshelf{
        scale: 0.8;
        bottom: 45px;
        left: -220px;
    }
    .book-back{
        max-width: 75px;
    }
    .book-front.show{
        max-width: 340px;
    }
    .front-title{
        width: 340px !important;
    }
    #therealmofevergreendreams{
        margin-left: 40px;
    }
    .back-content-vers3 .rect{
        scale: 0.6;
    }
    #the-twilight-of-unnamed .title{
        font-size: 17px;
    }
    #crocodile-chronicles .title{
        font-size: 16.5px;
    }
    #a-fusion-of-fragments .title {
        font-size: 13px;
    }
}
/* iPone XR */
@media (max-width: 414px) and (min-height: 896px){
    #bookshelf{
        scale: 1;
        left: 20px;
        bottom: -70px;
    }
    #intro-text h1 {
        font-size: 34px;
        margin-bottom: 0;
    }
    #intro {
        padding: 18px;
    }
    #button-container {
        margin: 25px;
        top: -7px;
        right: -7px;
        scale: 0.7;
    }
}
/* iPone 12 Pro */
@media (max-width: 390px) and (min-height: 844px){
    #bookshelf{
        scale: 1;
        left: 28px;
        bottom: -35px;
    }
    #intro-text h1 {
        font-size: 34px;
        margin-bottom: 0;
    }
    #intro {
        padding: 18px;
    }
    #button-container {
        margin: 25px;
        top: -7px;
        right: -7px;
        scale: 0.7;
    }
}
/* iPone 14 Pro Max */
@media (max-width: 430px) and (min-height: 932px){
    #bookshelf{
        scale: 1;
        left: 28px;
        bottom: -109px;
    }
    #intro-text h1 {
        font-size: 34px;
        margin-bottom: 0;
    }
    #intro {
        padding: 18px;
    }
    #button-container {
        margin: 25px;
        top: -7px;
        right: -7px;
        scale: 0.7;
    }
    .front-title{
        width: 340px !important;
    }
}
/* iPad Mini */
@media (max-width: 768px) and (min-height: 1024px){
    #intro{
        width: 100vw;
        margin: 0;
        padding: 19px;
        position: fixed;
    }
    #intro-text {
        top: 0;
        transform: none;
        scale: 1;
        left: 0;
    }
    #bookshelf{
        scale: 1.1;
        left: 168px;
        bottom: -157px !important;
    }
    #intro-text h1 {
        font-size: 34px;
        margin-bottom: 0;
    }
    #intro {
        padding: 27px;
    }
    #button-container {
        margin: 25px;
        scale: 0.9;
    }
}
/* iPad Air */
@media (max-width: 820px) and (min-height: 1180px){
    #intro{
        width: 100vw;
        margin: 0;
        padding: 19px;
        position: fixed;
    }
    #intro-text {
        top: 0;
        transform: none;
        scale: 1;
        left: 0;
    }
    #bookshelf{
        scale: 1.2;
        left: 278px;
        bottom: -257px !important;
    }
    #intro-text h1 {
        font-size: 44px;
        margin-bottom: 0;
    }
    #intro {
        padding: 27px;
    }
    #button-container {
        margin: 31px;
        scale: 1;
    }
}
/* iPad Pro */
@media (max-width: 1024px) and (min-height: 1366px){
    main{
        display: grid;
        overflow: auto;
    }
    #sticky-note{
        display: none;
    }
    #intro{
        width: 100vw;
        margin: 0;
        padding: 19px;
        position: relative;
    }
    #intro-text {
        top: 0;
        transform: none;
        scale: 1;
        left: 0;
    }
    #bookshelf{
        scale: 1.4;
        left: 612px;
        top: -230px;
    }
    #intro-text h1 {
        font-size: 44px;
        margin-bottom: 85px;
    }
    #intro {
        padding: 27px;
    }
    #button-container {
        margin: 31px;
        scale: 1.2;
    }
}
/* Surface Pro */
@media (max-width: 912px) and (min-height: 1368px){
    #sticky-note {
        display: block;
    }
}

/* Galaxy Z Fold 5 */
@media (max-width: 344px) and (min-height: 882px){
    #bookshelf {
        scale: 0.9;
        left: -106px;
        bottom: -117px;
    }
    #intro-text h1 {
        font-size: 29px;
        margin-bottom: 0;
    }
    #intro {
        padding: 22px;
    }
    #button-container {
        margin: 25px;
        top: -7px;
        right: -7px;
        scale: 0.7;
    }
}

/* Galaxy A51/71 */
@media (max-width: 412px) and (min-height: 914px){
    #bookshelf {
        left: 16px;
        bottom: -114px;
    }
    #intro-text h1 {
        font-size: 29px;
        margin-bottom: 0;
    }
    #intro {
        padding: 22px;
    }
    #button-container {
        margin: 25px;
        top: -7px;
        right: -7px;
        scale: 0.7;
    }
}

/* Menu */
@media (max-width: 625px){
    #menu-container{
        margin: 40px;    
    }
}
@media (max-width: 570px){
    #menu-container{
        top: 10%;
    }
    #menu-container h1{
        font-size: 30px;
    }
    #menu-text{
        padding: 35px;  
        font-size: 11px;
    }
}
@media (max-width: 475px){
    #menu-container{
        top: 7%;
    }
    #menu-text{
        padding: 35px;  
        font-size: 11px;
    }
}
@media (max-width: 450px){
    #menu-text{
        padding: 35px;  
        font-size: 10px;
        padding-bottom: 55px;
    }
}
@media (min-height: 960px) {
    #bookshelf{
        bottom: 30px;
    }
}