/* Global Styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Manrope', sans-serif;
    background-color: #fff;
    overflow: hidden;
}

/* Game Area as Full-Screen Background */
#gameArea {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 1;
}

/* Player (Shield) - White with Black Border */
#player {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: 2px solid #000;
    z-index: 2;
    /* Start near the bottom-center */
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Enemy Blocks - Black with White Border */
.enemy {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #000;
    border: 2px solid #fff;
    z-index: 2;
}

/* Central Protected Content */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    padding: 20px;
}

/* Corner Hints for the Protected Block */
.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.corner.top-left {
    top: -10px;
    left: -10px;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
}
.corner.top-right {
    top: -10px;
    right: -10px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
}
.corner.bottom-left {
    bottom: -10px;
    left: -10px;
    border-bottom: 2px solid #000;
    border-left: 2px solid #000;
}
.corner.bottom-right {
    bottom: -10px;
    right: -10px;
    border-bottom: 2px solid #000;
    border-right: 2px solid #000;
}

/* Logo & Tagline */
.logo {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5em;
    margin-bottom: 30px; /* Extra spacing between message and button */
}

/* Engage Button (hidden until typing is done) */
.engage-button {
    display: none;
    padding: 15px 30px;
    font-size: 1em;
    color: #fff;
    background-color: #000;
    border: 2px solid #000;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.engage-button:hover {
    background-color: #fff;
    color: #000;
}

/* Fade-In Animation for Engage Button */
.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Game Hint Display */
#gameHint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.9em;
    z-index: 5;
    background-color: rgba(255,255,255,0.8);
    padding: 5px;
    border: 1px solid #000;
}

/* Score Display */
#score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.9em;
    z-index: 5;
    background-color: rgba(255,255,255,0.8);
    padding: 5px;
    border: 1px solid #000;
}

/* Mobile Controls styling */
#mobileControls {
    display: none; /* Hidden by default; shown in mobile view */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    margin-bottom: 15%;
}

#mobileControls .control-btn {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    font-size: 24px;
    padding: 10px;
    margin: 5px;
    border-radius: 0; /* Sharp corners */
    width: 60px;
    height: 60px;
}

#mobileControls .horizontal-controls {
    display: flex;
    justify-content: center;
}

/* Show mobile controls on devices with max-width 768px */
@media (max-width: 768px) {
    #mobileControls {
        display: block;
    }
}
