/* General Reset */
body, h1, p, button, input {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

/* Body Styling */
body {
    background-color: #1e1e1e;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 10px;
}

p {
    font-size: 1.2em;
    color: #cccccc;
}

/* Main Section */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game-container {
    margin-bottom: 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    overflow: hidden;
}

canvas {
    display: block;
    background-color: #333333;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Controls Styling */
#controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #00ffcc;
    border-radius: 5px;
    background-color: #252525;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

button {
    font-size: 1em;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #00ffcc;
    color: #1e1e1e;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #00d4aa;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

label {
    font-size: 1em;
    color: #ffffff;
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="text"] {
    padding: 5px;
    border: 1px solid #00ffcc;
    border-radius: 5px;
    background-color: #333333;
    color: #ffffff;
}

input[type="text"]::placeholder {
    color: #888888;
}

#tooltip-container {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #00ffcc;
    border-radius: 5px;
    background-color: #252525;
    color: #ffffff;
    font-size: 0.9em;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

/* Footer Styling */
footer {
    margin-top: 20px;
    text-align: center;
}

footer p {
    font-size: 0.9em;
    color: #777777;
}

/* Responsive Design */
@media (max-width: 800px) {
    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }

    button {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    input[type="text"] {
        font-size: 0.9em;
    }

    #tooltip-container {
        font-size: 0.8em;
        padding: 8px;
    }
}