@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

        #game {
            font-family: 'Press Start 2P', cursive !important;
            margin: 0;
            padding: 0;
            background-color: #000 !important;
            color: #fff;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            image-rendering: pixelated;
        }

        .container {
            max-width: 800px;
            width: 100%;
            margin: 0 auto;
            padding: 20px;
            box-sizing: border-box;
        }

        /* Menu Styles */
        #menu {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            background-color: #000;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 100;
        }

        .menu-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        #menu h1 {
            font-family: 'Press Start 2P', cursive !important;
            font-size: 36px;
            margin-bottom: 20px;
            color: #4CAF50;
            text-shadow: 2px 2px #000;
        }

        .logo {
            width: 150px;
            height: auto;
            margin-bottom: 20px;
            image-rendering: pixelated;
        }

        button {
            background-color: #333;
            color: #fff;
            border: 2px solid #fff;
            padding: 15px 30px;
            font-family: 'Press Start 2P', cursive;
            font-size: 16px;
            cursor: pointer;
            margin: 10px;
            transition: all 0.1s;
            text-transform: uppercase;
            box-shadow: 4px 4px 0px #000;
        }

        button:hover {
            background-color: #555;
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px #000;
        }

        button:active {
            transform: translate(0px, 0px);
            box-shadow: 0px 0px 0px #000;
        }

        /* Game Area Styles */
        #game-area {
            display: none; /* Hidden by default */
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .header {
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 20px;
            border-bottom: 2px solid #fff;
            padding-bottom: 10px;
        }

        .timer-container {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
        }

        #timer {
            font-size: 20px;
            color: #ffeb3b;
        }

        #score, #lives {
            font-size: 16px;
        }

        #image-container {
            position: relative;
            margin-bottom: 20px;
            border: 4px solid #fff;
            padding: 5px;
            background-color: #222;
            /* Added lines below to fix shrinking bug */
            width: 100%; 
            box-sizing: border-box;
        }

        #image {
            width: 100%;
            height: 400px; /* Fixed height for consistency */
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }

        #buttons {
            display: flex;
            flex-direction: column; /* Forces vertical stacking on all screens */
            align-items: center;
            gap: 10px;
            width: 100%;
        }

        .game-button {
            width: 100%; /* Ensures the button stretches to fit the long text */
            min-width: 150px;
        }

        /* Cover/Overlay Styles */
        .cover {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: none; /* Hidden by default */
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 200;
            text-align: center;
        }

        .cover img {
            max-width: 200px;
            margin-bottom: 20px;
        }

        .cover div {
            background: #000;
            border: 2px solid #fff;
            padding: 40px;
            max-width: 80%;
        }

        /* Info and Dx Screen Styles */
        .info-screen, .dx-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #000;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 150;
            overflow-y: auto;
            padding: 20px;
            box-sizing: border-box;
        }

        .info-screenbox, .dx-screenbox {
            border: 2px solid #fff;
            padding: 20px;
            max-width: 800px;
            width: 100%;
            background: #111;
        }

        h2 {
            color: #4CAF50;
            border-bottom: 2px solid #4CAF50;
            padding-bottom: 10px;
            margin-top: 0;
        }
        
        h3 {
             color: #ffeb3b;
             margin-top: 20px;
        }

        p, ul, li {
            line-height: 1.6;
            font-size: 14px;
            text-align: left;
        }

        u {
            text-decoration: underline;
            color: #ffeb3b;
        }

        /* Minimalist Mode */
        body.minimalist {
            background-color: #fff !important;
            color: #000 !important;
            font-family: Arial, sans-serif !important;
        }

        body.minimalist #menu, 
        body.minimalist .info-screen, 
        body.minimalist .dx-screen,
        body.minimalist .cover {
            background-color: #fff !important;
            color: #000 !important;
        }

        body.minimalist button {
            background-color: #eee;
            color: #000;
            border: 1px solid #000;
            font-family: Arial, sans-serif;
            box-shadow: none;
            border-radius: 4px;
        }
        
        body.minimalist button:hover {
            background-color: #ddd;
            transform: none;
        }

        body.minimalist .info-screenbox, 
        body.minimalist .dx-screenbox,
        body.minimalist .cover div {
            background: #fff;
            border: 1px solid #000;
        }

        body.minimalist #image-container {
            border: 1px solid #ccc;
            background-color: #f9f9f9;
        }
        
        body.minimalist h1, body.minimalist h2, body.minimalist h3, body.minimalist #timer, body.minimalist u {
            color: #000;
            text-shadow: none;
        }
        
        body.minimalist .header {
            border-bottom: 1px solid #000;
        }

        @media (max-width: 600px) {
            .container { padding: 10px; }
            #image { height: 250px; }
            .game-button { font-size: 12px; padding: 10px; }
            #menu h1 { font-size: 24px; }
            #timer { font-size: 16px; }
        }