* {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #F3F5FC;
    width: 100%;
    height: 100%;
}


body.dark {
    background: #1c1f20;
}

/*HEADER*/
header {
    display: inline;
    position: absolute;
}

.logo_alura {
    width: 100px;
    height: 50px;
    padding-top: 20px;
    padding-left: 40px;
}

.switch {
    top: 30px;
    left: 130px;
    background: #0A3871;
    border-radius: 1000px;
    border: none;
    position: absolute;
    cursor: pointer;
    display: flex;
    outline: none;
}

.switch::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    background: #F1F1F1;
    top: 0;
    left: 0;
    right: unset;
    border-radius: 100px;
    transition: .3s ease all;
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, .2);
}

.switch.active {
    background: orange;
    color: #000;
}

.switch.active::after {
    right: 0;
    left: unset;
}

span {
    width: 30px;
    height: 30px;
    line-height: 30px;
    display: block;
    background: none;
    color: #FFF;
}

span .fa-solid {
    padding-top: 7.5px;
}

.container-social {
    align-items: center;
}

.fa-brands {
    font-size: 2rem;
    color: #0A3871;
    cursor: pointer;
}

/**/


/*MAIN*/
main {
    display: flex;
    position: absolute;
    width: 90%;
    height: 90%;
}

.key-v {
    visibility: hidden;
}

.container_box_text {
    position: absolute;
    width: 1080px;
    height: 600px;
}

.textbox {
    width: 90%;
    height: 80%;
    border: none;
    resize: none;
    overflow: hidden;
    background-color: #F3F5FC;
    color: #0A3871;
    font-size: 32px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: .3s ease all;
    overflow-y: scroll;
}

.textbox::-webkit-scrollbar {
    width: 10px;
}

.textbox::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #0A3871;
}

.textbox::placeholder {
    color: #0A3871;
}

body.dark .textbox {
    background: #1c1f20;
    color: #4b9be9;
}

body.dark .textbox::placeholder {
    background: #1c1f20;
    color: #54728b;
}


.container_box_buttons {
    position: absolute;
    top: 800px;
    height: 80px;
    padding-top: 12px;
}

input {
    width: 328px;
    height: 67px;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid #0A3871;
}

.button_Encrip {
    background-color: #0A3871;
    color: white;
    border: none;
}

.button_Encrip:hover {
    background: #105dbd;
}

.button_Desencrip {
    background-color: #F3F5FC;
    color: #0A3871;
    cursor: pointer;
}

.button_Desencrip:hover,
.button_copy:hover {
    background: #c1c3c9;
}

body.dark .button_Desencrip:hover,
body.dark .button_copy:hover {
    background: #3d4446;
}


body.dark .button_Desencrip {
    background: #1c1f20;
    color: #4b9be9;
}

.droplist {
    position: absolute;
    width: 940px;
    height: 70px;
    left: 100px;
}

.droplist label {
    font-family: 'Inter', sans-serif;
}

.droplist select {
    padding-left: 1rem;
    border-radius: 10px;
    width: 30%;
    height: 60%;
    color: #0A3871;
    font-size: 32px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

body.dark .droplist label {
    color: #F3F5FC;
}

body.dark .droplist select {
    color: #4b9be9;
    background: #3b3b3b;
}

.droplist .key-v {
    width: 30%;
    height: 60%;
    border-radius: 10px;
    color: #0A3871;
    font-size: 32px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    padding: 1rem;
}

body.dark .key-v {
    background: #1c1f20;
    color: #4b9be9;
}

body.dark .key-v::placeholder {
    color: #54728b;
}

.bi {
    font-size: 1.5rem;
    padding-top: 10px;
    position: absolute;
    transform: translateX(-40px);
    cursor: pointer;
    visibility: hidden;
}

body.dark .bi {
    color: #c1c3c9;
}

/**/

/*Result*/
.sec_2 {
    position: absolute;
    box-sizing: border-box;
    width: 400px;
    height: 800px;
    padding-right: 20px;
    background-color: #F3F5FC;
    border-radius: 32px;
    box-shadow: 10px 10px 50px #0A3871;
    transition: .3s ease all;
}

body.dark .sec_2 {
    background-color: #1c1f20;
}

.container_puppet {
    position: absolute;
    left: 30px;
    top: 180px;
    box-sizing: border-box;
    padding-top: 50px;
}

.container_p h3 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-align: center;
    color: #343A40;
}

body.dark .container_p h3 {
    color: #F3F5FC;
}

.container_p p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    color: #495057;
    padding-top: 20px;
}

body.dark .container_p p {
    color: #c1c3c9;
}

.container_result {
    display: flex;
    bottom: 330px;
    width: 370px;
    height: 650px;
    padding: 0;
    padding-top: 10px;
    box-sizing: border-box;
    margin-left: 27px;

}

.p_result {
    width: 360px;
    height: 670px;
    overflow-wrap: break-word;
    overflow-y: scroll;
}

.p_result::-webkit-scrollbar {
    width: 10px;
}

.p_result::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #0A3871;
}

.load-a {
    position: absolute;
}

.a-load {
    width: 200px;
    height: 200px;
    visibility: hidden;
    filter: drop-shadow(7px 7px 20px #3296ff);
    overflow: hidden;
}

.container_result p {
    color: #495057;
    font-size: 25px;
}

body.dark .container_result p {
    color: #c1c3c9;
}

.container_copy {
    display: flex;
    position: absolute;
    bottom: 400px;
    top: 700px;
    padding-left: 40px;
}

.button_copy {
    width: 328px;
    height: 67px;
    border-radius: 24px;
    background-color: #F3F5FC;
    color: #0A3871;
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    visibility: hidden;
}

body.dark .button_copy {
    background: #1c1f20;
    color: #4b9be9;
}



@media (min-width: 1369px) {

    header {
        width: 10%;
        height: 100%;
    }

    .container-social {
        position: absolute;
        display: flex;
        height: 10%;
        justify-content: space-between;
        top: 850px;
        padding-left: 75px;
    }

    .fa-brands {
        padding: 10px 10px;
    }

    main {
        width: 90%;
        height: 896px;
        margin-top: 5%;
        left: 10%;
    }

    .sec_1 {
        position: relative;
        left: 10%;
        width: 50%;
        height: 80%;
    }

    .droplist {
        left: 0px;
        align-items: center;
    }

    .container_box_text {
        position: absolute;
        top: 60px;
    }

    .container_box_buttons {
        width: 800px;
        top: 620px;
        padding-top: 15px;
    }

    input:not(.key-v) {
        margin-left: 20px;
        transition: 1s all;
    }

    input:hover:not(.key-v) {
        transform: scale(1.1);
    }


    .sec_2 {
        left: 70%;
        display: flex;
    }

    .container_puppet {
        right: 30px;
    }

    .container_p {
        position: absolute;
        box-sizing: border-box;
        top: 570;
        left: 61px;
    }


    .load-a {
        left: 100px;
        padding-top: 300px;
    }

    .button_copy {
        position: relative;
        right: 24px;
    }
}

@media screen and (max-width: 1368px) and (min-width: 481px){
    header {
        width: 10%;
        height: 100%;
    }

    .container-social {
        position: absolute;
        display: flex;
        height: 10%;
        justify-content: space-between;
        top: 90%;
        padding-left: 40px;
    }

    .fa-brands {
        padding: 10px 10px;
    }

    main {
        width: 90%;
        height: 90%;
        margin-top: 5%;
        left: 10%;
    }

    .sec_1 {
        position: relative;
        left: 5%;
        width: 50%;
        height: 80%;
    }

    .droplist {
        left: 0px;
        width: 750px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .bi{
        right: 11%;
        top: 14px;
        translate: calc(-15px);
    }
    #droplist-cod{
        width: 27%;
        font-size: 1.5rem;
    }
    .key-v{
        width: 27%;
        font-size: 1.5rem;
    }
    .key-v::placeholder{
        font-size: 1.5rem;
    }
    .container_box_text {
        position: absolute;
        height: 90%;
        width: 100%;
        top: 60px;
    }

    .container_box_buttons {
        width: 750px;
        top: 90%;
        padding-top: 15px;
    }

    
    input:not(.key-v) {
        margin-left: 20px;
        transition: 1s all;
        width: 250px;
    }

    input:hover:not(.key-v) {
        transform: scale(1.1);
    }

    .sec_2 {
        transform: translateY(calc(-30px));
        display: flex;
        left: 60%;
        height: 100%;
    }

    .container_puppet {
        top: 70px;
        width: 100%;
        height: 30%;
        align-content: center;
    }
    .container_p {
        position: absolute;
        box-sizing: border-box;
        top: 400px;
        left: 61px;
    }
    .load-a {
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    .container_result{
        height: 80%;
    }
    .p_result{
        height: 100%;
    }
    .container_copy{
        top: 85%;
        width: 90%;
        height: 10%;
        display: flex;
        justify-content: center;
    }
    .button_copy {
        position: relative;
        right: 24px;
    }
}


/*Mobile*/
@media (min-width: 320px) and (max-width: 480px) {

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

    header {
        width: 100%;
        height: 10%;
        position: absolute;
        display: flex;
    }

    .container-logo {
        width: 80px;
        height: 80px;
    }

    div .logo_alura {
        padding-left: 5px;
    }

    .switch {
        float: inline-start;
    }

    .container-social {
        width: 20%;
        height: 50%;
        top: 20px;
        right: 0%;
        display: flex;
        position: absolute;

    }

    .fa-brands {
        padding: 5px 5px;
    }

    main {
        padding-top: 20%;
        width: 100%;
        height: 100%;
        top: 10%;
    }

    .sec_1 {
        width: 100%;
        height: 100%;
    }

    .droplist {
        top: 0px;
        left: 10px;
        width: 96%;
        height: 100px;
    }

    .droplist select {
        font-size: 1rem;
        height: 40px;
        margin-top: 1rem;
    }

    .droplist .key-v {
        width: 40%;
        height: 40px;
        padding-top:10px;
        
    }

    .key-v::placeholder {
        font-size: 0.9rem;
    }

    .container_box_text {
        position: absolute;
        top: 100px;
        padding-left: 10px;
        width: 95%;
        height: 400px;
    }

    .textbox {
        width: 100%;
    }

    .container_box_buttons {
        width: 100%;
        position: absolute;
        top: 500px;
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    input {
        width: 190px;
        height: 60px;
    }

    .sec_2 {
        position: absolute;
        display: flex;
        justify-items: center;
        width: 100%;
        top: 600px;
    }

    .container_puppet {
        top: 100px;
    }

    .container_p {
        width: 70%;
        height: 10%;
        top: 30px;
        left: 15%;
        position: absolute;
        align-items: center;
    }

    .container_copy {
        height: 10%;
        display: flex;
        justify-items: center;
        right: 10%;
    }

    .load-a {
        top: 10px;
        left: 120px;
    }
}


