*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
    background-color: hsl(0, 7%, 22%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100vw;
    height: 100vh;
    padding: 20px;
}

h1{
    font-size: 3.5rem;
    margin-top: 0;
    margin-bottom: 25px;
    text-decoration: underline;
    font-weight: bold;
    text-align: center;
}

button{
    background-color: inherit;
    font-size: 2em;
    width: 30vw;
    border-radius: 10px;
    border: 2px solid white;
}

button:hover, button:active{
    background-color: rgb(161, 51, 51);
}

.amount input{
    background-color: inherit;
    width: 80vw;
    max-width: 400px;
    height: 7vh;
    font-size: clamp(2em, 3vw, 3em);
    border-radius: 10px;
    border: 2px solid white;
    text-align: center;
}

.currency-label{
    display: flex;
    justify-content: space-between;
    width: 80vw;
    max-width: 400px;
}

.amount{
    padding-top: 5vh;
    background-color: inherit;
}

.amountInput::-webkit-inner-spin-button,
.amountInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amountInput{
    -moz-appearance: textfield;
    appearance: textfield;
}

.currency-label label {
    font-size: clamp(1rem, 2vw, 2em);
    font-weight: bold;
}

.currency-select{
    display: flex;
    justify-content: space-between;
    width: 80vw;
    max-width: 400px;
    gap: 10px;
}

.currency-select select{
    font-size: clamp(1rem, 2vw, 2em);
    height: 5vh;
    width: 30vw;
    max-width: 200px;
    background-color: inherit;
    text-align: center;
    border-radius: 10px;
    border: 2px solid white;
    text-overflow: ellipsis; 
    white-space: nowrap; 
    overflow: hidden; 
}

.resultoutput{
    font-size: 2em;
    font-weight: bold;
}
.warning {
    color: red;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
}