html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #87CEEB;
    font-family: Arial, sans-serif;
}

#game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

canvas {
    display: block;
    background-color: #87CEEB;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5em;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 80%;
    max-width: 400px;
}

.modal.hidden {
    display: none;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    margin: 5px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#fullscreen-button {
    background-color: #f39c12;
}

button:hover {
    opacity: 0.9;
}

#share-button {
    background-color: #008CBA;
}

#final-score {
    font-size: 3em;
    font-weight: bold;
    color: #E67E22;
    margin: 10px 0;
}

/* --- THESE ARE THE NEW STYLES FOR THE GUIDE AND COUNTDOWN --- */
.guide-list {
    margin: 20px 0;
    text-align: left;
}

.guide-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.guide-item img {
    width: 40px;
    height: auto;
    margin-right: 15px;
}

#countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15vw;
    font-weight: bold;
    color: white;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.5);
    background-color: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

#countdown-overlay.hidden {
    display: none;
}

#play-now-button {
    background-color: #4CAF50;
}
#play-now-button:hover {
    background-color: #45a049;
}