@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');



body {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: hsl(252.52, 53.04%, 11.93%);
  position: absolute;
  margin: 0;
  top: 0;
  left: 0;
  line-height: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* padding-top: 48px; */
  min-height: 100%;
  height: 100%;
  background-image: linear-gradient(360deg, hsl(0deg 0% 0%), hsl(186.06, 100%, 20.55%));
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#header {
  background: #ffffff26;
  width: 60px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 900;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
}

#pages-container {
  height: 100%;
  width: calc(100% - 70px);
  right: 0;
  position: absolute;
}

#iframe-container {
  /* border: 4px solid #ffffff73; */
  height: 80%;
  width: 90%;
  position: relative;
  overflow: hidden;
}

#container-topper {
  z-index: 999;
  backdrop-filter: blur(4px);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 1s ease;
  flex-direction: column;
}

#control-section {
  background-color: rgb(0 0 0 / 56%);
  width: 100%;
  height: 100%;
  padding: 20px;
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: row;
  gap: 0;
  transition: transform 225ms cubic-bezier(0, 0, 0.2, 1);
}



.input-topper-style.btn {
  margin-bottom: 10px;
  height: 40px;
  width: 50%;
  max-width: 500px;
}


.btn {
  background: transparent;
  padding: 11px 16px;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 1.75em;
  color: #ffffff6b;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  user-select: none;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  color: #ffffffd8;
}

.BarButton {
  color: white;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  transition: 1s ease;
  cursor: pointer;
}

.BarButton:hover {
  color: #ffffff45;
  transform: scale(0.8);
  border: 3px solid #ffffff47;
}

.BarButton.Selected {
  border: 3px solid #ffffff47;
}

#game-preview {
  --background: black;
  height: 90%;
  top: 5%;
  width: calc(100% - 290px);
  position: absolute;
  left: 0;
  border-radius: 7px;
  background: var(--background);
  background-size: cover;
  background-position: center;
  transition: 1s ease;
}

#games-container {
  position: absolute;
  height: 100%;
  width: 300px;
  right: 0;
}

#games-types {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-games-container {
  height: calc(100% - 60px);
  margin-top: 10px;
  position: absolute;
}

.selector {
  background: transparent;
  color: #ffffff9e;
  font-family: sans-serif;
  font-weight: bolder;
  height: 80%;
  width: 80%;
  border-radius: 7px;
  cursor: pointer;
  border: 3px solid;
  outline: none;
  transition: 1s ease;
}

.selector:hover {
  color: white;
}

.game-selector-options {
  color: #e9e9e9d1;
  background: #043327;
  font-weight: bolder;
  font-family: sans-serif;
  border: none;
}

.game-selector-options:hover {
  background: rgb(22, 104, 83);
}

.lil-game-container {
  min-height: 100px;
  flex: 0;
  margin-bottom: 10px;
  --background: black;
  height: 100px;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 7px;
  color: white;
  font-family: sans-serif;
  font-weight: bolder;
  letter-spacing: 1px;
  background: var(--background);
  background-size: cover;
  background-position: center;
  transition: 1s ease;
  cursor: pointer;
}

.lil-game-container:hover {
  color: #053126;
}

.main-games-types-container {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: auto;
}

.main-games-types-container::-webkit-scrollbar {
  width: 5px;
  height: 12px;
}

.main-games-types-container::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 2px;
}

.main-games-types-container::-webkit-scrollbar-thumb:hover {
  background: #fcfcfc;
  border-radius: 2px;
}

.main-games-types-container::-webkit-scrollbar-track {
  background: #f1f1f100;
  border-radius: 2px;
  width: 2px;
}

#game-settings {
  width: 90%;
  margin-top: 10px;
}

.select {
  background: #e62600;
  padding: 0 5px;
  height: 30px;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75em;
  color: white;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  user-select: none;
  justify-content: center;
}

.select .change {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  width: 20px;
  height: 100%;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.select .change:hover {
  background: rgb(161, 26, 0);
}

.transition {
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.transition:hover {
  color: #ffffffd8;
}

/* ─── Shared transition helper (used by UIHelper elements) ─────────────────── */
.transition {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity   200ms ease,
              color     200ms ease;
}

/* ─── Gear icon (shown during Unity init) ───────────────────────────────────── */
@keyframes gear-spin {
  from { rotate: 0deg;   }
  to   { rotate: 360deg; }
}

/* outer — handles position only, never rotates */
#loading-gear {
  position: absolute;
  right: 0;
  transform: translate(40%) scale(2.25);
  color: rgba(255,255,255,0.25);
  display: flex;
  justify-content: center;
  transition: color 200ms ease;
  cursor: default;
}

/* inner — rotates around its own center */
#loading-gear-inner {
  display: flex;
  transform-origin: center center;
  animation: gear-spin 1.8s linear infinite;
  animation-play-state: paused;
}

#loading-gear:hover {
  color: rgba(255,255,255,0.6);
}

#loading-gear:hover #loading-gear-inner {
  animation-play-state: running;
}
