/**
 * This document and its contents are the property of blue-zone GmbH. This document contains confidential proprietary    *
 * information. The reproduction, distribution, utilization, or the communication of this document or any part thereof,  *
 * without expressed authorization is strictly prohibited. Offenders will be held liable for the payment of damages.     *
 *                                                                                                                       *
 * Copyright (c) 2025 blue-zone GmbH or its subsidiaries. All rights reserved.                                           *
 */

:root {
  --body-height: calc(100dvh - 10% - 5%);
}

body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

button {
  color: black;
}

body {
  width: 100dvw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: center;
  padding-bottom: 0;
  height: 10%;
  width: 100%;
}

main {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: safe center;
  box-sizing: border-box;
  padding: 10px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin: 0;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 5%;
  width: 100%;
  font-size: 0.8rem;
}

::placeholder {
  color: darkgray;
}

/* -- Scrollbar -- */

main::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
main {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* -- Utility -- */

.w-half {
  width: 50%;
}

.w-90 {
  width: 90%;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.flex-col {
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.flex-list {
  display: flex;
  flex-direction: column;
}

.justify-evenly {
  justify-content: space-evenly;
}

.justify-center {
  justify-content: safe center;
}

.justify-start {
  justify-content: safe start;
}

.text-center {
  text-align: center;
}

.text-gray {
  color: rgb(85, 85, 85);
}

.text-small {
  font-size: 0.8rem;
}

/* -- Font -- */

.arimo-regular {
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.arimo-medium {
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.arimo-semibold {
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.arimo-bold {
  font-family: "Arimo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* -- Components -- */

.header-container {
  display: flex;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.instruction-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(318px, 1fr));
}

.logo {
  padding: 8px;
  aspect-ratio: 1.64/1;
}

label {
  font-weight: 600;
  font-size: 0.8rem;
}

.error-text {
  color: red;
  font-size: 0.6rem;
}

.instruction-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
}

.info-button {
  background-color: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 95%;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  font-weight: 500;
  justify-content: space-between;
}

.introduction-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
}

.introduction-text {
  text-align: center;
}

.orange-highlight {
  color: #f7bb56;
}

.image-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 0 10px 0;
}

.image-section img {
  max-width: 80%;
  object-fit: contain;
}

.bullet-list-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.bullet-list {
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bullet-item {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
  padding: 8px 0 8px 0;
}

.bullet-item span {
  font-size: 1rem;
}

.button-section {
  margin: 20px;
  flex-direction: row;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.blinking-circle {
  width: 25px;
  height: 25px;
  background-color: #ffb612;
  border-radius: 100%;
  animation: blink 1s infinite;
}

.rec-button {
  width: 100%;
  height: 100%;
}

.button-sizing {
  width: 158px;
  height: 69px;
}

.button-without-circle {
  background-color: transparent;
  border: none;
  cursor: pointer;
  background-image: url("/images/button-without-circle.png");
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 40px;
}

.blinking-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.blinking-ball-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 40px;
}

.upload-text {
  font-weight: 800;
  font-size: 1.2rem;
  padding-right: 10px;
}

.upload-image {
  width: 66%;
}

.upload-icon {
  width: 32px;
  height: 32px;
  filter: invert(1); /* Makes the icon white */
}

.button-with-image {
  width: 100px;
  height: 100px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.svg-icon {
  width: 65%;
  height: auto;
  display: block;
}

/*recording block*/

.recording-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 800px;
  max-height: 70dvh;
  box-sizing: border-box;
}

#main_video {
  max-width: 100%;
  height: auto;
  max-height: 70dvh;
  object-fit: contain;
  border: 5px solid #ffb612;
  border-radius: 15px;
  transform: rotate(0deg);
}

#controls-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.record-button {
  width: 60px;
  height: 60px;
  background-color: #ffb612;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: none;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 0 1px rgb(97, 97, 97), 0 0 0 4px white,
    0 0 0 6px rgb(97, 97, 97);
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.record-button.recording {
  background-color: #ff0000;
}

#additional-fields {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

#additional-fields textarea,
#additional-fields input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  box-sizing: border-box;
  background-color: #f6f6f5;
  border-radius: 10px;
  font-weight: bold;
}

#additional-fields textarea {
  height: 110px;
  resize: vertical;
}

#sendButton {
  display: block;
  padding: 12px 24px;
  background-color: #ffb612;
  border: none;
  cursor: pointer;
  border-radius: 24px;
  color: black;
}

.form-submitting-page-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.form-submitted-heading {
  height: 15%;
  font-size: 1.2rem;
  text-align: center;
  font-weight: 600;
}

.loupe-section {
  max-width: 500px;
}

.loupe-section img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Adjust for Android */
.android #main_video {
  object-fit: cover;
  transform: rotate(0deg);
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.input-error {
  outline: 1px solid red;
  box-shadow: 0 0 3px red;
}

.info-text {
  font-size: 0.6rem;
  text-align: center;
  margin: 0;
  padding: 0;
  width: 80%;
}

#imagePreview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preview-image {
  width: 80px; /* Adjust size */
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Overlay to center spinner */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Spinning animation */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Text under spinner */
.loading-text {
  margin-top: 10px;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.send-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hint-parent {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  height: 100%;
  padding-bottom: 4px;
}

.hint-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  width: 50%;
}

.hint-container:hover {
  cursor: pointer;
  background-color: #f6f6f5;
}

.hint-image {
  width: 100%;
  height: auto;
}

.checkbox-input-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
}

.singular-checkbox {
  display: flex;
  flex-direction: row;
  gap: 4px;
  padding: 2px;
  width: 33%;
}

.input-checkbox {
  width: auto !important;
}

#progress-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .header {
    height: auto;
    padding: 10px 0;
  }

  .title-text {
    font-size: 1.4em;
    text-align: center;
    padding: 10px;
  }

  .bullet-list {
    height: auto;
    width: 90%;
    padding: 10px;
    font-size: 0.9em;
  }

  .button-section {
    margin-top: 10px;
    padding: 10px;
  }

  .action-button {
    width: 80%;
    padding: 10px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .title-text {
    font-size: 1.2em;
  }

  .bullet-list {
    font-size: 0.8em;
  }

  .action-button {
    width: 90%;
    padding: 8px;
    font-size: 0.9em;
  }

  .bullet-list {
    width: 75%;
  }

  .introduction-container {
    width: 80%;
  }

  main {
    margin: 0 12px 0 12px;
  }

  .button-sizing {
    width: 119px;
    height: 52px;
  }

  .upload-text {
    font-size: 1rem;
    padding-right: 16px;
  }
}

@media (max-width: 812px) {
  .recording-container {
    flex-direction: column;
    gap: 12px;
  }

  .flex-safe-alternative {
    justify-content: start !important;
  }

  .checkbox-input-container {
    flex-direction: column;
  }

  .singular-checkbox {
    width: 100%;
  }
}

@media (min-width: 812px) {
  #video-container {
    align-self: baseline;
    height: 70dvh;
  }
}
