*{
    margin: 0;
    padding: 0;
    border: border-box;
}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #ffefa1;
    background-color: #ccd5ae;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(97, 97, 97);
}
.container{
    background-color:#fed13c;
    background-color: #ffefa1;
    box-shadow: 0 0 1rem rgba(91, 99, 69, 0.7);
    padding: 2.5rem;
    min-height: 45vh;
    min-width: 40vh;
}
.container h2{
    text-align: center;
    font-size: 1.9rem;
    font-weight: bolder;
    color: rgb(97, 16, 16);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
form{
    margin-top: 1.5rem;
    font-weight: 600;
}
.amount p{
    font-size: 1.2rem;
}
form input, select, button, .message{
    width: 100%;
    border: none;
    outline: none;
}
form input{
    margin-top: 0.5rem;
    border: 1px solid rgb(192, 192, 192);
    font-size: 1.2rem;
    padding: 0.5rem 0 0.5rem 0.5rem ;
    width: 97%;
}
.dropdown{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}
.dropdown p{
    font-size: 1.1rem;
}
.dropdown .icon{
    margin-top: 1.6rem;
    padding: 0.5rem 0.7rem;
    background-color: #ffdd6e;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Apply the spin animation to the icon */
.rotation{
    animation: spin 0.5s infinite linear;
    font-size: 1.4rem;
}
.selectContainer{
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff8d7;
    border: 1px solid rgb(198, 198, 198);
    width: 5.5rem;
    padding: 0.2rem 0.3rem 0.2rem 0.5rem;
}
.selectContainer img{
    max-width: 1.9rem;
}
.selectContainer select{
    background-color: #fff8d7;
    font-size: 1rem;
    width: auto;
    cursor: pointer;
}
.message{
    margin: 2rem 0 1.5rem 0;
    text-align: center;
    font-size: 1.3rem;
    color: #464646;
    background-color: #ffc400;
    padding: 0.75rem 0;
}
form button{
    padding: 1rem 0;
    background-color: #1b273b;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.5s;
}
form button:hover{
    background-color: #2b3d5d;
}

@media(max-width: 400px){
    .container{
        padding: 1.3rem 1rem;
    }
    .container h2{
        font-size: 1.4rem;
    }
    .dropdown .icon{
        font-size: 1.2rem;
    }
    .message{
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    .rotation{
        font-size: 1rem;
    }
    form button{
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }
}