* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    outline: none;
}

body {
    background-color: #8A51FC;


}

.logo {
    width: 300px;
    display: block;
    margin: 20px auto;
}


main {
    width: 375px;
    background: #f4f4f4;
    border-radius: 20px;
    margin: 0 auto 40px;
    padding: 44px 24px 23px;

}

label {
    color: #777777;
    font: weight 400px;
    font-size: 14px;
    line-height: 17px;
    margin-bottom: 6px;
    display: block;
}

select,
input {
    background: #ffffff;
    border: 1px solid #BBBBBB;
    border-radius: 4px;
    height: 48px;
    width: 100%;
    margin-bottom: 24px;
    appearance: none;
    padding-left: 18px;
    font-weight: 700;
    font-size: 16px;
    color: #555555;
    cursor: pointer;

}

button {
    background: #772FD3;
    border-radius: 5px;
    width: 100%;
    border: none;
    height: 48px;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

button:active {
    opacity: 0.6;


}

section {
    border: 1px solid #772FD3;
    border-radius: 20px;
    margin-top: 36px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.arrow-img {
    margin: 15px 0;
}

.currency-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;



}

.currency {
    color: #777777;
    font-size: 14px;

}

.currency-value,
.currency-value-to-convert {
    font-weight: 700;
    font-size: 20px;
}

@media (max-width: 768px) {
    main {
        width: 90%;
        padding: 30px 20px;
    }

    .logo {
        width: 250px;
    }

    select,
    input {
        font-size: 14px;
        height: 44px;
    }

    button {
        font-size: 16px;
        height: 44px;
    }

    section {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
    }

    .arrow-img {
        margin: 0;
        width: 30px;
    }

    .currency-box {
        flex: 1;
    }
}

/* RESPONSIVO - Celulares pequenos */
@media (max-width: 480px) {
    main {
        width: 95%;
        padding: 20px 16px;
        margin: 0 auto 20px;
    }

    .logo {
        width: 200px;
        margin: 15px auto;
    }

    label {
        font-size: 12px;
    }

    select,
    input {
        font-size: 13px;
        height: 40px;
        padding-left: 12px;
    }

    button {
        font-size: 14px;
        height: 40px;
    }

    section {
        flex-direction: column;
        padding: 10px;
    }

    .arrow-img {
        margin: 10px 0;
        width: 25px;
        transform: rotate(90deg);
    }

    .currency-box {
        width: 100%;
    }

    .currency-value,
    .currency-value-to-convert {
        font-size: 18px;
    }
}