@font-face {
    font-family: Ppoppins;
    src: url(https://fonts.googleapis.com/css2?family=Poppins&display=swap);
  }

body{
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    min-width: 400px;
    background-color: #22252c;
}

#language-selector{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #323641;
    h5{
        text-align: center;
        font-size: x-large;
        color:aliceblue;
        margin-top: 1%;
    }
    div{
        margin-left: 1%;
        margin-right: 1%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        
        input{
            font-size: larger;
            width: 33%;
            border-color: rgba(0, 0, 0, 0.103);
            border-bottom: none;
            background-color: rgba(159, 112, 190, 0.651);
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
            transition-property: background-color;
            transition-duration: 0.3s;
            transition-delay: 0.1s;
        }

        input:hover,input:focus{
            background-color: rgba(157, 43, 233, 0.651);
        }
    
    }
}


.demande {
    flex-basis: 100%;
    display: none;
    margin-left: 1%;
    margin-right: 1%;
    padding-left: 1%;
    padding-right: 1%;
    padding-bottom: 5%;
    border-color: rgba(157, 43, 233, 0.651);
    margin-bottom: 0;
    border-bottom-right-radius: 5%;
    border-bottom-left-radius: 5%;
    border-style: solid;
    background-color: #323641;


    .explanation{
        display: none;
    }

    p,h6{
        padding-left: 5%;
        padding-right: 5%;
        color:aliceblue;
        font-size: large;
        font-family:Poppins, Geneva, Tahoma, sans-serif;
    }

    h6{
        padding-bottom: 2%;
    }

    form{
        display: flex;
        flex-direction: row;
        align-self: center;
        justify-content: space-around;
        margin-left: 25%;
        margin-right: 25%;
        padding-bottom: 5%;

        input{
            border-radius: 33%;
            width: 20%;
            height: 10%;
            font-size: x-large;
            min-width: 200px;
            min-height: auto;
        }
    }
}



.letter-image {
    position: relative;
    left: calc(50% - 10vw);
    width: 20vw;
    max-width: 200px;
    height: 20vw;
    max-height: 200px;
    cursor: pointer;
    min-width: 150px;
    min-height: auto;
    margin-top: 5%;
    margin-bottom: 3%;

}

.animated-mail {
    position: relative;
    height: 15vw;
    max-height: 150px;
    width: 20vw;
    max-width: 200px;
    transition: .4s;
}

.body {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10vw 20vw;
    max-width: 200px;
    max-height: 100px;
    border-color: transparent transparent #e95f55 transparent;
    z-index: 2;
}

.back-fold {
    position: absolute;
    bottom: 0;
    width: 20vw;
    height: 10vw;
    background: #cf4a43;
    z-index: 0;
}

.back-fold {
    position: absolute;
    bottom: 0;
    width: 20vw;
    height: 10vw;
    background: #cf4a43;
    z-index: 0;
}

.left-fold {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5vw 0 5vw 10vw;
    border-color: transparent transparent transparent #e15349;
    z-index: 2;
}

.letter {
    left: 5%; /* Ajustement pour le centrage */
    bottom: 0;
    position: absolute;
    width: 18vw; /* Augmenté pour mieux remplir */
    height: 10%; /* Augmenté pour être plus grande */
    background: white;
    z-index: 1;
    overflow: hidden;
    transition: .4s .2s;
}



.letter-border {
    height: 1vw;
    max-height: 10px;
    width: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #cb5a5e,
        #cb5a5e 8%,
        transparent 8%,
        transparent 18%
    );
}

.letter-title {
    margin-top: 1vw;
    margin-left: 0.5vw;
    height: auto;
    width: 25%;
    background: #cb5a5e;
    text-align: left;
    font-size: 80%;
}

.letter-context {
    margin-top: 1vw;
    margin-left: 0.5vw;
    height: 1vw;
    max-height: 10px;
    width: 60%;
    text-align: left;
    font-size: 90%;
}

.letter-stamp {
    margin-top: 3vw;
    margin-left: 12vw;
    border-radius: 100%;
    height: 3vw;
    max-height: 30px;
    width: 3vw;
    max-width: 30px;
    background: #cb5a5e;
    opacity: 0.3;
}

/* Animation au survol */
.letter-container:hover .animated-mail {
    transform: translateY(5vw);
}

.letter-container:hover .animated-mail .top-fold {
    transition: transform .4s, z-index .2s;
    transform: rotateX(180deg);
    z-index: 0;
}

.letter-container:hover .animated-mail .letter {
    height: calc(150% + 3vw);
    /*max-height: px;*/
}