section.wrapper{
    display: flex;
    width: 100%;

    height: 100%;
}

section.month-selector{
    width: 175px;
    box-sizing: border-box;
    margin: var(--margin-top) 5% 40% 0;
    height: 250px;
    background-color: var(--accent-color-gray);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0 ;
    display:flex;
    flex-flow: column nowrap;
    justify-content: space-around;
}



input{
    margin: 0 var(--margin-md)  ;
}

section.month-selector label.selected  {
    color: black;
    position: relative;
    cursor: inherit;
    /* outline: 20px  solid black; */
}
.month-selector label:hover:hover:not(label.selected){
    background-color: var(--accent-color);
    color: base;
}

/* .month-selector :not(label.selected){
    color: var(black);
} */

/* .month-selector input[type="radio"]{
    visibility: hidden;
    margin: 0 var(--margin-sm);
}
.month-selector input[type="radio"][checked]{
    visibility: visible;
} */


section label{
    display: inline-block;
    box-sizing: border-box;
    padding: var(--padding-sm);
    width: 100%;
    
}

/* Main calendar section from this point */

section.calendar{
    flex-grow: 1;
    display:flex;
    flex-direction: column;
    width: 60%
}

table caption{
    text-align: left;
    text-transform: uppercase;
    line-height: var(--margin-top);
    font-size: large;
    font-weight:bolder;
    width: 100%;
}

table.calendar-wrapper{
    flex-grow: 5;
}
/* table head */
thead{
    color: var(--accent-color);
}
th{
    text-align: left;    
}

tr{
    height: 14.28%;
}


/* table cells */
.calendar .calendar-wrapper tbody tr> td{
    position: relative;

    vertical-align: bottom;
    width:14.28%;
    padding-bottom:3px;
}

section.legend{
    flex-grow: 1;
    width:100%;
    display: flex;
    flex-direction: column;
    /* margin: 15% 0 0 0; */
}

/* Legend */
.legend h2{
    line-height: 35px;
    font-size: medium;
}

ul{
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--accent-color-gray);
    border-radius: var(--border-radius-md);
    width: 90%;
    height: 50px;
    padding: 0 calc(var(--padding-lg) + 55px)  0 var(--padding-md);
    
}
 ul > li{
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    height:55%;
}

li > span {
    margin: 0 5px 0 0 ;
    width:25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;    
    color: black;
    
}

/* legend decorations */
span.quiz{
    background-color: var(--accent-color);
    color:white;
    border-radius: 50%;
}

/* The dot decor */
span.lab::after{
    position: absolute;
    content:"";
    background: var(--accent-color);
    display: inline-block;
    height: 4px;
    width: 4px;
    left: 12px;
    border-radius: 50%;
    bottom: 0;
}

.homework > span{
    border: 3px var(--accent-color) solid;
    border-radius: 30%;
}



.office-hours > span::after{
    
    position: absolute;
    content:"";
    background: var(--accent-color);
    height: 2px;
    width: 20px;
    left: 3px;
    bottom: 0px;
}

 
/* decor in the calendars */
/* circle */
/* 
tr:nth-child(5) > td:nth-child(3)::after{
    position: absolute;
    content:"";
    background: var(--accent-color);
    display: inline-block;
    height: 4px;
    left: 8px;
    bottom:0px;
    width: 4px;
    border-radius: 50%;
    bottom: 0;
} */


/* margin bottom */
/* 
tr:nth-child(3) > :nth-child(7)::after, tr:nth-child(4) > :nth-child(3)::after{
    position: absolute;
    content:"";
    background: var(--accent-color);
    display: inline-block;
    height: 2px;
    width: 20px;
    left: 0px;
    bottom: 0px;
}
 */

/* Gray fonts */
label, tbody>tr :nth-child(1), tbody>tr :nth-child(7)
, ul > li{
    color: var(--accent-color-gray-font);
}

