body {
    font-family: 'Outfit', sans-serif;
    background-color: #000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    position: relative;
    color: #fff;
}

.header-top {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    z-index: 3;
    cursor: pointer;
}

.header-top h1 {
    margin: 0;
    font-weight: 600;
    color: #fff;
    font-size: 2.5em;
}

.score {
    position: fixed;
    top: 80px;
    right: 20px;
    font-size: 1.5em;
    background-color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    z-index: 4;
}

.container {
    background-color: #000;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    color: #fff;
    z-index: 2;
    margin-top: 180px;
    margin-bottom: 100px;
    overflow: hidden;
    touch-action: none;
}

.settings, .game {
    margin-bottom: 20px;
    color: #fff;
}

.hidden {
    display: none;
}

#hardcore-mode-container {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-left: 10px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.feedback {
    margin-top: 20px;
    font-size: 1.5em;
    min-height: 30px;
    color: #fff;
}

.feedback.correct {
    color: #00ff00;
}

.feedback.incorrect {
    color: #ff0000;
}

.question {
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #fff;
}

.header-center {
    position: fixed;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    z-index: 2;
    margin-bottom: 20px;
}

.header-center .question-counter {
    margin-top: 5px;
    font-size: 1.5em;
    background-color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    z-index: 2;
}

.results {
    margin-top: 30px;
    font-size: 1.5em;
    color: #fff;
}

input[type="text"] {
    padding: 15px;
    width: calc(100% - 30px);
    margin-bottom: 30px;
    font-family: 'Outfit', sans-serif;
    background-color: #000;
    color: #fff;
    border: 1px solid #555;
    font-size: 1.5em;
    border-radius: 5px;
    outline: none;
}

input[type="text"]:focus {
    border-color: #888;
}

button {
    padding: 15px;
    width: 100%;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5em;
}

button:hover {
    background-color: #444;
}

select {
    font-family: 'Outfit', sans-serif;
    background-color: #000;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 15px;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 5px;
    appearance: none;
    font-size: 1.5em;
}

option {
    background-color: #000;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.midi-input-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    color: #fff;
    background-color: #000;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 5;
    width: 90%;
    max-width: 500px;
    margin-top: 30px;
}

#midi-input-status {
    margin-top: 5px;
    font-size: 1.2em;
    color: #fff;
}

@media (max-width: 768px) {
    .header-top {
        top: 40px;
    }

    .score {
        top: 110px;
        right: 20px;
    }

    .header-center {
        top: 220px;
    }

    .container {
        width: 95%;
        margin-top: 260px;
        margin-bottom: 150px;
    }
}

button {
    padding: 15px;
    width: 100%;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5em;
    margin-bottom: 60px; /* Increased margin-bottom to create more space */
}

.midi-input-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    color: #fff;
    background-color: #000;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 5;
    width: 90%;
    max-width: 500px;
    margin-top: 60px; /* Add margin to create space above the MIDI text */
}
