/* Wrapper for Calculator Centering */
.calculator-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 70vh;
    margin: 0;
    padding: 20px 0;
    background-color: #f9f9f9;
    width: 100%;
}

/* Apply styles only to the calculator container */
.calculator-container {
    font-family: 'Arial', sans-serif;
    background-color: white;
    padding: 20px 20px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-align: center;
    margin: 10px;
}

/* Modern Title */
.calculator-container h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

/* Modern Slider Styling */
.calculator-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    margin-top: 5px;
    margin-bottom: 3px;
    transition: background 0.3s ease;
}

.calculator-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.calculator-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.calculator-container input[type="range"]:hover {
    background: #d0d0d0;
}

.calculator-container input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

.calculator-container input[type="range"]:hover::-moz-range-thumb {
    transform: scale(1.1);
}

/* Modern Slider Value Display */
.calculator-container span {
    display: block;
    margin-top: 2px;
	margin-bottom: 15px;
    text-align: center;
    font-size: 1.4rem;
    color: #777;
}

/* Modern Dropdown Menu */
.calculator-container select {
    width: 100%;
	max-width: 100%;
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    font-size: 1.2rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23555"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: border-color 0.3s ease;
}

.calculator-container select:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Modern Button */
.calculator-container button {
    margin-top: 20px;
    padding: 12px 24px;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: auto;
    min-width: 250px;
}

.calculator-container button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.calculator-container button:active {
    transform: translateY(0);
}

/* Result Display */
.calculator-container #result {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    text-align: center;
}

/* Camel Image */
.calculator-container #camelImage {
    margin-top: 25px;
    width: 100%;
    max-height: 420px;
    max-width: 640px;
    object-fit: contain;
    border-radius: 8px;
}

/* Style for radio group */
.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Style for individual radio boxes */
.radio-box {
    flex-grow: 1;
    min-width: 150px;
    position: relative;
    display: inline-block;
    width: 160px;
    height: 50px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    line-height: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
}

.radio-box:hover {
    background-color: #e0e0e0;
}

.radio-box:active {
    transform: scale(1);
}

.radio-box input[type="radio"] {
    display: none;
}

.radio-box label {
    display: block;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    line-height: 50px;
}

.radio-box input[type="radio"]:checked + label {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

label {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
	font-size: 1.3rem;
}

/* Responsive Design Adjustments */
@media (max-width: 640px) {
    .calculator-container {
        padding: 20px;
        max-width: 95%;
    }

    .calculator-wrapper {
        padding: 15px;
    }

    .radio-group {
        flex-wrap: wrap;
    }
    .radio-box {
        width: 48%;
        margin-bottom: 10px;
    }
}