﻿/* Calendar Container */
.calendar-wrapper {
    display: flex;
    justify-content: space-between; /* Ensures proper spacing */
    align-items: flex-start;
    margin: 30px auto;
    gap: 20px; /* Adds spacing between calendar and Twitter feed */
    background: #f5f5f5;
    padding: 20px;
}

/* Calendar Container */
.calendar-container {
    flex: 1; /* Takes up remaining space */
    background: white;
    padding: 20px;
    border-radius: 30px;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .calendar-header h2 {
        margin: 0;
        font-size: 1.8rem;
        color: #00509E;
    }

    .calendar-header button {
        background: #00509E;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 1rem;
        cursor: pointer;
        border-radius: 5px;
        transition: background 0.3s ease;
    }

        .calendar-header button:hover {
            background: #003366;
        }

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

/* Calendar Days */
.calendar-day {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    position: relative;
    min-height: 80px; /* Ensures consistent height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Event Styling */
.event {
    display: inline-block;
    margin-top: 5px;
    padding: 6px 10px;
    background: #00509E;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    text-align: center;
    width: 90%;
}

    .event:hover {
        background: #003366;
        transform: scale(1.05);
    }

/* Empty Days (For alignment) */
.empty {
    background: transparent;
    visibility: hidden;
}

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

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-close {
    background: #00509E;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

    .modal-close:hover {
        background: #003366;
    }


.twitter-feed-overlay {
    flex-basis: 280px; /* Fixed width */
    height: 400px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

    /* Adjusting Twitter embed */
    .twitter-feed-overlay .twitter-timeline {
        width: 100% !important;
        height: 100% !important;
        border-radius: 10px;
    }

/* Event Details Section */
.event-details {
    position: relative;
    bottom: 0;
    left: 0;
    width: 280px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Initially hidden */
.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* When active */
.event-details.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Event Link */
.event-link {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #00509E;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background 0.3s ease;
}

    .event-link:hover {
        background: #003366;
    }