:root {
    --bg-color: #0B1E3B;
    --card-bg: #0f3524;
    --primary-red: #b31b1d;
    --accent-gold: #F4C430;
    --accent-green: #4CAF50;
    --accent-turquoise: #3fb8af;
    --text-white: #FFFFFF;
    --text-grey: #B0BEC5;
    --pill-bg: #1A2C4E;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Snowfall Effect */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: fall linear infinite;
    user-select: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Christmas Lights */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9998;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    animation: twinkle 1.5s infinite alternate;
}

.light.red {
    background-color: #ff0000;
    color: #ff0000;
    animation-delay: 0s;
}

.light.yellow {
    background-color: #ffff00;
    color: #ffff00;
    animation-delay: 0.3s;
}

.light.blue {
    background-color: #0080ff;
    color: #0080ff;
    animation-delay: 0.6s;
}

.light.green {
    background-color: #00ff00;
    color: #00ff00;
    animation-delay: 0.9s;
}

@keyframes twinkle {
    0% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
    padding-top: 4rem;
}

.script-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #4CAF50;
    margin: 0;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: -10px 0 1rem 0;
    color: var(--text-white);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 2rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 2.5rem;
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    justify-content: center;
}

/* Event Card */
.event-card {
    background-color: transparent;
    position: relative;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
}

/* Dashed Border Container */
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed var(--accent-gold);
    border-radius: 15px;
    pointer-events: none;
}

/* Corner Dots */
.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    z-index: 2;
}

.dot-tl {
    top: -6px;
    left: -6px;
    background-color: #4285F4;
}

.dot-tr {
    top: -6px;
    right: -6px;
    background-color: #EA4335;
}

.dot-bl {
    bottom: -6px;
    left: -6px;
    background-color: #FBBC05;
}

.dot-br {
    bottom: -6px;
    right: -6px;
    background-color: #34A853;
}

.card-image {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.02);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 0 0.5rem;
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #F8BBD0;
}

.description {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-icon {
    color: var(--accent-gold);
}

.category-icon i {
    font-size: 1.5rem;
}

/* Edit Button */
.edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(244, 196, 48, 0.9);
    color: var(--bg-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.edit-btn:hover {
    background-color: var(--accent-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.5);
}

.edit-btn i {
    font-size: 1.2rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

.lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.2s ease;
    z-index: 10001;
}

.lightbox .close-btn:hover {
    color: #f44336;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 2px solid var(--accent-gold);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-white);
}

.modal h2 {
    color: var(--accent-gold);
    margin-top: 0;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-grey);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #2a5a7e;
    background-color: #1A2C4E;
    color: white;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #8a1416;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .script-title {
        font-size: 2.5rem;
    }

    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}