#calendar-container {
    /*    max-width: 800px;

*/
    margin: auto;
    overflow: auto;
    padding: 20px 20px 100px 20px;
    background: #ced4da;
    /*    border-radius: 10px;
*/ box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
    /* Media query for screens less than or equal to 400px */
    #calendar-container::-webkit-scrollbar {
        display: none;
    }

/* Calendar Table */
#calendar {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: Arial, sans-serif;
    color: black;
}

    #calendar th {
        width: 80px;
        background: #2d5581;
        color: white;
        padding: 10px;
        border: 1px solid #ddd
    }

    #calendar td {
        width: 80px;
        height: 100px;
        border: 1px solid #ddd;
        vertical-align: top;
        position: relative;
        /*        cursor: pointer;
*/
    }

.calendar-date:hover {
    background: #fff;
}

.date-number {
    font-weight: bold;
    margin: 5px;
}

.events-container {
    margin-top: 10px;
}

.event-item {
    background: #4CAF50;
    color: white;
    padding: 5px;
    border-radius: 3px;
    margin: 3px 0;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}
.event-item1 {
    background: #6b90fd;
    color: white;
    padding: 5px;
    border-radius: 3px;
    margin: 3px 0;
    font-size: 12px;
    display: flex;
    justify-content: start;
    align-items:center;
}

    .event-item:hover {
        cursor: pointer;
        
    }

    .event-item button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        margin-left: 5px;
        font-size: 10px;
    }

        .event-item button:hover {
            text-decoration: underline;
        }


    /* Color Styling for Events */
    .event-item[data-color="blue"] {
        background-color: #007bff;
        color: white;
        padding: 5px;
        border-radius: 5px;
    }

    .event-item[data-color="green"] {
        background-color: #28a745;
        color: white;
        padding: 5px;
        border-radius: 5px;
    }

    .event-item[data-color="red"] {
        background-color: #dc3545;
        color: white;
        padding: 5px;
        border-radius: 5px;
    }

    .event-item[data-color="yellow"] {
        background-color: #ffc107;
        color: white;
        padding: 5px;
        border-radius: 5px;
    }

.calendarButton {
    all: revert;
    background-color: transparent;
    border: 0;
    font-weight: bolder;
    font-size: 25px;
    margin-top: 2px;
}


.calendarSelect {
    background-color: #2d5581;
    color: white;
    height: auto;
    width: auto;
    border: 2px solid black;
    cursor: pointer;
    border-radius: 5px;
}

.addEvent {
    background-color: #2d5581;
    color: white;
    height: auto;
    width: auto;
    border: 2px solid black;
    cursor: pointer;
    border-radius: 5px;
    padding: 2px;
}

.EventPopup {
    display: none;
    width: 86vw;
    text-wrap: auto;
    min-width: 88vw !important;
    position: fixed;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: larger;
    height: auto;
    padding: 10px;
    background: #2d5581;
    color: white;
    border: 2px solid green;
    border-radius: 12px;

}
 

#calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


 
@media only screen and (max-width: 600px) {
    .EventTypeNamee {
        display: none;
    }

     
    .EventPopup {
        display: none;
        width: 99vw;
        text-wrap: wrap; 
        font-family: 'Times New Roman', Times, serif;
        border-radius: 12px;
    }
}



.EventDelete {
    display: none;
  
}

.EventUpdate {
    display:none;
    background-color: green;
    padding: 2px;
    font-size: smaller;
    border-radius: 3px;
}
.event-item{
    display: flex;
    justify-content:start;
    align-items:center ;
}



.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
    display: none; /* Initially hidden */
    z-index: 1; /* Behind the popup */
}

