*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    width: 100vw;
    height: 100vh;
    background:linear-gradient(180deg,rgb(255, 217, 223), pink, rgb(139, 80, 114));
    position: relative;  
}
.container{
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    border: solid 1px white;
    transform-style: preserve-3d;
}
.logo{
    
    position: absolute;
    top: 10px;
    left: 15px;
    
 }
 .icon-logo{
    color:#ffffff;
    font-size: 50px;
    -webkit-text-stroke: 1px black;
    text-shadow: 5px 4px 4px black;
    border-bottom: 4px solid #ffffff;
     border-left: 4px solid #ffffff;
     border-radius: 50%;
    

 }
.slide-box{
      position: relative;
      display: flex;
      justify-content: center;
       width: 500px;
       height: 300px;
      transform-style: preserve-3d;
      transform: rotateX(-15deg);
}
.slide{
       background-color:transparent;
       transform:perspective(1000px) ;
       width: 500px;
       height: 300px;
       position: absolute;
       top: 0px;
       transform-style: preserve-3d;
       animation: rotate 10s infinite linear;
       display: flex;
       justify-content: center;
}
@keyframes rotate{
      from{
        transform:  perspective(1000px) rotateY(0) 
      }
      to{
        transform:  perspective(1000px) rotateY(360deg) 
      }
    }
.item-slide{
    
      
      width: 300px ;
      height: 180px;
      position: absolute;
      bottom: 50px;
    
}
.item1{
    background-color: aquamarine;
    transform:rotateY(0deg) translateZ(300px)  ;
    
}
.item2{
    background-color: rgb(198, 89, 21);
    transform:rotateY(72deg) translateZ(300px) ;
}
.item3{
    background-color: rgb(142, 165, 27);
    transform:rotateY(144deg) translateZ(300px) ;
}
.item4{
    background-color: rgb(255, 127, 210);
    transform:rotateY(216deg) translateZ(300px) ;
}/*
.item5{
    
    transform: rotateY(288deg) translateZ(300px)  ;
}*/


.letter{
    width: 500px;
    height: 300px;
    border: solid 1px white;
    border-bottom: whitesmoke;
    position: absolute;
    transform:rotate3d(0, 1, 0, 180deg);
    transform-style: preserve-3d;
    transition: all 2s ease;

}
.read-letter{
     width: 500px;
    height: 300px;
    border: solid 1px white;
    border-bottom: whitesmoke;
    position: absolute;
    transform:rotate3d(0, 1, 0, 180deg);
    transform-style: preserve-3d;
    transition: all 2s ease;
}


.back-page{
    position:absolute;
    inset: 0;
     background:linear-gradient(180deg,beige,beige, bisque, bisque,rgb(231, 205, 175));
    transform: translate3d(0, 0, -1px) rotate3d(0,1,0, 180deg);
    
}

.font-page{
    position: absolute;
    inset: 0;
    transform:translate3d(0,0,2px);
    transform-style: preserve-3d;

}
.head{
    position: absolute;
    top: 0;
    width: 100%;
    height: 33.5%;
    background: red;
    background:linear-gradient(180deg,beige, pink, pink);
    clip-path: polygon( 0 0, 100% 0, 50% 100%);
    transition: 1s linear 1s ;
    transform-origin: top;
   
}
.body{

    position: absolute;
    inset: 0;
    border-top: solid 1px;
    background:linear-gradient(180deg,beige, bisque, bisque, bisque,rgb(231, 205, 175));
    clip-path: polygon(0 0, 50% 33.33%, 100% 0, 100% 100%, 0 100%);
}
.shadow{
    position: absolute;
    bottom: 40px;
    
    width: 400px ;
    height : 50px ;
    border-radius: 50%;
    
    background-color: rgb(95, 91, 91);
    transform:rotate3d(0, 1, 0, 180deg);
    transform-style: preserve-3d;
    transition: all 2s ease;
    filter: blur(10px);
    opacity: 0.5; 
}
#move-page{
    opacity: 0;
    position: absolute;
    bottom: 10px;
    right: 40px;
    padding: 6px;
    font-size: 20px;
    background-color: transparent;
    border: rgb(249, 249, 229) solid 2px;
    border-radius: 5px;
    color: white;
    transition: 2s;


}
 #move-page a{
    text-decoration: none;
    color: antiquewhite;
    font-weight: 600;
}


#move-page:hover{
    background: linear-gradient(90deg, transparent ,#FAEBCE , #FAEBCE,transparent )}
    
#move-page:hover a{
    
    color: #9D6180;
}


.letter2{
    width:500px;
    height: 300px;
    border: solid 1px white;
    border-bottom: whitesmoke;
    position: absolute;
    transform:rotate3d(0, 1, 0, 0);
    transform-style: preserve-3d;
    transition: all 2s ease;
}

.letter3{
    width: 500px;
    height: 300px;
    border: solid 1px white;
    border-bottom: whitesmoke;
    position: absolute;
    
    transform-style: preserve-3d;
    transition:  2s ease;
    transform: translate(0, 100px) ;
}
 .head2{
  position: absolute;
    top: 0;
    width: 100%;
    height: 33.33%;
    background: red;
    background:linear-gradient(180deg,beige, pink, pink);
    clip-path: polygon( 0 0, 100% 0, 50% 100%);
    
    transform-origin: top;
    transform:translate3d(0,0,-3px) rotate3d(1,0,0, 180deg);
    transition: 1s linear 1s ;
}
.letter-content-container{
    position: absolute;
    inset: 20px;
    background-color: rgb(229, 229, 206);
    transform:translate3d(0,0,1px);
    transform-style: preserve-3d;
    border-radius: 4px;
    transition: 1s ease;
    overflow: hidden;
}
  

 .letter-content-container2{
    position: absolute;
    inset: 20px;
    background-color: rgb(229, 229, 206);
    transform:translate3d(0,-200px,1px);
    transform-style: preserve-3d;
    border-radius: 4px;
    
    overflow: hidden;
    transition: 1s ease 2s;
}
.letter-content-container2b{
    position: absolute;
    inset: 20px;
    background-color: rgb(229, 229, 206);
    transform:translate3d(0,-200px,1px);
    transform-style: preserve-3d;
    border-radius: 4px;
    

    transition: 1s ease;
}

.letter-content-container3{
    position: absolute;
    inset: 20px;
    background-color: rgb(229, 229, 206);
    transform:translate3d(0,-300px,1px) ;
    transform-style: preserve-3d;
    border-radius: 4px;
    transition: 2s ease ;
    
    
    overflow: hidden;  
}
.letter-content-container4{
    position: absolute;
    inset: 20px;
    background-color: rgb(229, 229, 206);
    transform:translate3d(0,-300px,10px) scale(1.1) ;
    transform-style: preserve-3d;
    border-radius: 4px;
  /*  border: solid 2px white;*/
    transition: 2s ease ;
    
    
    overflow: hidden;  
}
.letter-shadow2{  
    position: absolute;
    bottom: 40px;
    left: auto;
    right: auto;
    width: 400px ;
    height : 50px ;
    border-radius: 50%;
    
    background-color: rgb(95, 91, 91);
    
    transform-style: preserve-3d;
    transition: all 2s ease;
    filter: blur(10px);
    opacity: 0.5;
    transform: rotate3d(0, 1, 0, 0deg);
}






.menu-start{
    display: none;
    position: absolute;
    inset: 0;
    background: rgb(169, 162, 162,0.8);
    transform: translate3d(0,0, 4px);
    transition: all 1s ease;
}
.ability-btn{
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 30px;
    top: 35%;
   
}
.btn{
    
    margin-bottom: 1em;
    border: none;
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
  
}

    


.bold{
    border: solid 2px pink;
    color: pink;
}
.title-content{
     padding-left: 3%;
     margin-top: 5%;
    color: rgb(36, 184, 36);
}
.content{
    padding-left: 3%;
    margin-top: 4%;
    display: inline;
}

.start{
    background-color: transparent;
   
    width: 15%;
    aspect-ratio: 2/0.7;
    display: inline;

    
   
    border-radius: 3px;
    color: red;
    display: inline-block;
    cursor: pointer;
}
.start:hover{
    background: rgb(36, 184, 36);
}
.enter-content{
    display: none;
    background-color: transparent;
    color: green;
    font-family: 'Courier New', Courier, monospace;
    font-size: 25px;
    height: 100%;
    width: 100%;
    text-decoration: none;
    position: absolute;
    top: 0;

}
#input-color{
    position: absolute;
    bottom: 100px;
    height: 50px;
    width: 100px;
    left: calc(50% - 50px) ;
}
.hide-color{
    display: none;
}
.menu-family{ 
    width: 60%;
    height: 300px; 
    left: 20%;
    position: absolute;
    bottom: 0 ;
    background-color: transparent;
    
    grid-template:1fr 1fr 1fr/ 1fr 1fr 1fr;
    gap: 25px;
    align-items: center;
    justify-content: center;
    display: none;
    
}
.grid{
    display: grid;
}
.family{
    display: flex;
    height: 45px;
    ;
    background-color: #F0F0F0;
    display: inline-block;
    text-align: center;
    border: 2px;
    border-radius: 40px;
    font-size: 25px;
    padding-top: 8px;
}
.family1{
    font-family: 'Dancing Script',cursive;
    


}
.family2{
    font-family: 'Pacifico',cursive;
    padding-top: 1px;
}
.family3{
    font-family: "Roboto",cursive;
}
.family4{
    font-family: "Poppins",cursive;
    padding-top: 5px;
}
.family5{
    font-family: "Satisfy",cursive;
}
.family6{
    font-family: "Great Vibes",cursive;
}

    


#new-content{
    display: none;
    width: 100%;
    height: 100%;
    white-space: pre-wrap ;
    word-break: break-word;
    color:green;
    font-family: 'Courier New', Courier, monospace;
    font-size:25px;
}
.link-box{
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    background: rgba(167, 167, 167, 0.4);
    transform: translate3d(0,0, 4px);
    transition: all 1s ease;
}
.body-link-box{
     
    width: 310px;
    background-color: azure;
    position: absolute;
    top:calc( 50% - 135px) ;
    left: calc(50% - 155px);
    padding: 10px;
    
    border-radius: 3px;
    
}

.body-link-box a{
    display: block;
    color:  rgba(18, 157, 18, 0.81);
}
.preview-btn{
    cursor: pointer;
    width: 70%;
     margin: 10px auto;
     border: none;
     height: 2em;
     margin-right: 0;
      border-radius: 3px;

}
.preview-btn a{
    text-decoration: none;
    color: black
    
}
.copy-btn{
    cursor: pointer;
    width: 28%;
    margin: 10px auto;
    margin-left: 0;
    color: white;
    background-color: rgba(18, 157, 18, 0.81);
    border: none;
    height: 2em;
     border-radius: 3px;
}

.write-newletter-btn{
    cursor: pointer;
    display: block;
    width: 100%;
    height: 2em;
    border: none;
    border-radius: 3px;
}
.write-newletter-btn a{
    text-decoration: none;
    color: black
}

@media( max-width: 500px){
    .logo{
    left: 10px;  
 }
 .icon-logo{
    font-size: 30px;
    border-bottom: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
 }
 .letter{
    width: 300px;
    height: 180px;
}
.letter2{
    width:300px;
    height: 180px;
;
}
.letter3{
    width: 300px;
    height: 180px;
 ;
}
.read-letter{
     width: 300px;
    height: 180px;
    border: solid 1px white;
    border-bottom: whitesmoke;
    position: absolute;
    transform:rotate3d(0, 1, 0, 180deg);
    transform-style: preserve-3d;
    transition: all 2s ease;
}
  .letter-shadow{
    
    bottom: 90px;
    left: auto;
    right: auto;
    width: 250px ;
    height : 30px ;
} 
.letter-shadow2{  
    position: absolute;
    bottom: 40px;
    left: auto;
    right: auto;
    width: 250px ;
    height : 30px ;
    filter: blur(10px);
    opacity: 0.5;
    transform: rotate3d(0, 1, 0, 0deg);
}
.title-content{
     padding-left: 3%;
     margin-top: 5%;
    color: rgb(36, 184, 36);
    font-size: 20px;
}
.content{
    padding-left: 3%;
    margin-top: 4%;
    display: inline;
}

    /*
  .letter:hover .letter-content-container{
    transform: translate(0, -200px );
    transition: 1s ease 2s;  
}*/
.ability-btn{
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0px;
    top: 35%;
   
}
.btn{
    width: 43px;
    font-size: 12px; 
}
.enter-content{
    display: none;
    background-color: transparent;
    color: green;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    height: 100%;
    width: 100%;
    text-decoration: none;
    position: absolute;
    top: 0;

}
.new-content{
    font-size: 15px;
}

.menu-family{ 
    width: 100%;
    height: 30%;
    position: absolute;
    left: 0;
    background-color: #E5E5CE;
    grid-template:1fr 1fr 1fr/ 1fr 1fr ;
    gap: 10px;
    align-items: center;
    justify-content: center;
    
    border-radius: 25px 25px 0 0;
    
    padding: 4% 10% 3% 10%;
    
    
}
.family{
    
    display: flex;
    background-color: #F0F0F0;
    display: inline-block;
    text-align: center;
    border-radius: 40px;
    font-size: 15px;
    padding-top: 8px;
    
}
}

