/*
    Default background and size of application.
    This size is optimized for Nexus 10.
*/
html{
    min-height: 846px;
    background-image: url("../images/body.jpg");
    padding-bottom: 20px;
}
/*
    Body settings - minimum width, margins and font setting.
*/
body{
    margin: 0 auto;
    padding: 0;
    min-width: 1440px;
    font-family: Arial, sans-serif;
}
/* Application header */
#header{
    /*
    background-color: gray;
    height: 120px;
    min-width: 1440px;
    background-image: url("../images/header.jpg");
    border-bottom: 1px solid darkslategray;
    */
    background-color: gray;
    height: 70px;
    margin-top: 20px;
    min-width: 1440px;
    background-image: url("../images/header.jpg");
    border-bottom: 1px solid darkslategray;
    border-top: 1px solid white;
}
/* Application branding */
#header-logo{
    float: left;
    margin-top: -35px;
    margin-bottom: -30px;
    height: 120px;
    width: 410px;
    background-image: url("../images/logo.svg");
    background-repeat: no-repeat;
    background-size: 400px;
    background-position: 10px -60px;
}
/* Content design */
#content{
    border-top: 1px solid white;
}
/* Week size and placement */
#content-week{
    padding: 0;
    width: 1240px;
    margin-left: auto;
    margin-right: auto;
}
/* Room name placement */
.room{
    position: relative;
    top: 14px;
    text-align: center;
    font-weight: bold;
    font-size: 36px;
    color: maroon;
    text-shadow: 1px 1px lightgray;
    margin-left: 250px;
    margin-right: 250px;
}
.room-current:first-of-type .button-room{
    margin-top: 5px;
}
.room-missing{
    clear: both;
    padding-top: 40px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}
/* Year/Month/Week control wrapper */
.control-wrapper{
    float: left;
    width: 25%;
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: bold;
    color: black;
    text-shadow: -1px -1px gray;
    text-decoration: none;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Year/Month/Week controls */
#year,
#month,
#week{
    color: maroon;
}
/* Control links */
a.control{
    text-decoration: none;
    color: black;
}
a.control:hover{
    color: maroon;
}
.day-wrapper{
    float: left;
    width: 165px;
    margin: 0 auto;
    padding: 5px;
    margin-top: 45px;
}
.button,
.button-event{
    border: none;
    border-top: 1px solid indianred;
    border-bottom: 1px solid rgb(60,0,0);
    background-color: maroon;
    height: 50px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: block;
    padding: 0;
    -moz-border-radius-topleft: 6px;
    -moz-border-radius-topright: 6px;
    border-radius: 6px 6px 0 0;
    -webkit-box-shadow: 0px -5px 0px rgb(60,0,0), 2px -2px 10px #888;
    -moz-box-shadow: 0px -5px 0px rgb(60,0,0), 2px -2px 10px #888;
    box-shadow: 0px -5px 0px rgb(60,0,0), 2px -2px 10px #888;
    margin-top: 10px;
    width: 170px;
    text-align: center;
}
.button-event{
    height: 60px;
}
.button:hover,
.button-event:hover{
    -webkit-box-shadow: 0px -3px 0px rgb(60,0,0);
    -moz-box-shadow: 0px -3px 0px rgb(60,0,0);
    box-shadow: 0px -3px 0px rgb(60,0,0);
    position: relative;
    top: -2px;
    cursor: pointer;
}
/* Submit buttons in modals */
.button-event-submit,
.button-booking-submit{
    float: right;
}
.button-booking-submit,
.button-event-close,
.button-booking-submit:hover,
.button-event-close:hover{
    border-top: 1px solid greenyellow;
    border-bottom: 1px solid rgb(0, 51, 0);
    background-color: darkgreen;
}
.button-booking-submit,
.button-event-close{
    -webkit-box-shadow: 0 -5px 0 rgb(0, 51, 0), 2px -2px 10px #888;
    -moz-box-shadow: 0 -5px 0 rgb(0, 51, 0), 2px -2px 10px #888;
    box-shadow: 0 -5px 0 rgb(0, 51, 0), 2px -2px 10px #888;
}
.button-booking-submit:hover,
.button-event-close:hover{
    -webkit-box-shadow: 0 -3px 0 rgb(0, 51, 0);
    -moz-box-shadow: 0 -3px 0 rgb(0, 51, 0);
    box-shadow: 0 -3px 0 rgb(0, 51, 0);
}
/* Application header buttons (All rooms, Log out) */
/* top centres the buttons, shadow included, on the header row (y 21-91) */
.header-actions{
    position: fixed;
    top: 35px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 1;
}
.header-actions form{
    margin: 0;
}
/* 90 % of .button */
.button-header{
    margin-top: 0;
    width: 153px;
    height: 45px;
    font-size: 12.6px;
    line-height: 45px;
}
/* Button for individual rooms */
.button-room{
    float: left;
    height: 60px;
    width: 1220px;
    margin-top: 40px;
    margin-bottom: 5px;
    margin-left: 0;
    background-color: #171717;
    color: darkorange;
    font-size: 24px;
    line-height: 55px;
    text-decoration: none;
    border-top: 1px solid white;
    border-bottom: 1px solid black;
    -moz-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
    -webkit-box-shadow: 0px -5px 0px black, 2px -2px 8px #888;
    -moz-box-shadow: 0px -5px 0px black, 2px -2px 8px #888;
    box-shadow: 0px -5px 0px black, 2px -2px 8px #888;
}
.button-room:hover{
    cursor: pointer;
    -webkit-box-shadow: 0px -3px 0px black;
    -moz-box-shadow: 0px -3px 0px black;
    box-shadow: 0px -3px 0px black;
}
/* Wrapper for day names*/
.weekdayname-wrapper{
    float: left;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    width: 175px;
    height: 50px;
    margin: 0 auto;
}
/* Day settings */
.day{
    display: block;
    margin: 0;
    padding: 0;
}
/* Events */
.event{
    color: white;
    text-decoration: none;
    background-color: #171717;
    padding-top: 5px;
    border-top: 1px solid white;
    border-bottom: 1px solid black;
    -moz-border-radius: 6px 6px 0 0;
    border-radius: 6px 6px 0 0;
    -webkit-box-shadow: 0px -5px 0px black, 2px -2px 8px #888;
    -moz-box-shadow: 0px -5px 0px black, 2px -2px 8px #888;
    box-shadow: 0px -5px 0px black, 2px -2px 8px #888;
    margin-top: 10px;
    margin-left: -5px;
}
.event:hover{
    cursor: pointer;
    -webkit-box-shadow: 0px -3px 0px black;
    -moz-box-shadow: 0px -3px 0px black;
    box-shadow: 0px -3px 0px black;
}
.event:first-of-type{
    margin-top: 8px;
}
.event-header{
    display: block;
    color: darkorange;
    line-height: 20px;
    margin-bottom: 2px;
}
/* Overlays */
.overlay,
.overlay-event{
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:rgba(0, 0, 0, 0.85);
    z-index:9998;
    color:white;
    display: none;
}
/* Modal input error message */
#input-error{
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: maroon;
    margin-top: -15px;
    width: 100%;
    text-align: center;
}
/* Modal text inputs */
.input-text{
    width: 400px;
    height: 60px;
    font-size: 36px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 2px;
    font-weight: normal;
    border-radius: 6px;
    border: 1px solid dodgerblue;
    margin-bottom: 20px;
}
/* Modal time selects */
.time-select{
    width: 210px;
    height: 60px;
    font-size: 42px;
    font-weight: bold;
    line-height: 80px;
    padding-left: 40px;
    border-radius: 6px;
    border: 1px solid dodgerblue;
    margin-bottom: 20px;
}
.time-select option{
    font-size: 42px;
    font-weight: bold;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 40px;
}
/* Modals */
.input-booking,
.input-event{
    margin: 0 auto;
    margin-top: 100px;
    width: 430px;
    height: 360px;
    border: 1px solid darkgray;
    background-color: white;
    padding: 40px;
    z-index:9999;
    border-left-color: gray;
    border-top-color: gray;
    border-right-color: black;
    border-bottom-color: black;
    border-radius: 10px;
    font-size: 24px;
    font-weight: normal;
    color: black;
}
/* Modal headers */
.input-booking h1,
.input-event h1{
    margin-left: -41px;
    margin-right: -40px;
    margin-top: -38px;
    padding-left: 20px;
    padding-top: 10px;
    padding-bottom: 12px;
    background-color: maroon;
    border-bottom: 1px solid black;
    color: white;
    font-size: 32px;
    line-height: 40px;
    text-shadow: -1px -1px darkgray;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    -webkit-box-shadow: 0px -5px 0px rgb(60,0,0);
    -moz-box-shadow: 0px -5px 0px rgb(60,0,0);
    box-shadow: 0px -5px 0px rgb(60,0,0);
}
/* Modals are only rendered while open */
.overlay.open,
.overlay-event.open{
    display: block;
}
/* Year/Month/Week controls: widths that used to be inline styles */
.control-wrapper-month{
    text-align: center;
    width: 49%;
}
.control-wrapper-week{
    text-align: right;
}
/* Days that belong to the neighbouring year at the turn of the year */
.weekdayname-wrapper{
    color: black;
    text-shadow: -1px -1px gray;
}
.weekdayname-wrapper.other-year{
    color: darkgray;
    text-shadow: -1px -1px black;
}
.weekdate-wrapper .button-event{
    font-family: inherit;
}
