@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
    color: white;
    font-family: 'Poppins', sans-serif;
    background-image: radial-gradient(circle, #291467 0%, #0B0127 100%);
    width: 100vw;
    height: 100vh;
}


.background-img img {
    position: absolute;
}


/* For Navbar */
.navbar {
    display: flex;
    padding: 20px 50px;
    justify-content: space-between;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo p {
    font-family: 'Fredoka One', cursive;
    font-size: 20px;
}

.navItems {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
}

.navItems li {
    list-style: none;
    padding: 5px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.navItems li a {
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.navItems li:hover {
    background-color: #ED504E;
}


/* For Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 6vh 6vw;
}

.hero .heading1 {
    text-transform: uppercase;
    font-size: 17px;
}

.hero .bigtext {
    font-family: 'Fredoka One', cursive;
    font-size: 5vw;
}

.orange {
    color: #F97E48;
}

.subtext {
    margin: 20px 0;
    font-size: 15px;
    width: 35vw;
}

.buttons {
    display: flex;
    gap: 20px;
}


.buttons button {
    width: 12vw;
    padding: 1rem 1rem;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.buttons .btn1 {
    border-width: 0;
    background-color: #ED504E;
}

.buttons .btn1:hover {
    box-shadow: 0 5px 15px #ED504E;
}

.buttons .btn2 {
    background-color: transparent;
    border: 3px solid white;
}

.buttons .btn2:hover {
    background-color: transparent;
    box-shadow: 0 5px 15px white;
}

.hero .date {
    margin: 15px 5px;
    font-size: 20px;
}


/* For Footer */
.footer {
    position: absolute;
    bottom: 0;
    margin: 0 150px;
    padding: 25px 0;
}

.links {
    display: flex;
    gap: 20px;
}

.links a i {
    color: white;
    font-size: 25px;
}

.links a i:hover {
    color: #F97E48;
}

/* For Image Locations */
.house {
    height: 85%;
    right: 0;
    bottom: 0;
}

.hanging {
    width: 10%;
    top: 0;
    left: 40%;
    filter: drop-shadow(0 0 0.75rem rgb(255, 217, 0));
}

.grave {
    height: 8%;
    bottom: 0px;
    left: 30%;
}

.cementery {
    bottom: -10px;
    left: 25%;
    height: 30%;
}

.scarecrow {
    height: 15%;
    bottom: -10px;
    left: 1%;
    transform: rotate(-10deg);
}

.bats {
    height: 20%;
    top: 15%;
    left: 60%;
}

.witch {
    height: 20%;
    top: 55%;
    left: 50%;
}

.ghost {
    height: 10%;
    bottom: 10px;
    left: 50%;
    animation: ghost-move 10s infinite;
}

/* Animation for Ghost movement */
@keyframes ghost-move {
    0% {
        left: 50%;
    }

    49% {
        left: 25%;
        transform: scaleX(1);
    }

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

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


/* For Responsiveness */
@media screen and (max-width: 1130px) {
    .navItems li a {
        font-size: 15px;
    }

    .buttons button {
        font-size: 12px;
    }
}

@media screen and (max-width: 956px) {
    .subtext {
        font-size: 14px;
    }

    .buttons button {
        width: 15vw;
        padding: 0.75rem 0.5rem;
    }

    .footer {
        margin-left: 100px;
    }

    .house {
        height: 75%;
    }

    .cementery,
    .grave,
    .navItems {
        display: none;
    }
    .ghost {
        animation: ghost-move 6s infinite;
    }

    @keyframes ghost-move {
        0% {
            left: 75%;
        }

        49% {
            left: 35%;
            transform: scaleX(1);
        }

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

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

@media screen and (max-width: 720px) {
    .hero .heading1 {
        font-size: 15px;
    }

    .subtext {
        font-size: 12px;
    }

    .footer {
        bottom: 4vh;
        margin-left: 80px;
    }

    .house {
        height: 65%;
    }

    .hanging {
        left: 80%;
        width: 15%;
    }

    .bats {
        top: 25%;
    }
}

@media screen and (max-width: 560px) {
    .navbar {
        padding: 1.25rem;
    }

    .logo img {
        width: 40px;
    }

    .logo p {
        font-size: 15px;
    }

    .hero .heading1 {
        font-size: 12px;
    }

    .hero .bigtext {
        font-size: 10vw;
    }

    .subtext {
        width: 70vw;
    }

    .buttons button {
        width: 20vw;
    }

    .footer {
        bottom: 8vh;
    }

    .house {
        display: none;
    }

    .bats {
        top: 20%;
        left: 65%;
    }

    .witch {
        height: 20%;
        top: 60%;
        left: 60%;
    }
}

@media screen and (max-width: 400px) {
    .bats {
        height: 15%;
    }

    .witch {
        height: 15%;
    }
}