body, html {
    background: url('/assets/images/duck-bg.jpg') no-repeat center center fixed;
    background-size: cover;    
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Shantell Sans', sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.duck-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.duck-icon {
    width: 60px;
    height: 60px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.button {
    background-color: #FFB648; /* Yellow */
    border: none;
    color: black;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 25px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-family: 'Shantell Sans';
}

.button:hover {
    background-color: #c27c13;
}

/********* INSTRUCTIONS *********/

.instructions {
    color: #fff;
    max-width: 380px;
    margin-top: 20px;
    padding: 15px;
    background-color: #333;
    opacity: 75%;
    border-radius: 10px;
    text-align: left;
}

.instructions h2 {
    margin-top: 0;
    font-size: 24px;
}

.instructions ul {
    list-style-type: none;
    padding: 0;
}

.instructions li {
    margin-bottom: 10px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .instructions {
        max-width: 90%;
    }
}

/********* END INSTRUCTIONS *********/

/********* MENU *********/

.menu-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease;
    cursor: auto;
}

.menu-content {
    max-width: 500px;
    width: 90%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-content li {
    margin: 15px 0;
    font-size: 2.7em;
}

li.share-duck {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .menu-content li {
        font-size: 1.9em;
    }
}

.menu.open {
    visibility: visible;
    opacity: 1;
}

.share-icon {
    margin: 5px 10px;
    color: #FFB648;
    text-decoration: none;
}

.share-icon i {
    font-size: 40px;
}

.menu-content li {
    text-decoration: none;
    color: #FFB648;
}

a {
    text-decoration: none;
    color: #FFB648;
}

a:visited {
    text-decoration: none;
    color: #FFB648;
}

/********* END MENU *********/

/*********************************/
/********* GAME ELEMENTS *********/
/*********************************/

/********* DUCKS *********/

.cursor-duck, .mini-duck {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('/assets/images/duck.svg');
    background-size: cover;
    pointer-events: none; /* Make sure the ducks don't capture mouse events */
    cursor: none;
}

.mini-duck {
    width: 25px;
    height: 25px;
    opacity: 0.9;
}

/********* BIRD *********/

.bird {
    position: absolute;
    width: 80px;
    height: 80px;
    display: none; /* Hidden initially */
    filter: brightness(0) saturate(100%) invert(73%) sepia(45%) saturate(377%) hue-rotate(153deg) brightness(95%) contrast(88%);
}

/********* EGG *********/

.egg {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('/assets/images/egg.svg');
    background-size: cover;
}

/********* RAIN *********/

.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* Ensure the rain doesn't block interactions */
}

.rain-drop {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 20px;
    background: rgba(29, 167, 231, 0.603);
    opacity: 0;
    animation: fall 1s linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/********* END RAIN *********/

/********* SCORE COUNTER *********/

.counters {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.counter {
    color: #333;
    font-size: 35px;
    position: relative;
    top: 10px;
    left: 20px;
}

/********* END SCORE COUNTER *********/

/*************************************/
/********* END GAME ELEMENTS *********/
/*************************************/

/********* VOLUME CONTROL *********/

.volume-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    cursor: auto;
}

.volume-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: brightness(0) saturate(100%) invert(84%) sepia(33%) saturate(1076%) hue-rotate(325deg) brightness(98%) contrast(106%);
}

#volumeSlider {
    width: 200px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

#volumeSlider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: gray;
    border-radius: 5px; /* Rounded track */
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FFB648;
    border-radius: 50%; /* Rounded thumb */
    margin-top: -6px;
    cursor: pointer;
}

#volumeSlider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: gray;
    border-radius: 5px; /* Rounded track */
}

#volumeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FFB648;
    border-radius: 50%; /* Rounded thumb */
    cursor: pointer;
}

#volumeSlider::-ms-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

#volumeSlider::-ms-fill-lower {
    background: gray;
    border-radius: 5px; /* Rounded track */
}

#volumeSlider::-ms-fill-upper {
    background: gray;
    border-radius: 5px; /* Rounded track */
}

#volumeSlider::-ms-thumb {
    width: 20px;
    height: 20px;
    background: #FFB648;
    border-radius: 50%; /* Rounded thumb */
    cursor: pointer;
}

/********* END VOLUME CONTROL *********/

/* Hide things on mobile devices */
@media (max-width: 768px) {
    .mini-duck {
        display: none;
    }
}