/* Game specific styles for Maze Generator */

:root {
    --primary-color: #FF9800;
    --primary-hover: #F57C00;
    --text-main: #333;
    --bg-card: #FFFFFF;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.game-container h1 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.game-description {
    margin-bottom: 3rem;
    color: #555;
    font-size: 1.1rem;
}

.game-controls {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-select {
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
}

.game-area-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

canvas {
    background: #000;
    display: block;
    max-width: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.hidden {
    display: none;
}

.overlay-content h2 {
    font-size: 2.5rem;
    color: #E91E63;
    margin-bottom: 1rem;
}

/* D-Pad for Mobile */
.dpad-controls {
    display: none;
    /* Hidden on desktop by default? Or show always? Show on small screens mainly */
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .dpad-controls {
        display: flex;
    }
}

.dpad-row {
    display: flex;
    gap: 10px;
}

.dpad-btn {
    width: 60px;
    height: 60px;
    background: #eee;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    color: #555;
    box-shadow: 0 4px 0 #ccc;
    cursor: pointer;
}

.dpad-btn:active {
    transform: translateY(4px);
    box-shadow: none;
    background: #ddd;
}

/* Buttons */
.primary-btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--primary-shadow);
}

.primary-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

/* Instructions */
.instructions {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    margin: 3rem auto 5rem;
    color: #444;
    line-height: 1.8;
}

.instructions h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.instructions h3:first-child {
    margin-top: 0.5rem;
}