*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    background-color: #eee;
    font-family: sans-serif;
}

body {
    max-width: 900px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    border-radius: 4px;
}

h1 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

h4 {
    text-align: center;
    color: #999;
    margin-bottom: 10px;
}

input[readonly] {
    background-color: #eee;
}

input[readonly].arrival-date, input[readonly].departure-date {
    background-color: #fff;
}

summary {
    cursor: pointer;
}

textarea {
    font-family: sans-serif;
}

#header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
}

#user-head {
    text-align: right;
    margin-bottom: 5px;
}

#logo {
    text-align: center;
}

#intro {
    text-align: center;
}

#top-nav {
    text-align: center;
}

#container {
    margin-top: 30px;
    margin-bottom: 30px;
    position: relative;
}

#login-form {
    margin-bottom: 10px;
}

#footer {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    text-align: center;
}

#copyright {
    color: #bbb;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.login input, .login textarea {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
}

.login input {
    width: 100%;
}

.login textarea {
    width: 97%;
    min-width: 97%;
    max-width: 97%;
}

.login button {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    box-sizing: border-box;
    background-color: #ab3d3d;
    color: white;
    border: none;
    outline: 0;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none !important;
    text-align: center;
    font-size: 1.15em;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 4px;
}

.logout form {
    display: inline;
}

.logout button {
    background: none!important;
    color: inherit;
    border: none;
    padding: 0!important;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.fc-toolbar h2 {
    color: #999;
    font-size: 1.17em;
}

.fc-scroller.fc-day-grid-container {
    height: auto !important;
}

.fc-unthemed td.fc-today {
    background: initial !important;
}

.hide-link {
    color: black;
    text-decoration: none;
}

.margin-bottom-25 {
    margin-bottom: 25px !important;
}

.grid-container {
    text-align: left;
}

.col-100 {
    width: 100%;
}

.col-1-2 {
    width: 48%;
    padding-right: 1rem;
    display: inline-block;
}

.col-1-2:nth-of-type(2) {
    padding-right: 0;
}

.col-1-3 {
    width: 32%;
    padding-right: 1rem;
    display: inline-block;
    text-align: left;
}

.col-1-3:nth-of-type(3) {
    padding-right: 0;
}

/* Calendar header */
.calendar-header {
  overflow: hidden;
  width: 100%;
  margin-bottom: 20px;
}

.calendar-header h2 {
  display: block;
  vertical-align: middle;
  float: left;
  margin-top: 0;
  margin-bottom: 0;
}

.calendar-header .key {
  display: block;
  vertical-align: middle;
  float: right;
  margin-top: 6px;
}

.green {
  color: green;
}

.red {
  color: red;
}

#calendar {
  clear: both;
}

@media (max-width: 599px) {
    .calendar-header {
      margin-bottom: 30px;
    }

    .calendar-header h2, .calendar-header .key {
      float: none;
      text-align: center;
    }
}

/* Calendar loading overlay */
#loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  text-align: center;
  border: 1px solid transparent;
}

#loading-overlay .loading-background {
  background: rgba(255, 255, 255, 0.6);
  padding-top: 35%;
  width: 100%;
  height: 100%;
}

#loading-overlay .loading-spinner {
  display: inline-block;
  margin-top: 20px;
  border: 4px solid #eee;
  border-top: 4px solid #333;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Help modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 940px) {
    body {
        border-radius: 0;
    }
}

@media screen and (max-width: 768px) {
    .modal {
        padding-top: 30px;
    }
}
