@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

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

:root {
    --main--color: #212529;
    --secondary--color: #E9ECEF;
    --third--color: #343A40;
    --fourth--color: #6C757D;
    --fifth--color: #DEE2E6;
    --sixth--color: #495057;
}

body {
    min-height: 100vh;
    position: relative;
    font-family: 'Ubuntu', sans-serif;
}

.container {
    min-height: 100vh;
    min-width: 100%;
    box-sizing: border-box;
    padding: 1% 6% 6% 6%;
    background-color: var(--main--color);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5%;
}

.container__content {
    font-size: 2rem;
    height: 100%;
    box-sizing: border-box;
}

.expanded {
    height: 450px;
}

textarea {
    width: 450px;
    height: 100px;
    min-width: 450px;
    min-height: 100px;
    max-width: 450px;
    max-height: 450px;
    padding: 5%;
    margin: 8% 0 0 0;
    border-radius: 25px;
    border: none;
    background: transparent;
    color: var(--secondary--color);
    font-size: 1.5rem;
    box-sizing: border-box;
    text-align: left;
    caret-color: transparent;
    text-overflow: ellipsis;
    resize: none;
    -webkit-transition: all .2s ease-out;
    -moz-transition: all .2s ease-out;
    -ms-transition: all .2s ease-out;
    -o-transition: all .2s ease-out;
    transition: all .2s ease-out;
}

textarea:focus {
    transition: all 0.5s ease;
    border: none;
    width: 450px;
    height: 450px;
    background-color: var(--third--color);
    caret-color: var(--secondary--color);
}


textarea:focus::placeholder {
    color: transparent;
}

textarea:hover {
    transition: 200ms;
    border: none;
    background-color: var(--third--color);
}

textarea::-webkit-scrollbar {
    display: none;
}


::placeholder {
    padding: 3.5% 0 0 0;
    color: var(--secondary--color);
    font-weight: 600;
    text-align: center;
}

.container__form__paragraph {
    flex-direction: column;
}

#important__icon {
    max-width: 24px;
    max-height: 24px;
}

#input__warning {
    font-weight: 400;
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--fourth--color);
    gap: 5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.container__buttons__button {
    position: relative;
    padding: 0.75rem 2.5rem;
    border-radius: 20px;
    border: solid;
    border-width: 2px;
    border-color: var(--fourth--color);
    background-color: var(--main--color);
    color: var(--fifth--color);
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    overflow: hidden;
}

.container__buttons__button:hover {
    transition: 200ms;
    border-color: var(--fifth--color);
    background-color: var(--third--color);
    transform: scale(1.03);
}

.container__buttons__button:active {
    transform: scale(0.98);
}

span {
    position: absolute;
    background: #FFFFFF;
    transform: translate(-50%,-50%);
    pointer-events: none;
    border-radius: 50%;
    animation: animate 1s linear infinite;
}

@keyframes animate {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

.container__result__box {
    background-color: var(--third--color);
    box-sizing: border-box;
    width: 450px;
    height: 450px;
    max-width: 450px;
    max-height: 450px;
    border-radius: 25px;
    border: 2px solid var(--fourth--color);
    overflow: hidden;
}

.container__result__box__before {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4% 0 0 0;
    color: var(--secondary--color);
}

#before__subtitle {
    padding: 1% 0 0 0;
}

#img__unown {
    max-width: 300px;
}

.container__result__box__after {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#encrypted__text {
    box-sizing: border-box;
    height: 100%;
    width: 80%;
    margin: 7% 0 3% 0;
    padding: 0 10% 0 10%;
    border-radius: 25px;
    border: none;
    background: transparent;
    color: var(--secondary--color);
    font-size: 1.25rem;
    text-align: left;
    caret-color: transparent;
    resize: none;
    overflow: auto;
}

#encrypted__text::-webkit-scrollbar {
    display: none;
} 

#encrypted__text:focus {
    outline: none !important;
}

#copy__button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    margin: 10px;
    padding: 24px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    border: solid;
    border-width: 2px;
    border-color: var(--fourth--color);
    background-color: var(--main--color);
    overflow: hidden;
}

#copy__button:hover {
    transition: 200ms;
    border-color: var(--fifth--color);
    background-color: var(--sixth--color);
    transform: scale(1.03);
}

#copy__button:active {
    transform: scale(0.98);
}

#copy__icon {
    width: 2rem;
    height: 2rem;
    box-sizing: border-box;
}


.sign {
    background-color: var(--third--color);
    color: var(--secondary--color);
    font-weight: 500;
    text-align: center;
    padding: 24px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#developed__by {
    text-decoration: none;
    color: var(--secondary--color);
}

@media (max-width: 1200px) {
    .container {
        justify-content: space-between;
        flex-direction: column;
        gap: 20px;
    }

    .sign {
        position: relative;
    }
}