body {
    /* The background image will be displayed if 'background.jpg' is in the same folder */
    background-image: url('background.jpg');
    background-color: #1a1a2e; /* Fallback color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    text-align: center;
    margin: 0;
    padding: 20px;
}

.container {
    padding: 20px;
    max-width: 600px;
    margin: auto;
    background-color: rgba(22, 36, 71, 0.9); /* Slightly transparent background */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #00aaff;
    margin-bottom: 20px;
}

h3 {
    color: #e0e0e0;
    border-bottom: 1px solid #00aaff;
    padding-bottom: 10px;
    margin-top: 30px;
}

.user-info {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.sex-selection {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sex-selection label {
    margin-bottom: 0;
    color: #00aaff;
}

input[type="text"], select {
    margin: 5px 0;
    padding: 12px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #00aaff;
    background-color: #1f4068;
    color: #e0e0e0;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Style for the preset dropdowns to be a darker blue */
select.preset-select {
    background-color: #1b2a49;
}

.quality-row {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 10px;
    margin-bottom: 10px;
}
.quality-row input,
.quality-row select {
    flex: 1;
    min-width: 200px; /* Ensures they don't get too small before wrapping */
}


button {
    margin: 10px 5px;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 5px;
    background-color: #00aaff;
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0077cc;
}

.controls {
    margin-bottom: 30px;
}

.controls button {
    width: 150px;
    background-color: #e43f5a;
}

.controls button:hover {
    background-color: #b8324f;
}

.music-selection button {
    background-color: #1b2a49;
    border: 1px solid #00aaff;
}

.music-selection button:hover {
    background-color: #1f4068;
}

.qualities, .timer, .volume-control, .music-selection {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #00aaff;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #1f4068;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00aaff;
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00aaff;
    cursor: pointer;
    border-radius: 50%;
}

/* Footer Styling */
.site-footer {
    margin-top: 30px;
    padding: 10px;
    color: #a0a0a0; /* Light grey text color */
}

.site-footer a {
    color: #a0a0a0; /* Light grey link color */
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}
