body, div, table, tr, td, th, h1, h2, h3, a, span, p, pre, fieldset, input, textarea, form, img, select, button
{
  font-family       : "Calibri", "Verdana", "sans-serif";
  font-size         : 20px;
  font-weight       : normal;
  padding           : 0px;
  margin            : 0px;
  /*color             : #FFF;*/
}

a{
    color: white;
}

/* init */
html{
    height: 100%
}
body
{
  background-color  : rgb(218,217,228);
  overflow          : hidden;
  height            : 100%;
  display           : flex;
  flex-direction    : column; 
}


/* HEADER */

header
{
    background-color: rgb(127, 90, 181);
    padding: 10px;
    color: white;
    box-shadow: 0px 0px 5px #000;
}

#header-text
{
    margin: 10px;
}

#header-content h1
{
    font-size: 1.3em;
    font-weight: bold;
}

#header-content > div
{
    display: inline-block;
}

#header-button
{
    position: absolute;
    top: 20px;
    right: 10px;
}

/* MAIN DIV */


div.tab
{
    height            : 100%;
    position          : relative;
    overflow          : hidden;
    margin            : 10px;
    display           : flex;
    flex-flow         : row wrap;
}

div.jour
{
    flex: 2;
    margin : 10px;
    background: rgb(206,205,209);
}

div.eventsContainer{
    position: relative;
    display: flex;
    height: 100%;
}

.dateJour
{
    background-color: rgb(127, 90, 181);
    color: white;
    padding: 10px;
    font-size: 0.8em;
}

div.ev
{
    box-sizing      : border-box;
    position        : absolute;
    border          : solid black 1px;;
    width           : 100%;
    text-align      : center;
    background      : white;
    padding-left    : 40px;
    padding-right   : 40px;

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}


.ev .start, .ev .end{
    position: absolute;
    left: 1px;
    font-style: oblique;
    font-size: 0.8em;
}
.ev .start{
    top: 0px;

}
.ev .end{
    bottom: 0px;
}



/* Boutons */
button
{
    text-align: center;
    box-shadow: 1px 1px 0px silver;
    border: solid lightgray 1px;
    background-color: white;
}

button:active:enabled{
    box-shadow: 0 0 4px silver inset;
}

button:disabled
{
    cursor:not-allowed;
    opacity: 0.8;
}

/* Display of lesson */

.ev .title{
    color : #5916BA;
    font-weight: bold;
}

@media screen and (max-height : 1000px){
    header{padding: 0;}
    #header-text{ margin: 5px 10px; }
    #header-content h1
    {
        font-size: 1em;
        font-weight: bold;
    }
    div.tab{ margin : 0px; }
    div.jour { margin : 5px; }
    .dateJour { font-size: 0.9em;}

}



/* ----------------------------------- */

/* Menu*/
div.menu ul
{
    display         : inline-block;
    vertical-align  : middle;
    list-style-type : none;
    margin-left: 5px;
    margin-right: 5px;
    padding: 0;
}

/* div.menu li{
    padding-left : 4px;
} */

div.menu a{
    color: black;   
}

div.menu table{
    margin: auto;
    margin-top: 10px;
    height: 100%;
}


div.menu tr:first-child{
    background-color: rgb(127, 90, 181);
}
div.menu tr:first-child th{
    background-color: rgb(127, 90, 181);
    color: white;
}

div.menu tr:last-child{
    background-color: rgb(206,205,209);
}

@media screen and (max-height : 1660px){
    div.menu li a{
        font-size : 0.8em;
    }

}