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

body {
    background-color: #8A51FC;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

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

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

}

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

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

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

button:hover {
    opacity: 0.8;
}

button:active {
    opacity: 0.6;
}

section {
    border-radius: 20px;
    border: 1px solid #772FD3;
    margin-top: 36px;
    padding: 18px;
    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 {
    color: #555555;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 481px) {
    main {
        width: 90%;
        padding: 20px;
        margin: auto 20px;
    }

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

    .currency-box img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }

    .arrow-img {
        width: 40px;
        height: 40px;
        margin: 12px 0;
    }

    label,
    select,
    input,
    button {
        font-size: 16px;
        width: 100%;
    }

    .convert-button {
        font-size: 16px;
        padding: 10px;
    }

    section {
        padding: 20px;
    }
}