#calendar_wrapper
{
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5em;
}

#table_wrapper
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#month_select
{
    width: 30em;
    
    display: flex;
    flex-direction: row;
    align-items: center;

    border-style: hidden hidden solid hidden;
    border-width: medium;
    border-color: #de0a2a;
}

.select_left_flag
{
}

.select_right_flag
{
    text-align: end;
}

/*the container must be positioned relative:*/
.custom_select
{
    width: 50%;
    position: relative;
    font-family: Fugner;
}

.custom_select select
{
    height: 100%;
    display: none; /*hide original SELECT element:*/
}

.select_selected
{
    padding: 0.4em 0.8em;
    color: black;
    font-family: Fugner;
    font-size: 2.2em;
    border: none;
    cursor: pointer;
    user-select: none;
}

.select_selected:hover
{
    background-color: #2d2e7c;
    color:white;
}

/*style the items (options), including the selected item:*/
.select_items div
{
    color: black;
    font-family: Tyrs;
    font-size: 1.8em;
    padding: 0.4em 0.8em;
    border: none;
    cursor: pointer;
    user-select: none;
}

/*style items (options):*/
.select_items
{
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
}

/*hide the items when the select box is closed:*/
.select_hide
{
    display: none;
}

.select_items div:hover
{
    background-color: #2d2e7c;
    color: white;
}

.events_list
{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event
{
    width: 30em;
    
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px 15px;
}

div.cal_div form 
{
    height: 15px;
    width: 15px;
    border: none;
    margin: 3px 0 0 2px;
    padding: 0 0 0 0;
}

div.cal_div form img 
{
    border: none;
    margin-top: -2px;
}

form.cal_form 
{
    background: none;
    border: none;
}

.calendar 
{
    padding: 0px;
    text-align: center;
    font-family: Tyrs;
    font-size: 16px;
    background: url(images/cal_back.gif) no-repeat bottom;
    border-collapse: collapse;
    background-color: #FFFFFF;
}

.calendar th 
{
    color: #000000;
    font-size: 10pt;
    /*border : none;*/
}

.calendar tr.tyden 
{
    font-weight: bolder;
    /*	background : url(images/cal_tyden.gif) no-repeat;*/
}

.calendar tr.mesic 
{
    /*height: 20px; */
    line-height: 20px;
    /*background : url(images/cal_mesic.gif) no-repeat;
background-color : #83ADCB;*/
}

.calendar td, .calendar tr, .calendar th 
{
    text-align: center;
    padding: 0px;
    height: 3.2em;
    width: 3.2em;
    border: none;
    line-height: 24px;
}

.calendar td.active 
{
    background-color: #de0a2a;
}

.calendar a 
{
    padding: 0px;
    text-decoration: none;
    line-height: 3.2em;
    color: white;
}

.calendar a:hover 
{
    background-color: #2d2e7c;
    color: white;
}

.calendar td.weekend 
{
    background-color: #EDEDED;
}

/* Mobile */
@media (max-aspect-ratio: 1/1)
{
    #calendar_wrapper
    {
        flex-direction: column;
    }
}