html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

.hidden {
  display: none;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  overflow: hidden;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

canvas {
  display: block;
}

#unity-container {
  width: 100%;
  height: 100%;
}
#unity-canvas {
  width: 100%;
  height: 100%;
  background: #000000;
}

#loading-cover {
  position: absolute;
  top: 0;
  width: 40%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1;
  transform: scale(0.8);
}

#unity-loading-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

#unity-logo {
  display: flex; /* Add flex display */
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  width: 100%; /* Full width of the parent */
  margin-bottom: 20px; /* Space below logo */
}

#unity-logo img {
  max-width: 100%;
  height: auto; /* Maintain aspect ratio */
}

.loading-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0;
  font-size: 16px;
}

#progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  align-items: center;
  height: 10px;
  width: 100%; /* Use percentage for responsiveness */
  margin: 10px 0;
}

#progress-value {
  background: #fff;
  border-radius: 100px;
  height: 100%;
  width: 0; /* Progress value set by JavaScript */
  transition: width 0.3s;
}

#unity-loading-time {
  width: 100%;
  text-align: right;
  opacity: 0.3;
  margin-bottom: 10.5px; /* Space below time display */
}


/* Responsive Styles */
@media (max-width: 768px) {
  #unity-logo img {
    max-width: 100%;
  }

  .loading-info {
    font-size: 10px;
  }

  #progress {
    width: 100%;
  }

  #unity-loading-time {
    font-size: 9.5px;
  }
}

@media (max-width: 480px) {
  #unity-logo img {
    max-width: 100%;
  }
}

.c-checkbox {
  display: none;
}

.c-checkbox:nth-of-type(1):checked ~ .c-formContainer .c-form__toggle {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.7);
}

.c-checkbox:nth-of-type(1):checked ~ .c-formContainer .c-form .c-form__group:nth-child(1) {
  visibility: visible;
  opacity: 1;
}

.c-checkbox:nth-of-type(2):checked ~ .c-form__progress {
  width: calc(100% / 3);
}

.c-checkbox:nth-of-type(2):checked ~ .c-formContainer .c-form .c-form__group:nth-child(1) {
  visibility: hidden;
  opacity: 0;
}

.c-checkbox:nth-of-type(2):checked ~ .c-formContainer .c-form .c-form__group:nth-child(2) {
  visibility: visible;
  opacity: 1;
}

.c-checkbox:nth-of-type(3):checked ~ .c-form__progress {
  width: calc((100% / 3) + 100% / 3);
}

.c-checkbox:nth-of-type(3):checked ~ .c-formContainer .c-form .c-form__group:nth-child(2) {
  visibility: hidden;
  opacity: 0;
}

.c-checkbox:nth-of-type(3):checked ~ .c-formContainer .c-form .c-form__group:nth-child(3) {
  visibility: visible;
  opacity: 1;
}

#finish:checked ~ .c-form__progress {
  width: 100%;
}

#finish:checked ~ .c-formContainer .c-form {
  transition: opacity 0.2s 0.1s, transform 0.3s;
  opacity: 0;
  transform: translateX(50%) scaleX(0);
}

#finish:checked ~ .c-formContainer .c-form .c-form__group:nth-child(3) {
  transition: 0s;
  visibility: hidden;
  opacity: 0;
}

#finish:checked ~ .c-formContainer .c-welcome {
  opacity: 1;
}

.c-formContainer {
  width: 100%;
  height: 65px;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.c-form {
  position: relative;
  width: inherit;
  height: inherit;
  background-color: #000000;
  box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  border-bottom: 0.1px solid rgb(68, 68, 68);
}

.c-form:hover {
  transition: background-color 0.3s;
  background-color: #161616;
}

.c-form__toggle {
  width: inherit;
  height: inherit;
  font-size: 18px;
  color: #bbbbbb;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-form__toggle:hover {
  color: #ffffff;
}

.c-form__group {
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  padding: 12px 15px;
  box-sizing: border-box;
  transition: 0.2s 0.2s;
  position: absolute;
}

.c-form__label {
  position: relative;
  cursor: pointer;
  width: calc(100% - 40px);
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.c-form__input {
  font-size: 20px;
  font-family: inherit;
  width: 100%;
  height: 70%;
  border: 0;
  outline: 0;
  color: #e2e2e2;
  box-sizing: border-box;
  cursor: pointer;
}

.c-form__input:focus ~ .c-form__groupLabel,
.c-form__input:not(:placeholder-shown) ~ .c-form__groupLabel {
  font-size: 10px;
  top: -4px;
  transform: translateY(0);
  color: #168dc4;
}

.c-form__input:focus ~ .c-form__border,
.c-form__input:focus ~ .c-form__next,
.c-form__input:not(:placeholder-shown) ~ .c-form__border,
.c-form__input:not(:placeholder-shown) ~ .c-form__next {
  transition: 0.3s;
}

.c-form__groupLabel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s;
  color: #ffffff;
}

.c-form__border {
  position: absolute;
  width: 0;
  height: 3px;
  color: #ffffff;
  background-color: currentColor;
  transition: 1s 0.2s ease-out;
}

.c-form__next {
  color: #25a3ff;
  position: absolute;
  right: -40px;
  height: 100%;
  width: 40px;
  cursor: pointer;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.c-form__nextIcon {
  position: relative;
  right: 1.5px;
  width: 20px;
  height: 3px;
  background-color: currentColor;
}

.c-form__nextIcon::before,
.c-form__nextIcon::after {
  content: "";
  position: absolute;
  right: -1.5px;
  width: 15px;
  height: 3px;
  background-color: inherit;
}

.c-form__nextIcon::before {
  bottom: -1.5px;
  transform-origin: top right;
  transform: rotate(45deg);
}

.c-welcome {
  position: absolute;
  width: max-content;
  height: inherit;
  font-size: 40px;
  color: #ffffff;
  opacity: 0;
  transition: 0.3s;
}

.c-form__nextIcon::after {
  top: -1.5px;
  transform-origin: bottom right;
  transform: rotate(-45deg);
}

.c-form__progress {
  height: 10px;
  width: 0;
  background-color: #ffffff;
  transition: width 1s, height 0.3s, opacity 1s; /* Apply transition to width and height only */
  margin-top: 10px;
  align-self: baseline;
  display: flex;
  justify-content: center;
}

.c-form__input:not(:placeholder-shown):invalid ~ .c-form__border,
.c-form__input:not(:placeholder-shown):invalid ~ .c-form__next {
  color: #ff0033;
}

.c-form__input:required:valid ~ .c-form__next {
  pointer-events: initial;
  color: #25a3ff;
}

input {
  background-color: #000000; /* Black background */
  color: #ffffff; /* White text for contrast */
  border: none; /* Optional: white border */
}

input:hover {
  transition: background-color 0.3s;
  background-color: #161616;
}

#language-detection-tab{
  position: absolute;

  display: flex;
  width: 90vw;
  max-width: 500px;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  font-size: 15px;

  opacity: 0;

  transition: 0.5s;
}

#language-detection-heading{
  font-size: 35px;
  margin: 10px 0px 0px 0px;
}

#language-detection-heading2{
  font-size: 12px;
  margin: 10px 0px 10px 0px;
  color: gray;
}

#language-detection{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  width: 100%;
}

.language-item-class{
  border: 0.5px solid rgb(48, 48, 48);
  border-radius: 15px;
  width: 150px;
  height: 80px;
  display: flex;
  margin: 0px 0.3em 0px 0.3em;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  user-select: none;
}

.language-item-class:hover{
  background-color: rgb(51, 51, 51);
}

.language-item-class:active{
  background-color: rgb(17, 17, 17);
}

.language-item-class > span {
  font-size: 12px;
  color: gray;
}
