@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-blue-100: #609ED4;
    --dark-blue-200: #356EA9;
    --dark-blue-300: #0A3871;
    --dark-blue-400: #072B61;
    --dark-blue-500: #052051;

    --light-blue-100: #F3F5FC;
    --light-blue-200: #EFF1FA;
    --light-blue-300: #E9ECF8;
    --light-blue-400: #AAB2D5;
    --light-blue-500: #757FB2;

    --gray-100: #CED4DA;
    --gray-200: #ADB5BD;
    --gray-300: #868E96;
    --gray-400: #495057;
    --gray-500: #343A40;
}

body {
    background-color: var(--light-blue-100);
    font-family: 'Inter', sans-serif;
}

main {
    height: 100vh;
}

.alura__logo {
    padding: 24px 0px 0px 16px;
}

.content {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 64px;
}

.input {
    margin-top: 80px;
}

#text__input {
    font-family: inherit;
    color: var(--dark-blue-300);
    font-size: 32px;
    background: transparent;
    border: none;
    outline: 0;
    width: 100%;
    height: 250px;
    resize: none;
}

#text__input::placeholder {
    color: var(--dark-blue-300);
}

.information {
    display: flex;
    align-items: stretch;
    gap: 8px;
    font-size: 12px;
    padding: 16px 0;
    color: var(--gray-500);
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#encrypt__button {
    font-family: inherit;
    border-radius: 24px;
    padding: 24px;
    font-size: 16px;
    background-color: var(--dark-blue-300);
    border: none;
    color: #ffffff;
    cursor: pointer;
}

#decrypt__button {
    font-family: inherit;
    border-radius: 24px;
    padding: 24px;
    font-size: 16px;
    background: transparent;
    color: var(--dark-blue-300);
    border: 1px solid var(--dark-blue-300);
    cursor: pointer;
}

#output {
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 16px;
    background-color: #ffffff;
    border-radius: 32px;
    box-shadow: 0px 24px 32px -8px rgb(0, 0, 0, 0.08);
}

#not__found {
    display: none;
}

#output h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: var(--gray-500);
}

#output p {
    font-size: 16px;
    text-align: center;
    color: var(--gray-400);
}

#encryptedText, #decryptedText {
    font-family: inherit;
    color: var(--gray-400);
    font-size: 24px;
    background: transparent;
    border: none;
    outline: 0;
    width: 100%;
    height: 250px;
    resize: none;
}

#copyToClipboardButton {
    font-family: inherit;
    border-radius: 24px;
    padding: 24px;
    font-size: 16px;
    background: transparent;
    color: var(--dark-blue-300);
    border: 1px solid var(--dark-blue-300);
    cursor: pointer;
}

@media (hover: hover) {
    #encrypt__button:hover {
        background-color: var(--dark-blue-200);
    }

    #decrypt__button:hover {
        background-color: var(--dark-blue-200);
        border: 1px solid var(--dark-blue-200);
        color: #ffffff;
    }

    #copyToClipboardButton:hover {
        background-color: var(--dark-blue-200);
        border: 1px solid var(--dark-blue-200);
        color: #ffffff;
    }
}

@media (min-width: 768px) {
    .alura__logo {
        padding: 74px 0px 0px 40px;
    }

    .input {
        margin-top: 116px;
    }

    .content {
        padding: 40px;
    }

    .buttons {
        flex-direction: row;
    }

    #encrypt__button {
        flex: 1;
    }
    
    #decrypt__button {
        flex: 1;
    }
}

@media (min-width: 1440px) {
    main {
        display: flex;
        gap: 80px;
    }

    .alura__logo {
        padding: 40px 0px 0px 84px;
    }

    .content {
        flex-direction: row;
        flex: 1;
    }

    .input {
        gap: 80px;
        flex: 1;
    }

    #text__input {
        height: 80%;
    }

    #decrypt__button {
        background-color: var(--gray-100);
    }

    #output {
        justify-content: center;
        max-width: 24vw;
        flex: 1;
    }

    #output.modified {
        display: flex;
        justify-content: space-between;
    }

    #not__found {
        display: block;
        padding-bottom: 16px;
    }

    #encryptedText, #decryptedText {
        height: 100%;
    }
}