:root {
  --body-background-color: #b5b5b5;
  --main-text-color: #3a464d;
  --main-highlight-color: #ffe270;
  --button-text-color: rgb(35, 31, 32);
  --black-color: rgb(16, 16, 16);
}

@font-face {
  font-family: 'Futura Std';
  src: url(/fonts/FuturaStd-ExtraBold.otf);
}

@font-face {
  font-family: 'Dongle';
  src: url(/fonts/Dongle-Regular.woff);
}

@font-face {
  font-family: 'WFVisualSansSemiBold';
  src: url(/fonts/WFVisualSans-SemiBold.woff2);
}

@font-face {
  font-family: 'WFVisualSans';
  src: url(/fonts/WFVisualSans-Medium.woff2);
}

@font-face {
  font-family: 'FuturaCondensed';
  src: url(/fonts/FuturaStd-CondensedBold.otf);
}

/* @font-face {
  font-family: 'Bai Jamjuree';
  src: url(/fonts/BaiJamjuree-Light.woff2);
} */
@font-face {
  font-family: 'Open Sans';
  src: url(/fonts/OpenSans.ttf);
}

html {
  height: 100vh;
}

body {
  margin: 0;
  padding: 0;
  /* padding: 20px; */
  color: var(--main-text-color);
  /* background: url('/v3/images/light-gray-gradient-blur-template-vector.jpg')
    no-repeat center center fixed;
  background-size: cover; */

  /* background-size: 100% 100%;
  background-position: 0px 0px;
  background-image: linear-gradient(
    358deg,
    rgb(219, 219, 219) 0%,
    #fbfbfbff 101%
  ); */
  /* background: linear-gradient(328.71deg, #eeeeee 22.63%, #d3d3d3 76.92%); */
  /* background: linear-gradient(320deg, #777777 10%, #1b1b1b 90%); */
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  height: 100dvh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  width: 90%;
  height: 90%;
  margin: 5vh auto;
}

.panel {
  border-radius: 10px;

  cursor: pointer;
  flex: 1;
  margin: 10px;

  transition: flex 0.6s ease-in, transform 0.6s ease-in;
}

.panel-content {
  /* filter: grayscale(100%); */
  position: relative;
  height: 100%;
  width: 100%;
  /* border-radius: 10px; */
}

/* blur video */

.panel.active .panel-content::after {
  opacity: 1;
}

.panel .rotate-div {
  position: absolute;
  bottom: 120px;
  left: 170px;
  transform: rotate(-90deg);
}

.panel h3 {
  font-size: 24px;
  color: white;
  position: absolute;
  bottom: 100px;
  left: -70px;
  font-family: 'WFVisualSans', sans-serif;
  font-weight: 200;
  opacity: 0.5;
  /* transform: rotate(-90deg); */
  /* Optional: To make sure the text is readable */
  white-space: nowrap;
}

.panel {
  position: relative;
  overflow: hidden;
}

.panel .panel-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 2;
  width: 200px;
  opacity: 0;
}

/* .panel.active::before {
  background-color: transparent;
  transition: background-color 0.6s ease-in 0.4s;
} */

video {
  display: block;
  object-fit: cover;
  width: 110%;
  height: 110%;

  margin: -5px;
  padding: 0;
}

.panel.active {
  flex: 4;
  outline: #000000 2px solid;
}

.panel.active .panel-content {
  /* filter: grayscale(0%); */
  transition: filter 0.6s ease-in 0.4s;
}

.panel.active h3 {
  opacity: 0.2;
  transition: opacity 0.3s ease-in 0.4s;
}

.panel .message-container {
  opacity: 0;
}

.panel.active .message-container {
  display: flex;
  gap: 2rem;
  position: relative;
  bottom: 260px;
  padding: 2rem;
  /* background-color: rgba(255, 255, 255, 0.95); */
  border-radius: 8px;
  border: 1px solid #c2c2c2;
  max-width: 80%;
  height: 150px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.3s ease-in 0.4s;
  overflow: hidden;

  /* Dark glass blur effect */
  background: rgba(255, 255, 255, 0.763);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.message-container .stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
  border-right: 2px solid var(--black-color);
}

.message-container .stat .number {
  font-family: 'WFVisualSansSemiBold', sans-serif;
  font-size: 4rem;
  font-weight: bold;
  color: var(--black-color);

  line-height: 1;
}

.message-container .stat .name {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1rem;
  color: var(--black-color);
  margin-top: 0.5rem;
}

.message-container .quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-container .quote p {
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--black-color);
  margin: 0 0 1.5rem 0;
  text-shadow: none;
  text-indent: -0.4rem;
}

.message-container .quote div {
  font-family: 'Bai Jamjuree', sans-serif;
  color: var(--black-color);
}

.message-container .quote div:last-child {
  /* color: #be0606; */
  margin-top: 0.5rem;
  cursor: pointer;
}

.message-container .quote .author .read-more {
  background-color: #9dc75f;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'Bai Jamjuree', sans-serif;
  transition: background-color 0.3s ease;
}

.author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 768px) {
  .panel.active .message-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .message-container .stat {
    border-right: none;
    border-bottom: 2px solid #e0e0e0;
    padding-right: 0;
    padding-bottom: 1.5rem;
    text-align: center;
  }
}

.panel.active .panel-logo {
  opacity: 0.9;
  transition: opacity 0.3s ease-in 0.4s;
}

h1 {
  font-family: 'Futura Std', sans-serif;
  font-size: 100px;
  font-weight: bolder;
  line-height: 0.85em;
  margin-top: 10px;
  opacity: 1;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  font-size: 5vh;
  line-height: 0em;
  margin-bottom: 0vh;
  margin-top: 0vh;
  opacity: 1;
}

p {
  color: #b3b3b3;
  text-shadow: #484848 1px 1px 2px;
  font-family: 'Bai Jamjuree', sans-serif;
  font-size: x-large;
  font-weight: 200;
}

p:hover {
  color: white;
}

model-viewer {
  width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;

  margin: 0;
  padding: 0;
  z-index: 1;
  /* Remove pan-y to prevent scrolling conflicts */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  --poster-color: transparent;
}

/* Add this class to prevent scrolling when interacting with model */
body.interacting-with-model {
  overflow: hidden;
  touch-action: none;
  position: fixed;
  width: 100%;
  height: 100%;
}

model-viewer::part(default-ar-button) {
  display: none;
}

/* Customize the loading progress line color */
model-viewer::part(default-progress-bar) {
  background-color: #ff0059;
  top: 100px;
  /* Change the background color of the progress bar */
}

.ar-button {
  font-family: inherit;
}

/* model-viewer[loading] {
  opacity: 0.5;
} */

.bottom {
  position: absolute;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  /* margin: 50px; */
  bottom: 0.5vh;
  z-index: 1;
  left: 30px;
  bottom: 30px;
}

.bottom-middle {
  display: flex;
}

#pauseButton {
  /* margin-left: 35px; */
  font-size: 18px;
  position: absolute;
  left: 30px;
  bottom: 30px;
  background-color: transparent;
  box-shadow: none;
  outline: 1px solid white;
}

.buttonClassB {
  background: #ff0000;
  /* margin-left: 40px; */
}

#pauseButton:hover {
  background-color: red;
}

button {
  color: white;
  background-color: #b7b7b7;
  border-radius: 4px;
  animation: var(--body-background-color) 3s;
  border: none;
  font-size: 18px;
  padding: 0.5em 1em;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

button.footer:hover {
  background-color: #626262;
}

button.footer:active {
  background-color: #fb0000;
  color: rgb(255, 255, 255);
}

button.view-button {
  background: #ffffff;
  filter: opacity(0.5);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: #3a464d;
  display: block;
  font-family: 'Open SanS', Helvetica Neue, sans-serif;
  font-size: 1.5vh;
  font-weight: 700;
  border: none;
  /* max-width: 128px; */
  overflow-wrap: break-word;
  padding: 0.5em 1em;
  position: absolute;
  width: max-content;
  height: max-content;
  transform: translate3d(-50%, -50%, 0);
}

button.view-button:active {
  background-color: #ff0000;
  color: white;
}

.navbar {
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  /* justify-content: flex-start; */
  padding: 0 20px;
  z-index: 10;
  gap: 20px;
  width: calc(100% - 40px);
  height: 100px;
  /* background-color: #1b1b1b; */
}

.navbar button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #9dc75f;
  color: var(--black-color);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.navbar button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.navbar .back-button,
.navbar .home-button {
  font-size: 18px;
  padding: 0;
}

.navbar .home-button svg {
  width: 20px;
  height: 20px;
  fill: var(--black-color);
}

.navbar .back-button svg {
  width: 20px;
  height: 20px;
  fill: var(--black-color);
}

.navbar .asco-logo,
.navbar .studio-logo {
  position: static;
  cursor: pointer;
  filter: drop-shadow(0 0 1px #272727);
  width: 200px;
  display: none;
  /* flex: 1; */
}

.navbar .asco-logo {
  margin-left: auto;
  height: inherit;
  width: auto;
}

.machine-chooser {
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: center;
  height: 60%;
  width: 100%;
  gap: 120px;
}

.machine-chooser div {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--black-color);
  gap: 20px;
}

.machine-chooser div img {
  transition: filter 0.2s ease-in-out;
}

.machine-chooser div img:hover {
  filter: drop-shadow(0 0 10px #929292);
  transform: scale(1.1);
}

@media screen and (max-width: 1300px) {
  .message-container .quote p {
    display: none;
  }

  .author div {
    display: none;
  }
}

@media screen and (max-width: 1000px) {
  #side-panel-container,
  #pauseButton,
  .accordion {
    display: none;
  }

  .studio-logo {
    top: 30px;
    right: 30px;
  }

  .message-container .quote p {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--black-color);
    margin: 0 0 1.5rem 0;
    text-shadow: none;
    text-indent: -0.4rem;
  }
}

@media screen and (max-width: 480px) {
  model-viewer::part(default-progress-bar) {
    background-color: #ff0059;
    top: 70px;
    /* Change the background color of the progress bar */
  }

  .container {
    /* flex: 1; */
    max-height: 100%;
    width: 90vw;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    /* bottom: 5%; */
  }

  .navbar {
    /* padding: 15px; */
    /* flex: 1; */
    height: 70px;
  }

  .panel {
    flex: 1;
  }

  /* .panel h3 {
    font-size: 24px;
    color: #424242;
    background-color: #9dc75f;
    bottom: 15px;
    font-weight: 700;
    padding: 5px;
    border-radius: 5px;
  } */

  .studio-logo {
    display: none;
  }

  .asco-logo {
    overflow: hidden;
  }

  .machine-chooser {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 40px;
    padding: 20px;
    position: absolute;
    top: 0;
  }

  .machine-chooser div {
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #b7b7b7;
  }

  .machine-chooser div a {
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .machine-chooser div img {
    width: 70%;
  }

  .panel.active .panel-logo {
    scale: 0.5;
    transform: translate(-70%, -120%);
  }

  .panel .rotate-div {
    position: absolute;
    bottom: -100px;
    left: 90px;
    transform: rotate(0deg);
  }

  .panel.active h3 {
    opacity: 1;
    transition: opacity 0.3s ease-in 0.4s;
  }

  .panel.active .rotate-div {
    opacity: 1;
    transition: opacity 0.5s;
  }

  .panel.active .message-container {
    border-radius: 0;
    border: none;
    border-top: 1px white;

    max-width: 100%;
    bottom: 200px;
    display: none;
  }

  .panel.active .message-container > .stat {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 10px;
    align-items: end;
    padding-bottom: 0.5rem;
  }

  .panel.active .message-container > .stat > .number {
    font-size: 1rem;
  }

  .panel.active .message-container > .stat > .name {
    font-size: 1rem;
  }
}
