body {
    max-width: 1100px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 15px;
    color: #231f20;
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    line-height: 1.25;
}

a {
    background-color: transparent;
    color: #308282;
    text-decoration: underline;
}

header {
    background-image: url('/media/images/snow-wide.original.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 100px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info h3 {
    color: white;
    margin: 0;
    padding: 0;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
}

/* navigation sidebar */
.sidebar {
  margin: 0;
  padding: 0;
  width: 200px;
  background-color: #f1f1f1;
  position: fixed;
  height: 100%;
  overflow: scroll;
  top: 0;
  bottom: 0;
}

.sidebar a {
    display: block;
    color: black;
    padding: 16px;
    text-decoration: none;
}

/* Active/current link not implemented yet*/
.sidebar a.active {
  background-color: #308282;
  color: white;
}

.sidebar a:hover:not(.active) {
  background-color: #555;
  color: white;
}

/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
div.content {
  margin-left: 200px;
  padding: 1px 16px;
}

/* On screens that are less than 700px wide, make the sidebar into a topbar */
@media screen and (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: 50px;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }
  .sidebar a {
      float: none;
      display: inline-block;
  }
  .menu {
      display: inline-block;
      vertical-align: top;
  }
  div.content {margin-left: 0;}
}


/* On screens that are less than 400px, display the bar vertically, instead of horizontally */
@media screen and (max-width: 400px) {
  .sidebar a {
    text-align: center;
    float: none;
  }
}

div.login {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

div.booking-summary-table,
div.contacts-table,
div.rates-table,
div.form-table {
    overflow-x: auto;
}

.booking-summary-table table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
}

.contacts-table table {
  table-layout: auto;
  width: 80%;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.rates-table table,
.form-table table {
  table-layout: fixed;
  width: 80%;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.rates-table th,
.rates-table td,
.contacts-table th,
.contacts-table td,
.form-table th,
.form-table td,
.booking-summary-table th,
.booking-summary-table td {
  padding: 10px;
  text-align: center;
}

.rates-table tr:nth-child(odd),
.contacts-table tr:nth-child(odd),
.form-table tbody tr:nth-child(odd),
.booking-summary-table tbody tr:nth-child(odd) {
  background-color: #6ec7c7;
}

.rates-table tr:nth-child(even),
.contacts-table tr:nth-child(even),
.form-table tbody tr:nth-child(even),
.booking-summary-table tbody tr:nth-child(even) {
  background-color: transparent;
}

button {
  background-color: #308282;
  border: none;
  color: white;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  transition-duration: 0.4s;
}

button:hover {
  background-color: #6ec7c7;
}

/* Alignment stuff */
.container {
    display: flex;
    justify-content: center;
    text-align: left;
}

.form-container {
    flex: 1;
    margin-right: 20px;
}

.calendar-container {
    flex: 2;
}

.float-right {
    float: right;
}

/* Form Styling */
input[type=text],
input[type=email],
input[type=password] {
  width: 80%;
}

input[type=date],
input[type=checkbox] {
  padding: 6px 10px;
  margin: 6px 0;
}

.hidden-btn {
    display: none;
    visibility: hidden;
}

.btn-link,
input[type=button],
input[type=submit] {
  background-color: #308282;
  border: none;
  color: white;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  border-radius: 8px;
  transition-duration: 0.4s;
}

.btn-link:hover,
input[type=button]:hover,
input[type=submit]:hover {
  background-color: #6ec7c7;
}

.news-post {
    margin-left: 40px;
}

.news-post h3 {
  text-indent: -40px;
}

/* calendar styling */
.fc-bg-event {
    color: #231f20;
    font-weight: bold;
    font-style: normal;
    font-size: 1.2rem;
}

/* tooltip styling */
.popper,
  .tooltip {
    position: absolute;
    z-index: 9999;
    background: #FFC107;
    color: black;
    width: max-content;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    padding: 10px;
    text-align: center;
    white-space: pre;
  }
  .style5 .tooltip {
    background: #1E252B;
    color: #FFFFFF;
    max-width: 200px;
    width: auto;
    font-size: .8rem;
    padding: .5em 1em;
  }
  .popper .popper__arrow,
  .tooltip .tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    margin: 5px;
  }

  .tooltip .tooltip-arrow,
  .popper .popper__arrow {
    border-color: #FFC107;
  }
  .style5 .tooltip .tooltip-arrow {
    border-color: #1E252B;
  }
  .popper[x-placement^="top"],
  .tooltip[x-placement^="top"] {
    margin-bottom: 5px;
  }
  .popper[x-placement^="top"] .popper__arrow,
  .tooltip[x-placement^="top"] .tooltip-arrow {
    border-width: 5px 5px 0 5px;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    bottom: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
  }
  .popper[x-placement^="bottom"],
  .tooltip[x-placement^="bottom"] {
    margin-top: 5px;
  }
  .tooltip[x-placement^="bottom"] .tooltip-arrow,
  .popper[x-placement^="bottom"] .popper__arrow {
    border-width: 0 5px 5px 5px;
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
    top: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
  }
  .tooltip[x-placement^="right"],
  .popper[x-placement^="right"] {
    margin-left: 5px;
  }
  .popper[x-placement^="right"] .popper__arrow,
  .tooltip[x-placement^="right"] .tooltip-arrow {
    border-width: 5px 5px 5px 0;
    border-left-color: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
    left: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
  }
  .popper[x-placement^="left"],
  .tooltip[x-placement^="left"] {
    margin-right: 5px;
  }
  .popper[x-placement^="left"] .popper__arrow,
  .tooltip[x-placement^="left"] .tooltip-arrow {
    border-width: 5px 0 5px 5px;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    right: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
  }
