body {
    font-family: Arial, sans-serif;
    background: url('images/ski-pistes-(aerial-view).jpg') no-repeat center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #333; /* Fallback color */
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}

header {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
}

h1 {
    font-size: 2rem;
    margin: 0;
}

#rentals {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#rental-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.rental-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    border: 1px solid #ccc;
}

#rentals ul {
    text-align: left;
    margin-left: 20px;
    margin-top: 10px;
}

input[type="checkbox"] {
    cursor: pointer;
    margin-right: 5px;
}

label {
    cursor: pointer;
    display: block;
    margin-bottom: 10px;
}

input[type="checkbox"]:focus + label {
    outline: 2px solid #007bff;
    outline-offset: 4px;
}

/* Button Styles */
button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

button:hover:not(:disabled) {
    background-color: #218838;
}

button:disabled,
.reserve-btn.disabled {
    background-color: gray;
    cursor: not-allowed;
}

/* Message paragraph styling */
.rental-item p {
    margin-top: 10px;
    font-weight: bold;
    color: green;
}

/* Hidden messages (display: none) */
.hidden {
    display: none;
}

/* Input & result styling */
#renters {
    padding: 5px;
    width: 60px;
    text-align: center;
    margin-bottom: 10px;
}

#calculateBtn {
    margin-left: 10px;
}

#result {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Footer styling */
footer {
    margin-top: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    color: #fff;
}
