:root {
  --color-primary: #1A5033;
  --color-background: #FFED70;
  --color-button-green: #56C14C;
  --color-button-green-hover: #45a049;
  --color-button-blue: #2196F3;
  --color-red: #E60A14;
  --color-zuta: #FDEC01;
  --color-blue: #0050AA;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --color-scanning-overlay: #00246668;
  --color-white: #fff;
  --color-green: #019746;
}

.hidden {
  display: none !important;
}

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

.title {
  font-family: 'Alexandria', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-green);
  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-white);
  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-button-green);
  border-top: 25px solid var(--color-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

#impressum-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-white);
  z-index: 1100;
  overflow-y: auto;
  /* Allow scrolling if needed */
  padding-bottom: env(safe-area-inset-bottom);
  /* iOS safe area */
}

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

.impressum-content {
  display: flex;
  background-color: var(--color-white);
  flex-direction: column;
  /* Stack children vertically */
  justify-content: center;
  /* Center vertically */
  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;
  text-align: center;
  color: black;
  font-size: 20px;
}

.hr-projekt-logo {
  max-width: 600px;
  height: auto;
  width: 100%;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

#close-impressum-button {
  position: absolute;
  top: 27px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: var(--color-button-green);
  padding: 0;
  border-radius: 50%;
}

#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-between;
  align-items: center;
  height: 100%;
  width: 100%;
  padding-bottom: max(20px, env(safe-area-inset-bottom)); 
}

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

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

#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;
  width: 40px;
  height: 40px;
  background-color: var(--color-button-green);
  border: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
} */

.icon-button {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  background: none;
  background-color: var(--color-white);
  border: none;
  color: var(--color-primary);
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 27px;
  padding-right: 20px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  box-shadow: none;
  min-width: 250px;
  max-width: 300px;
  width: 100%;
}

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

.icon-button .label {
  font-size: 14px;
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  text-align: left;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.center-fixed {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
}

.half-button {
  /* position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: -32px;
  bottom: calc(env(safe-area-inset-bottom) - 32px); */
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  background-color: var(--color-button-green);
  border: none;
  color: var(--color-white);
  /* padding-top: 14px; */
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Alexandria', sans-serif;
  font-weight: 400;
  box-shadow: none;
  font-size: 13px;
  min-width: 164px;
  min-height: 37px;
}

#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-white);
  /* background-image: url('./assets/images/background.png'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1001;
  color: var(--color-green);
  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;
}

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

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

.help-step p {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: var(--color-green);
  text-transform: uppercase;
}

.step-number {
  background-color: var(--color-red);
  border-radius: 50%;

  color: var(--color-white);
  font-size: 27px;
  font-weight: bold;
  width: 49px;
  height: 49px;
  align-content: center;
  text-align: center;
}

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

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

.close-button {
  /* position: absolute; */
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  background-color: var(--color-button-green);
  padding: 0;
  border-radius: 50%;
}

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

.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-zuta);
  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;
}

#animal-label {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background-color: var(--color-white);
  padding: 10px 20px;
  border-radius: 25px;
  font-family: 'Alexandria', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
  text-align: center;
}

#animal-label.hidden {
  display: none;
}