/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

.container {
    max-width: 100%; /* Ensure the container expands to the full width of the viewport */
    padding: 20px;
    background-color: #fff; 
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 0 auto;
    box-sizing: border-box;
}

h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #3498db;
}

.input-container, .select-container {
    margin-bottom: 15px;
}

label {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

.base-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('down-arrow.png');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 25px;
    color: #333;
}

.convert-button {
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.convert-button:hover {
    background-color: #219d54;
}

.result {
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    color: #e74c3c;
    overflow-wrap: break-word; /* This property allows long words to break and wrap onto the next line */

}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    h1 {
        font-size: 20px;
    }
    input, select {
        font-size: 14px;
    }
    .convert-button {
        font-size: 16px;
    }
    .result {
        font-size: 16px;
    }
}
