.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-family: "Bangers", system-ui;
    overflow: auto;
    box-sizing: border-box;
}

.splash-content {
    text-align: center;
    max-width: 800px;
    padding: 10px;
}

.splash-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #FFDB58;
}

.splash-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.splash-image {
    width: 100px;
    height: auto;
    margin: 5px;
    border-radius: 10px;
}

.instructions {
    text-align: left;
    margin: 30px 0;
    font-size: 15px;
    line-height: 1.6;
}

.instructions p {
    text-align: center;
    font-size: 20px;
    padding: 5px;
    margin-bottom: 25px;
    color: #FFDB58;
    margin: 5px;
}

#lets-go {
    padding: 10px 10px;
    font-size: 2rem;
    background-color: rgb(40, 127, 66);
    color: #FFDB58;
    border: none;
    border-radius: 10px;
    margin-left: 125px;
    cursor: pointer;
    font-family: "Bangers", system-ui;
    transition: all 0.3s;
}

#lets-go:hover {
    background-color: rgb(50, 147, 76);
    transform: scale(1.05);
}

#lets-go:active {
    transform: scale(0.95);
}


.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.show-game {
    display: block !important;
}

body {
    background-color: #008080;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1vh 0;
}

.header1 {
    display: flex;
    justify-content: center;
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
    margin-bottom: 2px;
    margin-top: 5px;
    color: #FFDB58;
    line-height: 1;
}

.header2 {
    display: flex;
    justify-content: center;
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    margin-top: 2px;
    margin-bottom: 5px;
    color: #DBA400;
    line-height: 1;
}

#start-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 20px;
    font-size: 1.5rem;
    margin-bottom: 10px;
    cursor: grab;
    border-style: solid;
    border-radius: 15px;
    border-color: #554d30;
    background-color: #FFDB58;
    color: #554d30;
    border-width: 3px;
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal
}

#start-btn:hover {
    transform: scale(1.05);
}

#start-btn:active {
    transform: scale(0.95);
    background-color: #DBA400
}

.controls-container {
    margin-bottom: 10px;
}

.sequence-count {
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    margin-left: 5vw;
    margin-right: 5vw;
    color: #DBA400
}

.message {
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    float: right;
    margin-right: 5vw;
    color: #DBA400
}

.game-body {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.piano {
    position: relative;
    width: 90vw;
    max-width: 500px;
    height: 40vw;
    max-height: 200px;
    margin: 10px auto;
    background: #333;
    border-radius: 5px;
    order: 2;
}

.white-keys {
    display: flex;
    height: 100%;
}

.black-keys {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    padding: 0 2%;
}

.white-key {
    flex: 1;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 0 5px 5px;
    margin: 0 1px;
    z-index: 1;
    transition: background-color 0.2s ease;
    height: 100%;
    min-height: auto;
    min-width: auto;
}

.black-key {
    width: 8%;
    height: 100%;
    background: black;
    border-radius: 0 0 5px 5px;
    margin: 0 2%;
    z-index: 2;
    transition: background-color 0.2s ease;
    min-width: auto;
}

/* C# */
.black-key:nth-child(1) {
    margin-left: 7%;
}

/* D# */
.black-key:nth-child(2) {
    margin-left: 7%;
}

/* F# */
.black-key:nth-child(3) {
    margin-left: 16%;
}

/* G# */
.black-key:nth-child(4) {
    margin-left: 5.5%;
}

/* A# */
.black-key:nth-child(5) {
    margin-left: 6%;
}

footer {
    display: block !important;
    height: auto;
    padding: 10px 0;
    overflow: visible;
}


.note-display-container {
    min-height: 80px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.display-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-family: "Bangers", system-ui;
    font-weight: 400;
    font-style: normal;
    transition: text 0.2s ease;
    color: #FFDB58;
}

.white-key.active,
.black-key.active {
    background-color: #f692ab;
}

.high-scores {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin: 100px auto 20px;
    max-width: 300px;
    text-align: center;
    order: 3;
    clear: both;
}

/* Desktop/Tablet optimization */
@media (min-width: 768px) {
    .note-display-container {
        min-height: 80px;
        max-height: 80px;
    }
    
    .display-note {
        font-size: 3.5rem;
    }
    
    .piano {
        max-width: 600px;
        max-height: 220px;
    }
    
    .high-scores {
        margin: 120px auto 20px;
    }
    
    .header1 {
        font-size: 5rem;
    }
    
    .header2 {
        font-size: 2.5rem;
    }
    
    #start-btn {
        font-size: 2rem;
        padding: 10px 25px;
    }
    
    .sequence-count,
    .message {
        font-size: 1.3rem;
    }
}

/* Mobile optimization */
@media (max-width: 767px) {
    .note-display-container {
        min-height: 70px;
        max-height: 70px;
    }
    
    .display-note {
        font-size: 2.5rem;
    }
    
    .sequence-count,
    .message {
        font-size: 1rem;
    }
    
    .header1 {
        font-size: 3rem;
    }
    
    .header2 {
        font-size: 1.5rem;
    }
    
    #start-btn {
        font-size: 1.3rem;
        padding: 6px 15px;
    }
}

.high-scores h3 {
    color: #FFDB58;
    font-family: "Bangers", system-ui;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-align: center;
}

#high-scores-list {
    color: white;
    font-family: Arial, sans-serif;
    padding-left: 20px;
    font-family: "Bangers", system-ui;
    text-align: left;
}

#high-scores-list li {
    margin-bottom: 5px;
    font-size: 1rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 300px;
}

#name-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
}

#submit-score {
    padding: 10px 20px;
    background: #FFDB58;
    border: none;
    border-radius: 5px;
    font-family: "Bangers", system-ui;
}