body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('piano.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: contain;
    background-color: #f7f7f7;
    color: #333;
    text-align: center;
}

#title-container {
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 3em;
    background: linear-gradient(to right, #ff4c4c, #4c4cff, #4cff4c, #ffff4c);
    -webkit-background-clip: text;
    color: transparent;
    margin-top: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

#player-input {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#player-input input[type="text"] {
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    width: 150px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#player-input button {
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#player-input button:hover {
    background-color: #555;
}


#username {
    font-size: 1.2em;
    padding: 5px;
    width: 150px;
    font-weight: bold;
}

#score-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #666;
}

#simon-game {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    gap: 20px;
}

.color-button {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

#red { background-color: #ff4c4c; }
#blue { background-color: #4c4cff; }
#yellow { background-color: #ffff4c; }
#green { background-color: #4cff4c; }

button {
    padding: 10px 20px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #444;
}

.flash {
    animation: zoom 0.5s;
}

@keyframes zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}




