body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #2d4d6d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#game-container {
    position: relative;
    width: 320px;
    height: 480px;
}

canvas {
    background-color: #70c5ce;
    border: 3px solid #000;
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: block;
}


#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 5px;
    z-index: 10;
}

.hidden {
    display: none !important;
}

#menu-title {
    font-size: 36px;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 0 #000;
    text-align: center;
}


#congrats-msg {
    color: #f1c40f;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 15px 0;
    text-shadow: 1px 1px 0 #000;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#score-display, #high-score-display {
    font-size: 20px;
    margin: 0 0 30px 0;
    font-weight: bold;
}

#button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


#start-btn, #menu-btn {
    background-color: #f1c40f;
    border: 3px solid #000;
    border-radius: 10px;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 40px;
    cursor: pointer;
    box-shadow: 0 4px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
    width: 180px;
}

#start-btn:active, #menu-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #000;
}

#menu-btn {
    background-color: #ff1900;
    color: rgb(0, 0, 0);
}


#dev-btn, #close-dev-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border: 2px solid #000;
    border-radius: 5px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 0 #000;
    transition: transform 0.1s;
}

#dev-btn:active, #close-dev-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #000;
}

#dev-btn {
    background-color: #9b59b6;
    color: rgb(59, 19, 19);
}

#close-dev-btn {
    background-color: #ff1900;
    color: rgb(0, 0, 0);
}