body {
    margin: 0;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    user-select: none;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    text-align: center;
    line-height: 20px;
    color: white;
    font-size: 20px;
    pointer-events: none;
    z-index: 10;
    text-shadow: 1px 1px 0 #000;
}

#menu-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 20, 100, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    backdrop-filter: blur(5px);
}

#menu-box {
    background: rgba(30, 30, 60, 0.9);
    padding: 40px;
    border: 4px solid #fff;
    border-radius: 10px;
    text-align: center;
    color: white;
    width: 400px;
    box-shadow: 0 0 20px rgba(60, 60, 60, 0.95);
}

#menu-box h1 {
    margin-top: 0;
    text-shadow: 2px 2px 0 #555;
    font-size: 32px;
}

#resume-btn {
    padding: 15px 30px;
    font-size: 20px;
    font-family: inherit;
    cursor: pointer;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 100%;
    transition: background 0.2s;
}

#resume-btn:hover {
    background: #45a049;
}

.settings-row {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.controls-info {
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
    border-top: 1px solid #555;
    padding-top: 10px;
}

#hotbar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    gap: 5px;
    z-index: 10;
}

.slot {
    width: 50px;
    height: 50px;
    border: 2px solid #555;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slot img {
    width: 90%;
    height: 90%;
    image-rendering: pixelated; 
}

.slot.active {
    border: 3px solid white;
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.item-count {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 0 #000;
}

#inventory-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

#inventory-container {
    background: #c6c6c6;
    padding: 20px;
    border-radius: 5px;
    border: 4px solid #555;
    color: #333;
}

#inventory-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
    margin-top: 10px;
}

#inventory-hotbar-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
}

#inventory-grid .slot, #inventory-hotbar-grid .slot {
    background: #8b8b8b;
    border: 2px solid #fff;
    border-right-color: #373737;
    border-bottom-color: #373737;
}

#inventory-grid .slot:hover, #inventory-hotbar-grid .slot:hover {
    background: #a0a0a0;

}

/* === UNIQUE MENU STYLE (ONLY CSS, NO OTHER FILES) === */

#menu-overlay {
    background: radial-gradient(
        circle at top,
        rgba(90, 120, 255, 0.35),
        rgba(30, 20, 80, 0.85)
    );
    animation: menuFadeIn 1.2s ease-out;
}

#menu-box {
    background: linear-gradient(
        145deg,
        rgba(90, 110, 255, 0.85),
        rgba(50, 30, 120, 0.95)
    );
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow:
        0 0 25px rgba(120,150,255,0.4),
        inset 0 0 30px rgba(255,255,255,0.08);
    animation: menuFloat 4s ease-in-out infinite;
}

/* Title glow */
#menu-box h1 {
    color: #e6ebff;
    text-shadow:
        0 0 8px rgba(180,200,255,0.6),
        0 0 18px rgba(120,150,255,0.4);
}

/* PLAY BUTTON – soft energy style */
#resume-btn {
    background: linear-gradient(
        135deg,
        #6ef3c5,
        #4fa3ff
    );
    color: #0a1a2f;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow:
        0 0 15px rgba(110,243,197,0.6),
        0 0 25px rgba(79,163,255,0.4);
    position: relative;
    overflow: hidden;
}

/* Button shimmer */
#resume-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shine 3s infinite;
}

#resume-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 25px rgba(110,243,197,0.8),
        0 0 40px rgba(79,163,255,0.6);
}

/* Subtle UI text */
.controls-info {
    color: rgba(220,230,255,0.8);
}

/* Animations */
@keyframes menuFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes menuFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shine {
    0% { left: -100%; }
    60% { left: 100%; }
    100% { left: 100%; }
}



