:root {
    --dark-blue: #0a3871;
    --light-blue: #62a0f1;
    --main-color: #f3f5fc;
    --while-color: #ffffff;
    --gray-color: #353535;
    --inter-font: "Inter", sans-serif;
    --console-font: "Console", consolas, monospace;
}

html {
    font-size: 62.5%;
}

body {
    background-color: var(--main-color);
    box-sizing: border-box;
    font-family: var(--inter-font);
    margin: 0;
    overflow-x: hidden;
    padding: 0;
}

header {
    margin-top: 2em;
    margin-left: 2em;
}

main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2em;
}

.main-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.left-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60%;
}

.right-container {
    background-color: var(--while-color);
    overflow: hidden;
    border-radius: 4%;
    padding: 2em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.output-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

textarea {
    border: none;
    outline: none;
    color: var(--gray-blue);
    background-color: var(--while-color);
    resize: none;
    border-radius: 8px;
    box-sizing: border-box;
}

textarea.transparent-input {
    height: 55vh;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: none;
    color: var(--dark-blue);
    word-wrap: break-word;
}

textarea.transparent-output {
    height: 100%;
    font-size: 2.5rem;
    text-align: left;
    color: var(--gray-color);
    background-color: var(--while-color);
    word-wrap: break-word;
}

textarea.transparent-output {
    transition: height 0.3s ease, opacity 0.3s ease;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    font-size: 1.6rem;
    padding: 1rem 2rem;
    width: 250px;
    height: 55px;
    border-radius: 24px;
    cursor: pointer;
}

button#encryptButton {
    background: var(--dark-blue);
    color: var(--while-color);
    border: 1px solid var(--dark-blue);
}

button#decryptButton {
    background: transparent;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
}

.muñeco-container img {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.muñeco-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.hidden {
    display: none;
}

#outputText {
    width: 100%;
    height: none;
    flex-grow: 1;
    resize: none;
}

#copyButtonContainer {
    margin-top: 1rem;
}

button#copyButtonContainer {
    background: var(--dark-blue);
    color: var(--while-color);
    border: 1px solid var(--dark-blue);
}

#copyButton:hover {
    background-color: var(--dark-blue);
}

/* Responsive Design Tablet */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .left-container,
    .right-container {
        width: 100%;
        max-width: 600px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    textarea.transparent-input {
        height: 65vh;
        font-size: 2.8rem;
    }

    .options {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    button {
        width: 80%;
        max-width: 400px;
    }

    .right-container {
        padding: 2rem;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
    }

    #outputText {
        font-size: 2.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        max-height: 40vh;
        overflow: auto;
        padding: 1rem;
    }

    .message {
        font-size: 2.8rem;
        margin: 0;
    }

    #outputMessage {
        margin: 0;
    }

    #copyButtonContainer {
        margin-top: 1rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    button#copyButton {
        width: 80%;
        max-width: 400px;
        background: var(--dark-blue);
        color: var(--while-color);
        border: 1px solid var(--dark-blue);
    }

    button#copyButton:hover {
        background-color: var(--dark-blue);
    }
}


/* Responsive Design Movil */
@media (max-width: 380px) {
    html {
        font-size: 50%;
    }

    header {
        width: 80%;
    }

    main {
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 100vh;
        padding: 1rem;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .left-container,
    .right-container {
        width: 100%;
        max-width: 400px;
    }

    textarea.transparent-input {
        font-size: 2.4rem;
        height: 65vh;
    }

    .options {
        flex-direction: column;
        gap: 1rem;
    }

    button {
        width: 100%;
    }

    .right-container {
        padding: 1rem;
    }

    #outputText {
        font-size: 2.4rem;
    }
}

.footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding-top: 2rem;
    padding-bottom: 1.25rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 400;
    gap: 0.125rem;
}

.footer p {
    font-weight: 300;
}

.footer__github {
    text-decoration: none;
}

.footer__image {
    width: 1.5rem;
}

.footer__github__nick {
    line-height: 1.25;
    font-weight: 600;
    transition: 0.5s all;
}

.footer__github__nick:hover {
    font-size: 1.1rem;
}