/* General body and layout styling */
body {

  background-color: black; /* fallback while video loads */

    margin: 0;
    padding: 0;
    font-family: 'Arial', monospace;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from the top */
    align-items: center; /* Center everything horizontally */
    overflow: hidden; /* Hide any overflow */
    position: relative; /* Ensure everything stays above background */
    height: 100vh; /* Full screen height */
           cursor: url(sym55.png), default;




    } /* End https://www.cursors-4u.com */

/* Video background settings */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the screen */
    z-index: -1; /* Keeps the video behind other content */
    cursor: url(sym55.png), auto;

}

/* Welcome heading */
h1 {
    font-size: 100px;
    color: #fff;
    text-align: center;
    z-index: 1; /* Ensure heading is above the background, below the GIF */
    margin-top: 20px;
    animation: bounce 2s ease infinite; /* Bounce effect */
    cursor: url(sym55.png), auto;

}

/* Bouncing animation for h1 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px); /* Adjust bounce height */
    }
}

/* Typing effect container */
.container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack the text vertically */
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    z-index: 1; /* Ensure text appears above the background, below the GIF */
    cursor: url(sym55.png), auto;

}

/* Typing effect text */
.typing-effect {
    font-size: 2.5rem;
    font-weight: bold;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
    color: transparent;
    border-right: 4px solid green; /* Cursor effect */
    width: 100%;
    animation: typing 15s steps(200) 0s 1, blink 0.75s step-end infinite;
    cursor: url(sym55.png), auto;

}

/* Typing animation (run once, not repeating) */
@keyframes typing {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}



/* Strobe effect for the GIF */
@keyframes strobe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Media query for smaller screens (mobile) */
@media (max-width: 768px) {
    h1 {
        font-size: 80px; /* Slightly smaller for mobile devices */
    }
    .typing-effect {
        font-size: 2rem;
    }
    .gif-container {
        margin-top: 20px; /* Less margin for mobile */
    }
    .centered-gif {
        max-width: 70%; /* Smaller GIF on mobile */
        height: auto;
    }
}

/* Media query for very small screens (extra mobile) */
@media (max-width: 480px) {
    h1 {
        font-size: 60px; /* Even smaller text for very small devices */
    }
    .typing-effect {
        font-size: 1.6rem;
    }
    .centered-gif {
        max-width: 60%; /* Even smaller on very small screens */
        height: auto;
    }
}

/* Media query for larger desktop screens */
@media (min-width: 1024px) {
    .centered-gif {
        max-width: 80%; /* Increase GIF size further on desktop */
        height: auto;
    }
}

/* GIF styling (centered and optimized) */
.gif-container {
    margin-top: 120px; /* Space from text */
    display: flex;
    justify-content: center; /* Center the GIF horizontally */
    align-items: center; /* Ensure vertical centering */
    width: 100%;
    position: relative;
    z-index: 2; /* Ensure GIF is above text and background */
}

.centered-gif {
    max-width: none; /* Allow the GIF to scale within its container */
    width: 100%; /* Keep it within 100% of the container's width */
    height: auto; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto; /* Center horizontally */
    animation: strobe 0.1s linear infinite; /* Apply the strobe effect */
    cursor: pointer; /* Make the GIF clickable */
    z-index: 3; /* Ensure it is on top */
    transform: scale(2); /* Increase size by scaling on desktop */
    transform-origin: center center; /* Ensure scaling happens from the center */
}

/* Strobe effect for the GIF */
@keyframes strobe {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Media query for larger desktop screens */
@media (min-width: 1024px) {
    .centered-gif {
        transform: scale(2); /* Further increase GIF size on large screens */
    }
}

/* Media query for smaller screens (mobile) */
@media (max-width: 768px) {
    .centered-gif {
        max-width: 70%; /* Smaller GIF on mobile */
        height: auto;
        transform: scale(1.7); /* Increase the scale slightly on mobile */
    }
}

/* Media query for very small screens (extra mobile) */
@media (max-width: 480px) {
    .centered-gif {
        max-width: 60%; /* Even smaller on very small screens */
        height: auto;
        transform: scale(1.8); /* Make the GIF a bit larger on smaller devices */
    }
}


