@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
body, html {
    font-family: Arial, sans-serif;
    background-color: #F3F5FC;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.logo {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 24px;
    color: #0A3871;
}

.input-section {
    position: absolute;
    top: 168px;
    left: 160px;
    width: 47%;
}

.output-section {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 27%;
    background-color: white;
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.08);
    display: flex;
}

textarea {
    width: 100%;
    min-height: 650px;
    margin-bottom: 20px;
    border: none;
    resize: none;
    font-family: Inter;
    font-size: 30px;
    color: #0A3871;
    background-color: #F3F5FC;
}

textarea::placeholder {
    color: #0A3871;
}

#info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    color: #495057;
}

#info::before {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #495057;
    color: #F3F5FC;
    margin-right: 8px;
    font-style: italic;
    font-weight: bold;
}

.buttons {
    display: flex;
    gap: 24px;
}

button {
    flex: 1;
    padding: 24px;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.encrypt {
    background-color: #0A3871;
    color: #D8DFE8;
}

.decrypt {
    background-color: #D8DFE8;
    color: #0A3871;
}

#results-message {
    text-align: justify;
    font-size: 2vw;
    word-wrap: break-word;
    align-self: normal;
}

/* Media queries para pc */
@media (max-width: 1440px) and (max-height: 1024px) {
    .input-section {
        position: absolute;
        top: 168px;
        left: 160px;
        width: 680px;
    }
    .output-section {
        position: absolute;
        top: 40px;
        right: 40px;
        width: 400px;
        height: auto;
        min-height: 88%;
        background-color: white;
        border-radius: 32px;
        padding: 32px;
        box-shadow: 0px 24px 32px -8px rgba(0, 0, 0, 0.08);
    }
    textarea {
        min-height: 570px;
    }
    #no-results {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 90%;
        text-align: center;
    }
    #results {
        display: none;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 90%;
        width: 100%;
    }
}

/* Media queries para tablet */
@media (max-width: 768px) and (max-height: 1174px) {
    .input-section {
        left: 40px;
        width: calc(100% - 80px);
    }
    .output-section {
        top: auto;
        bottom: 40px;
        left: 40px;
        right: 40px;
        width: auto;
        height: 133px;
        justify-content: center;
    }
    textarea {
        min-height: 570px;
    }

    #no-results{
        text-align: center;
    }
}

/* Media queries para celular */
@media (max-width: 375px) and (max-height: 933px) {
    .logo {
        top: 24px;
        left: 16px;
    }
    .input-section {
        top: 152px;
        left: 16px;
        width: calc(100% - 32px);
    }
    textarea {
        min-height: 270px;
    }
    .buttons {
        flex-direction: column;
    }
    .output-section {
        left: 16px;
        right: 16px;
        bottom: 24px;
        height: 186px;
        min-height: 20%;
    }
    #results-message {
        text-align: justify;
        font-size: 5vw;
        word-wrap: break-word;
    }
}


#results {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    min-height: 88%;
    width: 100%;
}

.copyButton {
    flex:0;
    margin-top: auto;
    width: 100%;
    background-color: #FFF;
    border: 1px solid #0A3871;
    color: #0A3871;
}

.fa {
    padding: 20px;
    font-size: 30px;
    width: 50px;
    text-align: center;
    text-decoration: none;
  }
  
  .fa:hover {
    opacity: 0.7;
  }

  /* Facebook */
  .fa-facebook {
    background: #3B5998;
    color: white;
  }
  
  /* Twitter */
  .fa-twitter {
    background: #55ACEE;
    color: white;
  }

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
}