@font-face {
    font-family: 'mainfont';
    src: url('../fonts/main.ttf') format('truetype');
}

body {
    font-family: 'mainfont', Arial, sans-serif;
    color: #000000;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    height: auto; /* Allow page to expand vertically */
}

header {
    z-index: 10;
    position: relative;
}

section {
    position: relative; /* Ensure content is above the background animation */
    z-index: 2;
    min-height: 100vh; /* Ensures the content section covers the full viewport height */
}

.btn-primary {
    color: #fff;
    background-color: rgb(42, 91, 197);
    border-color: #2e8bbb;
}

.btn-primary:hover {
    color: #fff;
    background-color: #2e8bbb;
    border-color: #3a48c4;
}

.logo {
    width: 400px;
    max-width: 90%;
    margin: 30px 0;
}

.image-holder {
    border-radius: 5px;
    border: 1px solid #2359a0;
    margin-bottom: 30px;
}

#imageCanvas {
    max-width: 100%;
    border-radius: 5px;
    border: 1px solid #2e8bbb;
}

/* Background animation container */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Make sure the background doesn't interact with content */
    z-index: 1; /* Put it behind the content */
}

/* Star Styles */
.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #f7f318;
    border-radius: 50%;
    animation: twinkle 1.5s infinite alternate;
}

.star-1 {
    top: 10%;
    left: 20%;
    animation-duration: 2s;
}

.star-2 {
    top: 30%;
    left: 40%;
    animation-duration: 2.5s;
}

.star-3 {
    top: 50%;
    left: 60%;
    animation-duration: 3s;
}

.star-4 {
    top: 70%;
    left: 80%;
    animation-duration: 1.8s;
}

/* Moon Styles */
.moon {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-color: #ffcc00;
    border-radius: 50%;
    animation: moonMove 10s ease-in-out infinite;
}

/* Twinkle Animation */
@keyframes twinkle {
    0% {
        opacity: 0.2;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Moon Movement Animation */
@keyframes moonMove {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(50vw) rotate(180deg);
    }
    100% {
        transform: translateX(0) rotate(360deg);
    }
}