*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html{
    width: 100%;
    height: 100%;
}

html,
body {
    font-family: 'Inter';
    font-weight: 400;
}

body {
    background: linear-gradient(45deg, #2196F3 0%, #0A3871 100%);
    background-size: 300% 300%;  
    height: 100%;
    width: 100%;
    animation: background 10s ease infinite;
}

.header {
    display: flex;
    padding-left: .5%;
    padding-top: .5%;
}

.header h1{
    color: #0A3871;
    margin: auto;
    margin-left: auto;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: -25px;
}

.main_container {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 800px;
    margin-top: 120px;
    margin-left: auto;
    margin-right: auto;
}

#textBox {
    height: 300px;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: 0em;
    text-align: left;
    outline: none;
    resize: none;
    flex-grow: 1;
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.03);
    border: none;
    backdrop-filter: blur(20px);
}

.result_box {
    width: 400px;
    padding: 30px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0px 0px 5px -0px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    min-height: 800px;
    backdrop-filter: blur(20px);
}
#texBox::placeholder {
  color: black;
}

#notFound {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    /*display: none;*/
}

.result_box h5 {
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    text-align: center;
    color: black;
    margin: 16px 0px;
}

.result_box p {
    height: 48px;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: black;
    margin: 16px 0px;
}

#results {
    cursor: auto;
    border: none;
    resize: none;
    height: 300px;
    text-align: left;
    font-style: normal;
    font-size: 24px;
    line-height: 36px;
    color: black;
    flex-grow: 1;
    margin-bottom: 10px;
    word-break: break-word;
    white-space: pre-wrap;
    display: none;
    background: transparent;
}

#results:focus-visible {
    outline: none;
}

button {
    padding-top: 21px;
    padding-bottom: 21px;
    width: 332px;
    font-size: 18px;
    line-height: 19px;
    border-radius: 20px;
    border: 1px solid #0A3871;
    cursor: pointer;
}

#copyResultButton {
    color: #0A3871;
    background: #fff !important;
    transition: 0.1s box-shadow;
    width: auto;
    display: none;
}

#copyResultButton:hover {
    box-shadow: 0 0 5px 1px #0A3871;
}

.encrypt_decrypt_buttons {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.encrypt_container {
    margin-top: 25px;
}

#encryptButton {
    color: #FFF;
    background: #0A3871;
    transition: 0.5s background;
    transition: 0.1s box-shadow;
}

#encryptButton:hover {
    background: #0a3871f1;
    box-shadow: 0 0 5px 1px #0a3871e1;
}

#decryptButton {
    color: #0A3871;
    background: #fff !important;
    transition: 0.1s box-shadow;
}

#decryptButton:hover {
    box-shadow: 0 0 5px 1px #0A3871;
}

.warning_container {
    font-size: 12px;
    line-height: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.footer_hr {
    margin: 30px auto 0;
    border-radius: 50%;
}

footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 15px auto 0;
    color: black;
    font-size: 16px;
}

.links {
    display: flex;
    list-style: none;
    gap: 15px;
}

/* Overflow Bar */

/* width */
::-webkit-scrollbar {
    width: 16px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px 5px transparent;
    border-radius: 0px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #606060;
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #909090;
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
}

/* Overflow Bar */

/* Responsive */

@media screen and (max-width: 1490px) {
    .main_container {
        margin-top: 50px;
        width: 600px;
    }

    .header img {
        margin-right: 170px;
    }
}

@media screen and (max-width: 1210px) {
    .main_container {
        width: 450px;
    }

    .header img {
        margin-right: 80px;
    }
}

@media screen and (max-width: 1100px) {
    .header img {
        margin-right: 0;
    }

    .header h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .container {
        flex-direction: column;
    }

    .main_container {
        margin-top: 40px;
        width: 700px;
    }

    .result_box {
        width: 700px;
        min-height: auto;
    }

    .result_box p {
        margin: 0;
    }

    .img_not_found {
        display: none;
        visibility: hidden;
    }
}

@media screen and (max-width: 766px) {
    .container {
        flex-direction: column;
    }

    .main_container {
        width: 550px;
    }

    .result_box {
        width: 550px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 630px) {
    .header h1 {
        display: none;
    }

    body {
        padding: 10px;
    }

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

    .main_container {
        width: 310px;
    }

    .encrypt_decrypt_buttons {
        flex-direction: column;
        gap: 15px;
    }

    .result_box {
        width: 310px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .encrypt_decrypt_buttons {
        align-items: center;
    }

    #encryptButton,
    #decryptButton {
        width: 280px;
    }

    #textBox {
        font-size: 20px;
        line-height: 28px;
    }

    #results {
        font-size: 18px;
        line-height: 28px;
    }
}

/* keyframe */
@keyframes background { 
    0% {
        background-position: 0% 50%;
    }
    
    50% {
        background-position: 100% 50%;
    }
    
    100% {
        background-position: 0% 50%;
    }
}