:root {
    --body-bgcolor: #cd5c5c;
    --header-bgcolor: #0000FF;
    --main-bgcolor: #ffffff;
    --footer-bgcolor: #006400;
    --x-light-blue: #e6f2ff;
    --light-gray: #d3d3d3;
    --white: #ffffff;
    --black: #333;
    --web-main-lr-padding: 75px;
    --mobile-main-lr-padding: 5px;
}

html,body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bgcolor);
    color: var(--black);
    margin: 0;
    padding: 0;
    width: fit-content;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
   
}

header{
background-color: var(--header-bgcolor);
}

footer {
    background-color: var(--footer-bgcolor);
}

header, footer {
    color: var(--white);
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

header .header-content-wrapper{
    display: flex;
    flex-direction: row;
}

footer .header-content-wrapper{
    display: flex;
    flex-direction: column;
}

header h1 {
    font-weight: 600;
    margin: 0;
}

header p {
    font-weight: 300;
    opacity: 0.9;
    margin-top: -8px;
    ;
}

header img {
    float: left;
    width: 50%;
    font-size: 8px;
}

header .section-logo {
    width: 15%;
}

header .section-initiative {
    width: 70%;
}

header .section-auth {
    width: 15%;
}

header .bg-clamped-color {
    /* position: absolute; */
    left: 5%;
    top: 0%;
    font-family: 'Pacifico', cursive;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    background: linear-gradient(90deg, #ff9933 0%, #fff 60%, #138808 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    flex-direction: column;
}

main {
    max-width: 1000px;
    margin: 20px auto;
    padding-left: var(--web-main-lr-padding);
    padding-right: var(--web-main-lr-padding);
    width: fit-content;
}

main .category {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

main .category h2 {
    color: var(--light-blue);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
    margin-top: 0;
}

main .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

main .card {
    flex: 1 1 200px;
    /* This makes the cards responsive */
    background-color: var(--x-light-blue);
    color: var(--light-blue);
    text-decoration: none;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--xx-light-blue);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

main .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 📱 Responsive design for smaller screens */
@media (max-width: 600px) {
    header h1 {
        font-size: 1em;
    }

    .card {
        flex: 1 1 100%;
        /* Stacks cards vertically on smaller screens */
    }

    main {
        padding-left: var(--mobile-main-lr-padding);
        padding-right: var(--mobile-main-lr-padding);
    }

    header img {
        width: 100%;
    }
}


main .divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: var(--dark-gray);
}

main .divider::before,
main .divider::after {
    content: '';
    position: absolute;
    width: 45%;
    height: 1px;
    background-color: var(--white);
    top: 50%;
}

main .divider::before {
    left: 0;
}

main .divider::after {
    right: 0;
}


main .others-category-heading {
    height: 40px !important;
    background-color: red !important;
    /* For browsers that do not support gradients */
    background-image: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet) !important;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-gray);
}

main .input-group {
    width: 100%;
}

main .input-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 16px;
}

main .submit-btn:hover {
    opacity: 1.5;
}

footer .footer-content-wrapper{
    margin:auto;
}

footer div.platform {
    color: lightgray;
    font-size: 15px;
    text-align: center;
}

footer div.platform a {
    color: white;
    text-decoration: none;
}
footer .social-links{
    text-align: center;
}
footer .social-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

footer .social-links a:hover {
    opacity: 1;
}

footer .today {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
}


/*              Confetti Trigger Action                  */

/* Container for the word that triggers the confetti */
.confetti-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 1;
}

/* The parent container for all confetti particles */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allows clicks to pass through */
    overflow: hidden;
    /* Hides confetti that falls off the screen */
    z-index: 9999;
}

/* Base style for a single confetti particle */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: transparent;
    transform: rotate(45deg);
    opacity: 0;
    will-change: transform, opacity;
}

/* Create different shapes and colors for the confetti */
.confetti.square {
    background-color: #ffc0cb;
    /* Pink */
}

.confetti.triangle {
    width: 0;
    height: 0;
    background-color: transparent;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #87ceeb;
    /* Light Blue */
    transform: rotate(0deg);
}

.confetti.circle {
    border-radius: 50%;
    background-color: #ffa500;
    /* Orange */
}

/* Animation keyframes */
@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), calc(-1 * var(--y))) rotate(var(--r)) scale(0.5);
        opacity: 0;
    }
}

/* Helper class to trigger the animation */
.confetti-active .confetti {
    animation: confetti-fall var(--duration) forwards;
    animation-timing-function: cubic-bezier(0.1, 1, 0.5, 1);
    /* A more "bouncy" effect */
}

/* Example of how to position and style each confetti piece */
/* You would generate these dynamically with JavaScript */
.confetti:nth-child(1) {
    --x: -200px;
    --y: 300px;
    --r: 720deg;
    --duration: 1.5s;
    top: 50%;
    left: 50%;
    background-color: #ffd700;
}

.confetti:nth-child(2) {
    --x: 150px;
    --y: 400px;
    --r: 540deg;
    --duration: 1.8s;
    top: 50%;
    left: 50%;
    background-color: #ff6347;
}

.confetti:nth-child(3) {
    --x: 100px;
    --y: 250px;
    --r: 360deg;
    --duration: 1.2s;
    top: 50%;
    left: 50%;
    background-color: #32cd32;
}

/* ... and so on for many confetti pieces */