body, html{
    margin: 0;
    background-image: url(https://i.pinimg.com/736x/53/47/40/534740c62a7d3f7f99126f96f3074673.jpg);
    
}

.Header{
    background-image: url(https://i.pinimg.com/736x/7a/7f/2f/7a7f2fc29b6a9ed898f345e46f68c932.jpg);
    background-size:contain;
    background-color:  rgba(0, 0, 0, 0.59);
    height: 200px;
    width: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#Title{
    font-family: hondurhas;
    Color: #f8f5e0;
    text-shadow: -2px 0 pink, 0 2px pink, 2px 0 pink, 0 -2px pink;
    font-size: 140px;
    text-align: center;
    position: relative;
    margin:0;
    opacity: 1;
}

@font-face{
    
    font-family: hondurhas;
    src: url(Hondurhas.ttf);
    
}

@font-face{
        
    font-family: CherryBomb;
    src: url(CherryBombOne-Regular.ttf)
        
    }

.Navg {
    list-style-type: none;
    margin: auto;
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
    height: fit-content;
    width: fit-content;
    justify-content: center;
    display: flex;
}

li a {
    display: block;
    color: white;
    font-family: cherrybomb;
    font-size: 20px;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    width: 200px;
    height: 40px;
    border: 3px outset white;
    border-radius: 50px;
    margin: 5px;
}

.HC {
    text-shadow: -1px 0 deeppink, 0 1px deeppink, 1px 0 deeppink, 0 -1px deeppink;
    background-image: linear-gradient(pink, #ff75a8, pink);
}
.HC:hover {
    background-image: linear-gradient(#ffd5dc, #ffa6c7, #ffd5dc);
}

.AMC {
    text-shadow: -1px 0 #ff8000, 0 1px #ff8000, 1px 0 #ff8000, 0 -1px #ff8000;
    background-image: linear-gradient(#ffda53, #ffb453, #ffda53);
}
.AMC:hover {
    background-image: linear-gradient(#ffe891, #ffce63, #ffe891);
}

.GC {
    text-shadow: -1px 0 green, 0 1px green, 1px 0 green, 0 -1px green;
    background-image: linear-gradient(#d3e74b, #9dcf3a, #d3e74b);
}
.GC:hover {
    background-image: linear-gradient(#e3f37f, #b7eb6a, #e3f37f);
}

.BC {
    text-shadow: -1px 0 purple, 0 1px purple, 1px 0 purple, 0 -1px purple;
    background-image: linear-gradient(#d28cd8, #a16bd1, #d28cd8);
}
.BC:hover {
    background-image: linear-gradient(#e6afea, #bb7fdb, #e6afea);
}


.Fillem{
    height: fit-content;
    width: 1200px;
    margin: auto;
    padding: 20px 10px;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: column;
}

#words{
    font-family: cherrybomb;
    position: relative;
    padding: 20px;
    line-height: 15px;
    background-image: url(https://i.pinimg.com/1200x/02/e1/98/02e198ff365ad5af3feaec9e8b9c9582.jpg);
    background-size: cover;
    border-radius: 15px;
    height: 150px;
    width: 270px;
    z-index: 0;
    margin: 0;
    left: -250px;
    font-size: 18px;
    border: ridge 7px pink;
}

.book{
    
    width: 380px;
    height:480px;
    position: relative;
    transition-duration: 1s;
    perspective: 1500;
    top: -110px;
    margin: auto;
   
    
}
input {display: none;}

.cover, .back-cover{
    background-color: #cc7bb7;
    width:100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover{
    position: absolute;
    z-index: 6; 
    transform-origin: center left;
    transition: transform 1s;
}

.cover label{
    width:100%;
    height: 100%;
    cursor: pointer;
}

.back-cover {
    position: absolute;
    z-index: -1;
    transform-origin: center left;
    transition: transform 1s;
    
}

.back-cover label{
    width:100%;
    height: 100%;
    cursor: pointer;
}

.page{
    z-index: 1;
    background-color: antiquewhite;
    width: 360px;
    height: 460px;
    position: absolute;
    margin-top: 10px;
    transform-origin: left;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition-duration: 1.5s;
}

.page img {
    width: 100%;
    height: 100%;
    border-radius: 15px 0 0 15px;
}

.front-page {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-sizing: border-box;
    padding: 1rem;
}

.back-page {
    transform: rotateY(180deg);
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    z-index: 99;
    box-sizing: border-box;
    padding: 1rem;
}

.next, .prev {
    position: absolute;
    bottom: 1em;
    cursor: pointer;
    height: 100px;
}

.next {
    right: 1em;
}

.prev {
    left: 1em;
}

#page1 {
    z-index:3;
}

#page2 {
    z-index:2;
}

#page3 {
    z-index:1;
}

#checkbox-cover:checked ~ .book {
    transform: translateX(175px);
    
}

#checkbox-cover:checked ~ .book .cover{
    transition: transform 1.5s, z-index 0.5s 0.5s;
    transform: rotateY(-180deg);
    z-index: 1;
}

#checkbox-page1:checked ~ .book #page1 {
    transform: rotateY(-180deg);
    z-index: 2;
}

#checkbox-page2:checked ~ .book #page2 {
    transform: rotateY(-180deg);
    z-index: 3;
}

#checkbox-page3:checked ~ .book #page3 {
    transform: rotateY(-180deg);
    z-index: 4;
}

