/* Font Families */
body {
    font-family: 'Merriweather', serif;
    margin: 20px;
}

h1, h2, p {
    font-family: 'Merriweather', serif;
}

h1 {
    font-size: 30px;
    color: #0d7dd4;
    margin-bottom: 20px;
    letter-spacing: 0;
}

h2 {
    color: #0d7dd4;
    margin-bottom: 20px;
}

div {
    margin-bottom: 15px;
}

label, input, select, button {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
}

label {
    color: #000000;
}

input[type="number"] {
    border: 1px solid #0d7dd4;
    border-radius: 50px;
    padding: 10px;
}

button {
    cursor: pointer;
    background-color: #0d7dd4;
    color: white;
    border: 1px solid #0d7dd4;
    border-radius: 50px;
    padding: 10px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #0a5fa2;
    transform: scale(1.05);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.95);
}

button:focus, button:focus-visible {
    background-color: #0d7dd4;
    color: white;
    border: 1px solid #0d7dd4;
    outline: none;
}

input:focus {
    border-color: #0d7dd4;
    outline: none;
}

.results-container {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background-color: #f0fdf9;
    border: 2px solid #0d7dd4;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.results-container.show {
    opacity: 1;
    transform: scale(1);
}

#results p {
    font-size: 25px;
    font-weight: bold;
    color: #0d7dd4;
    margin-bottom: 20px;
}

#results h2 {
    font-size: 22px; /* Reduced font size for result heading */
    color: #0d7dd4;
    margin-bottom: 20px;
}

/* Added styling for the Final Result heading */
.final-result-heading {
    font-size: 25px;
    color: #0d7dd4;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    width: 48%;
}

/* Font classes */
.merriweather-black {
    font-family: 'Merriweather', system-ui;
    font-weight: 900;
    font-style: normal;
}
