@font-face {
  font-family: 'Playfair Display';
  src: url('./public/Playfair_Display/static/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('./public/Playfair_Display/static/PlayfairDisplay-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('./public/Playfair_Display/static/PlayfairDisplay-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('./public/Playfair_Display/static/PlayfairDisplay-BoldItalic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('./public/Atkinson Hyperlegible Next/AtkinsonHyperlegibleNext-Light.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('./public/Atkinson Hyperlegible Next/AtkinsonHyperlegibleNext-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('./public/Atkinson Hyperlegible Next/AtkinsonHyperlegibleNext-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('./public/Atkinson Hyperlegible Next/AtkinsonHyperlegibleNext-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  color: black;
  height: 100vh;
  width: 100%;
  background-color : black;
   background-color : rgb(24, 24, 24);
   background : radial-gradient(ellipse at center, rgb(32, 32, 32) 0%, rgb(18, 18, 18) 70%, rgb(12, 12,12) 100%);

}


#card1 {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  max-width: auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  height: 100%;
}



model-viewer {
  width: 100%;
  height: 100vh;  
  box-sizing: border-box; /* Ensure proper sizing */
  opacity:0;
  transition:opacity 1s ease-in-out;
}


footer {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-style: italic;
  line-height: 1.5em;
    /* visibility toggled by JS */
  opacity: 0;
  transition: opacity 800ms ease, transform 900ms cubic-bezier(.22,1,.36,1);
}



.view-button {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  box-shadow: inset 0 0 0 2px white, white 0 0 0 0;
  background-color: transparent;
  pointer-events: auto;
  position: absolute;
  transform: translate3d(-50%, -50%, 0);
  cursor: pointer;
  z-index: 1000000;
  --min-hotspot-opacity: .8;
  opacity: .2;
  transition: all 0.2s ease-in-out;
  padding: 0;
  margin: 0;
  transform-origin: center;
  background-size: 15px;
  background-repeat: no-repeat;
  background-position: center;

}
.hasAudioFile{
  width: 12px;
  height: 12px;
display: block;
  border-radius: 50%;
  border: none;
  box-shadow: inset 0 0 0 10px white, white 0 0 0 0;
  background-color: transparent;
  pointer-events: auto;
  position: absolute;
  transform: translate3d(-50%, -50%, 0);
  cursor: pointer;
  z-index: 1000000;
  transition: all 0.1s ease-in-out;
  padding: 0;
  margin: 0;
  transform-origin: center;
  background-size: 15px;
  background-repeat: no-repeat;
  background-position: center;
  
}
.view-button:hover .tooltip {
  opacity: 1;
  
}

.view-button:hover {
  width: 40px;
  height: 40px; opacity:1;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: inset 0 0 0 3px white, white 0 0 20px 0;
}

.hasAudioFile:hover {
  background-color: rgba(0, 0, 0, .8);
  background-image: url('/public/play-1000.svg');
}

.tooltip {
  opacity: 0;
  position: absolute;
  bottom: 60px;
  /* Adjust to position below the button */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;z-index: 1000000;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;

  /* Added transition for smooth effect */
}
.view-button.channeled{
  width: 40px;
  z-index: 999999999999999999;
  height: 40px;
  opacity:1;
  box-shadow: inset 0 0 0 3px white, white 0 0 0 0;
  background-color: rgba(0, 0, 0, .8);
  background-image: url('/public/play-1000.svg');

}
.view-button.channeled:hover{
 box-shadow: inset 0 0 0 3px white, white 0 0 20px 0;

}
.tooltip.channeled-tooltip{
  opacity:1;pointer-events: auto;
}

#exit {
  /* always top right of the screen */
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  background-color: transparent;
  border-radius: 200px;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  pointer-events: auto;
  padding: 15px;

  transition: box-shadow 0.1s ease-in-out;
  box-shadow: 0 0 0 0 white, inset 0 0 0 0 rgba(0, 0, 0, .2);
}
#exit:hover{
  box-shadow: 0 0 0 2px white, inset 0 0 50px 0 rgba(0,0,0,.3);
}
#exit img{
  height: 30px; 
  width: 30px; 
  vertical-align: middle;
}

.gradient-blur {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  transform-origin: center;
  display:none;
}


.gradient-blur > div:nth-of-type(2) {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  backdrop-filter: blur(3px) saturate(101%) contrast(105%) brightness(120%);
  -webkit-mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 1) 80%
  );
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 1) 80%
  );
}

.gradient-blur > div:nth-of-type(1) {
  position: absolute;
  inset: 0;
  z-index: 3;
  backdrop-filter: blur(8px)  saturate(101%) contrast(102%);

  -webkit-mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0) 80%,
    rgba(0, 0, 0, 1) 90%
  );
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 10%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0) 80%,
    rgba(0, 0, 0, 1) 90%
  );
}




#grist-record-panel {
  position: fixed;
  inset: 0;
  display:none;
  pointer-events: none; /* allow clicks to pass through by default */
  background-color: transparent;
  color: white;
  font-size: 12px;
  width:100%;
  height:100vh;
  margin:0;
  opacity:0;
  transition: opacity 1s ease-in-out;
}

#grist-record-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ring-bg, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--bg-size, contain);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
  width:100vw;
  height:100vh;
}

#grist-record-panel {
  mix-blend-mode: screen;
}
#header, #footer{
  pointer-events: none; /* allow clicks to pass through by default */
  background-color: transparent;
  color: white;
  font-size: 12px;
}
#header{
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 400;
  padding:15px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  flex-wrap: wrap;
  align-content: center;
  will-change: transform;
  width:100%;
}

#header h2{
  font-size:18px; 
  margin-bottom: 15vh;
  display: block; opacity:.6; line-height:1.2; color:white; font-weight: bolder;
  text-align: center;
  width:100%;
}
#header h1{
  opacity:.6;
  text-shadow: 0 -10px 30px rgba(0, 0, 0, 1);
  font-size: clamp(28px, 8.5vw, 64px);
  margin:20px 0 15px 0;
  display: block; 
  line-height:1.1;
  font-family:'Playfair Display', 'Times New Roman', Times, serif;
  font-style: italic;
   font-weight:normal; 
   letter-spacing: 2px;
  text-align: center;
  width:100%;
}
#logo{
  margin: 0 auto;
  padding: 0;
  text-align: center;
  vertical-align: top;
  align-self: center;
  will-change: transform;
}
.dashboard-item{
  display: inline-block;
  align-items: center;
  text-align: center;
  padding-right:min(4vw, 60px);
  transition: all 1.5s ease-in-out;
}
#dashboard-conditions{
    display: flex; /* Use flexbox for layout */
  justify-content: space-evenly; /* Space items evenly across the width */
  align-items: center; /* Center items vertically */
  align-self: center;
  flex-wrap: wrap; /* Allow wrapping if there's not enough space */
  width: min(100vw, 800px);gap:10px;
}

#dashboard-logo {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  align-self: center;
  flex-wrap: wrap;
  width: min(100vw, 800px);
  gap: 20px;
}

#dashboard-logo .dashboard-item {
  display: inline-block;
  align-items: center;
  text-align: center;
  padding-right: min(4vw, 60px);
  transition: all 1.5s ease-in-out;
}

#dashboard{
  margin:auto;
  align-items: center;
}
.dashboard-item:not(.dashboardevent) > img,
.dashboard-item:not(.dashboardevent) > .icon, /* if your image uses .icon class */
.dashboard-item:not(.dashboardevent) > .bigicon {
  display: block;
  margin: 0 20px 10px; /* space between image and text */
  max-width: 100%;
  height: auto;
}
.dashboard-item:not(.dashboardevent) > span,
.dashboard-item:not(.dashboardevent) > .label {
  display: block;
  text-align: center;
}

.dashboardevent{
  border-radius:10px;
  padding:10px 20px;
  padding-right:min(4vw, 60px);
  backdrop-filter: blur(10px) saturate(101%) contrast(105%) brightness(120%);
  border-bottom:6px solid #fdb827;
  width:min(60vw, 300px);

z-index:1000000000;
background-color:rgba(30,30, 30, .6);pointer-events: all;cursor:pointer;
}
.dashboardevent:hover{
background-color:white;color:black;
}
.dashboardevent:hover .icon, .dashboardevent:hover .bigicon{
  /*invert colors*/
  filter: invert(1);
}
.dashboardevent .icon, .dashboardevent .bigicon{
  opacity:1;
}

#event-logger {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: min(60vw, 300px);
  margin-left: auto;
  margin-right: auto;
}

.newNotification {
  border-radius: 10px;
  padding: 20px 50px;
  backdrop-filter: blur(10px) saturate(101%) contrast(105%) brightness(120%);
  border-bottom: 6px solid #fdb827;
  background-color: rgba(30, 30, 30, .6);
  pointer-events: all;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  align-items: center;
  gap: 10px;
}

.newNotification:hover {
  background-color: white;
  color: black;
}

.newNotification:hover .icon,
.newNotification:hover .bigicon {
  filter: invert(1);
}

.newNotification .notification-time,.newNotificationSmall .notification-time {
  display: none !important;
}
.newNotification img{
  margin: 0 auto 10px auto !important;
}

.newNotificationSmall {
  padding: 5px 30px;
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 10px;
  background-color: rgba(30, 30, 30, .6);
  backdrop-filter: blur(10px) saturate(101%) contrast(105%) brightness(120%);
  border-bottom: 6px solid #8b8b8b;
  pointer-events: all;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.newNotificationSmall:hover {
  background-color: white;
  color: black;
}

.newNotificationSmall:hover .icon,
.newNotificationSmall:hover .bigicon,
.newNotificationSmall:hover img {
  filter: invert(1);
}




.oldNotification, .oldNotificationSmall{
  padding: 5px 50px;
  margin: 2px 0;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 3px;
  backdrop-filter: blur(5px);
  color:rgba(255,255,255,.5);
  border-left: 2px solid #fdb827;
  border-bottom: none;
  pointer-events: all;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;

  opacity:1;
}

.oldNotification:hover{
  background-color: rgba(253, 184, 39, 0.3);
  opacity:.9;
  color:rgba(255,255,255,1);
}
.oldNotificationSmall:hover {
   background-color: rgba(255, 255, 255, 0.3);
   opacity:.9;
   color:rgba(255,255,255,1);
}

.oldNotification .notification-time, .oldNotificationSmall .notification-time {
  display: inline;
  opacity: 0.6;
  font-size: 11px;
  margin-left: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.oldNotification .icon,
.oldNotification .bigicon,
.oldNotification img,
.oldNotificationSmall img {
  display: none !important;
}

.oldNotificationSmall {
 border-left: 2px solid #ffffff;
}


.icon, .bigicon{
  width: 25px;
  opacity:.5;
  height: 60px;
  vertical-align: middle; margin:0px 20px;
}

.bigicon{
  width: 40px;
  opacity:1;margin:0px 15px;
}

#dashboard-logo img,
#dashboard-logo .icon,
#dashboard-logo .bigicon {
  width: 130px;
  height: 130px;
  opacity: 1;
  margin: 0 25px;
  transition: transform 5s ease, opacity 5s ease;
}
#footer{
  position: absolute;
  bottom: 20px;  /* Adjusts for bottom safe area */
  left: 0;
  z-index:1000000000;
  font-size: 14px;
  font-weight: 400;
height:fit-content;
  margin:0 20px;
  text-align: left;
  transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
  overflow:hidden;

}
/* Base style for each field block — they can receive pointer events, field blocks can be any elements*/
#grist-record-panel > div:not(#centerUI,#context), #grist-record-panel > audio{
pointer-events :auto;
}
                #centerUI {
                      height: 100px;
    width: 100px;
    top: 50vh;
    left: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    /* font-weight: bold; */
    opacity: 0.4;
    pointer-events: none;
    margin-top: 60px;
                }

                #centerUI span {
                  pointer-events: none;
                }
/* Title (display_name) */
#context {
  text-align: center;
  font-size: 32px;
  font-weight: normal;
  width:400px;
  max-width:60vw;
  line-height: .9;
  pointer-events: none;
  letter-spacing: 1px;
  top: 50vh;
  left: 50%;
  position:fixed;
  transform: translate(-50%, -50%);
  z-index: 1000;
  font-family: 'Playfair Display', 'Times New Roman', Times, serif;
  transition: all 2s cubic-bezier(0.22, 1, 0.36, 1);
}
#context span{
  pointer-events: none;
}

#alt {
  margin:  0 0 20px 20px;
  pointer-events: auto;
  width:600px;
  max-width: calc(100vw - 140px);
  font-size: 16px;
line-height:150%;
  letter-spacing: .2px;
  position:relative;
  top: 35px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}

/* Keyframes for the sliding animation */
@keyframes slide-left {
  0% {
    transform: translateX(100%); /* Start off-screen to the right */
  }
  100% {
    transform: translateX(-100%); /* End off-screen to the left */
  }
}
/* credit should be on the bottom left */
#credit {
  position: fixed;
  bottom: 20px;  /* Adjusts for bottom safe area */
  left: 20px;  /* Adjusts for left safe area if needed */
  font-size: 12px;
  font-weight: 400;
  max-width: 60vw;
  min-height:10px; min-width:10px;
  padding:15px;
  margin:0 0;
  opacity:.6;
}
#final, audio{
  display:none;
}
/* Subtitle (location) directly under title with pin icon */
#location {
  display: flex;
  align-items: center;
  font-size: 12x;
  max-width: 60vw;
  height:30px;
  margin-left:35px;margin-top:40px;
  margin-right:10px;
      float: left;
      opacity:.6;
}

#location .pin {
  flex: 0 0 14px;
  display: inline-block;
  vertical-align: middle;
  fill: #ff6b6b;
  opacity: 0.95;
}
#arbutton {
  z-index: 9999; 
  background-color: transparent; 
  border-radius: 200px; 
  border: none; 
  position: fixed;  /* Changed from absolute to fixed for viewport-relative positioning */
  bottom: 20px;
  right: 20px;
  box-shadow: 0 0 0 0 white, inset 0 0 0 0 rgba(0,0,0,.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 15px;
  display: none;
}
#arbutton:hover {
  box-shadow: 0 0 0 3px white, inset 0 0 10px 0 rgba(0,0,0,.5);
}
#arbutton img {
  height: 30px; 
  width: 30px; 
  vertical-align: middle;
}
.headerpin {
  width: 30px;
  height: 30px;
  margin-right: 4px;
}

#loader{
  height: 10px;
  width: 100px;
  position: relative;
  margin: 20px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

model-viewer::part(default-ar-button), model-viewer::part(default-ar-button) div, model-viewer::part(default-ar-button) > div, #ar-button{
  position: absolute;
  top: -60px; /* Adjust to ensure visibility above the menu bar */
  left: -90px; /* Keep it at the bottom-right corner */
  z-index: -10; /* Ensure it stays above other elements */
  opacity: 0; /* Hide the default AR button */
  pointer-events: none;
  display:none;
  margin:0;
  padding:0;
  width:0;height:0;
  background-color: transparent;
  background: none;
  border:none;
  box-shadow: none;
  transform: scale(0);
}

/* ===== IMMERSION scroll-in + group push + fade ===== */

/* ANIMATION TIMING VARIABLES - adjust these to control the animation */
:root {
  --immersion-middle-position: calc(27vh - 100px);    /* Where IMMERSION pauses in the middle */
  --immersion-scroll-distance: 100vh;      /* Final position below horizon */
  --header-scroll-distance: 100vh;         /* How far header moves */
  --immersion-slide-in-duration: 8s;      /* Time to slide to middle */
  --immersion-pause-duration: 0s;         /* Pause time at middle */
  --immersion-slide-out-duration: 7s;     /* Time to slide below horizon */
  --header-slide-duration: 10s;           /* Time header slides with IMMERSION */
  --fade-out-duration: 1.2s;              /* Final fade out time */
}


@media (max-width: 1250px) {
  :root {
    --immersion-middle-position: calc(50vh - 35vw);
  }
  #header{
    top:calc(45vh - 15vw);
  }
}



#immersion-text {
  
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: -1;
  transform: translateY(-25vh);
  opacity: 0;
  color: rgba(255, 255, 255, 0.418);
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-weight: 200;
  letter-spacing: 8px;
  box-sizing: border-box;
  padding: 0 4vw;
  max-width: 100vw;
  transform-origin: top center;
  font-size: clamp(42px, 14vw, 140px);
}
#immersion-text.scroll-in {
  animation: immersionFullAnimation calc(var(--immersion-slide-in-duration) + var(--immersion-pause-duration) + var(--immersion-slide-out-duration)) linear forwards;
  opacity: 1;
}


/* Move header with IMMERSION (push effect) */
#header-animation-wrapper.scroll-with-immersion {
  animation: groupSlide var(--header-slide-duration) linear forwards;
  opacity: 1;
}

/* Fade-away utility after the scroll completes */
.fade-out-immersion {
  opacity: 0 !important;
  transition: opacity var(--fade-out-duration) ease-in-out !important;
}

/* Keyframes */
@keyframes immersionFullAnimation {
  0%     { 
    transform: translateY(-25vh); 
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  53.3%  { 
    transform: translateY(var(--immersion-middle-position)); 
    animation-timing-function: linear;
  }
  53.3%  { 
    transform: translateY(var(--immersion-middle-position)); 
    animation-timing-function: ease-in;
  }
  100%   { 
    transform: translateY(var(--immersion-scroll-distance)); 
  }
}



@keyframes immersionSlideToMiddle {
  0%   { transform: translateY(-25vh); }
  100% { transform: translateY(var(--immersion-middle-position)); }
}

@keyframes immersionSlideDown {
  0%   { transform: translateY(var(--immersion-middle-position)); }
  100% { transform: translateY(var(--immersion-scroll-distance)); }
}

@keyframes groupSlide {
  0%   { transform: translateY(0); }
  100% { transform: translateY(var(--header-scroll-distance)); }
}


/* Logos — fluid and visible */
#dashboard-logo img,
#dashboard-logo .icon,
#dashboard-logo .bigicon {
  width: clamp(70px, 22vw, 130px);
  height: clamp(70px, 22vw, 130px);
  margin: 0 clamp(10px, 3.5vw, 25px);
}

#dashboard-logo { gap: clamp(6px, 3vw, 18px); }

/* Menu */
#menu-btn {border-radius:100px; padding:15px; opacity:.3; position: fixed; top: 20px; right:20px; width: 30px; height: 30px; cursor: pointer; z-index: 10000; display: flex; flex-direction: column; justify-content: center; gap: 6px; transition: opacity .3s; }
#menu-btn.hide { opacity: 0; pointer-events: none; }
#menu-btn span { width: 30px; height: 3px; background: white; transition: .3s; border-radius: 2px; }
#menu-btn:hover{opacity:1; box-shadow: 0 0 0 2px inset white;}
#menu-btn.x span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#menu-btn.x span:nth-child(2) { opacity: 0; }
#menu-btn.x span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.menuoutBtn{
    padding: 20px 30px;
    margin: 10px;
    width: 200px;
    border-radius: 99999px;
    box-shadow: 0 0 0 2px white;
}
.menuoutBtn:hover{
  box-shadow: 0 0 0 4px white;
}


#menu { width:100vw; position: fixed; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; opacity: 0; pointer-events: none; transition: opacity .3s; }
#menu.open { opacity: 1; pointer-events: auto; }
#menu h2 { font-size: clamp(24px, 5vw, 36px); margin-bottom: 5vh; }
#menu p { font-size: clamp(14px, 2.5vw, 16px); line-height: 1.6; margin-bottom: 10vh; max-width: 600px; width:80%; opacity: .9; }
#menu .logos { display: flex; gap: 30px; margin:0 100px 0 70px; margin-bottom: 10vh; width: 100%; max-width: 800px; flex-wrap: wrap; justify-content: space-around; }
#menu .logos a { flex: 0 1 auto; transition:all .3s ease; }
@media (max-width: 609px) {
  #menu .logos { margin-left: 70px;margin-right: 70px; max-width: 100%; }
}

#menu .logos img { HEIGHT: 40px;  transition: .3s;}
#menu .logos a:hover { transform: scale(1.1); opacity: 1; }
#menu a { color: white;  opacity: .7;  text-decoration: none;}
#menu a:hover { opacity: 1; }

/* Loading dots animation */
@keyframes loadingDot {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.loading-dot {
  animation: loadingDot 1.5s infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.6s;
}
