body {
    background-image: linear-gradient(#4CAF50, #63B967, #FFFFFF);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: rgb(255, 255, 255);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.section {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.gender-container,
.input-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between buttons */
    width: 100%;
}

.input-group {
    background-color: #808080;
    padding: 15px; /* Increased padding for better visibility */
    border-radius: 10px;
    box-sizing: border-box; /* Ensures padding is included in width/height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%; /* Ensures all input groups are of equal width */
    font-size: 200%;
}

.input-group input[type="range"] {
    width: 90%; 
    margin-top: 10px;
}

.input-group label {
    font-weight: bold;
}

.age-btn-left,
.age-btn-right,
.weight-btn-right,
.weight-btn-left {
    background-color: #808080;
    border-color: #808080;
    color: white;
    font-size: 80px;
}

#femaleBtn {
    background-color: #808080;
    border-color: #808080;
    color: white;
    font-size: 200%;
}

#maleBtn {
    background-color: #808080;
    border-color: #808080;
    color: white;
    font-size: 200%;
}

#calculateButton {
    background-color: #FFA500;
    color: #ffffff;
    width: 100%; 
    padding: 20px;
    font-size: 24px;
}

#calculate-button.btn {
    background-color: #80808255; 
    color: #80808b; 
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

button {
    color: #808080;
    background-color: #808080;
    height: 76px;
    border-radius: 20px;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

button:hover {
    background-color: #808080;
    color:  #FFA500;
}

.gender-img {
    margin-left: 10px;
}

#calorieResult {
    color: #808080;
    width: 298px;
    height: 164px;
    max-width: 100%;
    max-height: 100%;
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto;
}

.button-container {
    display: flex;
    justify-content: space-between; 
    width: 100%;
    margin-top: 20px;
    gap: 20px; 
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #FFFFFF, #FFA500); /* Set track color to white */
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* Styles for the thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--webkit-slider-thumb-color, #FFA500);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--moz-range-thumb-color, #FFA500);
    cursor: pointer;
}


/* Styles for the progress (filled part) of the range input */
input[type="range"]::-moz-range-progress {
    background-color: #FFA500; /* default progress color */
}

input[type="range"]::-webkit-progress-value {
    background-color: #FFA500; /* default progress color */
}
