* {
    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;

}


.logo-bandeira {
    width: 64px;
    

}




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

}


label {
    color: #777777;
    font-weight: 400;
    font-size: 14px;
}

select, input {
    background: #fff;
    border: 1px solid #BBBBBB;
    border-radius: 4px;
    height: 30px;
    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:#fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
}

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-name {
    font-size: 14px;
    color: #777777;
}

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

/* Responsividade */

/* Mobile (até 480px) */
@media screen and (max-width: 480px) {
    .logo {
        width: 200px;
        margin: 15px auto;
    }

    main {
        width: 90%;
        padding: 24px 16px;
    }

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

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

/* Tablet (481px até 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .logo {
        width: 250px;
    }

    main {
        width: 70%;
        max-width: 400px;
    }
}

/* Desktop (acima de 768px) */
@media screen and (min-width: 769px) {
    .logo {
        width: 300px;
    }

    main {
        width: 400px;
    }

    main:hover {
        transform: scale(1.02);
        transition: all 0.3s;
    }

    button:hover {
        background: #8A51FC;
        transition: all 0.3s;
    }
}

