/* -------------------- */
/*     Utility Classes  */
/* -------------------- */

.abs {
    position: absolute;
}

/* -------------------- */
/*        Layout        */
/* -------------------- */

#top {
    position: relative;
    height: 66.66vh;
    overflow: hidden;
}

#bottom {
    position: relative;
    height: 33.33vh;
    background-color: green;
}

/* -------------------- */
/*    Menu & Overlay    */
/* -------------------- */

.menu-container {
    top: 10px;
    left: 10px;
    z-index: 9999;
}

.hamburger {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

#menu {
    top: 50px;
    left: 10px;
    width: 150px;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 10px;
    border-radius: 5px;
    transform: translateX(-200%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

#menu.show {
    transform: translateX(0);
}

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

#menu li {
    margin: 10px 0;
}

#menu a {
    color: white;
    text-decoration: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease-in-out;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: #fff;
    color: #000;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* -------------------- */
/*   Notification Box   */
/* -------------------- */

#disclaimer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    opacity: 1;
    text-align: center;
    transition: opacity 1.5s ease-out;
    z-index: 9999;
}

/* -------------------- */
/*      Sky Effects     */
/* -------------------- */

#stars {
    top: 0;
    left: 0;
    width: 100%;
    height: 66.66vh;
    pointer-events: none;
    z-index: 0;
}

#stars div {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    transition: opacity 2s;
}

.sun {
    top: 20%;
    width: 50px;
    height: 50px;
    background-color: yellow;
    border-radius: 50%;
    box-shadow: 0 0 20px gold;
}

.moon {
    top: 20%;
    width: 40px;
    height: 40px;
    background-color: lightgray;
    border-radius: 50%;
    box-shadow: 0 0 10px gray;
}

#fog {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(255, 183, 76, 0.45) 0%,
            rgba(255, 204, 128, 0.35) 20%,
            rgba(255, 236, 179, 0.25) 40%,
            rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

/* -------------------- */
/*     Scenery Items    */
/* -------------------- */

.cloud {
    left: -200px;
    width: 120px;
    height: auto;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.hill {
    z-index: 0;
    bottom: 0%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.tree {
    height: auto;
    pointer-events: none;
}

/* -------------------- */
/*      Characters      */
/* -------------------- */

.grass {
    height: auto;
    pointer-events: none;
    opacity: 0.85;
    width: 35px;
}

.sheep {
    height: auto;
    pointer-events: none;
    z-index: 2;
}

.sheepdog {
    z-index: 2;
    bottom: 150px;
    left: -60px;
    animation: patrol 40s ease-in-out infinite;
}

.wolf {
    z-index: 2;
    bottom: 150px;
    right: -100px;
    animation: peek 10s ease-in-out infinite;
}

/* -------------------- */
/*      Animations      */
/* -------------------- */

@keyframes drift {
    0% {
        left: -200px;
    }

    100% {
        left: 100%;
    }
}

@keyframes graze {
    0% {
        transform: translateX(0%) scaleX(1);
    }

    40% {
        transform: translateX(-100%) scaleX(1);
    }

    50% {
        transform: translateX(-100%) scaleX(1);
    }

    51% {
        transform: translateX(-100%) scaleX(-1);
    }

    99% {
        transform: translateX(0%) scaleX(-1);
    }

    100% {
        transform: translateX(0%) scaleX(1);
    }
}

@keyframes patrol {
    0% {
        left: -60px;
        transform: scaleX(-1);
    }

    50% {
        left: 60%;
        transform: scaleX(-1);
    }

    51% {
        transform: scaleX(1);
    }

    100% {
        left: -60px;
        transform: scaleX(1);
    }
}

@keyframes peek {
    0% {
        right: -100px;
        transform: scaleX(1);
    }

    50% {
        right: 10%;
        transform: scaleX(1);
    }

    51% {
        transform: scaleX(-1);
    }

    100% {
        right: -100px;
        transform: scaleX(-1);
    }
}