@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
:root {
    --Red: #ed1c24;
    --Green: #00a14b;
    --Blue: #1c75bc;
    --Yellow: #ffde17;
    --icyBlue: #8cd4ff;
    --lightIcyBlue: #c6efff;
    --Background-Color: white;
    --font-color: #3b2f2f;
}

html, body {
    font-family: 'Cambria', serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--Background-Color);
    color: var(--font-color);
}

.btn-success {
    background-color: #2e7d32; 
    border-color: #2e7d32;
}
a, .btn-link {
    
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
   
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    transition: background-color 0.3s ease-in-out;
}
    .btn-primary:hover {
        background-color: #155a8a; 
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}



h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4M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zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/*-------------------------------
    Hero section styling
  -------------------------------*/
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("imgs/Images/Hero-Image.png") center no-repeat;
    background-size: cover;
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    border-bottom: 3px solid var(--Green);
}
    .hero-section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
.hero-text {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding: 2rem;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInDown 1.5s ease;
    color: white;
}
    .hero-text h1 {
        font-family: "bounce-script", cursive;
        color: white;
        line-height: 1.2;
        letter-spacing: 0.5px;
        font-size: 6.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    .hero-text p {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.contact-banner, .apply-banner, .parking-banner, .activites-banner {
    background-size: cover;
    height: 40vh;
    width: 100%;
    display: flex;
    background-position: center;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid var(--Green);
    box-shadow: inset 0 -4px 20px rgba(0, 0, 0, 0.1);
}
.contact-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("imgs/Images/20241203_CityofMidland_ChristmasTreeLighting_139.JPG") no-repeat center;
    background-position: center 30%;
}
.apply-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("imgs/Images/20241203_CityofMidland_ChristmasTreeLighting_037.JPG") no-repeat center;
    background-position: center 50%;
}
.parking-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("imgs/Images/20241203_CityofMidland_ChristmasTreeLighting_052.JPG") no-repeat center;
}
.activites-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url("imgs/Images/20241203_CityofMidland_ChristmasTreeLighting_060.JPG") no-repeat center;
    background-position: center 43%;
}

/*-------------------------------
    Buttons styling
  -------------------------------*/
.hero-btn, .activity-btn {
    background-color: var(--Green) !important;
    border: none;
    color: white !important;
    padding: 12px 24px;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    margin: 1rem;
}
    .hero-btn:hover,
    .activity-btn:hover {
        color: white !important;
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    .hero-btn:focus, .activity-btn:focus {
        outline: 3px solid white;
        outline-offset: 3px;
        box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.6);
    }

/*-------------------------------
    Header styling
  -------------------------------*/
.header-box {
    text-align: center;
    margin-top: 30px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-family: "bounce-script", cursive;
}
    .header-box h2 {
        font-size: 6rem;
        line-height: 1.2;
        letter-spacing: 0.5px;
        font-weight: 600;
        color: var(--Red);
        text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
        letter-spacing: 1px;
    }
.decorative-underline {
    width: 100px;
    border-top: 3px solid var(--Green);
    margin: 0.5rem auto 2rem;
}
/*-------------------------------
    Section Styling
  -------------------------------*/
section.container {

    margin-bottom: 60px;
}
.info-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
}
    .info-section img {
        height: auto;
        width: 80%;
        border-radius: 5px;
    }
    .info-section h2 {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--Green) !important;
        margin-bottom: 1rem;
    }
    .info-section p, .info-section li {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: center;
    padding: 0 2rem;
}

.sponsor-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    padding: 10px;
}
    .sponsor-logo img {
        max-height:110px;
    }
.sponsor-logo {
    transition: transform 0.3s ease;
}

    .sponsor-logo:hover {
        transform: scale(1.05);
    }

@media (max-width: 992px) {
    .sponsor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-text h1 {
        font-size: 5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
    .info-section p, .info-section li {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .sponsor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-text h1 {
        font-size: 3rem;
        line-height: 1.1;
    }
    .hero-section {
        padding: 2rem 1rem;
    }
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    .sponsor-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-text p {
        font-size: 0.9rem;
    }
    .info-section p, .info-section li {
        font-size: 0.8rem;
        line-height: 1;
    }
}

/*-------------------------------
    Snowflakes Styling
  -------------------------------*/
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    animation: fadeOut 10s forwards;
}

    .snowflakes i {
        position: absolute;
        top: -10%;
        color: var(--lightIcyBlue);
        opacity: 0.8;
        animation: snow 10s linear infinite;
    }

        .snowflakes i:nth-child(1) {
            left: 10%;
            animation-duration: 12s;
            font-size: 1.5rem;
        }

        .snowflakes i:nth-child(2) {
            left: 25%;
            animation-duration: 10s;
            font-size: 2rem;
        }

        .snowflakes i:nth-child(3) {
            left: 50%;
            animation-duration: 8s;
            font-size: 1.2rem;
        }

        .snowflakes i:nth-child(4) {
            left: 70%;
            animation-duration: 11s;
            font-size: 1.8rem;
        }

        .snowflakes i:nth-child(5) {
            left: 85%;
            animation-duration: 9s;
            font-size: 1.6rem;
        }

@keyframes snow {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100vh);
    }
}
@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}
/*-------------------------------
    Stars Styling
  -------------------------------*/
.warm-star {
    color: var(--Yellow) !important;
}
.section-divider {
    line-height: 2rem;
    padding: 10px 0;
}
    .section-divider i {
        color: var(--Yellow);
        font-size: 20px;
        opacity: 0.7;
        animation: twinkle 2s ease-in-out infinite alternate;
    }

@keyframes twinkle {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}
/*-------------------------------
    Holiday Contact Form Styling
  -------------------------------*/
.holiday-form {
    background-color: #f4f4f4; 
    border: 2px solid var(--Green);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.1);
}

    .holiday-form label {
        font-weight: bold;
        color: var(--Red);
    }

    .holiday-form .form-control {
        border-radius: 10px;
        border: 1px solid #ccc;
    }

    .holiday-form .btn-primary {
        background-color: #b22222;
        border: none;
        border-radius: 12px;
        padding: 10px 20px;
        font-weight: bold;
        transition: background-color 0.3s;
    }

        .holiday-form .btn-primary:hover {
            background-color: #8b0000;
        }

.alert-success, .alert-danger {
    text-align: center;
    font-weight: bold;
    border-radius: 10px;
}


/*-------------------------------
    Image/ Gallery Styling
  -------------------------------*/
.festive-image-container img {
    width: 100%; 
    max-width: 600px;
    height: auto;
    border-radius: 10px;
}
.image-popup-overlay {
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    cursor: pointer;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1050;
    background: #00000033;
}
    .image-popup-overlay > img {
        transition: none !important;
        transform: none !important;
        width: 75%;
        max-width: 800px;
        object-fit: contain;
    }


@media (max-width: 768px) {
    .custom-carousel-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    #carouselExample {
        max-height: 50vh;
    }
}

.gallery-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    .gallery-img:hover,
    .gallery-img:focus {
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(0,0,0,0.3);
        outline: none;
    }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

}

.resource-card {
    width: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 5px;
    padding: 15px;
}

    .resource-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .resource-card .card-title {
        color: var(--Green);
        font-weight: bold;
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
    }

    .resource-card .card-text {
        color: var(--font-color);
        font-size: 1rem;
    }