/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: #2d3748;
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    color: #4a5568;
    margin: 0 0 20px;
    font-size: 16px;
}

/* HUD (Heads-Up Display) */
.hud {
    background: white;
    border-radius: 10px;
    padding: 12px 20px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 600px;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.hud-value {
    font-weight: 600;
    color: #2d3748;
    min-width: 40px;
    text-align: right;
}

.reset-button {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
    font-size: 14px;
}

.reset-button:hover {
    background: #3182ce;
}

/* Game Canvas */
#maze-canvas {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Info Panel */
.info-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 600px;
}

.info-panel h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 18px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.info-panel ul {
    padding-left: 20px;
    margin: 0 0 20px;
}

.info-panel li {
    margin-bottom: 8px;
    color: #4a5568;
}

/* Checkpoint Preview */
.checkpoint-preview {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #f6ad55;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* Exit Text */
.exit-text {
    color: #48bb78;
}

/* Stats Section */
.stats-section {
    background: #f7fafc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.stats-section h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 10px;
}

.stats-section p {
    margin: 5px 0;
    color: #4a5568;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hud {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .hud-item {
        flex: 1 0 40%;
        justify-content: center;
    }
    
    .reset-button {
        margin-top: 10px;
        width: 100%;
    }
    
    #maze-canvas {
        width: 100%;
        height: auto;
    }
}

/* Focus styles for better accessibility */
:focus {
    outline: 3px solid #90cdf4;
    outline-offset: 2px;
}

button:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Footer Styling */
.game-footer {
    margin-top: 40px;
    padding: 30px 0;
    background: white;
    border-top: 2px solid #e2e8f0;
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-image {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.student-work-img {
    width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .student-work-img {
        width: 100%;
        max-width: 600px;
    }
}
