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

h1 {
    text-align: center;
    color: #f4f4f4;
    margin-top: 20px;
}

body {
    background-color: #8a51fc;
}

.imagem-logo {
    width: 150px;
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

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

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

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;
}

.error-message {
    color: #ff4d4d;
    font-size: 13px;
    font-weight: 500;
    margin-top: -15px;
    margin-bottom: 15px;
    display: none;
}

button {
    background: #772fd3;
    border-radius: 5px;
    width: 100%;
    border: none;
    height: 48px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    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;
}

.result-section {
    display: none;
}

.imagem-seta {
    margin: 15px;
}

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

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

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

footer {
    text-align: center;
    color: #f4f4f4;
    margin-top: 20px;
    margin-bottom: 20px;
}

fonter a {
    color: #f4f4f4;
    text-decoration: none;
    font-weight: bold;
}

@media (min-width: 768px) {
    main {
        max-width: 450px;
        padding: 50px 40px;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    }

    h1 {
        font-size: 38px;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    button {
        height: 56px;
        font-size: 20px;
    }

    .imagem-logo {
        width: 250px;
    }
}