@charset "UTF-8";
:root {
  --cl-primary-green: #($cl-primary-green);
  --cl-primary: #eba35f;
  --cl-secondary: #ffe285;
  --cl-bg: #ffffff;
  --cl-bg-dark: #585858;
  --cl-text: #272727;
  --cl-text-white: #ffffff;
  --cl-btn-text: #ffffff;
  --cl-btn-b: #8aabe3;
  --cl-btn-g: #93e2c7;
  --cl-btn-r: #e38081;
  --cl-btn-y: #ffe9a5;
  --cl-btn-b-hover: #3f5f96;
  --cl-btn-g-hover: #3b9c7a;
  --cl-btn-r-hover: #ad4244;
  --cl-btn-y-hover: #f0ca58;
}

:root {
  --clamp-0: clamp(0.5rem, 0.3469rem + 1.0204vw, 1rem);
  --clamp-1: clamp(0.625rem, 0.4337rem + 1.2755vw, 1.25rem);
  --clamp-2: clamp(0.75rem, 0.5421rem + 1.5944vw, 1.5rem);
  --clamp-3: clamp(0.875rem, 0.6776rem + 1.993vw, 2rem);
  --clamp-4: clamp(1rem, 0.847rem + 2.4912vw, 2.5rem);
  --clamp-5: clamp(1.125rem, 1.0588rem + 3.114vw, 3rem);
  --clamp-6: clamp(1.5rem, 1.3205rem + 3.8591vw, 4rem);
  --clamp-7: clamp(2rem, 1.6233rem + 4.7344vw, 5rem);
  --clamp-8: clamp(2.5rem, 1.9651rem + 5.7539vw, 6rem);
  --ft-primary: Tomorrow, sans-serif;
  --ft-secondary: 'Jersey 20', sans-serif;
}

/* Headings */
/* Titles */
:root {
  --sh-text: 4px 4px 6px rgba(0, 0, 0, 0.9);
  --sh-text-light: 2px 2px 2px rgba(0, 0, 0, 0.9);
  --sh-text-hover: 0 4px 6px rgba(0, 0, 0, 0.2);
  --sh-card: 0 4px 6px rgba(0, 0, 0, 0.2);
  --sh-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* NORMALIZE CSS */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox],
[type=radio] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 0;
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  outline-offset: -2px;
}

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/* RESET CSS */
/* https://www.joshwcomeau.com/css/custom-css-reset/
/* Explicación en este video https://www.youtube.com/watch?v=66ky3Dopcq0 */
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

ul, a {
  list-style: none;
  text-decoration: none;
  color: inherit;
}

html {
  font-family: var(--ft-primary);
}

body {
  background-color: var(--cl-surface);
  -webkit-transition: background-color 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}

h1 {
  font: 700 var(--clamp-7)/64px 'Jersey 20', sans-serif;
}

h2 {
  font: 700 var(--clamp-6)/51.2px 'Jersey 20', sans-serif;
}

h3 {
  font: 700 var(--clamp-4)/40px 'Jersey 20', sans-serif;
}

h4 {
  font: 700 var(--clamp-3)/32px 'Jersey 20', sans-serif;
}

.button {
  position: relative;
  overflow: visible;
}

.button .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) scale(0);
          transform: translate(-50%, -50%) scale(0);
  font-size: 2.5rem;
  pointer-events: none;
  opacity: 0;
  -webkit-transition: opacity 0.35s ease, -webkit-transform 0.35s ease;
  transition: opacity 0.35s ease, -webkit-transform 0.35s ease;
  transition: transform 0.35s ease, opacity 0.35s ease;
  transition: transform 0.35s ease, opacity 0.35s ease, -webkit-transform 0.35s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  -webkit-filter: drop-shadow(0 0 3px black);
          filter: drop-shadow(0 0 3px black);
  z-index: 10;
}

.button.correct .icon {
  color: #4caf50;
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
}

.button.incorrect .icon {
  color: #e53935;
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
}

.button.correct.animating {
  -webkit-animation: correctAnim 0.8s ease forwards;
          animation: correctAnim 0.8s ease forwards;
}

.button.incorrect.animating {
  -webkit-animation: incorrectAnim 0.8s ease forwards;
          animation: incorrectAnim 0.8s ease forwards;
}

@-webkit-keyframes correctAnim {
  0% {
    background-color: #333;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  50% {
    background-color: #4caf50;
    -webkit-transform: scale(1.15);
            transform: scale(1.15);
    -webkit-box-shadow: 0 0 8px #4caf50, 0 0 20px rgba(76, 175, 80, 0.6274509804), 0 0 30px rgba(76, 175, 80, 0.8);
            box-shadow: 0 0 8px #4caf50, 0 0 20px rgba(76, 175, 80, 0.6274509804), 0 0 30px rgba(76, 175, 80, 0.8);
  }
  100% {
    background-color: #333;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
}

@keyframes correctAnim {
  0% {
    background-color: #333;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  50% {
    background-color: #4caf50;
    -webkit-transform: scale(1.15);
            transform: scale(1.15);
    -webkit-box-shadow: 0 0 8px #4caf50, 0 0 20px rgba(76, 175, 80, 0.6274509804), 0 0 30px rgba(76, 175, 80, 0.8);
            box-shadow: 0 0 8px #4caf50, 0 0 20px rgba(76, 175, 80, 0.6274509804), 0 0 30px rgba(76, 175, 80, 0.8);
  }
  100% {
    background-color: #333;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
}
@-webkit-keyframes incorrectAnim {
  0% {
    background-color: #333;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  50% {
    background-color: #e53935;
    -webkit-transform: scale(1.15) rotate(-10deg);
            transform: scale(1.15) rotate(-10deg);
    -webkit-box-shadow: 0 0 8px #e53935, 0 0 20px rgba(229, 57, 53, 0.6274509804), 0 0 30px rgba(229, 57, 53, 0.8);
            box-shadow: 0 0 8px #e53935, 0 0 20px rgba(229, 57, 53, 0.6274509804), 0 0 30px rgba(229, 57, 53, 0.8);
  }
  100% {
    background-color: #333;
    -webkit-transform: scale(1) rotate(0deg);
            transform: scale(1) rotate(0deg);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
}
@keyframes incorrectAnim {
  0% {
    background-color: #333;
    -webkit-transform: scale(1);
            transform: scale(1);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  50% {
    background-color: #e53935;
    -webkit-transform: scale(1.15) rotate(-10deg);
            transform: scale(1.15) rotate(-10deg);
    -webkit-box-shadow: 0 0 8px #e53935, 0 0 20px rgba(229, 57, 53, 0.6274509804), 0 0 30px rgba(229, 57, 53, 0.8);
            box-shadow: 0 0 8px #e53935, 0 0 20px rgba(229, 57, 53, 0.6274509804), 0 0 30px rgba(229, 57, 53, 0.8);
  }
  100% {
    background-color: #333;
    -webkit-transform: scale(1) rotate(0deg);
            transform: scale(1) rotate(0deg);
    -webkit-box-shadow: none;
            box-shadow: none;
  }
}
.adsHeader {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  background-color: var(--cl-bg-dark);
  color: var(--cl-bg);
  height: 1.3rem;
  font: 400 var(--clamp-1)/20px Tomorrow, sans-serif;
  padding: 1.5em 1.5em;
}

.main-services {
  padding: 1rem 0;
}
.main-services__title {
  text-align: center;
}
.main-services__card-container .main-services__card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.main-services__card-container .main-services__card img {
  scale: 0.6;
  -webkit-transition: scale 0.5s ease;
  transition: scale 0.5s ease;
}
.main-services__card-container .main-services__card img:hover {
  scale: 0.8;
}
.main-services__card-container .main-services__card .main-services__card-title {
  font-size: 1.2em;
  color: rgb(60, 112, 107);
}
.main-services__card-container .main-services__card .main-services__card-caption {
  font-size: 0.9em;
  font-weight: 600;
  padding: 0.5rem 6rem;
  text-align: center;
  margin: 0.2rem 10rem;
}

@media (max-width: 720px) {
  .main-services__card-container .main-services__card .main-services__card-caption {
    margin: 0;
    padding: 0.5rem 1rem;
  }
}
.startMenu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1em;
}
.startMenu__headers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5em;
}
.startMenu__headers--title {
  text-align: center;
  color: var(--cl-primary);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
}
.startMenu__headers--caption {
  text-align: center;
  color: var(--cl-text-white);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.1);
}
.startMenu__form {
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
}
.startMenu__form--errorMsg {
  text-align: center;
  color: red;
  margin-top: 0.5em;
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
}
.startMenu__form form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.5em;
}
.startMenu__playBtn {
  -webkit-transition: scale 0.5s ease-in-out;
  transition: scale 0.5s ease-in-out;
}
.startMenu__playBtn:hover {
  scale: 1.1;
}

.modal {
  position: fixed;
  top: 5%;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  width: 80%;
  max-width: 600px;
  margin: 3em auto;
  background-color: #fff;
  padding: 1.5em;
  border-radius: 1em;
  -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
}
.modal__content__title {
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
  margin-bottom: 1em;
}
.modal__content__subtitle {
  text-align: center;
  font: 400 var(--clamp-1)/20px 'Jersey 20', sans-serif;
  margin-bottom: 1.25em;
}
.modal__content__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modal__content__close-button {
  background-color: var(--cl-btn-g);
  color: var(--cl-bg);
  padding: 1em 1.25em;
  border: none;
  border-radius: 0.5em;
  cursor: pointer;
}
.modal__content__close-button:hover {
  background-color: var(--cl-btn-g-hover);
}

.modal__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 1.25em;
}
.modal__item i {
  font: 400 var(--clamp-1)/20px 'Jersey 20', sans-serif;
  margin-right: 1em;
}

.header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0.3em;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.header__box-small {
  width: var(--clamp-7);
  height: var(--clamp-7);
  background-color: #e8f6f2;
  border: 1px solid black;
  border-radius: 0.5em;
}
.header__center {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1em;
}
.header__center .hp-bar {
  position: relative;
  width: var(--clamp-7);
  height: var(--clamp-7);
  border-radius: 50%;
  background-color: #9f1a1a;
  -webkit-box-shadow: inset 0 0 8px #f76e6e;
          box-shadow: inset 0 0 8px #f76e6e;
  border: 1px solid black;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  font: 400 var(--clamp-0)/16px 'Jersey 20', sans-serif;
  color: var(--cl-text-white);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: visible;
}
.header__center .hp-bar__fill {
  position: absolute;
  -webkit-transform: scaleX(-1);
          transform: scaleX(-1);
  width: calc(var(--clamp-7) - 3px);
  height: calc(var(--clamp-7) - 3px);
  border-radius: 50%;
  background: conic-gradient(#f76e6e 0deg, #f76e6e var(--fill-deg), #9f1a1a var(--fill-deg), #9f1a1a 360deg);
  z-index: 0;
}
.header__center .hp-bar__text {
  font: 400 var(--clamp-1)/20px 'Jersey 20', sans-serif;
  position: relative;
}
.header__center .timer {
  border: 1px solid black;
  border-radius: 0.5em;
  background-color: #d3d3d3;
  font: 700 var(--clamp-3)/32px 'Jersey 20', sans-serif;
  color: var(--cl-btn-r);
  padding: 0.5em 0.75em;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.headerNames {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding-bottom: 0.75em;
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
}

.game-area {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 1px solid black;
  border-radius: 1em;
  overflow: hidden;
  max-width: 1120px;
  height: calc(25vw + 15vh);
  max-height: 25rem;
  margin-left: auto;
  margin-right: auto;
}
.game-area__image {
  width: 100%;
  height: 25rem;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 1em;
  display: block;
}
.game-area__enemyImg {
  position: absolute;
  top: 55%;
  z-index: 3;
}
.game-area__text {
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid black;
  border-radius: 0.75em;
  max-width: 90%;
  color: var(--cl-text-white);
  font: 700 var(--clamp-3)/32px 'Jersey 20', sans-serif;
  text-align: center;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
  z-index: 4;
}
.game-area__menu-button {
  position: absolute;
  top: 50%;
  left: 8px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-color: #3a3a3a;
  color: white;
  border-radius: 0.5em;
  padding: 1em;
  border: 1px solid black;
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 4;
}
.game-area__bg__floor, .game-area__bg__front {
  position: absolute;
  scale: 0.8;
  top: -30%;
  z-index: 1;
}

@media (max-width: 640px) {
  .game-area__enemyImg {
    top: 50%;
    scale: 0.8;
  }
  .game-area__bg__floor, .game-area__bg__front {
    top: -65%;
  }
}
.game-timer-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  margin: 0.5em 0;
  padding: 0rem 0.75em;
  z-index: 4;
}
.game-timer-container #difficulty-icon {
  display: block;
  width: 40px;
  height: 40px;
}
.game-timer-container #gameTimer {
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
  margin-bottom: 0.5em;
  color: var(--cl-text);
  text-shadow: 2px 2px 2px rgba(255, 255, 255, 0.9);
}
.game-timer-container #timerBar {
  height: 20px;
  width: 0;
  background: -webkit-gradient(linear, left top, right top, from(var(--cl-btn-g)), to(#a7e7aa));
  background: linear-gradient(90deg, var(--cl-btn-g), #a7e7aa);
  border-radius: 1em;
  -webkit-transition: width 0.5s ease;
  transition: width 0.5s ease;
  -webkit-box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.5);
          box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.upgrade-modal {
  position: fixed;
  top: 5%;
  left: 0;
  padding: 2.5em;
  z-index: 99;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
}
.upgrade-modal__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  width: 80%;
  max-width: 600px;
  border-radius: 1em;
  margin: 3em auto;
  background-color: var(--cl-bg);
  padding: 1.5em;
  -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 1em rgba(0, 0, 0, 0.2);
}
.upgrade-modal__container .upgrade-button {
  display: block;
  width: 100%;
  margin: 0.5em 0;
  padding: 0.5em;
  font-size: 1em;
  cursor: pointer;
  border: none;
  background-color: var(--cl-secondary);
  color: var(--cl-text-white);
  border-radius: 0.3em;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
  -webkit-transition: background-color 1s ease;
  transition: background-color 1s ease;
}
.upgrade-modal__container .upgrade-button:hover {
  background-color: var(--cl-primary);
}

.upgrade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

.battleLogger {
  background-color: var(--cl-bg-dark);
  padding: 0.5em 0;
  margin-top: 0.75em;
  border-radius: 1em;
}
.battleLogger__text {
  color: var(--cl-text-white);
  text-align: center;
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
}

.player-stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 1em;
  background-color: var(--cl-bg-dark);
  padding: 0.3em 0;
  margin-top: 0.75em;
  border-radius: 1em;
}
.player-stats__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0.3em 0.3em;
  background-color: var(--cl-primary);
  border-radius: 1em;
  border: solid black 2px;
  height: calc(2vw + 2vh);
}
.player-stats__container--icon {
  height: calc(2vw + 1.2vh);
}
.player-stats__container--value {
  font: 700 var(--clamp-4)/40px 'Jersey 20', sans-serif;
}

.buttons-grid {
  max-width: 1120px;
  margin: 0 auto;
  margin-top: 1em;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: 1em;
}
.buttons-grid .button {
  border: 1px solid black;
  border-radius: 1em;
  padding: 1.8vw 1em;
  font: 500 var(--clamp-2)/24px 'Jersey 20', sans-serif;
  color: white;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
  -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  white-space: normal;
}
.buttons-grid .button--blue {
  background-color: var(--cl-btn-b);
}
.buttons-grid .button--blue:hover {
  background-color: var(--cl-btn-b-hover);
}
.buttons-grid .button--green {
  background-color: var(--cl-btn-g);
}
.buttons-grid .button--green:hover {
  background-color: var(--cl-btn-g-hover);
}
.buttons-grid .button--red {
  background-color: var(--cl-btn-r);
}
.buttons-grid .button--red:hover {
  background-color: var(--cl-btn-r-hover);
}
.buttons-grid .button--yellow {
  background-color: var(--cl-btn-y);
}
.buttons-grid .button--yellow:hover {
  background-color: var(--cl-btn-y-hover);
}

@media (min-width: 640px) {
  .buttons-grid {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }
}
#abandonar-juego-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#abandonar-juego-modal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px 30px;
  max-width: 400px;
  margin: 15% auto;
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#abandonar-juego-modal h2 {
  margin-bottom: 15px;
  color: #333;
}

#abandonar-juego-modal p {
  color: #666;
  margin-bottom: 20px;
  font-size: 1rem;
}

#abandonar-juego-modal button {
  cursor: pointer;
  padding: 10px 20px;
  margin: 0 8px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  -webkit-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
  min-width: 120px;
}

#modal-abandonar-si {
  background-color: #d9534f;
  color: #fff;
}

#modal-abandonar-si:hover {
  background-color: #c9302c;
}

#modal-abandonar-no {
  background-color: #5bc0de;
  color: #fff;
}

#modal-abandonar-no:hover {
  background-color: #31b0d5;
}

body.modal-active {
  overflow: hidden;
}

.top-scores-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.top-scores-modal__content {
  margin: 3rem auto;
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 15px;
}
.top-scores-modal__title {
  text-align: center;
  margin-bottom: 15px;
}
.top-scores-modal__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
  font-family: monospace;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
  border: 1px solid #ccc;
}
.top-scores-modal__player-info {
  margin-top: 20px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
  font-size: 1.1rem;
  text-align: center;
}
.top-scores-modal__label {
  font-weight: bold;
}
.top-scores-modal__close {
  margin-top: 20px;
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
}

.top-scores-modal__list-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 4px 8px;
  border-radius: 4px;
}
.top-scores-modal__list-item--highlight {
  font-weight: bold;
  background-color: #e0f7fa;
}
.top-scores-modal__list-item .top-scores-modal__rank {
  width: 5%;
}
.top-scores-modal__list-item .top-scores-modal__name {
  width: 50%;
  text-align: left;
}
.top-scores-modal__list-item .top-scores-modal__points {
  width: 25%;
  text-align: right;
}
.top-scores-modal__list-item .top-scores-modal__time {
  width: 20%;
  text-align: right;
}

.footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: #333;
  color: #fff;
  padding: 2rem 0;
}
.footer__logo {
  margin: 2rem 0;
  height: 5rem;
}
.footer__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 3rem;
}
.footer__column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.footer__column__links {
  list-style: none;
  padding: 1rem 1rem;
}
.footer__column__links li {
  margin: 1rem 0;
}
.footer__column__links li a {
  color: #fff;
  text-decoration: none;
}
.footer__row-bottom {
  padding: 2rem 0;
}
.footer__row-bottom .footer__info-column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 1rem;
  padding: 0 1rem;
}
.footer__copyright {
  margin-top: 1rem;
}

.topHeader {
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(255, 255, 255)), to(rgba(255, 255, 255, 0)));
  background-image: linear-gradient(to bottom, rgb(255, 255, 255), rgba(255, 255, 255, 0));
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  padding: 0 2em;
  position: sticky;
  top: 0;
  z-index: 1;
}
.topHeader .nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 1em 0;
}
.topHeader .nav img {
  cursor: pointer;
  -webkit-transition: scale 0.5s ease;
  transition: scale 0.5s ease;
}
.topHeader .nav img:hover {
  scale: 1.2;
}
.topHeader .nav ul {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.topHeader .nav ul a {
  padding: 1em 0;
  color: var(--cl-text);
  text-decoration: none;
}
.topHeader .nav ul a li {
  margin: 0 1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font: 400 var(--clamp-1)/20px Tomorrow, sans-serif;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.topHeader .nav ul li:hover {
  -webkit-filter: drop-shadow(2px 2px 2px rgba(31, 160, 143, 0.5));
          filter: drop-shadow(2px 2px 2px rgba(31, 160, 143, 0.5));
}
.topHeader .nav #menu li:before {
  content: "";
  position: absolute;
  inset: calc(100% - 2px) 0 0 0;
  background: #1fa08f;
  scale: 0 1;
  -webkit-transition: 0.3s, translate 0s 0.3s;
  transition: 0.3s, translate 0s 0.3s;
}
.topHeader .nav #menu li:hover:before {
  translate: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.topHeader .nav #menu li:hover:before {
  scale: 1;
}
.topHeader .nav #menu li:hover ~ li:before {
  translate: -100% 0;
  -webkit-transition: 0.2s 0.2s, scale 0s 0.4s;
  transition: 0.2s 0.2s, scale 0s 0.4s;
}
.topHeader .nav #menu li:has(~ li:hover):before {
  translate: 100% 0;
  -webkit-transition: 0.2s 0.2s, scale 0s 0.4s;
  transition: 0.2s 0.2s, scale 0s 0.4s;
}

#menuToggle {
  cursor: pointer;
}
#menuToggle input {
  display: none;
}

@media (max-width: 720px) {
  #menuToggle {
    display: block;
    z-index: 1;
    -webkit-user-select: none;
    -moz-user-select: none;
     -ms-user-select: none;
         user-select: none;
  }
  #menuToggle input {
    display: block;
    position: absolute;
    width: 44px;
    height: 36px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    -webkit-touch-callout: none;
  }
  #menuToggle span {
    margin: 0 0.5rem;
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: #111111;
    border-radius: 3px;
    z-index: 1;
    -webkit-transform-origin: 4px 0px;
            transform-origin: 4px 0px;
    -webkit-transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease, -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease, -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease, -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }
  #menuToggle span:first-child {
    -webkit-transform-origin: 0% 0%;
            transform-origin: 0% 0%;
  }
  #menuToggle span:nth-last-child(2) {
    -webkit-transform-origin: 0% 100%;
            transform-origin: 0% 100%;
  }
  #menuToggle input:checked ~ span {
    opacity: 1;
    -webkit-transform: rotate(45deg) translate(-2px, -1px);
            transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
  }
  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    -webkit-transform: rotate(0deg) scale(0.2, 0.2);
            transform: rotate(0deg) scale(0.2, 0.2);
  }
  #menuToggle input:checked ~ span:nth-last-child(2) {
    -webkit-transform: rotate(-45deg) translate(0, -1px);
            transform: rotate(-45deg) translate(0, -1px);
  }
  #menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100vw;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    position: absolute;
    left: 0;
    top: 4rem;
    z-index: 100;
    background: white;
    padding: 1em 0;
    list-style-type: none;
    -webkit-transform-origin: 0% 0%;
            transform-origin: 0% 0%;
    -webkit-transform: translate(0%, -200%);
            transform: translate(0%, -200%);
    -webkit-transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), -webkit-transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }
  #menuToggle input:checked ~ ul {
    -webkit-transform: none;
            transform: none;
  }
}
#menuToggle.gaming #menu {
  display: none;
}

#logo-link.gaming {
  margin: 0 auto;
}

.gameStart {
  border: solid var(--cl-bg-dark) 2px;
  border-radius: 1em;
  max-width: 42rem;
  width: 100%;
  height: 85vh;
  padding: 0.5em;
  margin: 0 auto;
}
.gameStart__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.gameStart__container .bg {
  max-width: 100%;
  height: auto;
  border-radius: 1em;
  margin-bottom: 1em;
  -o-object-fit: cover;
     object-fit: cover;
}

.main-projects {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 1.5rem 0;
}
.main-projects__title {
  text-align: center;
}
.main-projects__card-container {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 20rem;
  justify-items: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.main-projects__card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 200px;
  height: 260px;
  background-color: white;
  border-radius: 1rem;
  -webkit-box-shadow: 0.1rem 0.1rem 0.2rem black;
          box-shadow: 0.1rem 0.1rem 0.2rem black;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.main-projects__card:hover {
  -webkit-transform: translateY(-5px);
          transform: translateY(-5px);
}
.main-projects__card-img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding-top: 1rem;
}
.main-projects__card-img img {
  width: 160px;
  height: 90px;
  border-radius: 1rem;
  -webkit-transition: all 0.5s ease;
  transition: all 0.5s ease;
  -webkit-filter: saturate(0.5);
          filter: saturate(0.5);
}
.main-projects__card-img img:hover {
  -webkit-filter: saturate(1);
          filter: saturate(1);
}
.main-projects__card-tag {
  padding: 0.4rem 0;
  font-size: 0.8em;
}
.main-projects__card-tag p {
  display: inline;
  margin-left: 1.3rem;
  padding: 0.3rem 1.3rem;
  font-weight: 700;
  color: white;
  background-color: green;
  border-radius: 0.5rem;
  word-wrap: break-word;
}
.main-projects__card-title {
  padding: 0.6rem 1.3rem;
  font-size: 1em;
  font-weight: 800;
  word-wrap: break-word;
}
.main-projects__card-subtitle {
  font-size: 0.6em;
  padding: 0rem 1.3rem;
  padding-bottom: 1.4rem;
  color: grey;
  word-wrap: break-word;
}

.fade-in {
  -webkit-animation: fadeIn 1s;
          animation: fadeIn 1s;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}