body {
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FFA27F, #FFFFFF);
    color: #333;
    overflow: hidden;
}

#main-screen, #game-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    z-index: 1;
}

#logo {
    width: 600px;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

button {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: #97BE5A;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: fadeIn 2s ease-in-out;
}

button:hover {
    background-color: #86a84e;
    transform: scale(1.05);
}

#progress-bar-container {
    width: 100%;
    background-color: #f3f3f3;
    height: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

#progress-bar {
    width: 100%;
    height: 100%;
    background-color: #97BE5A;
    transition: width 10s linear;
}

#guess-text {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 600;
    animation: fadeIn 2s ease-in-out;
}

#streak-counter {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    animation: fadeIn 2s ease-in-out;
}

#choices {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#choices button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #97BE5A;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#choices button:hover {
    background-color: #86a84e;
    transform: scale(1.05);
}

#game-over-message {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #FF0000;
    animation: fadeIn 2s ease-in-out;
}

#game-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#back-to-menu, #restart-game {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #FF0000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#back-to-menu:hover, #restart-game:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

#volume-control {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 5px;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

#volume-slider:hover {
    opacity: 1;
}

#volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

#emoji-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.emoji {
    position: absolute;
    font-size: 24px;
    animation: fall 3s linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

.pause-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #FF0000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pause-button:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

.pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.pause-content {
    text-align: center;
    color: #fff;
}

.pause-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.pause-content button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #97BE5A;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pause-content button:hover {
    background-color: #86a84e;
    transform: scale(1.05);
}

.modal {
    display: block;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    text-align: left;
    animation: fadeIn 1s ease-in-out;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#leaderboard-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #97BE5A;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px; /* Add some margin to separate it from other elements */
}

#leaderboard-button:hover {
    background-color: #86a84e;
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#leaderboard-list {
    list-style-type: none;
    padding: 0;
}

#leaderboard-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#leaderboard-list {
    list-style-type: none;
    padding: 0;
}

#leaderboard-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
    font-weight: 600;
}

#leaderboard-list li:first-child {
    color: gold;
}

#leaderboard-list li:nth-child(2) {
    color: silver;
}

#leaderboard-list li:nth-child(3) {
    color: #cd7f32; /* Bronze color */
}

#name-input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#username-input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #97BE5A;
    border-radius: 25px 0 0 25px;
    outline: none;
    width: 70%;
    max-width: 300px;
}

#username-input:focus {
    border-color: #86a84e;
}

#submit-name {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #97BE5A;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#submit-name:hover {
    background-color: #86a84e;
    transform: scale(1.05);
}
