@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    background-color: #5c2b49;
    background-image: url(./ramadan.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* moon animation */
.moon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    left: 10%;
    top: 5%;
    box-shadow: -20px 10px #fff;
    opacity: 0;
    background-color: transparent;
    animation: moon 11s 2.5s forwards;
}

@keyframes moon {
    100% {
        opacity: 1;
    }
}

/* star animation*/

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 1;
    }
}

/* text */
.text {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    padding: 10px;
    opacity: 0;
    margin: auto;
    animation: ramadan 11s 1.5s forwards;
    overflow: hidden;
}

@keyframes ramadan {
    100% {
        opacity: 1;
    }
}

/* hover effect */
.text li {
    display: block;
    float: left;
    list-style: none;
    font-size: 65px;
    letter-spacing: 8px;
    line-height: 150px;
    color: white;
    transition: 2s;
    cursor: pointer;
}


.text:hover li {
    transform: rotate(55deg) translateY(-100px);
    opacity: 0;
    filter: blur(30px);
}

.text:hover::after {
    transform: scale(0.9);
    transition-delay: 2.4s;
    opacity: 0.8;
}

li:nth-child(1) {
    transition-delay: 0s;
}

li:nth-child(2) {
    transition-delay: 0.2s;
}

li:nth-child(3) {
    transition-delay: 0.4s;
}

li:nth-child(4) {
    transition-delay: 0.6s;
}

li:nth-child(5) {
    transition-delay: 0.8s;
}

li:nth-child(6) {
    transition-delay: 1s;
}

li:nth-child(7) {
    transition-delay: 1.2s;
}

li:nth-child(8) {
    transition-delay: 1.4s;
    color: #1cb843;
}

li:nth-child(9) {
    transition-delay: 1.6s;
    color: #1cb843;
}

li:nth-child(10) {
    transition-delay: 1.8s;
    color: #1cb843;
}

li:nth-child(11) {
    transition-delay: 2s;
    color: #1cb843;
}

li:nth-child(12) {
    transition-delay: 2.2s;
    color: #1cb843;
}

li:nth-child(13) {
    transition-delay: 2.4s;
    color: #1cb843;
}

li:nth-child(14) {
    transition-delay: 2.6s;
    color: #1cb843;
}

/* footer */

footer {
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
}

footer p {
    color: #fff;
}

/* responsive */

@media (max-width: 700px) {
    .text li {
        font-size: 20px;
    }

    footer p {
        font-size: 0.6em;
    }
}