

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Full-page styling */
body, html {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ecc772;
    margin: 0;
    padding: 0;
}

/* Game container */
#gameContainer {
    width: calc(100%); /* Full width with 5px margin on each side */
    max-width: 500px; /* Optional max-width for larger screens */
    text-align: center;
    margin: 5px auto; /* 5px margin all around */
}

/* Start screen styling */
#startScreen {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    margin: 0px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 350px;  /* Takes the full width of the #gameContainer */
}

#startScreen.active {
    display: flex;
}

/* High Scores Section */
#highScores {
    width: 100%; /* Make the high scores section take the full width */
    margin: 0 auto; /* Center the content with automatic margins */
    padding: 0 5px; /* Add a small padding to avoid touching the screen edges */
    text-align: left; /* Align the text to the left */
    font-weight: bold;
    font-size: 1.3rem;
    color: #000;
    width: 100%; /* Make the name-score div take up the full width */
    margin-left: 5px;
    justify-content: space-between; /* Space between the name and score */
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

li.high-score-item {
    margin-bottom: 15px; /* Space between each score entry */
    font-size: 1.2rem;
    color: #333;
    width: 100%; /* Make each list item take up the full width */
}

div.name-score {
    font-weight: bold;
    font-size: 1.3rem;
    color: #000;
    width: 100%; /* Make the name-score div take up the full width */
    display: flex;
    justify-content: space-between; /* Space between the name and score */
}

div.company {
    font-size: 1rem;
    color: #666;
    margin-left: 10px; /* Slight indentation for company */
    width: 100%; /* Full width for the company name */
}

/* Button styling */
button {
    background-color: #4CAF50;
    color: white;
    font-size: 1.2rem;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

button:hover {
    background-color: #45a049;
}

/* Game over screen */
#gameOverScreen {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: calc(100% - 10px); /* Full width minus 5px on each side */
    max-width: 400px;
    text-align: center;
}

#gameOverScreen.active {
    display: block;
}

input[type="text"] {
    padding: 10px;
    width: 80%;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

form {
    display: block;
    flex-direction: column;
}

/* Canvas styling */
canvas {
    display: block;
    margin: 20px auto;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
}

#restartButton {
    background-color: #ff5722;
}

#restartButton:hover {
    background-color: #e64a19;
}

/* Score displayed at the bottom */
#scoreDisplay {
    position: fixed;
    bottom: 20px;
    left: 10px;
    font-size: 32px;
    color: #ffffff;
    font-weight: bold;
    z-index: 10;
}

#gameOverScreen.hidden {
    display: none;  /* Hide the game over screen when hidden */
}
