/* Reset default margins and ensure full viewport coverage */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Title Screen Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay h1 {
    color: white;
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay .description {
    color: #e0e0e0;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.overlay input {
    padding: 10px 20px;
    font-size: 1.2em;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    width: 300px;
    text-align: center;
}

.overlay button {
    padding: 15px 30px;
    font-size: 1.5em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* Game UI */
.game-ui {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.2em;
    z-index: 100;
    display: none;
    /* Hidden by default */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#playerCount {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
}