/* Reset & Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif, 'Helvetica Neue', Helvetica;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

/* Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --highlight-color: #27ae60;
    --text-color: #333;
    --background-color: #f4f4f9;
    --font-size-base: 1rem;
    --font-size-large: 1.5rem;
}

/* Utility Classes */
.margin-bottom {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-align-center {
    align-items: center;
    justify-content: center;
}

/* Layout Styles */
#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

#instructions {
    background: linear-gradient(135deg, #e0e0e0, #ffffff); /* Gradient from grey to white */
    color: #333;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: calc(100% - 40px);
    max-width: none;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

#instructions:hover {
    transform: scale(1.02); /* Slight enlargement on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Shadow gets deeper on hover */
}



#instructions h2 {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

#instructions p {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 15px;
}

/* Currency Selector */
#currency-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#currency-selector label {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
}

#currency-selector select {
    width: 200px;
    padding: 8px;
    font-size: 1.2rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    text-align: center;
    display: block;
}

/* Question Styling */
.question {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

/* Slider and Input Combination */
.slider-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

input[type="number"], input[type="text"], input[type="range"] {
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.2s ease; /* Smooth transitions */
}

input[type="number"]:focus, input[type="text"]:focus, input[type="range"]:focus {
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3); /* Subtle glowing effect */
    border: 1px solid #007BFF; /* Blue border on focus */
}


/* Labels */
label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    text-align: center;
}

button {
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    width: auto;
    max-width: 200px;
    margin: 20px auto;
    display: block;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Slight enlargement on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}


/* Parent container for Submit button */
#submit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

/* Result Container */
#result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-item {
    background: linear-gradient(135deg, #f9f9f9, #e0e0e0); /* Gradient background */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.result-item:hover {
    transform: scale(1.03); /* Slight enlargement on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Deepened shadow */
}

.result-item h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.result-item p {
    font-size: 1.2rem;
    color: #34495e;
    margin: 0;
}

.highlight {
    font-weight: bold;
    color: #007BFF;
    font-size: 1.3rem;
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
