:root {
  --color-primary: #002466;
  --color-background: #FFED70;
  --color-button-green: #4CAF50;
  --color-button-green-hover: #45a049;
  --color-button-blue: #2196F3;
  --color-red: #E60A14;
  --color-blue: #0050AA;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-scanning-overlay: #00246668;
  --color-white: #fff;
}

.hidden {
  display: none !important;
}

@font-face {
  font-family: 'LidlFontPro';
  src: url('./assets/fonts/LidlFontPro-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'LidlFontPro';
  src: url('./assets/fonts/LidlFontPro-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}



body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'LidlFontPro', sans-serif;
  color: var(--color-primary);
}

.title {
  font-family: 'LidlFontPro', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

#model-buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--color-overlay);
  padding: 10px;
  border-radius: 5px;
}

.model-button {
  background: var(--color-button-green);
  border: none;
  color: var(--color-white);
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}

.model-button:hover {
  background: var(--color-button-green-hover);
}

.model-button.active {
  background: var(--color-button-blue);
} 

.a-enter-vr {
  display: none !important;
}

#loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  height: calc(var(--vh, 1vh) * 100); /* Dynamic viewport height */
  min-height: -webkit-fill-available; /* Mobile browser fix */
  width: 100%; /* Full viewport width */
  max-width: 100vw;
  background-color: var(--color-blue);
  background-image: url('./assets/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  overflow: hidden;
}

#loading-screen-logo {
  height: 100px;
  margin-bottom: 20px;
}

#loading-screen.hidden {
  display: none;
}

#loading-screen-inner {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  justify-content: space-evenly; /* Center vertically */
  align-items: center; /* Center horizontally */
  height: 100%; /* Ensure it takes full height of the parent */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

#loading-screen-infininte-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100px;
  border: 25px solid var(--color-red);
  border-top: 25px solid var(--color-background); 
  border-radius: 50%; 
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#home-screen {
  position: absolute;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100vh; /* Full viewport height */
  height: -webkit-fill-available; /* Mobile browser fix */
  width: 100vw; /* Full viewport width */
  background-color: var(--color-blue);
  background-image: url('./assets/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1000;
  overflow-y: auto; /* Allow scrolling if needed */
  padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
}

#home-screen.hidden {
  display: none;
}

#home-screen-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  width: 100%;
  padding-bottom: max(20px, env(safe-area-inset-bottom)); /* Add padding for iOS */
}

#buttons-container {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  gap: 22px;
  margin-bottom: max(20px, env(safe-area-inset-bottom)); /* Add margin for iOS */
}

#home-screen-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
}

#home-screen-logo {
  max-height: 280px;
  margin-bottom: 0px;
  max-width: 80%; /* Make sure logo is responsive */
}



.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0;
  border-radius: 0;
  cursor: pointer;
}

.icon-button {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 30px;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: 'LidlFontPro', sans-serif;
  font-weight: 700;
  box-shadow: none;
  min-width: 250px;
}

.icon-button .icon {
  width: 48px;
  height: 48px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.icon-button .label {
  font-size: 16px;
  font-family: 'LidlFontPro', sans-serif;
  font-weight: 700;
  color: var(--color-white);
  text-align: left;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

#help-screen
{
  position: absolute;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100vh; /* Full viewport height */
  height: -webkit-fill-available; /* Mobile browser fix */
  width: 100vw; /* Full viewport width */
  background-color: var(--color-blue);
  background-image: url('./assets/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1001;
  color: var(--color-white);
  padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
}

#help-screen.hidden {
  display: none;
}

.help-content {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  justify-content: flex-start; /* Changed from space-around to flex-start */
  align-items: center; /* Center horizontally */
  height: 100%; /* Ensure it takes full height of the parent */
  padding: 40px;
  overflow-y: auto; /* Enable vertical scrolling */
  max-height: 100vh; /* Limit height to viewport height */
  box-sizing: border-box; /* Include padding in height calculation */
  max-width: 520px;
  /* Hide scrollbar */
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

.help-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

#help-screen h2 {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 18px;
  color: var(--color-white);
  letter-spacing: 1px;
}

.help-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
  margin-top: 30px;
}

.help-step p {
  font-size: 1em;
  text-align: center;
  margin-bottom: 25px;
  color: var(--color-white);
  text-transform: uppercase;
}

.help-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

.help-footer p {
  font-weight: 600;
  text-align: center;
  color: var(--color-white);
  margin-top: 12px;
  text-transform: uppercase;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.close-button img {
  width: 28px;
  height: 28px;
}

.close-button.hidden {
  display: none;
}

#scanning-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: -webkit-fill-available;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#scanning-overlay.hidden {
  display: none;
}

.scanning-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-scanning-overlay);
  padding: 50px 30px 50px 30px;
  position: relative;
  margin-left: 60px;
  margin-right: 60px;
}

.scanning-overlay-text {
  color: var(--color-white);
  font-family: 'LidlFontPro', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 32px;
  text-transform: uppercase;
  
}

.scanning-overlay-magnifier {
  height: 100px;
  margin-top: 8px;
}

#scanning-overlay .bottom-left-corner,
#scanning-overlay .bottom-right-corner,
#scanning-overlay .top-left-corner,
#scanning-overlay .top-right-corner {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 6px solid var(--color-red);
  z-index: 1;
}

#scanning-overlay .top-left-corner {
  top: -30px;
  left: -30px;
  border-right: none;
  border-bottom: none;
}

#scanning-overlay .top-right-corner {
  top: -30px;
  right: -30px;
  border-left: none;
  border-bottom: none;
}

#scanning-overlay .bottom-left-corner {
  bottom: -30px;
  left: -30px;
  border-right: none;
  border-top: none;
}

#scanning-overlay .bottom-right-corner {
  bottom: -30px;
  right: -30px;
  border-left: none;
  border-top: none;
}

#completion-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: -webkit-fill-available; /* Mobile browser fix */
  background-color: var(--color-blue);
  background-image: url('./assets/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
}

#completion-modal.hidden {
  display: none;
}

.modal-content {
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  position: relative;
  max-width: 90%;
  width: 400px;
}

.modal-content h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.modal-content p {
  color: var(--color-white);
  font-size: 24px;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  padding-left: 20px;
  padding-right: 20px;
}

#close-modal-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

#close-modal-button img {
  width: 40px;
  height: 40px;
}

@media (max-width: 375px) {
  #home-screen-logo {
    max-width: 220px;   /* or any size that fits well */
    height: auto;
  }
}

#tap-hand-animation {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
}

#tap-hand-animation img {
  width: 80px;
  height: auto;
  opacity: 0.8;
}