:root {
    --bg-gradient: linear-gradient(to bottom, #00000c, #1a1c3b, #303450);
    --witch-color: rgb(58, 58, 58);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Eater", serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow: hidden;
}

.main {
    z-index: 10;
}

.bloodyMoon {
    width: 130px;
    height: 130px;
    background: rgb(255, 255, 255);
    border-radius: 100%;
    box-shadow: 0px 0px 10px 2px rgb(255, 238, 238);
    position: relative;
    z-index: 1;
    position: absolute;
    top: 40px;
    left: 60px;
    animation: moonLight 2s ease-in-out 1s infinite alternate;
}

.ground {
    width: 100%;
    background: linear-gradient(to bottom, #292d31, #010b13);
    height: 130px;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.road {
    width: 10%;
    background-color: rgb(35, 43, 44);
    height: 100%;
    transform: skewX(-20deg);
    margin-right: 200px;
}

.tree {
    width: 13px;
    height: 200px;
    background: #000;
    position: absolute;
    bottom: 40px;
    left: 100px;
    transform: scale(80%);
}

.tree2 {
    width: 13px;
    height: 200px;
    background: #000;
    position: absolute;
    bottom: 40px;
    right: 100px;
    transform: scale(-80%, 80%);
}

.branch {
    background: #000;
    position: absolute;
}

.barricade {
    position: absolute;
    top: -70px;
    left: 200px;
    display: flex;
    justify-content: space-between;
    gap: 135px;
    transform: scale(90%);
    z-index: 20;
}

.fence {
    background: #000;
    width: 12px;
    height: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

.fenceTop {
    width: 24px;
    height: 24px;
    background: #000;
    position: absolute;
    top: -20px;
    left: -5.5px;
}

.fenceline {
    width: 60px;
    height: 8px;
    background: #000;
}

.GroupFence {
    display: flex;
}

.house {
    background: linear-gradient(to bottom, #4a5c6a, #2c3e50, #1f2933);
    width: 400px;
    height: 260px;
    position: absolute;
    bottom: 130px;
    left: 340px;
    z-index: 20;
    border-radius: 30% 30% 0 0;
}

.roof {
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid #172229;
    z-index: 10;
}

.chimney {
    width: 40px;
    height: 45px;
    background: rgb(43, 25, 10);
    position: absolute;
    top: -45px;
    right: 60px;
    z-index: 1;
    border: 1px solid;
    border-bottom: 0px;
}

.smoke {
    width: 10px;
    height: 10px;
    background: rgba(200, 200, 200, 0.6);
    border-radius: 50%;
    position: absolute;
    top: -20px;
    left: 14px;
    opacity: 0;
    animation: chimneySmoke 3s ease-out infinite;
}

.smoke:nth-of-type(2) {
    animation-delay: 1s;
}

.smoke:nth-of-type(3) {
    animation-delay: 2s;
}

.door {
    width: 90px;
    height: 130px;
    background-color: #1a1a1a;
    position: absolute;
    bottom: 0;
    left: 215px;
    border-radius: 50% 50% 0 0;
}

.doorhandle {
    width: 10px;
    height: 10px;
    background: rgb(196, 196, 0);
    border-radius: 50%;
    position: absolute;
    bottom: 50px;
    right: 10px;
}

.ghostHanging {
    position: absolute;
    bottom: 210px;
    left: 140px;
    z-index: 1;
    opacity: 30%;
    animation: ghostShownDisappear 2s cubic-bezier(0, -0.77, 0, 0.49) infinite alternate;
    transform: scale(1.2);
}

.hands {
    display: flex;
    gap: 30px;
}

.hand {
    width: 8px;
    height: 30px;
    background: #303030;
    border-radius: 12px;
}

.head {
    width: 40px;
    height: 40px;
    background: rgb(139, 139, 139);
    border-radius: 50%;
    position: absolute;
    top: 50px;
    left: 3px;
    overflow: hidden;
    z-index: 10;
}

.eyes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.eye {
    width: 10px;
    height: 6px;
    background: #000000;
    border-radius: 50%;
}

.smile {
    margin-top: 8px;
    border: 1px solid #ff0000;
    margin: 8px;
    position: relative;
}

.triangle {
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-bottom: 8px solid rgb(255, 0, 0);
    position: absolute;
    top: 0px;
    transform: scale(-1);
}

.body {
    width: 40px;
    height: 70px;
    background: rgb(139, 139, 139);
    position: absolute;
    left: 2px;
    /* border-radius: 0 0 20% 20%; */
}

.cloud {
    width: 120px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    position: absolute;
    top: 60px;
    left: -120px;
    transform: scale(85%);
    animation: cloudbeingCloud 60s ease-in-out 2s infinite alternate;
    z-index: 4;
}

.cloudTop {
    width: 90px;
    height: 35px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    position: absolute;
    top: -20px;
    left: 15px;
}

.stars {
    width: 100%;
    height: 300px;
    z-index: 1;
    padding: 30px;
    position: relative;
}

.star {
    background: white;
    border-radius: 100%;
    position: absolute;
    animation: starTwinkiling 2s ease-in-out infinite alternate;
}

.towerHouse {
    width: 160px;
    height: 500px;
    background: linear-gradient(to bottom, #232b31, #2c3e50, #1f2933);
    position: absolute;
    bottom: 0;
    right: 468px;
    border-radius: 20% 20% 0 0;
    z-index: 20;
}

.towerRoof {
    background: #242424;
    width: 100px;
    height: 60px;
    position: absolute;
    top: -36px;
    right: 75px;
    transform: skew(-20deg) rotate(-30deg);
}

.witch {
    position: absolute;
    top: 70px;
    left: -120px;
    z-index: 10;
    transform: scale(0.7) skew(-5deg);
    animation: witchFlying 30s ease-in 3s infinite;
}

.witch::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 15px;
    height: 30px;
    background: var(--witch-color);
    border-radius: 50%;
}

.witch::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 60px;
    width: 25px;
    height: 8px;
    background: var(--witch-color);
    border-radius: 50%;
}

.witchhat {
    position: absolute;
    bottom: 10px;
    left: 50px;
    width: 15px;
    height: 10px;
    background: var(--witch-color);
    border-radius: 50%;
}

.witchhat::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 2.5px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 15px solid var(--witch-color);
    border-radius: 50%;
}

.witchdress {
    width: 40px;
    height: 6px;
    background: var(--witch-color);
    position: absolute;
    top: -12px;
    left: 10px;
    transform: skew(14deg) rotate(15deg);
}

.broom {
    width: 100px;
    height: 6px;
    background: var(--witch-color);
    position: absolute;
    top: 10px;
}

.broomHead {
    border-bottom: 20px solid var(--witch-color);
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    position: absolute;
    top: -7px;
    right: -16px;
    transform: rotate(-90deg);
}

.pumpkins {
    width: 52%;
    position: absolute;
    bottom: 130px;
    right: 410px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
}

.pumpkin {
    width: 100px;
    height: 75px;
    border-radius: 50%;
    background: rgb(255, 145, 0);
    box-shadow: 0 0 10px 0 rgb(255, 145, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: scale(0.8);
    animation: pumpkinGLow 2s ease-in-out infinite alternate;
}

.pumpkinEyes {
    display: flex;
    justify-content: space-around;
}

.pumpkinEye {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid rgb(238, 255, 0);
}

.pumpkinNose {
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid rgb(238, 255, 0);
    margin: 0px 38px;
}

.pumpkinMouth {
    height: 10px;
    background: transparent;
    box-shadow: 0 0 10px 1px rgb(238, 255, 0);
    margin: 0px 20px;
}

.tombstones {
    width: 300px;
    position: absolute;
    bottom: 120px;
    right: 70px;
    display: flex;
    gap: 25px;
}

.tombstone {
    width: 35px;
    height: 60px;
    background: #363636;
    border-radius: 50% 50% 0 0;
    border: 1px solid;
    text-align: center;
    font-size: 12px;
    padding-top: 20px;
}

.window {
    width: 55px;
    height: 55px;
    border: 2px solid black;
    position: absolute;
    background: orange;
    top: 40px;
    left: 50px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    box-shadow: 0 0 20px 1px orange;
    transform: skew(3deg);
    animation: windowBlinking 2s ease-in-out infinite alternate;
}

.window:nth-of-type(2) {
    animation-delay: 1s;
}

.window:nth-of-type(3) {
    animation-delay: 2s;
}

.window:nth-of-type(4) {
    animation-delay: 3s;
}

.owl {
    width: 30px;
    height: 40px;
    background: rgb(37, 27, 7);
    position: absolute;
    bottom: 335px;
    left: 100px;
    border-radius: 40%;
}

.owl::before {
    content: '';
    position: absolute;
    top: 10px;
    background: rgb(51, 36, 9);
    width: 10px;
    height: 25px;
    border-radius: 50%;
}

.owl::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 0;
    background: rgb(51, 36, 9);
    width: 10px;
    height: 25px;
    border-radius: 50%;
}

.owlHead {
    width: 30px;
    height: 25px;
    background: rgb(51, 36, 9);
    position: absolute;
    top: -10px;
    border-radius: 40%;
    display: flex;
    padding: 5px;
    gap: 8px;
}

.owlEye {
    width: 10px;
    height: 9px;
    background: rgb(228, 167, 0);
    border-radius: 40%;
    animation: owlBlink 4s ease-in-out infinite;
}

.ghost {
    width: 50px;
    height: 70px;
    background: #fffdfd;
    position: absolute;
    bottom: 130px;
    right: 320px;
    border-radius: 50% 50% 0 0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    animation: ghostwalking 10s ease-in-out infinite alternate;
    transform: scale(0.8);
    opacity: 0.5;
}

.ghostEyes {
    display: flex;
    gap: 10px;
}

.ghostEye {
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 20px;
    animation: owlBlink 4s ease-in-out infinite;
}

.ghostMouth {
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 20px
}

.credits {
    text-decoration: none;
    position: absolute;
    bottom: 8px;
    right: 10px;
    color: rgb(255, 145, 0);
    text-shadow: 0 0 10px rgb(255, 145, 0);
    font-size: clamp(10px, 2vw, 16px);
}

@keyframes moonLight {
    0% {
        box-shadow: 0px 0px 20px 2px rgba(255, 238, 238, 0.678);
    }

    100% {
        box-shadow: 0px 0px 40px 2px rgb(255, 238, 238);
    }
}

@keyframes cloudbeingCloud {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(1600px);
    }
}

@keyframes starTwinkiling {
    0% {
        background-color: white;
    }

    100% {
        background-color: rgb(68, 68, 68);
    }
}

@keyframes chimneySmoke {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) scale(2.5);
        opacity: 0;
    }
}

@keyframes witchFlying {
    0% {
        transform: translateX(0) scale(0.7) skew(-5deg);
    }

    100% {
        transform: translateX(1500px) scale(0.7) skew(-5deg);
    }
}

@keyframes pumpkinGLow {
    0% {
        box-shadow: 0 0 10px 0 rgb(255, 145, 0);
    }

    100% {
        box-shadow: 0 0 30px 0 rgb(255, 145, 0);
    }
}

@keyframes ghostShownDisappear {
    0% {
        opacity: 30%;

    }

    70% {
        opacity: 35%;
    }

    100% {
        opacity: 10%;
    }
}

@keyframes windowBlinking {

    0%,
    100% {
        box-shadow: 0 0 30px 1px orange;
        background: orange;
    }

    50% {
        box-shadow: 0 0 10px 1px orange;
        background: rgb(90, 59, 0);
    }
}

@keyframes owlBlink {

    0%,
    90% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }

    100% {
        transform: scaleY(1);
    }
}

@keyframes ghostwalking {
    0% {
        transform: translateX(0) scale(0.8);
    }

    100% {
        transform: translateX(250px) scale(0.8);
    }
}

.not-supported {
    display: none;
    font-family: sans-serif;
    text-align: center;
    padding: 2rem;
    background: #111;
    color: #eee;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

@media screen and (max-width: 1024px) {
    body>*:not(.not-supported) {
        display: none !important;
    }

    .not-supported {
        display: flex;
    }
}