/* General Styles */
body {
    font-family: 'EB Garamond', serif;
    margin: 0;
    padding: 0;
}

/* General Screen Styles */
.screen {
    display: none; /* Hide all screens by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    align-items: center;
}

.screen.active {
    display: block;
}

/* Greeting Screen */
#greeting-screen {
    padding: 0;
    margin: 0;
    background-color: #f6f2e7; /* Background color */
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    overflow: hidden; /* Ensure SVG graphics don't overflow */
}

#greeting-screen.active {
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox only when the screen is active */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
}

/* Button Styling */
#start-button {
    position: absolute;
    top: 20%; /* 20% from the top */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    padding: 15px 30px;
    font-family: 'EB Garamond', serif; /* Use EB Garamond font */
    font-size: 1.5em;
    color: #557c70; /* Text color */
    background-color: transparent; /* Transparent background */
    border: 2px solid #557c70; /* Rectangle border */
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    z-index: 10;
}

#start-button:hover {
    background-color: #557c70; /* Fill button on hover */
    color: #f6f2e7; /* Change text color on hover */
}

/* SVG Graphics Styling */
.svg-graphic {
    position: absolute;
    bottom: 0; /* Start from the bottom */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    height: 50vh; /* Cover the bottom 50% of the screen */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure it doesn't overflow horizontally */
    z-index: 1;
}

/* Snake Screen */
#snake-screen {
    background-color: #d2d9e1; /* Background color */
    position: relative;
    width: 100%;
    height: 100vh; /* Full screen height */
    overflow: hidden; /* Ensure no overflow */
}

#snake-screen.active {
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox only when the screen is active */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
}

/* Frame and Canvas Container */
.frame-container {
    position: relative;
    top: 10%; /* 10% from the top */
    height: 60vh;
    margin: 0 auto; /* Center horizontally */
}

/* Frame (PNG) */
.frame {
    height: 100%; /* Make the frame 100% of the container */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensure it behaves as a block element */
}

/* Snake Game Canvas */
#snake-game {
    position: absolute;
    width: 78%; /* 80% of the container's width */
    height: 68%; /* 80% of the container's height */
    top: 50%; /* Center vertically inside the frame */
    left: 50%; /* Center horizontally inside the frame */
    transform: translate(-50%, -50%); /* Offset to true center */
    background-color: transparent; /* Transparent background */
    border: 1px solid #ccc; /* Optional: Add a border for debugging */
}

/* Food Item Silhouettes */
#food-silhouettes {
    position: relative;
    width: 80%; /* Match the width of the frame container */
    margin: 3vh auto 0; /* Center horizontally and add padding on top */
    display: flex;
    justify-content: space-between; /* Space out the silhouettes */
    align-items: center;
}

.food-item {
    width: 30px; /* Adjust size as needed */
    height: 30px; /* Adjust size as needed */
}

/* Final Info Screen */
#final-screen {
    max-width: 800px;
    margin: 0 auto;
}

.tile {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tile h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.tile p {
    font-size: 1.1em;
    line-height: 1.6;
}