:root {
    --night: #9ca1d0;
    --blue:#666dd488;
    --blue-electric: rgb(124, 133, 254);
    --grey-blue:#3b3b9633;
    --word:rgb(110, 102, 159);
  }

body{
    /* background-color: var(--night) !important; */
    background-image: url('https://images.unsplash.com/photo-1636955816868-fcb881e57954?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
}

.header-text{
    margin-top: 20px;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    height: 70%;
    width: 96%;
    background-color: var(--blue);
    font-size: 24px;
}

.header-popup{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    animation: header-animation 1s ;
}

@keyframes header-animation {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    55% {
        transform: translateY(10%);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0%);
    }
    
}

/* section 1 */

.section1{
    margin-top: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-in{
    width:85%;
    animation: popup 1s ;
}

.text-in textarea::placeholder{
    color: #ffffffc3;
}

.text-in textarea{
    padding: 20px !important;
    resize: none;
    outline: none;
    width: 100%;
    height: 80vh;
    background: var(--grey-blue);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 28px;
    border: none;
    border-radius: 25px;
    padding: 10px;
    cursor: default;
}

@keyframes popup {
    0% {
        transform: scale(0.8);
        opacity: 0;
        backdrop-filter: blur(10px);
    }
    55% {
        transform: scale(1.02);
        opacity: 0.3;
        backdrop-filter: blur(10px);
    }
    100% {
        transform: scale(1);
        backdrop-filter: blur(10px);
    }
    
}

.btn-container{
    transform: translateY(-85px);
    display: flex;
    justify-content: right;
    width: 100%;
    /* border : 2px solid red  !important; */
}

.btnSend{
    margin: 10px;
    color: white;
    width: 120px;
    border-radius: 10px;
    background-color: var(--blue-electric);
    border: none;
    font-size: 24px;
}

.btnDifficulty{
    color : white;
    width: 120px;
    margin: 10px;
    border-radius: 10px;
    background-color: var(--blue-electric);
    border: none !important;
    font-size: 24px;
}

input{
    transition: 0.2s;
    text-align: center;
}

input:hover{
    transform: scale(1.08);
}
.btnDifficulty::placeholder
{
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.307);
}

/* seciton2 */

.section2{
    margin-top: 25px;
    background-color: var(--grey-blue);
}

.text-out{
    text-align: justify;
    line-height: 1.5em;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    min-height: 100vh;
    padding: 40px;
    font-size: 28px;
    color: white;
}

.word{
    color: var(--word);
    background: var(--word);
    border-radius: 12px;
    padding: 1px;
}

.phrase{
    margin: 5px;
    padding: 3px;
    padding-inline: 15px !important;
    background-color: rgba(158, 149, 215, 0.301);
    color: var(--blue-electric);
    border-radius: 6px;
    padding: 1.5px;
}



.btn-container2{
    position: fixed;
    bottom : 15px;
    right : 10px ;
    width: auto;
    transition: opacity 0.8s !important;
}

/* Footer */

.footer{
    width: 100%;
    color: #585bfa;
    font-size: 12px;
    position: fixed;
    display: flex;
    justify-content: space-between;
    bottom: 7px;
    transition: opacity 0.8s !important;
}
.footer div{
    margin-inline: 15px;
}

.footer a{
    color: #585bfa;
    text-decoration: none;
    border-bottom: 0.3px solid #585bfa;
}

.transparent{
    transition: opacity 0.8s !important;
    opacity: 0;
}

@media (max-width: 768px) {
    .text-in textarea{
        font-size: 18px;
        height: 75vh;
    }

    .btnDifficulty, .btnSend{
        font-size: 20px;
    }

    .btn-container{
        justify-content: center;
        width: 100%;
    }

    .btn-container2{
        width: 100%;
        bottom: 25px;
        right: 0;
        display: flex;
        justify-content: center;
    }

    .text-out{
        font-size: 18px;
        width: 95%;
        padding: 15px;
    }
    
    .text-in{
        width: 95%;
    }

    input{
        font-size: 18px;
    }
    .section2{
        display: flex;
        justify-content: center;
    }
}