:root {
    --main: #1b8;
    --secondary: #197;
}

body {
    margin: 0;
    height: 100%;
    font-family: -apple-system, Microsoft JhengHei, Verdana, Geneva, Tahoma, sans-serif;
}

#header-filler {
    height: 72px;
}

header {
    position: fixed;
    height: 54px;
    top: 0;
    background: var(--main);
    font-weight: 600;
    width: 100%;
    margin: auto;
}

header a {
    color: #eee;
}

main {
    min-height: calc(100vh - 54px);
    box-sizing: border-box;
    text-align: center;
}

.fever {
    background: #fcd;
}

.admin {
    background: #5ec;
}

.nurse {
    background: #7ea;
}

.faculty {
    background: #86ebb2;
}

.tutor {
    background: #9ce7b2;
}

.hygiene {
    background: #8ec;
}

#logo {
    position: relative;
    height: 54px;
    width: 54px;
    right: 10px;
    border: none;
}

#fever-pass {
    position: relative;
    font-size: 18px;
    bottom: 21px;
}

#icon {
    position: absolute;
    left: -54px;
	height: 54px;
    width: 54px;
}

nav {
    height: 54px;
    float: right;
}

nav a {
    color: #eee;
    background: var(--main);
    height: 24px;
    padding: 15px 20px;
    line-height: 24px;
    margin: 0 -2px;
}

#menu {
    display: none;
}

#page {
    width: 24px;
    margin: 4px;
}

input {
    padding: 2px;
    margin: 8px 12px;
    height: 20px;
    font-size: 14px;
}

input[type="submit"], input[type="reset"] {
    height: 32px;
    width: 64px;
}

input[type="file"] {
    height: 24px;
}

input[type="radio"] {
    height: 16px;
    width: 16px;
    margin: 20px 6px;
}

input:focus {
    background-color: #efe;
}

input[type="number"], input[type="text"], input[type="password"] {
    width: 72px;
}

input[type="date"] {
    font-size: 14px;
    width: 124px;
    height: 20px;
    margin: 0 2px;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

label[for="reason"] {
	margin: 8px;
}

select {
    text-align-last: center;
    -moz-text-align-last: center;
    -ms-text-align-last: center;
    margin: 2px;
    height: 32px;
    width: 80px;
}

select[name="reason"] {
    width: 108px;
}

footer {
    height: 54px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-weight: 600;
}

footer a {
    background: var(--main);
    color: #eee;
    width: 50vw;
    line-height: 54px;
}

form {
    margin: 16px;
}

.middle {
    margin: calc(50vh - 210px) auto 0;
}

form button {
    border: none;
    color: white;
    padding: 20px 28px;
    display: inline-block;
    margin-left: 16px;
    font-size: 20px;
    cursor: pointer;
    transition: all ease 0.2s 0.1s;
    -webkit-transition: all ease 0.2s 0.1s;
    -moz-transition: all ease 0.2s 0.1s;
    -ms-transition: all ease 0.2s 0.1s;
    -o-transition: all ease 0.2s 0.1s;
}

a {
    color: #249;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: 0.1s ease-in-out;
    -webkit-transition: 0.1s ease-in-out;
    -moz-transition: 0.1s ease-in-out;
    -ms-transition: 0.1s ease-in-out;
    -o-transition: 0.1s ease-in-out;
}

a:hover {
    color: var(--main);
}

nav a:hover {
    background: var(--secondary);
}

header a:hover {
    color: #fff;
}

footer a:hover {
    color: #fff;
    background: var(--secondary);
}

a[href="/"] {
	padding: 0 16px;
	text-align: left;
    height: 54px;
    max-width: 280px;
}

a[href="/"]:hover {
    background: var(--secondary);
}

a[href="/import"] {
    margin: 8px;
}

table {
    margin: 24px auto;
    width: 70%;
}

th {
    color: #fafafa;
    background: var(--main);
}

tr {
    background: #bec;
}

h1 {
    font-size: 32px;
    margin: 24px 0;
}

h2 {
    font-size: 24px;
    margin-bottom: 28px;
}

#home-h1 {
    position: relative;
    font-size: 52px;
    display: inline;
    z-index: -1;
}

#home-h2 {
    font-size: 32px;
}

#msg {
    color: red;
}

.msg {
    color: red;
}

.doc {
    text-align: left;
    width: 80%;
    margin: auto;
    padding: 4px;
}

.mobile-br {
    display: none;
}

@media(max-width:1100px) {
    nav {
        position: fixed;
        top: 54px;
        right: 0;
        overflow-x: hidden;
        height: 0;
        transition: 0.2s ease-in-out;
        -webkit-transition: 0.2s ease-in-out;
        -moz-transition: 0.2s ease-in-out;
        -ms-transition: 0.2s ease-in-out;
        -o-transition: 0.2s ease-in-out;
    }
    nav a {
        display: block;
        width: 100vw;
        box-shadow: 0 6px 12px 0 rgba(253, 209, 209, 0.2);
        padding: 12px;
        transition: 0.5s ease-in-out;
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -ms-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
        z-index: 5;
    }
    #menu {
        color: #eee;
        font-size: 32px;
        margin: -8px -8px 0 0;
        display: block;
        box-shadow: none;
        padding: 14px;
        position: fixed;
        height: 34px;
        width: 24px;
        top: -2px;
        right: 12px;
    }
    td button {
        font-size: 9px;
    }
    table {
        width: 100%;
    }
}

@media(max-width:600px) {
    tr {
        font-size: 10px;
    }
    .mobile-br {
        display: block;
    }
}
