html {
  scroll-padding-top: 220px;
}

body {
  background: aliceblue !important;
  position: relative;
}

/* ATTENTION: breaking bootstrap grid system, because
template imports custom styles after! bootstrap.min files, this fact 
causes many problems overriding bootstrap styling in consequence getting
more specific*/

@media (min-width: 576px) and (max-width: 767px) {
  .container,
  .container-sm {
    max-width: 95vw !important;
  }
}

.title-top {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.cloudticketaccess-performances {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
}

.cloudticketaccess-performances
  .cloudticketaccess-performances-item
  .cloudticketaccess-performance-title {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 10px;
}

.cloudticketaccess-performances
  .cloudticketaccess-performances-item
  .cloudticketaccess-performance-link {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.cloudticketaccess-performances .cloudticketaccess-performances-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 160px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 1px 1px 1px 0 #22222247;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cloudticketaccess-performances .cloudticketaccess-performances-item:hover {
  box-shadow: 1px 1px 5px 2px #22222247;
}

.overview th {
  text-align: center;
}

.cal-data {
  vertical-align: middle;
}

.cal-data a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  font-weight: bold;
  border: 1px solid;
  border-radius: 5px;
  margin-bottom: 10px;
  background: #3685be;
  padding: 3px 1px;
  min-width: 60px;
  max-width: 120px;
}

.cal-data a:hover,
.cal-data a:focus,
.cal-data a:active {
  color: #fff;
}

.cal-data a span:last-child {
  font-size: 0.8em;
}

div.table-responsive {
  scroll-padding-left: 160px;
  scroll-padding-top: 100px;
  scroll-snap-type: both mandatory;
  position: relative;
  overflow-x: auto;
  /*overscroll-behavior-y: none;
  max-height: calc(100vh - 100px);*/
}

/*
Scrollbars in Chrome/Safari
*/
div.table-responsive::-webkit-scrollbar {
  width: 0px;
}

div.table-responsive::-webkit-scrollbar-track {
  width: 0px;
}

/*
Scrollbars in Firefox
*/
@supports (scrollbar-width: none) {
  div.table-responsive {
    scrollbar-width: none;
  }
}

div.table-responsive-container {
  position: relative;
  scrollbar-width: none;
}

.table-responsive-container-scroll {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  background-color: rgba(200, 200, 200, 0.7);
  color: white;
  height: 75%;
  width: 25px;

  top: 15%;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.6s linear;
  animation: blink 1s alternate infinite;
}

@keyframes blink {
  from {
    color: white;
  }
  to {
    color: black;
  }
}

.table-responsive-container-scroll.scroll-left {
  right: -30px;
  clip-path: polygon(0 1%, 0 100%, 100% 50%);
}

.table-responsive-container-scroll.scroll-right {
  left: -25px;
  clip-path: polygon(0 50%, 100% 100%, 100% 0);
}

table {
  border-collapse: collapse;
  border: 0;
}

div.table-responsive th,
div.table-responsive td {
  background-color: #f0f8ff;
  background-clip: padding-box;
  scroll-snap-align: start;
  font-size: clamp(1rem, 1.2rem, 1.5rem);
  padding: 0.6rem;
  text-align: left;
  margin: 0;
  min-width: 80px;
}

div.table-responsive thead th {
  text-align: center;
  border: none;
}

div.table-responsive tbody th {
  vertical-align: middle;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead {
  z-index: 1000;
  position: relative;
}

.table > thead th {
  position: sticky;
  top: 0;
  border-top: none;
  box-shadow: 0px 1px 0px 0.1px black;
}

div.table-responsive thead th.pin {
  left: 0;
  z-index: 1001;
  text-align: left;
}

tbody th {
  background-clip: padding-box;
  border-left: 0;
  position: sticky;
  left: 0;
}

.table-text thead th.pin,
.table-text tbody th {
  text-align: left;
  padding-left: 1rem;
}

tbody {
  z-index: 10;
  position: relative;
}

.cal-data-reduced > .row {
  padding-bottom: 10px;
  margin: 10px 0;
  align-items: start;
  justify-items: center;
}
.cal-data-reduced > .row:not(:last-child) {
  border-bottom: 1px solid #aaa;
}

.cal-data-reduced .cal-data-performance {
  margin-top: 1rem;
}

.cal-data-reduced h2 {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  font-size: calc(22px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
}

.cal-data-reduced h3 {
  font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
}

.cal-data-reduced ul {
  margin: 0;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
  font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1600 - 300)));
}

.cal-data-reduced ul li:last-child {
  margin-top: 1rem;
}

.cal-data-reduced ul li label {
  font-weight: 700;
}

.cal-data-reduced ul li input {
  display: none;
}

.cal-data-reduced ul li input ~ span,
.cal-data-reduced ul li input ~ label:not(:first-of-type) {
  display: none;
}

.cal-data-reduced ul li input:checked ~ span,
.cal-data-reduced ul li input:checked ~ label:not(:first-of-type) {
  display: inline;
}

.cal-data-reduced ul li input:checked ~ label:first-of-type {
  display: none;
}

.cal-data-reduced p {
  margin-top: 10px;
}

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

.cal-data-pin div {
  width: 95%;
}

.cal-data-pin div:first-of-type span:first-child {
  font-weight: bold;
  font-size: clamp(0.8rem, 2.5vw, 1.1rem);
}

.cal-data-pin div:first-of-type span:last-child {
  font-size: clamp(0.6rem, 2vw, 0.9rem);
}

.cal-data-pin a {
  background-color: #ccc;
  color: #3685be;
  font-size: calc(20px + (26 - 20) * ((100vw - 320px) / (1600 - 320)));
  text-align: center;
  display: block;
  width: 100%;
}

/* modal performance styles */

#performanceModal {
  z-index: 10001;
}

#performanceModal .modal-body {
  padding: 0.5rem;
  -webkit-overflow-scrolling: touch !important;
  overflow-y: scroll !important;
}


.modal-backdrop {
  z-index: 10000 !important;
}

#performanceLoader {
  width: 100%;
  height: 80vh;
  transition: height 1s linear;
}

.iframe-webshop {
  width: 100%;
  height: calc(100% - 1rem); 
}

.modal-content {
  height: 100%;
}
