/* Center content container */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom right, #2b003a, #361062, #412b80);
    position: relative;
    font-family: 'Nunito', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Ensure column layout for small screens */
    text-align: center; /* Align text in the center for responsiveness */
}
/* Logo positioning */
.logo {
    position: absolute;
    top: 30px;   /* Distance from the top of the screen */
    left: 40px;  /* Distance from the left of the screen */
    width: 50px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    z-index: 10;  /* Ensure it's on top of other elements */
}

/* Falling stars with gradient */
.star {
    position: absolute;
    width: 3px;
    height: 50px; /* Adjust height to create the tail effect */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    animation: fall 2.5s linear infinite;
    opacity: 0.3; /* Add some opacity for a subtle effect */
}

@keyframes fall {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-100vw, 100vh) rotate(45deg);
        opacity: 0;
    }
}

/* Generate random stars with varying delays */
.star:nth-child(1) {
    top: -100px;
    right: 0;
    animation-delay: 0s;
}
.star:nth-child(2) {
    top: -150px;
    right: 10%;
    animation-delay: 1s;
}
.star:nth-child(3) {
    top: -200px;
    right: 20%;
    animation-delay: 2s;
}
.star:nth-child(4) {
    top: -250px;
    right: 30%;
    animation-delay: 3s;
}
.star:nth-child(5) {
    top: -300px;
    right: 40%;
    animation-delay: 0.5s;
}
.star:nth-child(6) {
    bottom: 20px;
    right: 0%;
    top: 20px;
    animation-delay: 0.5s;
}
.about-us-section h1 {
    font-size: 36px;
    font-weight: 800; /* Makes the header bold */
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Adds subtle depth to the text */
    /* fidn out the font family for dejavu sans */
    font-family: 'Dejavu sans', sans-serif; /* Uses a display font for the title */
    color:#ff69b4
}

/* Center content container */
.about-us-section {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white box */
    border-radius: 20px;
    padding: 30px 40px; /* Adds space inside the box */
    max-width: 1000px; /* Limits the width for better readability */
    min-width: 80%;
    margin: 10px auto; /* Centers the section */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    backdrop-filter: blur(10px); /* Adds a frosted glass effect */
    color: white; /* Ensures text is readable */
    text-align: center; /* Aligns text to the center */
    font-family: 'Nunito', sans-serif;
}

/* Logo Container with Larger Logo and Centering */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px; /* Increases space between logo and icons */
    position: relative;
    z-index: 5; /* Ensures it stays above other elements */
}

/* Larger Logo with Pulsing Effect */
.logo-shining {
    width: 150px; /* Larger size for better visibility */
    max-width: 250px; /* Maximum width to prevent excessive scaling */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    animation: pulse 2.5s infinite alternate; /* Adjust pulse speed */
    transition: transform 0.3s ease-in-out;
}

.logo-shining:hover {
    transform: scale(1.1); /* Slight enlargement on hover */
}

.contact-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
}

.contact-icons .icon {
    font-size: 40px;
    color: white;
    transition: transform 0.3s, color 0.3s;
}

.contact-icons .icon:hover {
    transform: scale(1.1);
    color: #ff69b4;
}
/* Digital Flickering Entrance Animation */
@keyframes glitch {
    0% {
        opacity: 0;
        transform: translateY(-30px) skewX(-10deg);
    }
    20% {
        opacity: 1;
        transform: translateY(0) skewX(0deg);
    }
    40% {
        opacity: 0.6;
        transform: translateY(10px) skewX(5deg);
    }
    60% {
        opacity: 1;
        transform: translateY(0) skewX(0deg);
    }
    80% {
        opacity: 0.8;
        transform: translateY(-10px) skewX(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) skewX(0deg);
    }
}
.hidden {
    display: none;
    opacity: 0;
}

.about-us-section.show {
    display: block;
    opacity: 1;
    /* animation: vhsTurnOn 1s ease-out forwards; */
}

@keyframes vhsTurnOn {
    0% {
        opacity: 0;
        transform: scaleY(0.9) skewX(10deg);
    }
    20% {
        opacity: 0.5;
        transform: scaleY(1.05) skewX(-5deg);
    }
    40% {
        opacity: 0.7;
        transform: scaleY(0.95) skewX(5deg);
    }
    60% {
        opacity: 0.9;
        transform: scaleY(1.02) skewX(-3deg);
    }
    80% {
        opacity: 1;
        transform: scaleY(1) skewX(0deg);
    }
    100% {
        opacity: 1;
        transform: scaleY(1) skewX(0deg);
    }
}

/* Buttons container */
.buttons-container {
    display: grid;
    grid-template-columns: repeat(3, auto); /* 3 buttons per row */
    gap: 15px; /* Spacing between buttons */
    justify-content: center; /* Center the buttons in the container */
    align-items: center;
}


.button {
    padding: 18px 60px;
    font-size: 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

.how-to-play {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.how-to-play:hover {
    background-color: white;
    color: #2b003a; /* Adjust to match the overall theme */
    transform: scale(1.05); /* Slightly enlarges on hover */
}

/* Event Cards Container */
.event-cards-container {
    display: flex;               /* Align children (event cards) in a row */
    gap: 20px;                   /* Space between the cards */
    justify-content: center;     /* Center the cards horizontally */
    flex-wrap: wrap;             /* Allows wrapping to the next line if necessary */
}

/* Event Card */
.event-card {
    width: calc(50% - 10px);     /* Takes up 50% of the container, minus half the gap */
    margin: 10px 0;              /* Adds margin to the top and bottom of the cards */
    background-color: #654279;            /* Set a background for the event card */
    padding: 20px;               /* Add padding inside the card */
    border-radius: 8px;          /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow to card */
    color: #e4d5f1;
}
.event-card:hover {
    background-color: #603f72;
}

/* Responsive design: On small screens, stack cards */
@media screen and (max-width: 768px) {
    .event-card {
        width: 100%;  /* Cards take up 100% of the width on small screens */
    }
}

/* Event Title */
.event-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Event Image */
.event-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Event Details */
.event-details {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 600;
}

/* General button styles */
.sign-up-button {
    display: inline-block;
    margin-top: 10px; /* Space above the button */
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #ff69b4; /* Button color */
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.2s, background-color 0.3s;
}

/* Hover effect for buttons */
.sign-up-button:hover {
    background-color: #e75480; /* Slightly darker pink */
    transform: scale(1.05); /* Slight zoom effect */
}







/* carousel styles */

.carousel-card-wrapper {
    position: relative;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: 10px solid #654279; 
    background-color: #654279;
    margin: 30px 0px; 
    max-width: 1000px; 
}
.clickable-carousel-card-wrapper:hover {
    background-color: #603f72;
    border: 10px solid #603f72; 
}
.carousel-card-wrapper h3 {
    color: #e4d5f1; 
}
.carousel-card-wrapper a {
    color: #e4d5f1; 
}
.carousel-card-wrapper p {
    color: #e4d5f1; 
    height: 60px; 
}


.carousel-card {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    
}


.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.carousel-item img {
    width: 100%;
    object-fit: cover;
    transition: filter 0.3s ease-in-out;
}
.carousel-card:hover .carousel-item img {
    filter: brightness(70%);
}



.carousel-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.carousel-card:hover .carousel-text {
    opacity: 1;
}




.carousel-buttons {
    position: absolute;
    width: 100%; 
    height: fit-content; 
    top: calc(50% - 15px);
    z-index: 3;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 50%;
}
.carousel-card:hover .carousel-btn {
    opacity: 1;
}
.left-btn {
    left: 10px;
}
.right-btn {
    right: 10px;
}



@media (max-width: 600px) {
    .carousel-card-wrapper {
        position: relative;
        max-width: calc(100% - 120px) !important;
        overflow: hidden;
    }
    .carousel-card-wrapper h3 {
        height: 50px; 
    }
    .carousel-card-wrapper p {
        height: 80px; 
    }
}




.event-card p a {
    display: inline-block;
    margin-top: 10px; /* Space above the button */
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}
