/*Global styles*/
@font-face {
    font-family: varela;
    src: url("/static/Varela.woff2");
}
body{
    position: absolute;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0;
    font-family: varela;
    font-size: 1.2em;
}
.logo{
    position: absolute;
    margin-right:0.5em; 
    display:flex; 
    align-items:center;
}
.logo:hover .logo-img{
    background-image: url('/static/menu_hover.svg');
}
.logo-lnk{
    color:#000000; 
    display: none;
    opacity: 0;
    transition: opacity 0s;
}
.logo-img{
    transition-duration: 0.5s;
    width: 1.8em;
    height: 1.8em;
    margin: 0.6em;
    background-size: cover;
    background-image: url('/static/menu.svg');
}

/*Menu styles*/
nav{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 3em;
    height: 100%;
    transition: width 1s, background-color 1s;
    font-weight: bold;
    font-variant: small-caps;
    background-color: #8a63ff;    
}
nav:hover{
    width: 10.5em;
    background-color: #ff9c63;
}
nav:hover .menu{
    display: block;
}
nav:hover .logo-lnk{
    display: block;
    transition: opacity 1s ease-in 0.3s;
    opacity: 1;
}
nav a:hover{
    color: #FFFFFF;
}
.menu{
    display: none;
    list-style: none;
    padding: 0 1em;
    margin-top: 2.5em;
    overflow: hidden;
}
.menu-hdr {
    color: #000000;
}
.menu-grp {
    list-style: none;
    padding: 0.5em 0 0 1em;
    color: #000000;
}
.menu-grp li{
    padding: 0.5em 0;
}
.menu-itm{
    padding:0.5em 0;     
}
.menu-itm:not(:last-child) { 
    border-bottom: 3px dotted #000000; 
}
.menu-elm{
    color: #000000;  
}

/*messages styles*/
.msg-main{
    position:fixed; 
    top:1em; 
    right:0; 
    width:12em; 
    height:auto;
}
.msg-icon{
    position:fixed;
    right: 0;
    top: 0;
    width:1em; 
    height:1em; 
    transition-duration: 0.5s;
    background-repeat:round; 
    background-image:url('/static/bell_normal.svg');
}
.msg-main:hover #msg-box{
    display:block;
}
#msg-box{
    display:none; 
    background-color:lightgray; 
    color:#8a63ff; 
    border-radius: 1em 0 1em 1em;
}
.msg-text{
    user-select: none;
    display: block;
    background-color: white;
    border-radius: 1em;
    margin: 0.1em;
}

/*Link styles*/
a{
    cursor:pointer;
    text-align: left;
	transition: color 0.5s;
	text-decoration: none;
    color: #8a63ff;
}
a:hover{
    color: #ff9c63;
}

/*Main Content Style*/
main{
    text-align: center;
    position: absolute;
    z-index: 0;
    left: 4em;
    bottom: 1em;
    width: calc(100% - 5em);
    height: calc(100% - 2em);
    color: black;
}

/*Mobile phone*/
@media only screen and (max-width: 749px){
    .flexCont{
        text-align: left;
		padding: 1%;
        margin: 1%;
        display: flex;
        flex-flow: row wrap;
        align-items: start;
    }
    .boxFlex, .boxFlexS, .boxFlexL{
        width: 100%;
		flex-basis: 100%;
        margin: 0.5em 2%;
	}
}
/*Tablet*/
@media only screen and (min-width: 750px) and (max-width: 999px){
    .flexCont{
        text-align: left;
		padding: 2%;
        margin: 2%;
        display: flex;
        flex-flow: row wrap;
        align-items: start;
    }
    .boxFlex{
        width: 100%;
		flex-basis: 100%;
        margin: 0.5em 2%;
	}
	.boxFlexS{
        width: 100%;
        flex-basis: 20%;
        margin: 0.5em 2%;
    }
    .boxFlexL{
        width: 100%;
        flex-basis: 72%;
        margin: 0.5em 2%;
    }
}
/*Desktop*/
@media only screen and (min-width: 1000px){
    .flexCont{
        text-align: right;
		padding: 2%;
        margin: 2%;
        display: flex;
        flex-flow: row wrap;
        align-items: start;
    }
    .boxFlex{
        width: 100%;
		flex-basis: 45%;
        margin: 0.5em 2%;
	}
	.boxFlexS{
        width: 100%;
        flex-basis: 29%;
        margin: 0.5em 2%;
    }
    .boxFlexL{
        width: 100%;
        flex-basis: 58%;
        margin: 0.5em 2%;
    }
}

/*Input elements*/
select{
    text-align-last: center;
}
.inputText {
    overflow: hidden;
    text-align: center;
}
.inputElem{
    width: 100%;
    overflow-y: auto;
    color: grey;
    background-color: #607d8b26;
    border-radius: 0.5em;
    border-style: dotted;
    border-color: #804e17;
    border-width: thin;
    font-family: varela;
    font-size: 100%;
}
.normalButton {
    color: #000000;
    background-color: #8a63ff;
    font-size: 100%;
    border: none;
    transition: background-color 0.5s, color 0.5s;
    border-radius: 0.5em;
    font-family: varela;
    cursor: pointer;
    border-style: dotted;
    border-width: thin;
}
.normalButton:hover {
    color: #FFFFFF;
    background-color: #ff9c63;
}
.normalButton:disabled {
    background-color: #ccc;
}

/*Flash messages*/
.flash{    
    text-align: center;
    box-shadow: 5px 5px 5px lightgrey;
    border-radius: 1em;
    margin: 1em;
    padding: 0.5em;
    background-color: #ffea63;
}
.flash-X{
    text-decoration: none;
    color: firebrick;
    margin-right: 1em;
    float: right;
}

/*Table style*/
table{
    width: 100%;
    table-layout: auto;
}
th{
    background-color: #ffc10740;
}
tr:nth-child(even) {
    background-color: #607d8b26;
}

/*Checkbox style*/
input[type=checkbox]{
    display:none;
}
input[type=checkbox] + span{
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-left: 0.3em;
	margin-right: 0.3em;
	background-image: url("/static/checkbox.svg");
	background-size: cover;
	cursor: pointer;
	font-size: inherit;
}
input[type=checkbox]:hover + span{
	background-image: url("/static/checkbox_hover.svg");
}
input[type=checkbox]:checked:hover + span{
	background-image: url("/static/checkbox_checked_hover.svg");
}
input[type=checkbox]:checked + span{
	background-image: url("/static/checkbox_checked.svg");
}
input[type=checkbox]:disabled + span{
    background-color: #f2dce4;
	cursor: default;
}
