body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    box-sizing: border-box;
    background-color: #121212; /* Dark background */
    color: #f2f2f2; /* Light text */
}

/* Styles for desktop */
@media (min-width: 768px) {
    p, h2, h3 {
        text-align: left;
        margin-left: 25%;
        margin-right: 25%;
    }

    h2 {
        text-align: center;
        font-size: 2.5em;
    }

    h3 {
        font-size: 2em;
    }

    p {
        font-size: 1.5em;
    }

    .responsive-image {
        width: 50%;
        height: auto;
    }

    #snakeAiCanvas {
        width: 40%;
        height: auto;
        /* aspect-ratio: 1/1; */
    }
}

/* Styles for mobile */
@media (max-width: 767px) {
    p, h2, h3 {
        text-align: left;
        margin-left: 5%;
        margin-right: 5%;
    }

    h2 {
        text-align: center;
        font-size: 2em;
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    .responsive-image {
        width: 90%;
        height: auto;
    }

    #snakeAiCanvas {
        width: 90%;
        height: auto;
        /* aspect-ratio: 1/1; */
    }
}



.nav {
    background-color: #333;
    overflow: hidden;
    padding: 1em;
}

.nav a {
    color: #f2f2f2;
    text-decoration: none;
    margin-right: 1em;
}

.nav a:hover {
    color: red;
}

.content {
    flex: 1 0 auto; /* This makes the content fill available space */
    padding: 2em;
    display: none;
    background-color: #1e1e1e; /* Darker background for content */
    color: #f2f2f2; /* Light text for content */
}

.content:target {
    display: block;
}

footer {
    flex-shrink: 0; /* This prevents the footer from shrinking */
    background-color: #333; /* Dark background for footer */
    color: #f2f2f2; /* Light text for footer */
    text-align: center;
    font-size: 0.8em;
}

footer p {
    text-align: center;
}

a {
    color: red;
    text-decoration: none;
}

a:hover {
    color: #ffa0a0;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    background-color: #800000; /* dark red */
    color: white; /* text color */
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #ff0000; /* bright red */
    color: black;
}

button.selected {
    background-color: #4CAF50; /* green */
    color: white;
}

input[type="number"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #800000; /* dark red */
    color: white;
}
