﻿* {
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
}
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}


/**************************************************************************************************/
/************************ SITE BAR and everything contained in it. ********************************/
/**************************************************************************************************/
#site_bar {
    position: absolute;
    left: 0;
    top:0;
    width: 100vw;
    height: 12vh;
    background-color: #336699;
    border: none;
    z-index: 1000;
}
#site_menu_switch {
    position: absolute;
    top: 1vh;
    left: 1vh;
    height: 8vh;
    width: 8vh;
    background-image: url(/images/menu.png);
    background-size: 100% 100%;
    cursor: pointer;
}
#page_title {
    position: absolute;
    top: 1vh;
    left: 14vw;
    height: 8vh;
    width: calc(63vw);
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    cursor: pointer;
    font-size: calc(1vh + 2vw);
    letter-spacing: calc(0.1vh + 0.1vw);
    color: white;
}
#logo {
    position: absolute;
    top: 1.5vh;
    right: 1vh;
    height: 7vh;
    width:  calc(33vw - 6vh);
    background-image: url(/images/logo.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position-x: right;
}
#user_info {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width:  100%;
    border-top: solid 1px white;
    font-size: 1.5vh;
    color: white;
    padding-top: 0.5vh;
    padding-bottom: 0.5vh;
}
    #user_info > div:first-child {
        display: inline-block;
        width: 50%;
        left: 0;
        text-align: left;
        padding-left: 1vw;
    }
    #user_info > div:last-child {
        display: inline-block;
        width: 50%;
        right: 0;
        text-align: right;
        padding-right: 1vw;

    }
#log_action {
    display: inline-block;
}
a.user_info_link {
    color: white;
}
a.user_info_link:visited {
    color: white;
}
/**************************************************************************************************/



/**************************************************************************************************/
/************************* SITE MENU and everything contained in it. ******************************/
/**************************************************************************************************/
#site_menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
    left: -40vw;
    top:12vh;
    width: 35vw;
    height: 100vh;
    background-color: #333333;
    border: none;
    z-index: 999;
    transition: left 0.2s;
}
#site_menu_opaque {
    position: absolute;
    display: none;
    left: 0;
    top:12vh;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255,255,255,0.25);
    z-index: 998;
}
.site_menu_option {
    width: calc(100% - 2vh);
    height: calc(100% / 10 - 2vh);
    background-color: #333333;
    border-bottom: solid 1px #666666;
    color: #999999;
    margin-bottom: 1vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    cursor: pointer;
    font-size: 3vh;
}
.site_menu_option:first-child {
    margin-top: 1vh;
}
/**************************************************************************************************/

#div_security {
    position: absolute;
    top: 12vh;
    height: auto;
    width: 100vw;
    z-index: 100000;

    background-color: white;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-around;
    align-items: center;
    overflow-y: hidden;
}
#div_security>div {
    font-size: 3vh;
    margin-bottom: 5vw;
}
    #div_security > div > input {
        font-size: 5vh;
        text-align: center;
        width: 100%;
    }
    #div_security > button {
        font-size: 4vh;
        text-align: center;
        background-color: #336699;
        color: white;
        border-radius: calc(2vmin);
        border: solid 3px #999999;
        outline: none;
        cursor: pointer;
        padding-left: 3vw;
        padding-right: 3vw;
        padding-top: 1vh;
        padding-bottom: 1vh;
    }

#page_content{
    position: absolute;
    right: 0;
    top: 12vh;
    width: 100vw;
    height: 88vh;
    background-color: white;
    border: none;
    z-index: 997;
    transition: width 0.40s;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: space-between;
    align-items:center;
    overflow-y: scroll;

}

.div_staff_member_blank {
    flex-grow: 3;
    flex-shrink: 3;
    border-radius: calc(1vw + 1vh);
    background-color: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-around;
    align-items:center;
    flex-wrap:wrap;

    cursor: pointer;
    padding: calc(0.5vw + 0.5vh);
    margin: calc(0.5vw + 0.5vh);

    height: 19.5vh;
    width: 100%;

}
.div_staff_member {
    flex-grow: 3;
    flex-shrink: 3;
    border-radius: calc(1vw + 1vh);
    background-color: crimson;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-around;
    align-items:center;
    flex-wrap:wrap;

    cursor: pointer;
    padding: calc(0.5vw + 0.5vh);
    margin: calc(0.5vw + 0.5vh);

}
.div_staff_member_absent {
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: calc(1vw + 1vh);
    background-color: black;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-around;
    align-items:center;
    flex-wrap:wrap;

    cursor: pointer;

    overflow: hidden;
    text-wrap: normal;
    word-wrap: break-word;
    white-space: pre-wrap;
    padding: calc(0.5vw + 0.5vh);
    margin: calc(0.5vw + 0.5vh);
}
#refresh_button {
    position: absolute; 
    top: 1vh; 
    left: 1vh; 
    width: 20vw; 
    height: 6vh; 
    font-size: calc(1.25vh + 1.25vw); 
    z-index: 20000; 
    cursor: pointer; 
    border: solid 1px #ff6600; 
    background-color: orange;
    border-radius: calc(1vh + 1vw);
    outline: none;
    display: none;
}
#refresh_button:hover {
    background-color: #ffbb22;
}
#refresh_button:active {
    background-color: #ff9900;
}
#refresh_status {
    position: absolute; 
    top: 8vh; 
    left: 1vh; 
    width: 20vw; 
    height: 5vh; 
    font-size: calc(0.75vh + 0.75vw); 
    z-index: 20000; 
    outline: none;
    color: white;
    text-align: center;
    display: none;
}

@media all and (orientation:portrait) {
    #page_content {
        flex-direction: column;
        flex-wrap: no-wrap;
   }
    .div_staff_member {
        margin-top: 0.95vh;
        width: 75vw;
        min-height: 25vw;
        max-height: 35vw;
        padding-left: 2vh;
        padding-right: 2vh;
    }
    .div_staff_member_absent {
        margin-top: 0.95vh;
        width: 75vw;
        min-height: 5vh;
        max-height: 5vh;
        padding-left: 2vh;
        padding-right: 2vh;
    }
    .div_staff_member_name {
        color: white;
        font-size: 3vh;
    }

    #refresh_button {
        width: 26vw; 
        font-size: calc(1.25vh + 1.25vw); 
    }
    #refresh_status {
        width: 26vw; 
        font-size: calc(0.75vh + 0.75vw); 
    }

}
@media all and (orientation:landscape) {
     #page_content {
        flex-direction: row;
        flex-wrap: wrap;
    }
   .div_staff_member {
        margin-left: 0.95vw;
        max-width: 19vw;
        min-width: 18vw;
        min-height: 10vh;
        max-height: 20vh;
    }
   .div_staff_member_absent {
        margin-left: 0.95vw;
        max-width: 19vw;
        min-width: 18vw;
        min-height: 5vh;
        max-height: 5vh;
    }
    .div_staff_member_name {
        color: white;
        font-size: 1.5vw;
}
}

.div_checkbox > input {
    margin-top: 2vh;
    transform: scale(3);
}
