:root {
  --gold: #ffd541;
  --navy: #074890;
  --teal: #59b68c;
  --light-blue: #d3e3fa;
  --light-gold: #fffbec;
}

#tncms-region-global-container-top-fullscreen {
  margin: 0;
  padding: 0;
  font-family: "boucherie-block", serif;
  text-transform: uppercase;
  color: var(--navy);
}

body > * {
  z-index: 2;
}

body a {
  color: var(--navy);
}

section {
  max-width: 1140px;
  margin: auto;
}

/* HISTORY */

section#history {
  text-align: center;
  padding-top: 32px;
  padding-bottom: 12px;
  position: relative;
  z-index: 4;
}

#history::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover; /* Cover the entire area of the element */
  background-position: 0 86.5%;
  background-repeat: no-repeat;
  opacity: 0.1; /* Set the opacity level of the image */
  z-index: -1;
}

.timeline {
  overflow-x: hidden;
}

.timeline ol li span {
  cursor: pointer;
}

.timeline ol li span:hover {
  color: var(--teal);
}

.timeline ol li span.selected:hover {
  color: white;
}

.event {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-details-container {
  width: 85%;
  max-width: 675px;
}

.event-details-top {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.event img {
  width: 175px;
  border-radius: 16px;
  object-fit: cover;
  height: 115px;
  margin: 0 20px;
}

.event p {
  font-family: var(--sans-serif);
  text-transform: none;
  font-size: 16px;
  text-align: left;
  margin: 1em auto;
}

.event img,
.event p,
.event .number,
.event .date {
  transition: opacity 500ms ease-in-out; /* Timing matched with delay in JS */
}

.timeline ol li span {
  transition: all 500ms ease-in-out; /* Timing matched with delay in JS */
}

.event .scroll {
  border: none;
  background: none;
  color: var(--navy);
  padding: 22px 0 20px;
  height: 100%;
}

.event .scroll:hover {
  cursor: pointer;
  color: var(--teal);
}

.event .scroll.left {
  left: 1rem;
  padding-right: 2px;
  border-radius: 6px 2px 2px 6px;
}

.event .scroll.right {
  right: 1rem;
  padding-left: 2px;
  border-radius: 2px 6px 6px 2px;
}

.timeline ol {
  list-style-type: none;
  padding-left: 0;
  width: 100%;
  white-space: nowrap;
  position: relative;
  left: calc(50% - 50px); /* 50px is half the width of LI */
  transition: left 1s ease-in;
  text-align: left;
  margin: 20px 0;
}

.timeline li {
  width: 100px; /* This value is hardcoded in JS for timeline scroll */
  display: inline-block;
  text-align: center;
  font-size: 18px;
}

.timeline li span {
  padding: 7px 10px;
  border-radius: 7px;
}

.timeline li span.selected {
  background-color: var(--navy);
  color: white;
}

/* END HISTORY */

section#eat-drink-play {
  position: relative;
  z-index: 700;
}

/* MAP */

.large-banner {
  background-color: var(--gold);
  text-align: center;
  padding: 16px 0;
}

.large-banner h1 {
  margin: 0;
  font-weight: bold;
  font-size: 40px;
}

#map {
  width: 100%;
  height: 400px;
  z-index: 3;
}

.mapboxgl-ctrl-attrib a:nth-child(3),
.mapboxgl-ctrl-attrib a:nth-child(4) {
  display: none;
}

.marker {
  background-image: url("https://blox-custom-resources.s3.amazonaws.com/nola.com/super-bowl-2024/mardi-gras-fleur-de-lis.png");
  width: 47px;
  height: 55px;
  background-size: cover;
  top: -12px;
  position: relative;
}
/* END MAP */

/* DIRECTORY */
.rounded-rect {
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 50px -25px black;
}

.flex-center {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-center.right {
  right: 0px;
}

.sidebar-content,
#directory {
  position: absolute;
  width: 95%;
  height: 95%;
}

.sidebar-toggle {
  position: absolute;
  width: 20px;
  height: 90px;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px 0 0 6px;
}

.sidebar-toggle.right {
  left: -20px;
}

.sidebar-toggle:hover {
  color: var(--light-blue);
  cursor: pointer;
}

.sidebar {
  transition: transform 1s;
  z-index: 1;
  width: 300px;
  height: 100%;
}

.right.collapsed {
  transform: translateX(295px);
}

#directory {
  font-family: var(--sans-serif), "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

#directory ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  scroll-behavior: smooth;
}

#directory li {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#directory li.selected {
  background: var(--light-blue);
  border-radius: 6px;
}

#directory li h1 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: bold;
}

#directory li h2 {
  font-weight: normal;
  text-transform: none;
  margin: 0;
  font-size: 14px;
}
/* END OF DIRECTORY */

/* EAT DRINK PLAY */

#selected-establishment-details {
  position: relative;
  display: flex;
  opacity: 0;
  justify-content: center;
  top: -400px;
  transition: top 1s ease-in-out, opacity 500ms ease-in-out;
  z-index: 1;
  margin-bottom: 2em;
  margin-top: 16px;
  height: 0;
}
/* EAT DRINK PLAY */

/* SPEECH BOX */
.speechbox {
  position: relative;
  width: 336px;
  padding: 6px;
  color: var(--navy);
  background: var(--gold);
  margin-right: 10px;
}
.speechbox-inner {
  background: var(--light-gold);
  padding: 20px 10px;
}

.speechbox:after {
  content: "";
  position: absolute;
  top: 100%;
  right: 25px;
  border-width: 30px 0 0 30px;
  border-style: solid;
  border-color: var(--gold) transparent;
}

.speechbox-inner:after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: 31px;
  border-width: 30px 0 0 30px;
  border-style: solid;
  border-color: var(--light-gold) transparent;
  z-index: 22;
}

.establishment-info {
  text-align: right;
}

.establishment-info h2 {
  margin-top: 0;
}

.establishment-info p {
  margin: 0;
  margin-bottom: 0.1rem;
}

.establishment-links {
  display: flex;
  font-family: var(--sans-serif), sans-serif;
  text-transform: none;
  font-weight: 300;
  justify-content: flex-end;
}

.no-video .establishment-links {
  justify-content: flex-start;
}

.establishment-info p a {
  text-decoration: none;
}

#establishment-address2 {
  margin-bottom: 12px;
}

#establishment-desc {
  margin: 10px 0 14px;
  font-family: var(--sans-serif), sans-serif;
  font-weight: 300;
  text-transform: none;
}

.speechbox.no-video {
  width: 460px;
  margin-right: 0;
  margin-top: 16px;
}

.speechbox.no-video:after {
  top: unset;
  bottom: 99%;
  border-width: 0 18px 18px 18px;
  right: 80%;
}

.speechbox-inner.no-video:after {
  bottom: unset;
  top: -7px;
  right: 80%;
  border-width: 0 18px 18px 18px;
}

.no-video .establishment-info {
  text-align: left;
}

.speechbox-inner.no-video {
  padding: 20px;
}

/* END of SPEECHBOX */

/* ESSENTIAL NOLA MAGAZINE */
#essential-nola-magazine {
  display: flex;
  justify-content: center;
  margin: 3em 0;
}

#essential-nola-magazine {
  font-family: var(--sans-serif);
  text-transform: none;
}

#essential-nola-magazine > div {
  margin: 0 22px;
}

#essential-nola-magazine .thumbnail-container {
  width: 232px;
}

#essential-nola-magazine .text-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#essential-nola-magazine ul {
  margin-left: 1em;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

#essential-nola-magazine a.read-more-btn {
  display: block;
  width: 175px;
}
/* End of ESSENTIAL NOLA MAGAZINE */

@media screen and (max-width: 768px) {
  /* TIMELINE TABLET & MOBILE */
  #history::before {
    background-position: 0 100%;
  }

  .event .event-details-container {
    width: 80%;
  }

  .event-details-top {
    flex-direction: column-reverse;
    font-size: 20px;
  }

  .event img {
    width: 80%;
    max-width: 300px;
    height: unset;
    aspect-ratio: 35 / 23;
    margin: 8px 0 16px;
  }

  .event p {
    margin-top: 6px;
    font-size: 14px;
  }

  .timeline ol {
    margin: 12px 0;
  }

  .timeline li {
    font-size: 16px;
  }
  /* END of TIMELINE TABLET & MOBILE */

  /* MAP & SPONSOR DETAILS TABLET & MOBILE */
  .large-banner {
    padding: 14px;
  }

  .large-banner h1 {
    font-size: 24px;
  }

  #map {
    height: 300px;
  }

  .sidebar {
    width: 235px;
  }

  .right.collapsed {
    transform: translateX(230px); /* width of .sidebar - 5px */
  }

  #directory li {
    padding: 6px 4px;
  }

  #directory li > h1 {
    font-size: 15px;
  }

  #directory li > h2 {
    font-size: 14px;
  }

  #selected-establishment-details {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 0;
  }

  .establishment-links {
    justify-content: flex-start;
  }

  #player {
    width: calc(100% - 0px);
    height: 250px !important;
    margin-top: 4px;
  }

  #speechbox-container {
    width: 100%;
    margin-top: 4px;
  }

  .speechbox,
  .speechbox.no-video {
    margin: 16px auto 0;
    width: calc(100% - 20px);
    max-width: 426px;
  }

  .speechbox-inner {
    padding: 14px;
  }

  .speechbox:after {
    top: unset;
    bottom: 99%;
    border-width: 0 18px 18px 18px;
    right: 80%;
  }

  .speechbox-inner:after {
    bottom: unset;
    top: -8px;
    right: 80%;
    border-width: 0 18px 18px 18px;
  }

  .establishment-info {
    text-align: left;
  }

  .establishment-info h2 {
    margin: 2px 0 12px;
    font-size: 24px;
  }

  .establishment-info p {
    font-size: 14px;
  }

  /* END of SPONSOR DETAILS BELOW MAP TABLET & MOBILE */

  /* ESSENTIAL NOLA MAGAZINE */

  #essential-nola-magazine {
    flex-direction: column;
    align-items: center;
  }

  #essential-nola-magazine > div {
    margin: 8px 0;
  }

  #essential-nola-magazine .thumbnail-container {
    width: 185px;
  }

  #essential-nola-magazine .thumbnail-container img {
    position: relative;
    left: -14%;
  }

  #essential-nola-magazine ul {
    padding: 1em;
    margin-bottom: 0;
    font-size: 16px;
  }

  #essential-nola-magazine a.read-more-btn {
    margin: auto;
  }

  /* END of ESSENTIAL NOLA MAGAZINE */
}
