/* Reset body margins and padding */
body {
    margin: 0;
    padding: 0;
    font-family: "Outfit", serif;
    background-color: black;
    text-align: center;
    color: white;
    padding-top: 4rem;
    /* Ensures content starts below navbar */
    cursor: url('anchor.cur'), auto;
}
a:hover, button:hover {
    cursor: url('flag.cur'), pointer;
  }

/* Background */
.bg {
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    background: black;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Title Styling */
.title1 {
    margin: 30px;
    color: white;
    /* White inner text */
    text-shadow:
        0px 0px 5px red,
        /* Soft red glow */
        0px 0px 10px red,
        /* Medium red glow */
        0px 0px 15px red;
    /* Stronger red glow */
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 40px;

}

.title2 {
    color: white;
    /* White inner text */
    text-shadow:
        0px 0px 5px rgb(4, 171, 255),
        /* Soft red glow */
        0px 0px 10px rgb(4, 171, 255),
        /* Medium red glow */
        0px 0px 15px rgb(4, 171, 255);
    /* Stronger red glow */
    margin-top: 20px;
    /* Moves title below navbar */
    font-size: 40px;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    display: block;
}

/* Container for event cards */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
    /* Ensures cards are below the title */
}

/* Flip Card Styles */
.card {
    width: 200px;
    height: 300px;
    margin: 20px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0px 0px 10px gold, 0px 0px 15px purple;
    backface-visibility: hidden;
}

.card-front {
    background-size: cover;
}

.card-back {
    background-color: linear-gradient(180deg, purple, gold);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: center;
    color: white;
}

/* Responsive Fixes for Mobile */
@media screen and (max-width: 550px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
footer {
    /* background-color: ; */
    /* Black background */
    color: #fff;
    /* White text */
    text-align: center;
    padding: 20px;
    position: relative;
    width: 100%;
    bottom: 0;
}

/* Card Styling */
.card {
    width: 190px;
    height: 254px;
    position: relative;
    display: flex;
    place-content: center;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
}

/* Rotating Gradient Effect */
.card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(180deg, gold, purple);
    animation: rotBGimg 5s linear infinite;
    transition: all 0.2s linear;
}

@keyframes rotBGimg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Background Styling Inside Card */
.card::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 15px;

}

/* Hover Effect */
.card:hover::before {
    background-image: linear-gradient(180deg, purple, gold);
    animation: rotBGimg 3.5s linear infinite;
}

/* From Uiverse.io by Madflows */
.button {
    position: relative;
    overflow: hidden;
    height: 3rem;
    padding: 0 2rem;
    border-radius: 1.5rem;
    background-color: #FFD700;
    /* Gold color */
    background-size: 400%;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 3;
    /* Ensure button is on top */
    box-shadow: 0px 0px 10px #282728;
    /* Purple shadow */
    transition: all 0.3s ease;
    /* Optional: smooth transition for button effect */
}

.button:hover::before {
    transform: scaleX(1);
}

.button-content {
    position: relative;
    z-index: 1;
}

.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    width: 100%;
    height: inherit;
    border-radius: inherit;
        background: linear-gradient(to right, rgba(255, 224, 50, 0.785), #494b4d);

    transition: all 0.475s;
}

/* Card Back Styling */
.card-back {
    background-color: black;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    z-index: 1;
    /* Ensure content is behind the button */
    backface-visibility: hidden;
    /* Hide back when flipped */
}

/* Card Hover Effect */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    z-index: 1;
    /* Ensure it doesn't block button */
}

/* Rotate Card on Hover */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Card Styling */
.card {
    width: 200px;
    height: 300px;
    margin: 20px;
    perspective: 1000px;
    z-index: 2;
    /* Keep card below the button */
}

/* Hover Effect on Card */
.card:hover {
    box-shadow: 0px 0px 20px #FFD700;
    /* Gold shadow effect on card */
}