@font-face {
  font-family: 'Barlow Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow Regular'), url('../fonts/Barlow-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Barlow Medium';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow Medium'), url('../fonts/Barlow-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Barlow SemiBold';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow SemiBold'), url('../fonts/Barlow-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Barlow Bold';
  font-style: normal;
  font-weight: normal;
  src: local('Barlow Bold'), url('../fonts/Barlow-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Avenir Next LT Pro Regular'), url('../fonts/AvenirNextLTPro-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Bold';
  font-style: normal;
  font-weight: normal;
  src: local('Avenir Next LT Pro Bold'), url('../fonts/AvenirNextLTPro-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Demi';
  font-style: normal;
  font-weight: normal;
  src: local('Avenir Next LT Pro Demi'), url('../fonts/AvenirNextLTPro-Demi.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Medium';
  font-style: normal;
  font-weight: normal;
  src: local('Avenir Next LT Pro Medium'), url('../fonts/AvenirNextLTPro-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Medium Italic';
  font-style: normal;
  font-weight: normal;
  src: local('Avenir Next LT Pro Medium Italic'), url('../fonts/AvenirNextLTPro-MediumIt.woff') format('woff');
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent body scrolling */
  background-color: #000;
  display: flex;
  justify-content: center; /* Center stage horizontally */
  align-items: flex-start; /* Align stage to top */
  height: 100vh;
  width: 100vw;
  font-family: 'Avenir Next LT Pro Regular' !important;
  font-size: 1vw;
}

header {
  position: absolute;
  display: inline-block;
  bottom: 21px;
  right: 27px;
  width: 175px;
  height: 41px;
  z-index: 100;
}

header img {
  max-width: 100%;
  height: auto;
}

video:not(.video-content) {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

/* Background videos that need to fill the container */
.video-intro, .video-home, .page-category video {
  object-fit: cover;
}

.bg-img img{
  position: fixed;
  height: 100%;
  width: 100%;
  object-fit: cover;
  font-family: "object-fit: cover;";
}

.hotspot {
  display: inline-block;
  position: absolute;
  cursor: pointer;
  direction: row;
  /* The base positioning is done via JavaScript */
}

/* Standard size for hotspot icons */
.hotspot a.icon {
  display: inline-block;
  width: 48px;
  height: 49px;
  position: relative;
  cursor: pointer;
  z-index: 999;
  transition: all 0.2s ease-in-out;
}

/* Scale down hotspot icons on medium screens */
@media (max-width: 992px) {
  .hotspot a.icon {
    transform: scale(0.8);
    transform-origin: center;
  }
}

/* Scale down hotspot icons on small screens */
@media (max-width: 768px) {
  .hotspot a.icon {
    transform: scale(0.7);
    transform-origin: center;
  }
  
  .hotspot-red-popover div {
    font-size: 0.8rem;
    width: 180px;
    height: 40px;
  }
}

/* Further reduce size on very small screens */
@media (max-width: 576px) {
  .hotspot a.icon {
    transform: scale(0.6);
    transform-origin: center;
  }
  
  .hotspot-red-popover div {
    font-size: 0.7rem;
    width: 150px;
    height: 35px;
  }
}

/* Original icon state */
.hotspot a.icon-red {
  background: transparent url('../images/btn-plus.png') no-repeat 0px 0;
  transition: background-position 0s; /* Remove any transition delay */
}

/* Hover state without animation */
.hotspot a.icon-red:hover {
  background: transparent url('../images/btn-plus.png') no-repeat -48px 0;
}

/* Also fix the book icon hover */
.hotspot.hotspot-book a.icon-red {
  background: transparent url('../images/btn-book.png') no-repeat 0px 0;
  transition: background-position 0s;
}

.hotspot.hotspot-book a.icon-red:hover {
  background: transparent url('../images/btn-book.png') no-repeat -48px 0;
}

.hotspot-red-popover div {
  font-family: 'Avenir Next LT Pro Regular';
  height: 49px;
  width: 200px;
  padding-left: 30px;
  display: flex;
  justify-content: left;
  align-items: center;
  background-color: rgb(205, 22, 63, 1);
  color: white;
  border: none;
  border-radius: 3px;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.2rem
}

.hotspot-popover-left {
  margin-left: -20px;
}

.hotspot-popover-right {
  position: absolute;
  right: 28px;
}

.hotspot-popover-right div {
  padding-left: 0;
  padding-right: 20px;
}

.hotspot-category {
  display: flex;
  justify-content: center;
  z-index: 1001;
}

/*.hotspot-blue:active .hotspot-blue-popover div {*/
/*  background-color: white;*/
/*  color: rgb(11, 60, 110);*/
/*  box-shadow: 0px 5px 15px -1px rgba(0, 0, 0, 1);*/
/*}*/

/*.hotspot-red:active .hotspot-red-popover div {*/
/*  background-color: white;*/
/*  color: rgb(173, 26, 58);*/
/*  box-shadow: 0px 5px 15px -1px rgba(0, 0, 0, 1);*/
/*}*/

/*.hotspot-green:active .hotspot-green-popover div {*/
/*  background-color: white;*/
/*  color: rgb(18, 66, 9, 0.8);*/
/*  box-shadow: 0px 5px 15px -1px rgba(0, 0, 0, 1);*/
/*}*/

.mine div {
  width: 120px;
}

.people-safety-and-efficiency div {
  width: 330px;
}

.renewable div {
  width: 200px;
}

.utilities div {
  width: 160px;
}

.loading-unloading-facilities div {
  width: 300px;
}

.conveyors div {
  width: 220px;
}

/* .hotspot-blue-popover div::after {
  content: url('../images/btn-plus-blue.png');
  position: absolute;
  top: 0;
  left: -30px;
}

.hotspot-blue-popover div:hover {
  background-color: white;
  color: rgb(11, 60, 110);
  box-shadow: 0px 5px 15px -1px rgba(0, 0, 0, 1);
} */

#main-menu {
  position: absolute;
  bottom: 10px;
  left: 0;
  background-color: rgb(11, 19, 20, 0.6);
  width: 25%;
  height: 24%;
  clip-path: polygon(90% 0, 100% 16%, 100% 100%, 0 100%, 0 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.menu-item {
  font-family: 'Barlow Medium';
  width: 94%;
  height: 22%;
  clip-path: polygon(95% 0, 100% 26%, 100% 100%, 0 100%, 0 0);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.menu-item-blue {
  background: linear-gradient(90deg, rgb(0, 62, 126, 0.4) 42%, rgb(0, 174, 239, 0.4) 100%);
  letter-spacing: 4px;
}

.menu-item-red {
  background: linear-gradient(90deg, rgb(205, 22, 63, 0.4) 42%, rgb(225, 75, 50, 0.4) 80%, rgb(245, 128, 37, 0.4) 100%);
  letter-spacing: 3px;
}

.menu-item-green {
  background: linear-gradient(90deg, rgb(6, 69, 0, 0.4) 0%, rgb(21, 107, 1, 0.4) 55%);
  letter-spacing: 2px;
}

.menu-item-blue:hover,
.menu-item-active-blue {
  background: linear-gradient(90deg, rgb(0, 62, 126, 1) 42%, rgb(0, 174, 239, 1) 100%);
}

.menu-item-red:hover,
.menu-item-active-red {
  background: linear-gradient(90deg, rgb(205, 22, 63, 1) 42%, rgb(225, 75, 50, 1) 80%, rgb(245, 128, 37, 1) 100%);
}

.menu-item-green:hover,
.menu-item-active-green {
  background: linear-gradient(90deg, rgb(6, 69, 0, 1) 0%, rgb(21, 107, 1, 1) 55%);
}

.page-title {
  position: absolute;
  display: flex;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 73px;
  z-index: 10;
}

.page-title .col-left {
  background: url('../images/title-l.png') no-repeat left top;
  width: 81px;
  height: 100%;
}

.page-title .col-right {
  background: url('../images/title-r.png') no-repeat left top;
  width: 81px;
  min-width: 81px;
  height: 100%;
}

.col-title {
  background: url('../images/title-bg.png') repeat-x left top;
  height: 100%;
  flex-grow: 6;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
}

#title {
  font-family: 'Barlow Medium';
  font-size: 1.6rem;
  background: -webkit-linear-gradient(45deg, #ce163f, #fe7001);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1rem;
  line-height: 1.8rem;
}

.btn-home {
  position: absolute;
  left: 0;
  top: 68px;
  background: transparent url('../images/i-home.png') no-repeat 12px center;
  height: 46px;
  width: 55px;
  display: flex;
  align-items: center;
  font-family: 'Avenir Next LT Pro Bold';
  z-index: 1001;
  cursor: pointer;
}

.btn-back {
  position: absolute;
  left: 0;
  top: 120px;
  background: transparent url('../images/btn-back.png') no-repeat 12px center;
  height: 46px;
  width: 55px;
  display: flex;
  align-items: center;
  font-family: 'Avenir Next LT Pro Bold';
  z-index: 1001;
  cursor: pointer;
}


.btn-close-app {
  display: none;
  position: fixed;
  left: 0;
  top: 4px;
  background: transparent url('../images/btn-close.png') no-repeat 0px center;
  height: 39px;
  width: 46px;
  display: flex;
  align-items: center;
  font-family: 'Avenir Next LT Pro Bold';
  z-index: 1001;
  cursor: pointer;
}


.btn-close-app span,
.btn-home span,
.btn-back span {
  display: none;
}

.btn-home:hover,
.btn-back:hover {
  background-color: #ce1c3f;
  width: 55px;
  border-radius: 0 5px 5px 0;
}

.btn-close-app:hover span,
.btn-home:hover span,
.btn-back:hover span {
  display: none !important;
  padding-left: 0;
  display: inline;
  color: #ffffff;
}

.inner-col-docs ul {
  list-style-image: url('../images/i-marker-triangle.png');
  padding-top: 20px;
  margin-left: 10px;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

.inner-col-docs ul li {
  padding-left: 10px;
}



.col-content {
  font-size: 18px;
}

.modal-backdrop.show {
  opacity: 0.7;
}

.discoveries.modal {
  /*top: 85px;*/
  z-index: 5000;
}

.discoveries.modal .btn-close, #pdfModal .btn-close, #videoModal .btn-close {
  width: 48px;
  height: 39px;
  padding: 0;
  opacity: 1;
  position: absolute;
  top: 0;
  right: -54px;
  background: transparent url('../images/btn-close.png') no-repeat;
  border-radius: 0;
  z-index: 1060;
}

.discoveries.modal .btn-close:hover,
.discoveries.modal .btn-close:focus,
#pdfModal .btn-close:hover,
#pdfModal .btn-close:focus,
#videoModal .btn-close:hover,
#videoModal .btn-close:focus {
  background-position: -48px 0;
  box-shadow: none;
  opacity: 1;
}

@media (min-width: 1051px) {
  .discoveries.modal .btn-close, 
  #pdfModal .btn-close, 
  #videoModal .btn-close {
    top: 0;
    right: -54px;
  }
}

.discoveries .modal-content {
  background-color: rgba(255,255,255, 0.4);
  padding: 22px 25px;
  border-radius: 25px 0 25px 25px;
  font-family: 'Barlow Regular';
  position: relative;
  max-height: 90vh;
  overflow: visible !important;
  margin: 0 auto;
  width: 100%;
}

.discoveries .modal-body {
  padding: 0;
  margin: 0;
  list-style: none;
  -ms-box-orient: horizontal;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  font-size: 1.1rem !important; /* Use !important to override the inherited font size */
  max-height: calc(90vh - 44px);
  overflow-y: auto;
}

.discoveries .col-cnt {
  background: rgb(235,107,48);
  background: linear-gradient(150deg, rgba(235,107,48,1) 0%, rgba(206,21,63,1) 45%);
  padding: 20px;
  color: #ffffff;
  border-radius: 25px 0 0 25px;
  margin-right: 13px;
  position: relative;
  min-height: 500px;
  flex: none;
  width: 40%;
  font-size: 1rem !important;
  display: flex;
  flex-direction: column;
}

.discoveries .col-info {
  display: flex;
  flex-direction: column;
  width: 60%;
  font-size: 1rem !important; /* Use !important to override the inherited font size */
}

.discoveries .inner-col-media {
  margin-bottom: 13px;
  position: relative;
}

.discoveries .inner-col-media img {
  width:100%;
  height: 293px;
}

.discoveries .inner-col-docs {
  background: #ededed;
  display: flex;
  border-radius: 0 25px 25px 0;
  flex-direction: column;
  height: 100%
}

@media (min-width: 576px) {
  .discoveries .modal-dialog {
    max-width: 940px;
  }
}

/*#videoModal .modal-dialog {*/
/*  max-width: 80%;*/
/*  margin: 30px auto;*/
/*}*/

#videoModal .modal-body {
  padding: 0;
  background-color: #000; /* Black background for video */
}

/*#videoModal .btn-close {*/
/*  z-index: 1000;*/
/*  border: 2px solid #ffffff;*/
/*  position: absolute;*/
/*  right: -35px;*/
/*  top: 0;*/
/*  color: #ffffff;*/
/*  border-radius: 30px;*/
/*  background-color: #ffffff;*/
/*}*/

.col-content .row {
  width: 100%;
  height: 100%;
}

.col-content .col:first-child {
  text-align: left !important;
}

.col-content .col:last-child {
  text-align: right !important;
}

.col-content {
  background-color: rgba(38, 79, 29, 0.9);
  border: 1px solid #fff;
  border-radius: 10px;
  margin-right: 25px;
  letter-spacing: 0.1rem;
  color: #fff;
  position: relative;
}
.col-content div {
  padding: 30px 20px 30px 10px;
}
.col-content h4 {
  /* text-transform: uppercase; */
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-family: 'Barlow SemiBold';
}

.col-content h5 {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 25px;
  font-family: 'Barlow SemiBold';
}

/* .col-content h6 {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.col-content h4 span {
  display: inline-block;
  border-bottom: 1px solid #ffffff;
}

.col-content li {
  padding-left: 10px;
}


.inner-col-docs li a {
  color: #000;
  text-decoration: none;
}

.inner-col-docs li a:hover {
  color: #000;
  text-decoration: underline;
}

.btn-discover {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: auto;
  padding-top: 20px;
}

.btn-discover button {
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid #fff;
  padding: 5px 10px;
  font-family: 'Barlow Medium';
  color: #d0264c;
}

.btn-discover button:hover {
  background-color: #cd163f;
  border: 1px solid #fff;
  color: #fff;
}

.pdf-to-show, .video-to-show {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 10001;
  top: 0;
  left: 0;
  background: rgba(0,0,0, 0.2) url('../images/i-pdf.png') no-repeat center center;
  cursor: pointer;
}

.video-to-show {
  background: none;
}

.inner-col-media embed {
  position:relative
}

#pdfModal, #videoModal {
  z-index: 10060;
}

#pdfModal .modal-body, #videoModal .modal-body {
  padding: 0;
}
.modal-xl {
  max-width: 1095px;
}

@media all and (max-height: 768px) {
  /* Don't change body background here since it's already black */
  
  video,
  .video-trans {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .discoveries .modal-dialog {
    max-width: 80%;
    margin: 1.75rem auto;
  }

  .discoveries .modal-content {
    width: 100%;
    margin: 0 auto;
  }

  .discoveries .modal-body {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  
  .discoveries .col-cnt {
    width: 100%;
    margin-right: 0;
    margin-bottom: 13px;
    border-radius: 25px 25px 0 0;
    min-height: auto;
  }
  
  .discoveries .col-info {
    width: 100%;
  }
  
  .discoveries .inner-col-media img {
    height: auto;
  }
  
  .discoveries .inner-col-docs {
    border-radius: 0 0 25px 25px;
  }
  
  .discoveries.modal .btn-close, 
  #pdfModal .btn-close, 
  #videoModal .btn-close {
    right: 10px;
    top: -45px;
  }
}

@media (max-width: 576px) {
  .discoveries .modal-dialog {
    margin: 20px auto;
  }
  
  body {
    font-size: 14px;
  }
  
  .discoveries .col-cnt {
    padding: 15px;
  }
}

.discoveries.modal .modal-dialog {
  height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}

.discoveries .modal-content {
  max-height: 90vh;
  overflow: visible !important;
}

.discoveries .modal-body {
  max-height: calc(90vh - 44px);
  overflow-y: auto;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
}

.discoveries.modal .btn-close, 
#pdfModal .btn-close, 
#videoModal .btn-close {
  width: 48px;
  height: 39px;
  padding: 0;
  opacity: 1;
  position: absolute;
  top: 0;
  right: -54px;
  background: transparent url('../images/btn-close.png') no-repeat;
  border-radius: 0;
  z-index: 1060;
}

@media (max-width: 1024px) {
  .discoveries .modal-dialog {
    max-width: 80%;
  }

  .discoveries .modal-body {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .discoveries .col-cnt {
    width: 100%;
    margin-right: 0;
    margin-bottom: 13px;
    border-radius: 25px 25px 0 0;
    min-height: auto;
  }
  
  .discoveries .col-info {
    width: 100%;
  }
  
  .pdf-to-show, .video-to-show {
    height: 100%; /* Match container height */
    max-height: 30vh; /* Remove max-height constraint */
    width: 100%;
  }
  
  .discoveries .inner-col-media img {
    height: auto;
    max-height: 30vh; /* Remove max-height constraint */
    width: 100%;
    object-fit: contain; /* Change from cover to contain to show full image */
  }
  
  .discoveries .inner-col-docs {
    border-radius: 0 0 25px 25px;
    max-height: none; /* Remove fixed height constraint */
  }

  .discoveries.modal .btn-close, 
  #pdfModal .btn-close, 
  #videoModal .btn-close {
    right: 10px;
    top: -45px;
  }
}

@media (max-width: 576px) {
  .discoveries .modal-dialog {
    max-width: 95%;
  }
  
  .discoveries .col-cnt {
    padding: 15px;
  }
  

  
  .discoveries .inner-col-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .discoveries .inner-col-docs {
    max-height: calc(25vh - 13px);
  }
}

/* Use media queries to scale text at specific breakpoints */
@media (max-width: 992px) {
  .discoveries .modal-body {
    font-size: 1rem !important;
  }
}

@media (max-width: 768px) {
  /* body font-size is removed here */
}

@media (max-width: 576px) {
  /* body font-size is removed here */
  .discoveries .modal-body {
    font-size: 0.95rem !important;
  }
}


#externalLinkModal .modal-dialog {
  max-width: 50%;
}
.embed-responsive-16by9 {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.embed-responsive-item {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures video plays at native ratio without cropping */
}

.embed-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none; /* Remove border */
}

/* Video modal specific styles */
#videoModal .modal-body {
  padding: 0;
  background-color: #000; /* Black background for video */
}

/* Native video elements in any context */
video.native-video,
#videoModal video {
  width: 100%;
  height: auto;
  max-height: 80vh; /* Prevent videos from being taller than the viewport */
  background-color: #000;
  display: block;
}

/* Ensure videos in inner-col-media keep aspect ratio */
.inner-col-media {
  height: auto !important;
  width: 100%;
}

/* Mobile warning message */
#mobile-warning {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgb(52 49 50 / 20%);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 0.6rem;
  z-index: 100;
  display: none; /* Hidden by default */
}

/* Responsive modal adjustments */
@media (max-width: 767.98px) {
  .modal-dialog.modal-xl {
    max-width: 95%;
    margin: 0.5rem auto;
  }
  
  .discoveries .modal-content {
    max-width: 100%;
  }
  
  #externalLinkModal .modal-dialog {
    max-width: 95%;
  }
  
  .discoveries .modal-body {
    flex-direction: column;
  }
  
  .discoveries .modal-body .col {
    width: 100%;
  }
  
  .inner-col-media {
    width: 100% !important;
  }
  
  /* Show mobile warning on small screens */
  #mobile-warning {
    display: block;
  }
}

/* Responsive title bar adjustments */
@media (max-width: 790px) {
  .page-title {
    width: 680px !important;
    max-width: 100%;
  }
  
  #title {
    font-size: 1.3rem;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .page-title {
    width: 90% !important;
    height: 60px; /* Scale height down */
  }
  
  .page-title .col-left,
  .page-title .col-right {
    width: 45px !important;
    min-width: 45px !important;
    background-size: 100% 100% !important; /* Ensure background image scales */
  }
  
  #title {
    font-size: 0.875rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
}

/* iPhone SE/mini and other very small screens */
@media (max-width: 375px) {
  .page-title {
    width: 95% !important;
    height: 50px;
  }
  
  .page-title .col-left,
  .page-title .col-right {
    width: 35px !important;
    min-width: 35px !important;
  }
  
  #title {
    font-size: 0.8rem;
  }
}

/* For extremely small widths */
@media (max-width: 320px) {
  .page-title {
    height: 45px;
  }
  
  .page-title .col-left,
  .page-title .col-right {
    width: 30px !important;
    min-width: 30px !important;
  }
}

/* Stage container with fixed 16:9 aspect ratio */
#stage-container {
  position: relative;
  /* REMOVE aspect-ratio, max-width, max-height, width, height, padding-bottom */
  background-color: #000; /* Keep background */
  overflow: hidden;      /* Keep overflow */
  margin: 0;             /* Alignment handled by body */
  /* Width and Height will be set by JavaScript */
}

#main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Ensure header stays outside the stage container */
header {
  position: absolute;
  display: inline-block;
  bottom: 21px;
  right: 27px;
  width: 175px;
  height: 41px;
  z-index: 100;
}

/* Responsive scaling for stage container */
@media (max-width: 1200px) {

  /* Adjust modals to appear correctly with stage container */
  .discoveries.modal .modal-dialog {
    z-index: 10000;
  }
}

/* Scale logo on medium screens */
@media (max-width: 992px) {
  header {
    width: 140px;
    height: auto;
  }
}

/* Scale logo on small screens */
@media (max-width: 768px) {
  header {
    width: 120px;
    bottom: 15px;
    right: 20px;
  }
}

/* Further reduce size on very small screens */
@media (max-width: 576px) {
  header {
    width: 100px;
    bottom: 10px;
    right: 15px;
  }
}

#page-home, .page-category, .page-anim { /* Add other similar classes if they exist */
    position: absolute; /* If they are meant to overlay or switch out */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Optional, if content within them shouldn't spill */
}

/* Keep existing general close button styles */
.discoveries.modal .btn-close, 
#pdfModal .btn-close, 
#videoModal .btn-close {
    width: 48px;
    height: 39px;
    padding: 0;
    opacity: 1;
    position: absolute;
    top: 0; /* Adjust as needed */
    right: -54px; /* Adjust as needed */
    background: transparent url('../images/btn-close.png') no-repeat;
    border-radius: 0;
    /* z-index: 1060; /* Default for .discoveries.modal .btn-close */
}

/* Specific override for #pdfModal and #videoModal close buttons */
#pdfModal .btn-close, 
#videoModal .btn-close {
    z-index: 10061; /* Higher than the modal's z-index (10060) */
    /* You might need to adjust top/right specifically for these if they differ */
}

/* Ensure .discoveries.modal .btn-close still has a z-index if needed */
.discoveries.modal .btn-close {
    z-index: 5001; /* Higher than .discoveries.modal (5000) */
}

/* Media query adjustments for smaller screens should also be checked for z-index */
@media (max-width: 1024px) { /* Or your relevant breakpoint */
  .discoveries.modal .btn-close, 
  #pdfModal .btn-close, 
  #videoModal .btn-close {
    right: -12px;
    top: -15px;
    /* Ensure z-index here is also appropriate if overridden */
  }
}