/* Global */
body {
  margin: 0px;
  padding: 0px;
  background-color: white;
}

* {
  box-sizing: border-box;
  transition: 0.2s ease;
}

table {
  border-collapse: collapse;
  border-spacing: 0px;
  width: 100%;
}

th {
  background-color: #792F43;
  color: white;
}

th, td {
  text-align: left;
  padding: 8px;
}

tr:nth-child(odd) {
  background-color: #792f4307;
}

.tab { 
  display:inline-block; 
  margin-left: 20px; 
}
/* Global */

/* Text and Fonts */
h1, h2, h3 {
font-family: "Instrument Serif", serif;
font-weight: bold;
font-style: normal;
color: #2A2827;
letter-spacing: 0.1rem;
margin: 20px 0px 0px 0px;
}

h4, h5, h6 {
font-family: "Newsreader", serif;
font-weight: bold;
font-style: normal;
color: #2A2827;
width: 100%;
margin: 15px 0px 5px 0px;
}

p, ul, li {
font-family: "Newsreader", serif;
font-size: 0.9rem;
font-optical-sizing: auto;
font-weight: normal;
font-style: normal;
color: #2A2827;
}

p {
  margin: 0px;
  padding: 5px 0px;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.9rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.9rem;
  margin: 0px;
  padding: 5px 0px;
}

h3 {
  font-size: 1rem;
  margin: 0px;
  padding: 15px 0px 5px 0px;
  width: 100%;
}

h4 {
  font-size: 1rem;
  width: 100%;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 1rem;
}

tr {
  font-family: "Newsreader", serif;
}

a {
  font-family: "Newsreader", serif;
}

ul {
  margin: 0px;
}

.hover-link {
  font-size: 1rem;
  text-decoration: underline;
  font-family: "Newsreader", serif;
  color: #2A2827;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.hover-link:hover {
  margin-left: 5px;
}

.hover-link-inline {
  text-decoration: none;
  font-family: "Newsreader", serif;
  color: #223553;
  font-weight: bold;
  margin-bottom: 5px;
}

.hover-link-inline:hover {
  text-decoration: underline;
}

.primary-button-scheme {
  padding: 1.2rem 2rem;
  border-radius: 50px;
  background-color: #253551;
  color: white;
  font-family: "Newsreader", serif;
  font-style: normal;
  font-size: 1rem;
  border: solid 1px black;
  cursor: pointer;
}

.primary-button-scheme:hover {
  background-color: #50607e;
}

.secondary-button-scheme {
  padding: 1.2rem 2rem;
  border-radius: 50px;
  background-color: white;
  color: #253551;
  font-family: "Newsreader", serif;
  font-style: normal;
  font-size: 1rem;
  border: solid 1px black;
  cursor: pointer;
}

.secondary-button-scheme:hover {
  background-color: #253551;
  color: white;
}

.two-button-wrapper a {
  margin-right: 35px;
}
/* Text and Fonts */

/* Header */
header {
  padding-block: clamp(10px, 1.5vw, 20px);
  width: 100vw;
  background-color: #E0E0DB;
  overflow: hidden;
  filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 0.26));
  position: absolute;
  top: 0;
  z-index: 10;
  box-sizing: border-box;
}

.constraint {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.header-display {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.header-nav-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.logo-nav-wrapper {
  display: flex;
  align-items: center;
} 

.navbar-wrapper {
  display: flex;
  align-items: center;
  padding-left: 2vw;
}

#website-logo-image {
  max-height: 80px;
}

.header-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-link {
  position: relative;
  color: #263551;
  margin-left: 75px;
  text-decoration: none;
}

.nav-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  top: 100%;
  left: 0;
  background: #263551;
  transition: transform 0.3s;
  transform: scaleX(0);
  transform-origin: center;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: center;
}
/* Header */

/* Footer */
footer {
  background-color: #253551;
  padding-top: 4vh;
  padding-bottom: 0.1vh;
}

.footer-top-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.footer-top-wrapper p {
  line-height: 30px;
}

.footer-top-wrapper > div {
  flex: 25%;
}

.footer-top-wrapper img {
  max-width: 153px;
}

.footer-top-wrapper h4 {
  font-family: "Instrument Serif", serif;
  font-weight: 100;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 20px;
}

footer p, a {
  color: white;
  font-size: 1rem;
}

.footer-lower-wrapper {
  padding-top: 30px;
}

.footer-lower-wrapper p {
  text-align: center;
  line-height: 30px;
}
/* Footer */

/* Section */
section {
  padding-top: 7vh;
  padding-bottom: 7vh;
}

#hero-desc h1 {
  font-size: 4rem;
  font-weight: 100;
  color: #253551;
  margin-bottom: 2.2rem;
  letter-spacing: -.02em;
}

#hero-desc p {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 2rem;
  color: #253551;
  margin-bottom: 1rem;
}

#map-section {
  
  padding-top: 0px;
  margin-top: 142px;
}
/* Section */

/* Map Wrapper */
#map-wrapper {
  height: 100%;
  width: 100%;
}

#map {
  width: 100%;
  height: 100%;
}
/* Map Wrapper */

/* Mapbox Content */
.mapboxgl-popup {
  transform: translate(0%, 0%) ! important;
  max-width: 1000px ! important;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 4;
}

.mapboxgl-popup-content {
  background-color: white;
  padding: 0px ! important;
  width: 100%;
  height: 100%;
}

.content-wrapper {
  height: 100%;
  overflow: auto;
  border-radius: 0px;
  -webkit-overflow-scrolling: touch;
}

.content-wrapper > div {
  display: block;
}

.mapboxgl-popup-close-button {
  display: block;
  visibility: visible;
  background-color: transparent;
  color: rgb(255 255 255 / 100%);
  font-size: 1.6rem;
  font-weight: bold;
  height: 35px;
  width: 35px;
  margin: 10px;
}

.mapboxgl-popup-close-button:hover {
  background-color: transparent !important;
}

.mapboxgl-popup-tip {
  display: none;
}

.popup-header-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

.popup-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
}

.title-wrapper {
  padding: 5px 15px;
  width: 100%;
  letter-spacing: 1.3px;
  text-align: center;
  background-color: #E0E0DB;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.title-wrapper > h2 {
  color: #263551;
}

.text-wrapper {
  padding: 0px 15px 15px 15px;
  display: flex;
  flex-wrap: wrap;
}

.table-wrapper {
  padding: 0px 15px 15px 15px;
  max-height: 200px;
}

#jr-fair-office h3 {
  margin: 10px 0px;
}

#jr-fair-office a {
  margin: 0;
}
/* Mapbox Content */

/* scrollbar */
::-webkit-scrollbar
{
  width: 0px;
}

::-webkit-scrollbar-track
{
  background: rgba(0, 0, 0, 0);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb
{
  background: rgba(0, 0, 0, 0);
}
/* scrollbar */

/* Gate Style */
.gate-pricing {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gate-pricing div:nth-of-type(1) {
  flex: 48%;
  margin: 5px;
  padding: 10px 20px;
  background-color: #E0E0DB;
  text-align: center;
}

/* Style for the second child div */
.gate-pricing div:nth-of-type(2) {
  flex: 48%;
  margin: 5px;
  padding: 10px 20px;
  background-color: #E0E0DB;
  text-align: center;
}

.gate-pricing .button-wrapper {
  flex: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.gate-pricing .ticket-price {
  font-size: 2.5rem;
  margin-top: 10px;
  color: #263551;
}

.gate-pricing .sub-note {
  font-size: 0.7rem;
}
/* Gate Style */

/* Day Banner Info */
#daybanner {
  z-index: 10;
  height: 25px;
  overflow: hidden;
  text-align: center;
  background-color: #263551;
  width: 100vw;
}

#daybanner {
  display: none;
}

#daybanner p {
  color: white;
}

#day1 {
  display: none;
}
#day2 {
  display: none;
}
#day3 {
  display: none;
}
#day4 {
  display: none;
}
#day5 {
  display: none;
}
#day6{
  display: none;
}
#day7{
  display: none;
}
/* Day Banner Info */
















/* Media Query */
@media only screen and (max-width: 599px) {
  .nav-link {
    margin-left: 24px;
  }

  .mapboxgl-popup {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mapboxgl-popup-content {
    max-height: 100dvh;
    background-color: rgba(255, 255, 255, 1);
  }

  .mapboxgl-popup-close-button {
    font-size: 1.5rem;
    height: 30px;
    width: 30px;
  }

  .popup-header-wrapper {
    max-height: 150px;
  }
}





@media only screen and (max-width: 998px) {
  header {
    padding: 0px 30px;
    z-index: 0;
  }

  #map-section {
    height: clamp(500px, 100vw, 700px);
    padding: 0px 30px;
  }

  #hero-desc {
    padding-left: 30px;
    padding-right: 30px;
  }

  #hero-desc h1 {
  font-size: 3.2rem;
  line-height: 3.4rem;
}

#hero-desc p {
  font-size: 1.3rem;
  line-height: 1.8rem;
}

  footer {
  padding-left: 30px;
  padding-right: 30px;
  }

  .footer-top-wrapper {
    flex-wrap: wrap;
  }

  .footer-top-wrapper > :first-child {
    flex: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-top-wrapper > div {
    flex: 50%;
    justify-content: center;
  }
}



@media only screen and (min-width: 999px) {
    #map-section {
    height: clamp(700px, 40vw, 1315px);
  }

  .mapboxgl-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) ! important;
    width: 750px;
    max-height: 40vh;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  }

  .mapboxgl-popup-content {
    background-color: white;
    padding: 0px ! important;
    border-radius: 10px;
    width: 100%;
    height: 100%;
  }

  .popup-header-wrapper {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .mapboxgl-popup:has(.short) {
    max-height: 250px;
  }

  .mapboxgl-popup:has(.mid-length) {
    max-height: 400px;
  }

  .content-wrapper {
    border-radius: 10px;
  }

  #jr-fair-office .button-pri {
    margin-right: 20px;
  } 
}