/* Base body styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #1c1c1c;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the app horizontally */
    align-items: center; /* Center the app vertically on desktop */
    height: 100vh; /* Full viewport height */
}

/* Main container for alignment */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Inner container for content */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #333;
    border-radius: 10px;
    padding: 30px; /* Updated padding */
    max-width: 500px; /* Updated max width */
    width: 100%;
}

/* Styles for subtitles and titles */
#subtitle {
    text-transform: uppercase;
    font-size: 10pt;
    letter-spacing: 2px;
    color: #f0f0f0;
    font-weight: normal;
    margin-top: 0; /* No top margin */
    margin-bottom: 0; /* Remove bottom margin on the subtitle */
}

#title {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 3em;
    color: #f0f0f0;
    margin: 0;
    margin-bottom: 25px;
}

#instructions {
    font-size: 10pt;
    font-style: italic;
    margin: 10px 0 25px 0;
}

/* Waveform selection button styles */
.waveform-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0px; /* Set bottom margin to 0px */
}

.waveform-container button {
    padding: 5px 10px;  /* Smaller buttons */
    font-size: 14px;
    color: #f0f0f0;
    background-color: #333; /* Dark gray background */
    border: 2px solid #e36f46; /* Updated border color */
    border-radius: 5px;
    cursor: pointer;
}

.waveform-container button:hover {
    background-color: #e36f46; /* Updated hover background color */
}

.waveform-container button.selected {
    background-color: #e36f46; /* Updated selected background color */
}

/* Container for pitch adjustments and drone settings */
.pitch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px; /* Updated padding */
    border: 1px solid #e36f464a; /* Thin, off-white border */
    border-radius: 5px;
    width: 220px; /* Set pitch container width */
    height: 100px; /* Set pitch container height */
}

.pitch-adjustment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pitch-adjustment button {
    padding: 10px 20px; /* Bigger buttons */
    font-size: 18px; /* Bigger font size */
    color: #f0f0f0;
    background-color: #e36f46; /* Updated background color */
    border: 2px solid #e36f46; /* Updated border color */
    border-radius: 5px;
    cursor: pointer;
}

.pitch-adjustment button:hover {
    background-color: #e36f46; /* Updated hover background color */
}

.drone-container {
    display: flex;
    gap: 20px; /* Adjusted gap */
}

.drone {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drone p {
    font-size: 2em;
    margin: 0; /* Remove margin */
}

.hz-text {
    font-size: 0.75em !important;
    color: #f0f0f0;
    margin: 5px 0 !important; /* Add margin above/below the hertz text with !important */
}

/* Miscellaneous styles */
.hidden {
    display: none;
}

#intonation-adjustment {
    font-size: 0.75em;
    color: #f0f0f0;
    margin-top: 5px;
}

button.muted,
button.playing,
button.selected {
    background-color: #e36f46; /* Updated background color */
    color: #f0f0f0;
}

/* Just Intonation button default state */
#just-intonation-button {
    display: inline-block;
    background-color: #333; /* Dark gray background */
    border: 2px solid #e36f46; /* Border color */
    color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Just Intonation button hover state */
#just-intonation-button:hover {
    background-color: #e36f46; /* Fill color on hover */
    color: #f0f0f0;
}

/* Just Intonation button selected state */
#just-intonation-button.selected {
    background-color: #e36f46; /* Fill color when selected */
    color: #f0f0f0;
}

/* Smaller buttons for the rest */
button {
    padding: 5px 10px; /* Smaller buttons */
    font-size: 14px; /* Smaller font size */
    color: #f0f0f0;
    background-color: #333; /* Dark gray background */
    border: 2px solid #e36f46; /* Updated border color */
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #e36f46; /* Updated hover background color */
}

button.selected {
    background-color: #e36f46; /* Updated background color */
}

/* Volume and play controls */
.volume-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.play-stop-container {
    margin-right: 20px;
}

#play-stop-button {
    display: flex;
    align-items: center;
    padding: 5px 10px; /* Smaller button */
    font-size: 14px; /* Smaller font size */
    color: #f0f0f0;
    background-color: #e36f46; /* Updated background color */
    border: 2px solid #e36f46; /* Updated border color */
    border-radius: 5px;
    cursor: pointer;
}

#play-stop-button:hover {
    background-color: #e36f46; /* Updated hover background color */
}

#play-stop-button svg {
    margin-right: 10px;
    fill: #f0f0f0;
}

/* Volume slider wrapper with updated border color */
.volume-slider-wrapper {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e36f464a; /* Updated border color */
    border-radius: 5px;
}

.volume-container label {
    margin-right: 10px; /* Adjusted for better alignment */
    font-size: 16px;
}

.volume-container input {
    width: 100px; /* Set input width to 100px */
}

.slider-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
}

#feedback {
    font-size: 18px;
    margin-top: 20px;
}

/* Mobile styles */
@media (max-width: 600px) {
    body {
        justify-content: flex-start; /* Align the container with the top of the screen */
        align-items: flex-start; /* Align the container to the top on mobile */
        height: auto; /* Adjust height for better fit on mobile */
        padding-top: 20px; /* Add padding to the top */
    }

    .container {
        max-width: 90%; /* Adjust the container width for mobile */
        background-color: #1c1c1c; /* Change background color to match body */
    }

    .waveform-container button,
    #just-intonation-button,
    button {
        background-color: #1c1c1c; /* Change background color to match body */
        border-color: #e36f46; /* Ensure border color remains */
    }

    .pitch-adjustment button {
        background-color: #e36f46; /* Keep pitch adjustment buttons filled in orange */
    }

    #play-stop-button {
        background-color: #e36f46; /* Keep the play/stop button color the same */
    }
}
