* {
  -webkit-touch-callout: none;
  -webkit-user-callout: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-modify: none;
  -webkit-highlight: none;
  touch-action: manipulation;
}

body,
html {
  font-family: 'Trebuchet MS', sans-serif;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  color: white;
  text-align: center;
}

button {
  border: none;
}

.ui {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

img,
button,
div {
  image-rendering: pixelated;
  cursor: inherit;
  -webkit-tap-highlight-color: transparent;
  -khtml-user-select: none;
  -o-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
}

.dg.ac {
  position: absolute;
  z-index: 1000!important;
}

.drop-shadow {
  filter: drop-shadow(0px 2px 1px rgba(0, 0, 0, 0.4));
}

.box-shadow{
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.4);
}

#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 2px solid rgb(255, 255, 255);
  box-shadow: inset 0 0 0 2px black, 0 0 0 2px black;
  pointer-events: none;
  z-index: 1;
  /* mix-blend-mode: difference; */
}

#center-pixel {
  z-index: 1000;
  position: absolute;
  width: 1px;
  height: 1px;
  background-color: red;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


#fpscrosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  --offset: 3px;
  /* transform: scale(5); */
  --crosshairWidth: 3px;
  --crosshairLength: 10px;
}

.horizontal,
.vertical {
  position: absolute;
  background-color: white;
  z-index: 100;
}

.horizontal {
  width: var(--crosshairLength);
  height: var(--crosshairWidth);
  transform: translate(0, calc(-0.5 * var(--crosshairWidth)));
}

.vertical {
  width: var(--crosshairWidth);
  height: var(--crosshairLength);
  transform: translate(calc(-0.5 * var(--crosshairWidth)), 0);

}

#up {
  top: calc(-1 * var(--crosshairLength) - var(--offset));
}

#down {
  bottom: calc(-1 * var(--crosshairLength) - var(--offset));
}

#left {
  left: calc(-1 * var(--crosshairLength) - var(--offset));
}

#right {
  right: calc(-1 * var(--crosshairLength) - var(--offset));
}

canvas {
  touch-action: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  /* pointer-events: none; */
}

#coordinates {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  z-index: 1;
}

#time {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Arial, sans-serif;
  font-size: 5vh;
  z-index: 1;
}

.nipple-zone {
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  width: 45vw;
  z-index: 1;
}

.hotbar {
  pointer-events: auto;
  position: absolute;
  bottom: 5px;
  left: 50%;
  aspect-ratio: 416/96;
  transform: translateX(-50%);
  z-index: 2;

  background-image: url('Icons/Hotbar/hotbar.png');
  background-repeat: no-repeat;

  width: 30vw;
  max-width: 400px;

  display: flex;
  justify-content: center;
  align-items: center;
  background-size: contain;
}

.hotbar-layout {
  width: 96%;
  justify-content: space-around;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
  display: flex;
}

.hotbar-button {
  min-width: 18%;
  max-width: 18%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* opacity: 0.5; */
}

.hotbar-button > img {
  width: 90%;
}

.hotbar-selected {
  position: relative;
}

.hotbar-selected::before {
  content: "";
  background-image: url('Icons/Hotbar/selected.png');
  background-size: 100%;
  position: absolute;
  top: -10%;
  left: -5%;
  right: -5%;
  bottom: -10%;
  z-index: 100;
  pointer-events: none;
  width: 110%;
  height: 110%;
  z-index: 100;
  pointer-events: none;
}

.ability-ready {
  background-color: rgb(255, 0, 34) !important;
  transform: scale(1.2);
}

.ability {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ability-layout {
  min-width: 96%;
  min-height: 75px;
  justify-content: space-around;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
  display: flex;
}

.ability-btn {
  margin: 10px;
  background-color: rgba(71, 71, 71, 0.833);
  width: 10vh;
  height: 10vh;
  padding: 5px;
  z-index: 1;
  font-size: 22px;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-style: none;
  transition: transform 0.5s, background-color 0.5s;
  position: relative;
}

.number-indicator {
  position: absolute;
  bottom: 5px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px; /* Adjust as needed */
  color: white;
 /* Change this to the desired color */
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  z-index: 10;
}

.ability-btn .text {
  z-index: 5;
  position: relative;
  font-size: 48px;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.ability-btn .top-right-text {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 16px;
  color: white;
  z-index: 6;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  transition: transform 0.5s, font-size 0.5s;
}

.ability-btn.ability-ready .top-right-text {
  transform: scale(1.2);
  font-size: 18px;
}

.ability-icon {
  border-radius: 1rem;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.86);
  position: absolute;
  width: 8vh;
  height: 8vh;
  z-index: 4;
}

.center-page {
  position: fixed;
  /* or absolute, depending on your needs */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9;
}

.treasure-container {
  position: absolute;
  width: 90vw;
  height: 90vh;
  background: #1759ff;
  z-index: 10;
  align-self: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  background: rgb(80, 71, 255);
  background: linear-gradient(0deg, rgba(80, 71, 255, 1) 0%, rgba(0, 168, 255, 1) 91%);
  overflow: hidden;
}

.loot-container {
  position: relative;
  border-radius: 1rem 1rem 0 0;
  width: 100%;
  height: 70%;
  background: #ffffff;
  overflow: hidden;
}

.radial {
  /* background: rgb(255,192,0);
  background: radial-gradient(circle, rgba(255,192,0,1) 0%, rgba(249,255,109,1) 91%); */
  /* background: rgb(212,99,17);
  background: radial-gradient(circle, rgba(212,99,17,1) 0%, rgba(249,255,109,1) 91%); */
  background: rgb(213, 87, 3);
  background: radial-gradient(circle, rgba(213, 87, 3, 1) 0%, rgba(255, 214, 48, 1) 100%);
}

.received {
  /* background: rgb(3,213,204); */
  /* background: radial-gradient(circle, rgba(3,213,204,1) 0%, rgba(92,48,255,1) 100%); */
  background: radial-gradient(circle, rgb(28, 71, 226) 0%, rgb(8, 142, 237) 100%);

  height: 100%;
  width: 100%;
  transition: 1.5s;
  transition-timing-function: ease-out;
  clip-path: circle(0% at 50% 50%);
  /* Initially set the circle to 0% radius at the center */
  z-index: 13;
  position: absolute;
}

.loot-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0 0 1rem 1rem;
  width: 100%;
  height: 30%;
  background: #292929;
  z-index: 10;
}

.loot-title {
  font-size: 4em;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}

.loot-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 2em;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s;
}

.loot-button:hover {
  background-color: #45a049;
}

.chest {
  transition: 1s;
  height: 50% !important;
}

.chest:hover {
  transform: translate(-50%, -50%) scale(1.2);
  /* animation: wobble 0.5s ease-in-out infinite; */
}

/* @keyframes wobble {
  0% { transform: translate(-50%, -50%) scale(1.2) rotate(0deg); }
  25% { transform: translate(-50%, -50%) scale(1.2) rotate(-5deg); }
  50% { transform: translate(-50%, -50%) scale(1.2) rotate(0deg); }
  75% { transform: translate(-50%, -50%) scale(1.2) rotate(5deg); }
  100% { transform: translate(-50%, -50%) scale(1.2) rotate(0deg); }
} */

.loot-icon {
  height: 80%;
  z-index: 12;
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
}

.loot-icon,
.sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Centers the images */
}

.sparkle {
  z-index: 8;
  opacity: 0.8;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
    /* Starts the rotation from 0 degrees */
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
    /* Ends the rotation at 360 degrees */
  }
}


.upgrade {
  position: absolute;
  bottom: 175px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background-position: center;
  background-repeat: no-repeat;

  min-width: 416px;
  min-height: 96px;

  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}


/* .overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  display: flex;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  left: 0;
  top: 0;
  pointer-events: auto;
} */


.upgrade-layout {
  min-width: 96%;
  min-height: 75px;
  justify-content: space-around;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
  display: flex;
}

.upgrade-btn {
  margin: 10px;
  background-color: var(--e);
  width: 180px;
  height: 80px;
  padding: 5px;
  z-index: 1;
  font-size: 22px;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  border-style: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.upgrade-btn:hover {
  transform: scale(1.05);
  box-shadow: 5px 12px 20px rgba(0, 0, 0, 0.555);
}


.upgrade-btn-legendary {
  background-color: rgb(230, 119, 29);
}
.upgrade-btn-epic {
  background-color: rgb(245, 59, 235);
}
.upgrade-btn-rare {
  background-color: rgb(9, 149, 243);
}
.upgrade-btn-common {
  background-color: green
}


.full-page {
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding-bottom: 10px;
  pointer-events: none;
}

.ui-hb-bg {
  position: relative;
  width: 250px;
  height: 30px;
  padding: 5px;
  align-self: flex-end;
  background: rgba(92, 106, 157, 0.7);
  border-radius: 3px;
  margin-bottom: 10px;
}

.ui-hb {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  width: calc(100% - 10px);
  border-radius: 3px;
}

.ui-hb {
  background: rgb(255, 255, 255);
  z-index: 2;
}

.trans {
  transition: 0.25s;
  background: orange;
  z-index: 1;
}

.build-menu {
  width: 168px;
  height: 128px;
  top: 50%;
  left: 50%;
  position: absolute;
  z-index: 5;
  overflow: visible;
  background: url('UI/Inventory.png');
  background-repeat: no-repeat;
  background-size: contain;
  display: flex;
  justify-content: center;
}

.tab-icon {
  height: 80%;
  opacity: 100;
  /* width: 80%; */
  /* height: 80%; */
}

.tab {
  cursor: pointer;
  background: url('UI/selected.png');
  background-repeat: no-repeat;
  background-size: cover;
  width: 32px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
}

.menu-tabs {
  height: 28px;
  width: 164px;
  display: flex;
  justify-content: space-between;
}

:root {
  --a: #3E60B6;
  /* --b: radial-gradient(circle, #577DDE 30%, #7899ee 100%); */
  --b: radial-gradient(circle, #577DDE 30%, #7899ee 100%);
  --c: #FF9518;
  --d: #F1FAEE;
  --e: #FF9518;
  --blue: #1759ff;

  --stroke1px:
    -1px -1px 0 #000,
    0 -1px 0 #000,
    1px -1px 0 #000,
    1px 0 0 #000,
    1px 1px 0 #000,
    0 1px 0 #000,
    -1px 1px 0 #000,
    -1px 0 0 #000;
  
  --stroke2px:
    -2px -2px 0 #000,
    0 -2px 0 #000,
    2px -2px 0 #000,
    2px 0 0 #000,
    2px 2px 0 #000,
    0 2px 0 #000,
    -2px 2px 0 #000,
    -2px  0   0 #000;

  --stroke2px-shadow:
    -2px -2px 0 #000,
    0    -2px 0 #000,
    2px  -2px 0 #000,
    2px    0 0 #000,
    2px   2px 0 #000,
    0     2px 0 #000,
    -2px  2px 0 #000,
    -2px   0 0 #000,

  /* Shadow */
  4px 4px 4px rgba(0, 0, 0, 0.9);

  /* --pullout: linear-gradient(0deg, #3e60b678 50%, #1f397b73 100%); */
  --pullout: #3e60b6;

  /* --pullout: linear-gradient(0deg, #3E60B6 50%, #1f397b 100%); */

  --fullwidth: 100%;

  --menu-sidebar-width: 20vw;
  --ui-safe-area: 10px;

  --transform-shadow-transition: 0.3s transform, 0.3s box-shadow;

}

/* Small screens, like horizontal phones */
@media screen and (max-width: 1200px) {
  :root {
    --menu-sidebar-width: 25vw;
    --ui-safe-area: 5px;
  }
}

/* Very small screens, likely vertical phone */
@media screen and (max-width: 600px) {
  :root {
    --menu-sidebar-width: 30vw;
  }
}

.detail-block {
  height: 10%;
}

.quest-img {
  width: 60%;
  padding-top: 10px;
}

.sidebar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: flex-start;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

  height: 100%;
  width: 100%;
  max-width: 600px;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  background: var(--pullout);
  overflow-x: hidden;
  transition: 0.7s;
  transform: translateX(-110%);
}

.sidebar-right {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  max-width: 600px;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  background: var(--pullout);
  overflow-x: hidden;
  transition: 0.7s;
  transform: translateX(110%);
}

.pet-wrapper {
  width: 100%;
}

.pet-icon {
  /* width: 150px; */
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
  object-position: 120% 0;
  margin: -50px;
}

.menu-header {
  font-family: 'Trebuchet MS', sans-serif;
  height: 100px;
  min-width: 100%;
  background: var(--b);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.menu-header-orange {
  background: #FF9518;
}

.burger {
  margin: 10px;
  background-color: var(--e);
  /* border-color: #dc7908; */
  /* border-width: 0.2vw; */
  /* border-style: solid; */
  width: 10vw;
  height: 10vw;
  max-width: 100px;
  max-height: 100px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  font-size: 12vw;
  border-radius: 1vw;
  cursor: pointer;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);

  /* Flexbox properties for centering content */
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  text-align: center;
  /* Center the text horizontally in case it breaks into multiple lines */
  transition: 0.4s;

}

.burger:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.corner-btn {
  max-width: calc(var(--menu-sidebar-width)/4);
  aspect-ratio: 1/1;
  overflow: hidden;
  pointer-events: auto;
  text-shadow: var(--stroke2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  width: 100%;
  text-transform: uppercase;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;
  box-shadow: 0 5px 10px rgb(0 0 0 / 86%);
  font-size: 2vw;
  transition: 0.3s;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
}

.corner-btn-icon {
  height: 90%;
}

.quest-btn {
  top: 200px;
}

.corner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.4);
}

.quests-btn {
  background-color: var(--e);
  width: 14vw;
  height: 7vw;
  max-width: 200px;
  max-height: 100px;
  min-width: 200px;
  min-height: 100px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  font-size: 40px;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  font-family: 'Trebuchet MS', sans-serif;

  /* Flexbox properties for centering content */
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  text-align: center;
  /* Center the text horizontally in case it breaks into multiple lines */

  bottom: 10px;
  /* Position it 10px from the bottom */
  left: 50%;
  /* Start from the middle of the screen */
  transform: translateX(-50%);
  /* Shift it left by half its width */
  transition: 0.5s;
}

.quests-btn:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.quest-desc {
  font-size: 18px;
  padding: 24px;
}

.rounded {
  border-radius: 15px;
}

.center {
  min-width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.space {
  justify-content: space-around;
}

.burger-icon {
  padding: 1vw;
  filter: invert(1);
  height: 80%;
  /* overflow: hidden; */
}

.invert {
  filter: invert(1);
}

.icon {
  filter: invert(1);
  width: 30px;
  margin: 10px;
}

.quest-detail {
  min-width: 80%;
  display: flex;
  align-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 20px;
  background-color: #94949430;
  margin: 25px;
  border-radius: 15px;
}

.talent-card {
  width: 100%;
  display: flex;
}

ul {
  margin-left: 10px;
  margin-right: 10px;
  padding: 0;
  font-size: 32px;
  list-style-type: none;
  text-align: start;
}

.quest-title {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 32px;
  display: flex;
  min-width: 100%;
  justify-content: center;
  padding: 10px;
}

.star-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.star {
  width: 10%;
  padding: 5px;
}

.squad-btn {
  min-width: 250px;
  min-height: 100px;
  font-size: 40px !important;
  padding: 15px !important;
}

.detail-btn {
  margin: 10px;
  background-color: var(--e);
  width: 120px;
  height: 60px;
  padding: 5px;
  z-index: 1;
  font-size: 22px;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: 0.5s;
}

.detail-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.bar-text {
  color: #fff;
  text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}

.build-menu-container {
  height: 89px;
  bottom: 10px;
  width: 99%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: absolute;
  /* bottom: 2%; */
  z-index: 2;
  overflow-y: scroll;
}

.build-menu-icon {
  cursor: pointer;
  min-width: 18%;
  max-width: 18%;
  padding: 1%;
  max-height: 33.333333%;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: auto;
}

::-webkit-scrollbar {
  width: 8px;
  /* for vertical scrollbars */
  height: 12px;
  /* for horizontal scrollbars */
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
}

.ui-container {
  /* touch-action: none; */
  position: fixed; /* Fixed position to stay in place on screen */
  top: 0;         /* Align to the top of the screen */
  left: 0;        /* Align to the left of the screen */
  width: 100%;    /* Full width of the screen */
  height: 100%;   /* Full height of the screen */
  z-index: 100;  /* High z-index to stay on top of other elements */
  display: flex;  /* Flexbox layout */
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center items horizontally */
  justify-content: start; /* Align items to the start of the flex container */
  overflow: hidden; /* Hide overflow */
}

#chat-input-container {
  position: fixed;
  bottom: var(--ui-safe-area);
  left: var(--ui-safe-area);
  width: 30%;
  max-width: 400px;
  z-index: 1000;
}

#chat-input {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  color: black;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid gray;
  border-radius: 4px;
  pointer-events: none;
}

#chat-box {
  width: 100%;
  height: 100px;
  padding: 5px;
  font-size: 16px;
  color: black;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  /* pointer-events: none; */
  overflow-y: scroll;
  overflow-x: hidden;
}

.chat-msg {
  color: white;
  text-align: start;
}

#chat-input.active {
  pointer-events: auto;
  opacity: 1;
}

/* Inactive state with pointer events disabled */
#chat-input.inactive {
  pointer-events: none;
  opacity: 0.5;
}


/* Menu CSS */
* {
  -webkit-touch-callout: none;
  -webkit-user-callout: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-modify: none;
  -webkit-highlight: none;
}

@font-face {
  font-family: thaleah;
  src: url('/font/ThaleahFat.ttf');
}

@font-face {
  font-family: tomorrow;
  src: url('/font/Tomorrow-Bold.ttf');
}

@font-face {
  font-family: winner;
  src: url('/font/WinnerSans-Black.otf');
}


@font-face {
  font-family: tomorrow-extra;
  src: url('/font/Tomorrow-ExtraBold.ttf');
}

body,
html {
  font-family: 'tomorrow';
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  text-align: center;
  background: rgb(77, 186, 235);
  background: radial-gradient(circle, rgba(77, 186, 235, 1) 30%, rgb(48, 100, 164) 100%);
  z-index: 1;
}


.main-logo {
  image-rendering: auto;
  position: absolute;
  transition: 0.5s;
  width: 33%;
  top: var(--ui-safe-area);
  transform: translate(-50%);
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
  z-index: 1;
}

.menu {
  position: absolute;
  z-index: 1;
}

.elements-container {
  display: flex;
  flex-direction: column;
  justify-content: center; /* This centers children vertically */
  height: 100vh; /* Set to the desired height, often 100% */
  width: 100vw;
  bottom: 0;
  left: 0;
  position: absolute;
  pointer-events: none;
}

.elements {
  max-height: 75vh;
  height: 75vh;
  width: 25vw;
  max-width: 250px;
  /* min-width: 200px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  bottom: 50%;
  transform: translateY(50%);
}

.left {
  left: 30px;
}

.right {
  right: 30px;
  gap: 10px;
}

.menu.right {
  justify-content: flex-end;
}

.card {
  /* cursor: pointer; */
  pointer-events: auto;
  text-shadow:
  -2px -2px 0 #000,
   0   -2px 0 #000,
   2px -2px 0 #000,
   2px  0   0 #000,
   2px  2px 0 #000,
   0    2px 0 #000,
  -2px  2px 0 #000,
  -2px  0   0 #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 1;
  margin-top: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;
  box-shadow: 0 5px 10px rgb(0 0 0 / 86%);
  overflow: hidden;
  font-size: 3vh;
  max-height: 25%;
}

.head-icon {
  height: 42px;
  margin: 4px;
  image-rendering: pixelated;
}

.play {
  font-weight: bold;
  position: relative;
  font-size: 4vw;
  height: 96px;
  max-height: 96px;
  min-height: 56px;
  display: block;
  width: 100%;
  top: auto;
  right: auto;
  font-family: 'tomorrow-extra';
  pointer-events: auto;
  color: white;
  background-color: #FF9518;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  border-style: none;
  z-index: 100;
  text-shadow: var(--stroke2px-shadow);
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 500px;
  margin: 20px auto; /* Center the container */
}

.connect{
  background-color: #9421ef;
  font-size: 2.5vw;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: black;
}

.play:hover {
  transform: scale(1.025);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.btn-menu {
  pointer-events: auto;
  color: white;
  background-color: #838383;
  width: 100%;
  padding: 0;
  height: 7vw;
  max-height: 200px;
  min-height: 100px;
  z-index: 1;
  font-size: 4vw;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 10px;
  right: 10px;
  transition: 0.5s;
  border-style: none;
  z-index: 100;
  margin-top: 25px;
  margin-bottom: 25px;
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: black;
  text-shadow: 2px 5px #0000008d;
  margin-top: auto;
}

.btn-menu:hover {
  transform: scale(1.025);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.clickable {
  cursor: pointer;
}

.hover {
  transition: 0.5s!important;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
}

.hover:hover{
  transform: scale(1.025);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.border-hover {
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.border-hover:hover {
  box-shadow: 0 0 2px 1px rgba(23, 93, 255, 0.652); /* Adjust the values as needed */
}


.icon {
  filter: invert(1);
  width: 5vh;
  margin: 2px;
  stroke: #000000;
  stroke-width: 1px;
  stroke-dasharray: 2,2;
  stroke-linejoin: round;
}

.rank-icon {
  width: 5vh;
  stroke: #000000;
  stroke-width: 1px;
  stroke-dasharray: 2,2;
  stroke-linejoin: round;
  margin-bottom: 5px;
}

.xp-bar {
  margin-top: 5px;
  width: 90%;
  border-radius: 0.8em;
  background-color: #555;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  z-index: 5;
  bottom: 5px;
  left: 50%;
  display: flex;
  align-items: center;
  pointer-events: none;
  height: 40px;
  bottom: var(--ui-safe-area);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  padding-left: 5px;
  padding-right: 5px;
}

.quest-bar {
  min-height: 20px!important;
}

.xp-bar-label {
  display: flex;
  justify-content: center;
  align-items: center;
}

.current-mode-container {
  width: var(--menu-sidebar-width);
  min-width: var(--menu-sidebar-width);
  align-content: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  right: var(--ui-safe-area);
  bottom: var(--ui-safe-area);
  position: absolute;
}

.player-container {
  width: 33%;
  pointer-events: auto;
  position: absolute;
  bottom: var(--ui-safe-area);
  left: 50%;
  display: block;
  transform: translateX(-50%);
  gap: 10px;
  z-index: 2;
}

.main-menu-logo {
  max-width: 30vw;
}
/* 
@media (max-width: 1000px) {
  .play {
    height: 35vh;
  }

  .player-container {
    position: absolute;
    right: 10px;
    bottom: 0;
    left: auto;
    transform: none;
    width: 25vw;
  }

  .current-mode-container{
    left: 15px;
    width: 25vw;
    max-height: 35vh;
  }
}

@media (max-width: 750px) {
  .player-container {
    position: absolute;
    transform-origin: bottom center;
    right: 10px;
    bottom: 0;
    left: auto;
    top: auto;
    transform: none;
    padding: none;
    width: 45vw;
    max-height: 50vh;
    max-width: 45vw;
  }

  .current-mode-container{
    left: 15px;
    width: 45vw;
    max-width: 45vw;
  }

} */

.name-container {
  font-size: 1.2vw;
  padding: 10px;
  max-width: 30%;
  min-width: 10%;
}

.xp-container {
  font-size: 1em;
  width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
}

#player-name {
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
}

.bar-inner {
  color: #000 !important;
  background: linear-gradient(0, rgb(255, 140, 0) 30%, rgb(229, 170, 32) 100%);
  border-radius: 1em;
  transition: 0.5s;
  max-height: 20px;
}

.bar-text {
  color: #fff;
  text-shadow: 1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000, -1px 0 0 #000;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}

.quests-card {
  justify-content: flex-start;
  /* height: 100%!important; */
  flex: none!important;
  max-height: 100%!important;
}

.quest {
  font-size: small;
  width: 85%;
  padding: 10px!important;
  flex: none!important;
}

.purple {
  background: linear-gradient(0, rgb(148, 26, 172) 30%, rgb(196, 32, 229) 100%);
  max-height: 20px;
}

.gold{
  background: linear-gradient(0, rgb(175 105 0) 30%, rgb(255 238 0) 100%);
}

.private-btn {
  font-size: 2vw !important;
}

.icp-logo {
  pointer-events: auto;
  z-index: 2;
  image-rendering: auto;
  position: absolute;
  left: 25px;
  bottom: 25px;
  max-width: 8%;
}

.corner-elements {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
}

.overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  display: flex;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  left: 0;
  top: 0;
  pointer-events: auto;
}

.overlay-dark {
  background-color: rgba(0, 0, 0, 0.8);
}


.wallet-container {
  width: 50%;
  display: hidden;
}

.mobile-ui{
  position: absolute;
  bottom: 5%;
  right: 5%;
}

.touch-button {
  touch-action: none;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 25%;
  display: flex;
  height: 6rem;
  justify-content: center;
  /* text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 3px 1px rgba(0,0,0,.486); */
  width: 6rem;
  z-index: 1;
  margin: auto;
}

.touch-icon {
  width: 50%;
  transform: translateY(0);
  filter: invert(1);
  /* pointer-events: none; */
}

.placement-wrapper {
  display: flex;
  align-items: row;
}

.nav-menu {
  background-color: rgba(0, 0, 0, 0.6);
  margin: 10px;
  display: flex;
  justify-content: center;
  border-radius: 0.5rem;
  height: 60%;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  width: 20vw;
  max-width: 200px;
  padding: 10px;
}

.nav-menu button {
  font-family: 'tomorrow';
  pointer-events: auto;
  color: white;
  background-color: #FF9518;
  width: 80%;
  height: 20%;
  z-index: 1;
  font-size: 1.5vw;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-style: none;
  margin: 5px;
}

.settings-menu {
  background-color: rgba(0, 0, 0, 0.6);
  margin: 10px;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  height: 60%;
  justify-content: center;
  align-items: flex-start;
  width: 60vw;
  max-width: 600px;
  font-size: 1.5vw;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  overflow-y: scroll;
}

.setting-section {
  width: 90%;
  align-items: start;
}

.settings-slider {
  width: 100%;
}

.setting-label {
  width: 100%;
  text-align: start;
  display: flex;
  padding: 5px;
  margin-right: 10em;
}

.invite-url {
  font-size: 50%;
  font-family: 'tomorrow';
}

.copy-btn {
  font-family: 'tomorrow';
}

.options-btn {
  font-size: 1.5vw;
  padding: 15px;
  cursor: pointer;
}

.red {
  background-color: red!important;
  margin-top: auto!important;
}

.ammo-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  transform: translate(0, -50%);
}

.row-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  width: 80%;
  margin: 10px;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 25px;
  width: 100%;
  margin: 10px;
  align-content: center;
  flex-direction: row;
}

.row > div {
  width: 30vw;
  height: 14vw;
}

.mode-container {
  align-content: center;
  margin-top: 25px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: calc(100% - 2 * var(--ui-safe-area));
  height: 80%;
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: center;
  align-content: flex-start;
  align-items: center;
}

.current-mode {
  aspect-ratio: 4/3;
  border: none;
  bottom: 0;
  pointer-events: auto;
  font-size: 3vw;
  color: white;
  font-family: 'Arial', sans-serif;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  flex-direction: column;
  cursor: pointer;
  z-index: 100;
  text-shadow: var(--stroke2px-shadow);
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  transition: 0.3s transform, 0.3s box-shadow;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.gamemode-label {
  font-weight: bold; /* Makes the font bold */
  z-index: 100;
}

.gamemode-change {
  position: absolute;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
  border-radius: 0 0 15px 15px;
  /* padding-top: 18px; */
  /* padding-bottom: 18px; */
  cursor: pointer;
  height: 30%;
  font-size: 0.75em;
  text-align: center;
  align-content: center;
  text-transform: uppercase; /* UPPERCASE text for 'CHANGE' */
  width: 100%;
  margin-top: auto;
  z-index: 100;
  cursor: pointer;
}

.parkour-bg {
  background-image: url('static/gamemodes/parkour.jpeg');
}

.survivors-bg {
  background-image: url('static/gamemodes/survivors_thumb.jpeg');
}

.build-bg {
  background-image: url('static/gamemodes/freebuild.jpg');
}

.treasure-bg {
  background-image: url('static/gamemodes/treasurehunt.jpeg');
}

.island-bg {
  background-image: url('static/gamemodes/island.jpeg');
  background-position: center!important;
}

.kntflc-bg {
  background-image: url('static/gamemodes/kntflc.jpeg');
  background-position: center!important;
}

.gnpunks-bg {
  background-image: url('static/gamemodes/gnpunks.jpeg');
  background-position: center!important;
}
.arena-bg {
  background-image: url('static/gamemodes/arena.jpeg');
}

.gamemode-container {
  width: 30%;
  aspect-ratio: 1/1;
  /* height: 30vw; */
  max-width: 250px;
  border: none;
  bottom: 0;
  pointer-events: auto;
  font-size: min(5vw, 32px);
  color: white;
  font-family: 'Arial', sans-serif;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
  flex-direction: column;
  cursor: pointer;
  z-index: 100;
  text-shadow: var(--stroke2px-shadow);
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  transition: var(--transform-shadow-transition);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: visible;
}

.mode-hover:hover {
  transform: scale(1.025);
  transform-origin: center;
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.quests-label {
  margin: 10px;
}

.label {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  text-shadow: var(--stroke2px-shadow);
}

.top-menu {
  width: var(--menu-sidebar-width);
  min-width: var(--menu-sidebar-width);
  position: absolute;
  top: var(--ui-safe-area);
  display: flex;
  gap: 4px;
  z-index: 5;
}

.top-right {
  right: var(--ui-safe-area);
  justify-content: flex-end;
}

.top-left {
  left: var(--ui-safe-area);
  justify-content: flex-start;
}

.top-bar {
  width: calc(100% - 5 * var(--ui-safe-area));
  position: relative;
  height: 10vh;
  top: var(--ui-safe-area);
  border-radius: 0.5em;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: space-evenly;
  align-items: center;
  font-family: tomorrow;
  text-shadow: var(--stroke2px-shadow);
  overflow: none;
  gap: 5px;
  padding: 5px;
}

.top-bar > div,
.top-bar > button {
  background-color: #FF9518;
  display: flex;
  /* background-color: red; */
  font-weight: bold;
  text-transform: uppercase;
  color: white;
  border: none;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-size: 3vw;
  cursor: pointer;
  text-shadow: var(--stroke2px-shadow);
  transition: var(--transform-shadow-transition);
  border-radius: 1rem;
}

.top-bar > div:hover,
.top-bar > button:hover {
  /* background-color: #333333c9; */
  transform: scale(1.025);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.4);
}

.cubepoints {
  pointer-events: auto;
  text-shadow: var(--stroke2px);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 1;
  margin-top: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;
  box-shadow: 0 5px 10px rgb(0 0 0 / 86%);
  overflow: hidden;
  font-size: 3vh;
  max-height: 25%;
  padding: 10px;
}

.cubepoint-icon {
  height: 1em;
  margin-right: 10px;
  padding: 1px;
}

.username {
  font-size: 16px;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #333;
  background-color: #fff;
  color: #333;
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.username:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#username-save {
  background-color: #007bff; /* Matching the game's button style */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

#username-save:hover {
  background-color: #0056b3; /* A darker shade for hover state */
}


.hidden {
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  max-height: 0!important;
  min-height: 0!important;
  transition: opacity 0.25s ease,
              visibility 0s linear 0.25s, /* Hide visibility after opacity */
              max-height 0s ease 0.25s; /* Collapse max-height instantly after opacity */
}

.visible {
  opacity: 1;
  visibility: visible;
  max-height: 100%; /* Adjust this value to match the content's actual height */
  transition: opacity 0.25s ease,
              visibility 0s linear 0s, /* Show visibility immediately */
              max-height 0s ease 0s; /* Delay the max-height transition */
}


/* LEADERBOARD STUFF */
.leaderboard-container{
  position: absolute;
  /*background-color: rgba(47, 47, 47, 0.4);*/
  right: 0px;
  top: 35px;
  width: 300px;
  /*height: 320px;*/
}
.leaderboard-inner {
  background-color: rgba(255, 255, 255, 0.51);
  -webkit-box-shadow: 0px 5px 15px 8px rgba(228, 231, 251, 0.11);
  box-shadow: 0px 5px 15px 8px rgba(228, 231, 251, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.5rem;
}
.leaderboard-inner h2{
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#leaderboard {
  width: 100%;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #141a39;
  cursor: default;
}

tr {
  transition: all 0.2s ease-in-out;
  border-radius: 0.2rem;
}

tr:nth-child(odd) {
  background-color: rgba(249, 249, 249, 0.2);
}

td {
  height: 1.5rem;
  font-size: 1.4rem;
  padding: 0.5rem 0.75rem;
  position: relative;
}

.number {
  width: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
}

.name {
  text-align: left;
  font-size: 0.75rem;
}

.points {
  font-weight: bold;
  font-size: 1.0rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}


.snack {
  pointer-events: none;
  z-index: 1400;
  position: absolute;
  display: block;
  left: 50%;
  translate: -50%;
  -webkit-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  align-items: center;
  top: var(--ui-safe-area);
  max-width: 560px;
  font-size: 2rem;
}
/* 

@media (max-width: 1000px) {
  .snack {
    bottom: 16px;
    font-size: 1.5rem;
  }
} */

.snack-container {
  z-index: 1001;
}

.snack-body {
  pointer-events: none;
  text-align: center;
  align-content: center;
  z-index: 99999;
  transition: opacity 300ms ease-in-out;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0) 85%, rgb(0 0 0 / 10%) 100%);
  font-family: thaleah, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.87);
  text-shadow: var(--stroke2px);
  background-color: #007bff;
  -webkit-box-align: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 16px;
  border-radius: 4px;
  -webkit-box-flex: 1;
  flex-grow: 1;
}

@keyframes grow {
  0% {
    transform: scale(0);
    /* opacity: 0; */
  }
  100% {
    transform: scale(1);
    /* opacity: 1; */
  }
}

.grow-animation {
  animation: grow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.snack-message {
  padding: 8px 0;
  font-weight: 600;
}

.snack-actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: auto;
  padding-left: 16px;
  margin-right: -8px;
}

.snack-button-primary {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0px;
  border: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  text-transform: uppercase;
  min-width: 64px;
  padding: 4px 5px;
  border-radius: 4px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  color: rgb(206, 147, 216);
}
.snack-button {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
  outline: 0px;
  border: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  text-align: center;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: visible;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  color: inherit;
  padding: 5px;
  font-size: 1.125rem;
}

.gradient-bg {
  background: linear-gradient(45deg, #6A85F1, #C572EF);
}

.save-flow {
  z-index: 9999;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #222222;
  font-family: "Inter", sans-serif;
  min-height: 500px;
  font-size: 18px;
}

.save-flow h1 {
  margin-bottom: 20px;
  font-size: 32px;
}

.save-flow h2 {
  font-size: 18px;
}

.save-flow .button-group {
  display: flex;
  justify-content: space-evenly;
  margin-top: 40px;
}

.save-flow .button-group button {
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

.save-flow .button-group .save {
  background-color: #6c63ff;
  color: white;
}

.save-flow .button-group .cancel {
  background-color: white;
  color: #6c63ff;
  border: 1px solid #6c63ff;
}

.save-flow p {
  color: #222222;
  margin-bottom: 20px;
  font-family: "Rubik", sans-serif;
}