﻿
/* Base Calendar Styling */
.aspNetCalendar {
    width: 250px; /* Adjust size as needed */
    background-color: white;
    border: 2px solid red;
    font-family: Arial, sans-serif;
    text-align: center;
}

    /* Header Styling (Month & Year Title) */
    .aspNetCalendar thead tr:nth-child(2) td {
        background-color: red;
        color: white;
        font-weight: bold;
        padding: 5px;
    }

    /* Day Name Headers (Sun, Mon, etc.) */
    .aspNetCalendar thead tr:nth-child(3) td {
        background-color: #ffcccc;
        color: black;
        font-weight: bold;
        padding: 5px;
    }

    /* Regular Days */
    .aspNetCalendar td {
        padding: 8px;
        border: 1px solid red;
        text-align: center;
    }

        /* Weekend (Saturday & Sunday) */
        .aspNetCalendar td[day="Saturday"],
        .aspNetCalendar td[day="Sunday"] {
            background-color: #ffeeee;
            color: red;
            font-weight: bold;
        }

        /* Hover Effect */
        .aspNetCalendar td:hover {
            background-color: aqua;
            cursor: pointer;
        }

    /* Selected Date */
    .aspNetCalendar .SelectedDay {
        background-color: red !important;
        color: white !important;
        font-weight: bold;
    }


/* Flexbox container */
.calendar-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between calendars */
    flex-wrap: wrap; /* Allows wrapping on small screens */
}

/* Individual calendar box */
.calendar-box {
    background: white;
    padding: 15px;
    border: 2px solid red;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 280px; /* Fixed width for consistency */
}

/* Ensure all calendars have the same width */
.aspNetCalendar {
    width: 100%;
}

/* Responsive: Stack calendars in 1 column on small screens */
@media (max-width: 768px) {
    .calendar-container {
        display: block; /* Force full width layout */
        text-align: center;
    }

    .calendar-box {
        width: 100%; /* Full width on small screens */
        max-width: 300px; /* Prevent excessive stretching */
        margin: 10px auto; /* Center alignment */
    }
}
