/* Page styling */
body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #eef2f7;
    color: #222;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 100vh;
}

/* Header */

header {
    margin: 30px 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

header p {
    color: #666;
}

/* Main section */

main {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Canvas */

canvas {
    background: white;

    border: 2px solid #444;

    border-radius: 10px;
    
    /* Scales down on small screens and keeps the 4:3 shape */
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 4 / 3;

    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
    
}

section {
    margin: 20px 0;
    padding: 0 16px;
    text-align: center;
}

#stats {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

#restart {
    display: block;
    margin: auto;
    padding: 8px 20px;
    font-size: 1rem;
    cursor: pointer;
}
