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

* {
  -webkit-tap-highlight-color: transparent;
}

* {
  margin: 0;
}
button {
  color: inherit;
}
button, [role="button"] {
  cursor: pointer;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}
img,
svg {
  display: block;
}
img,
video {
  max-width: 100%;
  height: auto;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.my-6 {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.my-4 {
  margin-bottom: 1rem;
  margin-top: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-8 {
  padding-bottom: 2rem;
  padding-top: 2rem;
}
.bg-\[\#86efac\] {
  background-color: #86efac;
}
.bg-\[transparent\] {
  background-color: transparent;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.py-6 {
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.py-1 {
  padding-bottom: 0.25rem;
  padding-top: 0.25rem;
}
.border-gray-500 {
  border-color: #6b7280;
}
.bg-white {
  background-color: #fff;
}
.flex {
  display: flex;
}
.gap-8 {
  grid-gap: 2rem;
  gap: 2rem;
}
.gap-2 {
  grid-gap: 0.33rem;
  gap: 0.33rem;
}
.font-bold {
  font-weight: 700;
}
.max-w-screen-md {
  max-width: 768px;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.border-2 {
  border-width: 2px;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded {
  border-radius: 0.25em;
}
.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none;
}

#start-button {
  height: 3em;
  width: 10em;
  background-color: black;
  color: white;
  border-radius: 5em;
  border-color: black;
  font-size: 1rem;
  font-weight: 600;
  font-family: azo-sans-web, sans-serif;
  border: none;
  box-shadow: 10px 10px blur 3px rgba(0, 0, 0, 0.2);
  margin-top: 2em;
    background: rgba(53, 106, 88, 0.15);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  color: white;
  backdrop-filter: blur(7px);
  font-family: "helvetica-lt-pro", sans-serif;
}

nav {
  box-shadow: 0px 10px 10px rgba(31, 21, 141, 0.254); 
  display: flex;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  align-items: center;
  padding: 0;
}

body {
  height: 100vh;
  cursor: url('32341.png'),auto !important;
  background-image:radial-gradient(circle at 25% 25%, rgba(2, 11, 127, 0.5), rgba(2, 188, 255, 0.5)), 
        radial-gradient(circle at 75% 50%, rgba(45, 193, 230, 0.578), rgba(255, 255, 255, 0.1)), url('pooltexture.jpeg');
  background-size: cover;
}

@keyframes gradient-shift {
	0% {
		background-position: 0% 50%;
	}
  25% {
    background-position: 50% 0%;
  }
	50% {
		background-position: 100% 50%;
	}
  75% {
    background-position: 50% 100%;
  }
	100% {
		background-position: 0% 50%;
	}
}

#nav-items {
  display: flex;
  flex-direction: row;
  padding-right: 1rem;
  color: white;

}

#theme-box {
  background-color: #3eb44a;
  color: white;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border-width: 2px;
  border-radius: 1rem;
  height: 4.1 rem;
  width: 15rem;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 550;
  font-family: "helvetica-lt-pro", sans-serif;
  backdrop-filter: blur(7px);
  background: rgba(53, 106, 88, 0.15);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0.5rem;
  margin: 0.5rem;
}

#actual-theme {
  font-family: "glowworm-mn", sans-serif;
  color: white;
  border-radius: .85rem;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.1),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  justify-content: center;
  display: flex;
  font-size: 2rem;
  font-weight: 500;
  backdrop-filter: blur(15px);
}

.timer {
  font-family: Helvetica, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.5rem;
  justify-self: right;
  backdrop-filter: blur(7px);
  background: rgba(53, 106, 88, 0.15);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  color: white;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
}

.final-message {
  font-family: "helvetica-lt-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.2rem;
  justify-self: right;
  background: rgba(53, 106, 88, 0.15);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 0.5rem;
  backdrop-filter: blur(7px);
  width: fit-content;
  justify-self: center;
}

.material-symbols-outlined {
  cursor: pointer;
}

.shake-horizontal {
  animation: horizontal-shaking 0.33s;
  animation-iteration-count: 1;
}

.game-over-man {
  animation: win-dance 1s infinite linear;
  background-color: white;
  font-size: 250% !important;
}

@keyframes horizontal-shaking {
  0% { transform: translateX(0) }
  25% { transform: translateX(8px) }
  37.5% { transform: translateX(-8px) }
  50% { transform: translateX(8px) }
  62.5% { transform: translateX(8px) }
  75% { transform: translateX(-8px) }
  87.5% { transform: translateX(8px) }
  100% { transform: translateX(0) }
 }

 @keyframes win-dance {
  25% { transform: translateY(-12px)}
  75% { transform: translateY(12px)}
 }

 #word {
    width: 100;
    justify-content: center;
    display: flex;
  }
 
 .main-button {
  font-size: 3.2rem;
  border: none;
  border-color: black;
  /* box-shadow: -3px 4px black;  */
  font-family: "helvetica-lt-pro", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: white;
  text-align: center;
  border-radius: 0.5rem;
  aspect-ratio: 1 / 1;
  padding: 0.2rem; /* adds breathing room */
  border-radius: 2.2vmin 1.8vmin 2.2vmin 1.8vmin;
  backdrop-filter: blur(7px);
  background: rgba(53, 106, 88, 0.15);
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);;
  color: white;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.5);
  cursor: pointer;
  
  /* Text containment */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2; 
  transition: background-color 0.25s ease, box-shadow 0.1s ease;
}

.main-button:active {
  box-shadow: 0px 0px 0px white;
}

.buttons-5 {
  width: 18vw;
  aspect-ratio: 1 / 1;
}

.buttons-6 {
  width: 15vw;
  aspect-ratio: 1 / 1;
  font-size: 3rem;
}

.buttons-7 {
  width: 12.5vw;
  aspect-ratio: 1 / 1;
  font-size: 2.7rem;
}

.buttons-tiny {
  width: 10%;
  aspect-ratio: 1 / 1;
  font-size: 1.7rem;
}

@media only screen and (min-width: 600px) {
  .main-button {
    font-size: 4rem;
    width: 5rem;
  }
}

#logo-ul {
  padding-left: 0.5rem;
}

.is-clicked {
  background-color: #ff008c;
}

.loader {
  width: 70px;
  height: 26px;
  background: #000000;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(7px);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  --c:no-repeat radial-gradient(farthest-side,#000 92%,#0000);
  --s:18px 18px;
  margin-top: 2em;
  -webkit-mask:
    var(--c) left  4px top 50%,
    var(--c) center,
    var(--c) right 4px top 50%,
    linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  animation: l1 1.5s infinite;
}
@keyframes l1 {
  0%    {-webkit-mask-size:0    0  ,0    0  ,0    0  ,auto}
  16.67%{-webkit-mask-size:var(--s),0    0  ,0    0  ,auto}
  33.33%{-webkit-mask-size:var(--s),var(--s),0    0  ,auto}
  50%   {-webkit-mask-size:var(--s),var(--s),var(--s),auto}
  66.67%{-webkit-mask-size:0    0  ,var(--s),var(--s),auto}
  83.33%{-webkit-mask-size:0    0  ,0    0  ,var(--s),auto}
  100%  {-webkit-mask-size:0    0  ,0    0  ,0    0  ,auto}
}

.bubble-container {
  display: flex;
  flex-direction: row;
  position: relative;
  /* bottom: 0vh; */
  overflow: hidden;
  /* height: 40vh; */
  height: 10vh;
}

.water-bubble {
  width: 3vh;
  height: 3vh;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(7px);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.1),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  margin:.5vh;
  /* box-shadow: 0 0 30px rgba(0, 119, 255, 0.2); */
  overflow: hidden;
  transition: transform 0.5s ease-in-out, translate 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

#bubble1 {
  animation: wobble 2s ease-in-out infinite alternate;
}

#bubble2 {
  animation: wobble 3s ease-in-out infinite alternate;
}

#bubble3 {
  animation: wobble 4s ease-in-out infinite alternate;
}


@keyframes wobble {
  0% {
      border-radius: 50%;
      transform: translate(0, 0);
  }
  25% {
      border-radius: 38% 62% 35% 65% / 65% 38% 62% 35%;
      transform: translate(1px, -1px);
  }
  50% {
      border-radius: 62% 38% 65% 35% / 35% 65% 35% 65%;
      transform: translate(-1px, 1px);
  }
  75% {
      border-radius: 50% 50% 38% 62% / 62% 38% 62% 38%;
      transform: translate(1px, 1px);
  }
  100% {
      border-radius: 39% 61% 62% 38% / 38% 62% 38% 62%;
      transform: translate(-1px, -1px);
  }
}

@keyframes pulsate {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.05);
  }
  100% {
    transform: scaleX(1);
  }
}

.bubble-drop-bottom {
  width: 3vh;
  height: 3vh;
  border-radius: 50%;
  background-color: #02bcff;
  margin:.5vh;
  box-shadow: 0 0 30px rgba(0, 119, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  translate: 0 50vh;
  opacity: 0;
  /* bottom: 0; */
}


#first-wave {
  animation: wave-movement 4s linear infinite reverse;
}

#second-wave {
  animation: wave-movement 6s linear infinite reverse;
}

#third-wave {
  animation: wave-movement 9s linear infinite reverse;
}

#fourth-wave {
  animation: wave-movement 12s linear infinite reverse;
}

#fifth-wave {
  animation: wave-movement 15s linear infinite reverse;
}

#sixth-wave {
  position:absolute;
  bottom: 0;
  animation: wave-movement 18s linear infinite reverse;
}

@keyframes wave-movement {
  0% {
    border-radius: 100%;
    transform: translateX(-100%);
  }
  100% {
    border-radius: 100%;
    transform: translateX(100%);
  }
}

#wavetainer {
  position: absolute;
  bottom: 0;
  width: 100vw;
  height: 20vh; /* Adjust as needed */
  overflow: hidden; /* Hide overflow */
}

.bottom-wave {
  position: absolute;
  width: 300vh; /* Ensure the wave is wide enough to cover the screen */
  height: 100%;
  background-color: #02bcff;
  animation: wave-movement 5s linear infinite;
}

#sea-level {
  bottom: 0;
  height: 80%;
  border-radius: 5% 5%;
  position: absolute;
  animation: none !important;
  width: 100vw;
}


#instructions {
  position: absolute;
  top: 25%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-self:center;
  min-height: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 3vh;
  box-shadow: rgba(0,0,0,0.2) 0px 0px 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(7rem);
  /* align-items: center; */
  /* justify-content: center; */
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  color: white;
  z-index: 100;
}

@media (max-width: 768px) {
  #instructions {
    min-width: 75%;
  }
}

#wordsLeft {
  font-family: "helvetica-lt-pro", sans-serif;
  font-weight: 700;
  margin-top: 1vh;
  padding: 1vh;
  box-shadow: rgba(0,0,0,0.2) 0px 0px 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(7rem);
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.3),
    inset -2px -2px 2px 1px rgba(255, 255, 255, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  color: white;
  background-color: rgba(53, 106, 88, 0.15);
}


#leaderboard-container {
  position: absolute;
  top:25%;
  left:25%;
  width: 50%;
  min-height: 50%;
  background-color: white;
  padding: 3vh;
  border-radius: 0.5vh;
  box-shadow: #929292 0px 0px 10px;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

#close-instructions {
  position: absolute;
  top: 0vh;
  right: 1.75vh;
  padding: 0;
  font-size: 2rem;
  cursor: pointer;

}

#close-instructions:after{
  display: inline-block;
  content: "\00d7"; /* This will render the 'X' */
}