/* style.css */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, p, canvas {
    margin: 0;
}

/* General Styles */
body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0; /* Light grey background */
    color: #333; /* Dark grey text for contrast */
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #555; /* Slightly darker grey for title */
}

/* Canvas Styling */
#gameCanvas {
    background-color: #eee; /* Lighter grey for maze paths */
    border: 1px solid #ccc; /* Light grey border */
    /* Initial size - responsive adjustments below */
    width: 80vw;
    height: 80vh;
    max-width: 800px;
    max-height: 600px;
    display: block; /* Prevent scrollbars in some cases */
}

/* Minimalist UI - for future elements */
/* Example: Start/End screens can be styled here if added to HTML */

/* Responsiveness */
@media (max-width: 768px) {
    #gameCanvas {
        width: 95vw; /* Take more width on smaller screens */
        height: auto; /* Adjust height automatically based on width */
        max-width: none; /* Remove max-width to fill screen width */
        max-height: 70vh; /* Limit height on smaller screens if needed */
    }
}

@media (max-height: 600px) {
    #gameCanvas {
        height: 90vh; /* Take more height when screen is short */
        max-height: none; /* Remove max-height to fill screen height */
        width: auto; /* Adjust width automatically based on height */
        max-width: 95vw; /* Limit width if needed */
    }
}

/* Further adjustments for very small screens if necessary */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em; /* Smaller title on very small screens */
        margin-bottom: 10px;
    }
    #gameCanvas {
        border: none; /* Remove border on very small screens for cleaner look */
    }
}