/* ==========================================================================
  File: style.css
  Project: Gerador de Senhas do Brasil
  Description: Main stylesheet for layout, colors, and typography
  Author: Daniel Pinheiro
  Created on: 2025-06-21
  Last updated: 2025-06-21
  Version: 1.0
  Notes:
    - Contains global styles and base structure
    - Animations and utility classes may be in separate files
    - Uses responsive units and media queries for adaptability
========================================================================== */

@charset "UTF-8";

/* === GLOBAL SETTINGS (DEVICE DOES NOT MATTER) ========================== */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
}

body {
  background-color: black;
  box-sizing: border-box;
  color: white;
  font-family: "Assistant", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
}

.primary-button,
.secondary-button {
  text-transform: uppercase;
  font-family: "Assistant", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.strength-result {
  font-weight: 700;
  text-transform: uppercase;
}

.noise-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("images/grain.gif");
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.04;
  z-index: 0;
}

.background-layer,
.background-layer-next {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transition: opacity 2s ease;
  z-index: -1;
}

.background-layer-next {
  opacity: 0;
}

#strength-text {
  text-align: center;
  font-weight: 600;
  color: #333;
  display: none;
}

#bit-chain span {
  color: #009739;
  animation: flicker 1.2s infinite alternate;
  opacity: 0.8;
}

#bit-chain span:nth-child(odd) {
  animation-delay: 0.2s;
}
#bit-chain span:nth-child(even) {
  animation-delay: 0.5s;
}

#loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#bit-chain {
  display: flex;
  gap: 0.6rem;
  font-family: monospace;
  justify-content: center;
  width: fit-content;
}

.main-container {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  box-shadow: 0 0.8rem 3.2rem 0 rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.3rem);
  -webkit-backdrop-filter: blur(0.3rem);
  width: 100%;
  margin: 4rem auto;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
}

.container-left {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  position: relative;
}

.container-right {
  flex: 1;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

label {
  display: block;
  font-weight: 400;
  color: rgb(233, 233, 233);
}

.primary-label {
  display: block;
  font-weight: 400;
  color: #6b6b6b;
}

input[type="checkbox"] {
  margin-right: 1rem;
  transform: scale(1.2);
  accent-color: #009739;
}

.primary-input {
  color: black;
  background-color: #dbdbdb;
}

#custom-symbols {
  background: rgba(26, 26, 26, 0.562);
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  box-sizing: border-box;
  color: white;
}

#password-field {
  color: #f0f0f0;
  background: #dbdbdb;
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

#password-field {
  color: black;
}

.slider-container {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1rem;
  background: rgb(219, 219, 219);
  border-radius: 0.5rem;
  outline: none;
  margin-top: 1rem;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(90deg, #009739, #ffcc29);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.3);
}

.input-copy-wrapper {
  position: relative;
}

#password-field {
  text-align: center;
}

.copy-icon {
  position: absolute;
  right: 1.2rem;
  top: 62%;
  transform: translateY(-50%);
  color: #00973a81;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.copy-icon:hover {
  color: #ffcc29;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, #009739, #ffcc29);
  transition: opacity 0.3s ease;
}

.primary-button:hover {
  opacity: 0.85;
}

.secondary-button {
  color: #000000;
  background: transparent;
  transition: all 0.3s ease;
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.button-secondary:hover {
  color: #ffcc29;
}

#strength-bar-container {
  width: 100%;
  height: 0.6rem;
  background: linear-gradient(to right, #ff0000, #ffcc29, #009739);
  border-radius: 1rem;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  display: none;
}

#strength-mask {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background-color: white;
  transition: width 0.5s ease;
}

#toast {
  visibility: hidden;
  min-width: 25rem;
  background-color: #009739;
  color: white;
  text-align: center;
  border-radius: 0.5rem;
  padding: 1.6rem;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 3rem;
  transform: translateX(-50%);
  font-size: 1.6rem;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* MODAL */

.primary-button {
  background: linear-gradient(90deg, #ffcc29, #009739);
  color: #fff;
}

.primary-button:hover {
  opacity: 0.85;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  cursor: pointer;
}

.switch input {
  display: none;
}

.slider {
  position: relative;
  width: 5rem;
  height: 2.5rem;
  background-color: #ccc;
  border-radius: 2.5rem;
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 2.1rem;
  width: 2.1rem;
  left: 0.2rem;
  bottom: 0.2rem;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background: linear-gradient(90deg, #009739, #ffcc29);
}

input:checked + .slider::before {
  transform: translateX(2.5rem);
}

.switch-group {
  display: flex;
  flex-direction: column;
}

.tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 0.6rem;
  padding: 0.5rem;
  position: absolute;
  top: -3.5rem;
  left: 10rem;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.2rem;
  white-space: wrap;
}

.switch:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.search-result {
  font-size: 1.6rem;
  font-weight: 600;
}

.logo {
  margin-top: 1rem;
  padding-top: 0rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.master {
  display: flex;
  align-items: center;
}

.footer a {
  background: linear-gradient(90deg, #ffcc29, #009739);
  background-size: 200% 100%;
  background-position: left center;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.8s ease;
}

.footer a:hover {
  background-position: right center;
}

.footer {
  height: 4.8rem;
  align-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 1rem;
  box-shadow: 0 0.8rem 3.2rem 0 rgba(0, 0, 0, 0.562);
  backdrop-filter: blur(0.3rem);
  -webkit-backdrop-filter: blur(0.3rem);
  width: 100%;
  margin: 4rem;
  margin-top: 0rem;
  text-align: center;
}

.copyright {
  width: 100%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #6b6b6b;
}

#length {
  text-align: center;
  font-family: "Fira Code", monospace;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.hint-inner {
  position: relative;
  padding: 1.6rem;
  padding-right: 3.6rem;
}

.hint-close {
  position: absolute;
  top: -10%;
  right: -45%;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  z-index: 1000;
}

.hint-close .x-icon {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform 0.3s ease;
}

.hint-close .bar1,
.hint-close .bar2 {
  transform-origin: center;
  transition: transform 0.4s ease;
}

.hint-close:hover .bar1 {
  transform: rotate(20deg);
}

.hint-close:hover .bar2 {
  transform: rotate(-20deg);
}

#pwned-result {
  text-align: center;
  font-weight: 600;
  display: none;
}

.secondary-input-group {
  margin-top: 2rem;
}

@page {
  margin-bottom: 3cm;
  margin-left: 2cm;
  margin-right: 2cm;
  margin-top: 3cm;
  size: A4 portrait;
}

@media print {
  body {
    font-family: "Assistant", sans-serif;
    font-size: 2.4rem;
  }

  .primary-label {
    color: #000000;
  }
}

@media only screen and (max-width: 767px) {
  /* Estilos para smartphones muito pequenos (ex: iPhone SE) */
  body {
    height: 150vh;
  }

  label {
    margin-top: 1.5rem;
    font-size: 1.6rem;
  }

  .logo-container {
    background-color: white;
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
    border-radius: 10rem;
    box-shadow: 0 0.8rem 1.6rem 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-7rem);
    margin-bottom: -6rem;
  }

  .switch-group {
    gap: 1.2rem;
  }

  #custom-symbols {
    padding: 1rem;
    margin-top: 0.8rem;
    font-size: 1.6rem;
  }
  #strength-text {
    font-size: 1.6rem;
    margin-top: 0.5rem;
  }

  #bit-chain {
    font-size: 2rem;
    margin-top: 2rem;
    margin: 2rem auto 0 auto;
  }
  .copyright {
    font-size: 1.5rem;
  }

  .main-container {
    flex-direction: column;
  }

  .master {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    flex-direction: column;
    margin-top: 3rem;
  }

  .logo {
    width: 9.6rem;
  }

  .primary-input,
  .primary-button,
  .secondary-button,
  .secondary-input {
    height: 4.2rem;
    border: none;
    border-radius: 0.5rem;
    margin-top: 1.6rem;
    width: 100%;
    font-size: 2rem;
  }

  .primary-button,
  .secondary-button {
    font-size: 1.6rem;
  }

  .secondary-button {
    border: 0.2rem solid transparent;
    margin-top: 3.2rem;
    background-image: linear-gradient(#ffffff, #ffffff),
      linear-gradient(90deg, #009739, #ffcc29);
  }

  .container-left {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1.5rem;
  }

  .container-right {
    padding: 1.5rem;
  }

  .copyright {
    position: relative;
    margin-top: 1.5rem;
  }

  .hint-bubble {
    position: fixed;
    width: 90%;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.8rem 3.2rem 0 rgba(0, 0, 0, 0.562);
    backdrop-filter: blur(0.3rem);
    -webkit-backdrop-filter: blur(0.3rem);
    color: #fff;
    padding: 0;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    overflow: hidden;
  }

  .hint-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: popupBounce 0.6s ease;
  }

  .footer p {
    font-size: 1.6rem;
  }

  #custom-symbols-label {
    text-align: left;
  }

  #pwned-result {
    margin-top: 1rem;
    font-size: 1.6rem;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.3rem);
    -webkit-backdrop-filter: blur(0.3rem);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background-color: #ffffffe0;
    border-radius: 0.5rem;
    width: 90%;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.25);
    position: relative;
    transition: 1s;
    animation: popupBounce 1s ease-out;
    padding: 2rem;
    margin: 5%;
  }

  .modal-header {
    text-align: center;
    text-transform: uppercase;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #009739, #ffcc29);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .close {
    color: #009739;
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover {
    color: #ffcc29;
  }

  #history-list {
    list-style: none;
    padding: 0;
    font-size: 1.6rem;
    color: #333;
  }

  .history-item {
    background: rgb(219, 219, 219);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    position: relative;
    height: 3.2rem;
    overflow: hidden;
    text-wrap: nowrap;
    align-content: center;
  }

  .history-copy-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00973a81;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .history-copy-icon:hover {
    color: #ffcc29;
  }
}

/*TABLETS DISPLAYS*/
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  body {
    min-height: 100vh;
    overflow-y: auto;
  }

  label {
    margin-top: 1.5rem;
    font-size: 1.6rem;
  }

  .logo-container {
    background-color: white;
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
    border-radius: 10rem;
    box-shadow: 0 0.8rem 1.6rem 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-7rem);
    margin-bottom: -6rem;
  }

  .main-container {
    margin-top: 10rem;
    flex-direction: column;
    height: 90vh;
  }

  .master {
    width: 90%;
    flex-direction: column;
    margin: 0 auto;
  }

  .switch-group {
    gap: 1.2rem;
  }

  #custom-symbols {
    padding: 1rem;
    margin-top: 0.8rem;
    font-size: 1.6rem;
  }
  #strength-text {
    font-size: 1.6rem;
    margin-top: 0.5rem;
  }

  #bit-chain {
    font-size: 2rem;
    margin-top: 2rem;
    margin: 2rem auto 0 auto;
  }
  .copyright {
    font-size: 1.5rem;
  }

  .logo {
    width: 10rem;
  }

  .primary-input,
  .primary-button,
  .secondary-button,
  .secondary-input {
    height: 4.2rem;
    border: none;
    border-radius: 0.5rem;
    margin-top: 1.6rem;
    width: 100%;
    font-size: 2rem;
  }

  .primary-button,
  .secondary-button {
    font-size: 1.6rem;
  }

  .secondary-button {
    border: 0.2rem solid transparent;
    margin-top: 3.2rem;
    background-image: linear-gradient(#ffffff, #ffffff),
      linear-gradient(90deg, #009739, #ffcc29);
  }

  .container-left {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1.5rem;
  }

  .container-right {
    padding: 1.5rem;
  }

  .copyright {
    position: relative;
    margin-top: 1.5rem;
  }

  .hint-bubble {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 90%;
    z-index: 999;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.8rem 3.2rem 0 rgba(0, 0, 0, 0.562);
    backdrop-filter: blur(0.3rem);
    -webkit-backdrop-filter: blur(0.3rem);
    color: #fff;
    padding: 0;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    overflow: hidden;
  }

  .hint-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: popupBounce 0.6s ease;
  }

  .footer p {
    font-size: 1.6rem;
  }

  #custom-symbols-label {
    text-align: left;
  }

  #pwned-result {
    margin-top: 1rem;
    font-size: 1.6rem;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.3rem);
    -webkit-backdrop-filter: blur(0.3rem);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background-color: #ffffffe0;
    border-radius: 0.5rem;
    width: 90%;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.25);
    position: relative;
    transition: 1s;
    animation: popupBounce 1s ease-out;
    padding: 2rem;
    margin: 5%;
  }

  .modal-header {
    text-align: center;
    text-transform: uppercase;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #009739, #ffcc29);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .close {
    color: #009739;
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover {
    color: #ffcc29;
  }

  #history-list {
    list-style: none;
    padding: 0;
    font-size: 1.6rem;
    color: #333;
  }

  .history-item {
    background: rgb(219, 219, 219);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    position: relative;
    height: 3.2rem;
    overflow: hidden;
    text-wrap: nowrap;
    align-content: center;
  }

  .history-copy-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00973a81;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .history-copy-icon:hover {
    color: #ffcc29;
  }
}

/*DESKTOP DISPLAYS*/
@media (min-width: 1024px) {
  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .master {
    width: 85rem;
  }

  .strength-result {
    font-size: 0.8em;
  }

  #custom-symbols {
    padding: 1rem;
    margin-top: 0.8rem;
    font-size: 1.6rem;
    font-weight: 400;
  }

  .switch-group {
    gap: 2.5rem;
  }
  #custom-symbols-label {
    font-size: 1.6rem;
  }

  .footer p {
    font-size: 1.6rem;
  }

  #bit-chain {
    font-size: 2rem;
    margin-top: 2rem;
    margin: 2rem auto 0 auto;
  }

  #strength-text {
    margin-top: 1rem;
    font-size: 1.7rem;
  }

  #pwned-result {
    margin-top: 1rem;
    font-size: 1.6rem;
  }

  .faild-result {
    font-weight: 600;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 500;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0.3rem);
    -webkit-backdrop-filter: blur(0.3rem);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background-color: #ffffffe0;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 40rem;
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.25);
    position: relative;
    transition: 1s;
    animation: popupBounce 1s ease-out;
    padding: 2rem;
    margin: 10%;
  }

  .modal-header {
    text-align: center;
    text-transform: uppercase;
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #009739, #ffcc29);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .close {
    color: #009739;
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover {
    color: #ffcc29;
  }

  #history-list {
    list-style: none;
    padding: 0;
    font-size: 1.6rem;
    color: #333;
  }

  .history-item {
    background: rgb(219, 219, 219);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    position: relative;
    height: 3.2rem;
    overflow: hidden;
    text-wrap: nowrap;
    align-content: center;
  }

  .history-copy-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00973a81;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .history-copy-icon:hover {
    color: #ffcc29;
  }

  .main-container {
    flex-direction: row;
    height: 70rem;
  }

  .master {
    flex-direction: column;
  }

  .primary-label {
    margin-top: 1.5rem;
    font-size: 1.6rem;
  }

  .primary-input,
  .secondary-input,
  .primary-button,
  .secondary-button {
    border: none;
    border-radius: 0.5rem;
    box-sizing: border-box;
    font-size: 1.8rem;
    height: 4.8rem;
    margin-bottom: 0.8rem;
    margin-top: 0.8rem;
    position: relative;
    width: 100%;
  }

  .secondary-button {
    border: 0.2rem solid transparent;
    margin-top: 3.2rem;
    background-image: linear-gradient(#ffffff, #ffffff),
      linear-gradient(90deg, #009739, #ffcc29);
  }

  .primary-input,
  .secondary-input {
    font-weight: 600;
    font-size: 2.4rem;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }

  .logo {
    width: 12.8rem;
  }

  .container-left {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    padding: 3.5rem;
    padding-top: 0.5rem;
  }

  .container-right {
    padding: 3.5rem;
  }

  .copyright {
    position: absolute;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
  }

  .hint-bubble {
    position: fixed;
    width: 30rem;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.8rem 3.2rem 0 rgba(0, 0, 0, 0.562);
    backdrop-filter: blur(0.3rem);
    -webkit-backdrop-filter: blur(0.3rem);

    color: #fff;
    padding: 0;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(4rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    overflow: hidden;
  }

  .hint-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    animation: popupBounce 0.6s ease;
  }
}

/**********************************ANIMATIONS**********************************/
@keyframes flicker {
  0% {
    opacity: 0.3;
    text-shadow: 0 0 0.2rem #009739;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 0.6rem #009739, 0 0 1.2rem #009739;
  }
  100% {
    opacity: 0.4;
    text-shadow: 0 0 0.3rem #009739;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 3rem;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 3rem;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes popupBounce {
  0% {
    transform: translateY(4rem);
    opacity: 0;
  }
  60% {
    transform: translateY(-1rem);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
  }
}
