body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: lightseagreen;
    color: black;
    font-family: Arial, sans-serif;
}

header {
    background-color: green;
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center; /* Align items vertically */
}

#logo-top {
    width: 100px; /* Adjust the size as needed */
    margin-right: 15px; /* Space between logo and title */
}

.header-title {
    flex-grow: 1; /* Allow the title to expand */
    text-align: center; /* Center the title and nav */
}

nav {
    display: inline-block; /* Keep nav inline with title */
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav a {
    color: black;
    text-decoration: none;
}

#game-container {
    position: relative;
    width: 400px;
    height: 400px;
    background-color: gray;
    border: 2px solid black;
    overflow: hidden;
    margin: 20px 0;
}

#player {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color:green;
    border-radius: 5px;
    transition: transform 0.1s;
}

#goal {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: red;
    border-radius: 5px;
    top: 370px;
    left: 370px;
}

#timer, #level {
    position: absolute;
    color: black;
    top: 10px;
    left: 10px;
}

#level {
    top: 30px;
}

footer {
    background-color: green;
    color: black;
    text-align: center; /* Center the footer text */
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Align items vertically */
}

#logo-bottom {
    width: 100px; /* Adjust the size as needed */
    margin-right: 15px; /* Space between logo and text */
}

footer p {
    flex-grow: 1; /* Allow the text to expand */
}

@keyframes movePlayer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes moveGoal {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}