/* Home page content overlay for readability */

/* Home page headline overlay for readability */
body.home-page .headline {
  position: relative;
  z-index: 1;
}
body.home-page .headline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  z-index: -1;
  pointer-events: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 24px 0 rgba(0,0,0,0.08);
}
body {
  padding-top: 5rem;
}
body.home-page .headline {
  margin-top: 0;
  padding-top: 0;
}
body.home-page {
  padding-top: 0;
}


body.home-page .headline {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-image: url('../images/background.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  padding: 5rem 1rem 4rem 1rem;
}

.headline {
  padding: 1rem 1rem;
  text-align: center;
}

body.home-page .mx-auto[style*="max-width: 1100px"] {
  padding-top: 2.5rem;
}

main > .container,
main > .container-fluid {
  padding: 60px 15px 0;
}

.footer {
  background-color: #f5f5f5;
}

.footer > .container,
.footer > .container-fluid {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}

.dropzone {
  border-style: dashed !important;
  cursor: pointer;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dropzone-active {
  border-width: 2px;
}

.dropzone-uploading {
  opacity: 0.7;
  pointer-events: none;
}

.floating-action-button {
  position: fixed;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1040;
}

.scroll-top-button {
  bottom: 24px;
}

.clear-page-button {
  bottom: 78px;
}

.floating-action-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.heatmap-table th,
.heatmap-table td {
  width: 14.28%;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  box-shadow: none !important;
}

.hm-empty {
  background: #f8f9fa;
}

.heatmap-cell {
  user-select: none;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
}

.heatmap-cell.is-clickable {
  cursor: pointer;
  font-weight: 600;
}

.heatmap-table td.hm-level-0 {
  background-color: #f8f9fa !important;
}

.heatmap-table td.hm-level-1 {
  background-color: #d4edda !important;
}

.heatmap-table td.hm-level-2 {
  background-color: #a8ddb5 !important;
}

.heatmap-table td.hm-level-3 {
  background-color: #7bcca0 !important;
}

.heatmap-table td.hm-level-4 {
  background-color: #4dbb8a !important;
  color: #fff;
}

@media (min-width: 992px) {
  .history-results-row {
    height: calc(100vh - 220px);
    min-height: 520px;
  }

  .history-left-column,
  .history-right-column {
    height: 100%;
  }

  .history-left-column {
    overflow: hidden;
  }

  .history-right-column {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
  }
}
