* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Big Noodle Too";
  src: url("../fonts/big_noodle_titling.ttf");
}

/* COLORES */

:root {
  --background-color: #d4d9e5;
  --background-color-dark: #1c1c34;
  --selected-color: #fc9c14;
  --input-color: #8d96a9;
  --text-color: #1d253a;
  --text-color-lg: #394257;
  --text-color-alt: #e9e9e9;
  --correct-color: #5ee95e;
  --wrong-color: #e25d5d;
}

/* ELEMENTOS GLOBALES */

::-webkit-scrollbar {
  width: 1rem;
}

::-webkit-scrollbar-track {
  background: var(--input-color);
}

::-webkit-scrollbar-thumb {
  background: var(--background-color);
  border-radius: 2rem;
}

::-webkit-scrollbar-thumb:active {
  background: var(--text-color-alt);
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100dvh;
  background: url("../imgs/background.webp") black;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: fit-content;
}

footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 2rem;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

/* CLASES */

/* HEADER */

.header__ul {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__ul > li {
  list-style: none;
}

.header__button {
  background: none;
  border: none;
  cursor: pointer;
  transition: ease-in-out 0.15s;
}

.header__button:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 0.1rem white);
}

.info-icon,
.lang-icon {
  width: 2rem;
  height: 2rem;
  color: white;
  filter: drop-shadow(0 0 0.3rem black);
}

.logo {
  width: 40rem;
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.757));
  cursor: pointer;
  transition: ease-in-out 0.15s;
}

.logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.496));
}

.modal {
  display: none;
}

.modal[open] {
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.25rem);
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  display: flex;
  right: 0;
  align-items: center;
  justify-content: center;
  position: fixed;
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  align-self: flex-end;
  background-color: var(--wrong-color);
  border-radius: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

.close-modal__img {
  width: 2.5rem;
  height: 2.5rem;
}

.close-modal:hover {
  filter: brightness(1.1);
  transform: scale(1.1);
}

@media (max-width: 770px) {
  .logo {
    width: 100%;
  }
  .lang-icon,
  .info-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.info-modal__content,
.lang-modal__content {
  background-color: var(--background-color);
  border: none;
  padding: 1rem 1rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.5rem;
  width: fit-content;
  box-shadow: 0 0 5rem black;
  width: 50rem;
  padding: 1rem;
}

.lang-modal__content {
  width: 20rem;
}

.lang-option {
  background-color: var(--text-color-alt);
  font-family: "Big Noodle Too", impact, sans-serif;
  font-size: 2rem;
  color: var(--text-color);
  text-align: center;
  border: none;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  width: 100%;
  transition: ease 0.1s;
}

.lang-option:hover {
  filter: brightness(1.1);
}

.lang-option > p {
  width: 100%;
}

.lang-flag {
  width: 5rem;
  height: 3rem;
  border-radius: 0.5rem;
}

.info-modal__title {
  font-family: "Big Noodle Too", impact, sans-serif;
  color: var(--text-color);
  font-size: 3rem;
  font-style: italic;
  text-align: center;
}

.info-modal__text {
  font-family: sans-serif;
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.5rem 2rem;
}

.info-modal__link {
  color: #3f86f1;
}

.info-modal__link:hover {
  filter: brightness(1.4);
  text-decoration: underline;
}

.info-hr {
  border: 0.1rem solid var(--text-color-lg);
  width: 100%;
  margin: 1rem 0;
}
.info-modal__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  gap: 0.5rem;
}

@media (max-width: 850px) and (min-width: 550px) {
  .info-modal__content {
    width: 30rem;
  }

  .info-modal__title {
    font-size: 3rem;
  }

  .info-modal__text {
    font-size: 1.2rem;
  }
}

@media (max-width: 550px) {
  .info-modal__content {
    width: 20rem;
  }

  .info-modal__title {
    font-size: 2rem;
  }

  .info-modal__text {
    font-size: 0.8rem;
    padding: 0.5rem 0.5rem;
  }

  .info-modal__footer {
    padding: 0.5rem;
  }
}

/* MAIN */

.description {
  font-family: "Big Noodle Too", impact, sans-serif;
  color: white;
  text-shadow: 0 0 2rem black;
  letter-spacing: 0.1rem;
  font-size: 2.15rem;
  text-align: center;
  font-style: italic;
}

.gamemodes__ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gamemodes__ul-alt {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
}

:is(.gamemodes__ul, .gamemodes__ul-alt) > li {
  list-style: none;
}

.gamemode {
  display: flex;
  transition: ease 0.15s;
  border-radius: 0.7rem;
}

.gamemode:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.gamemode__icon {
  background-color: var(--background-color-dark);
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 0.7rem 0 0 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gamemode__icon-alt {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.7rem;
  transition: ease 0.3s;
}

.gamemode__icon-alt:hover {
  transform: scale(1.1);
  background-color: var(--selected-color);
}

.gamemode__icon-selected {
  background-color: var(--selected-color);
}

.gamemode__icon > img {
  width: 75%;
  height: 75%;
}

.gamemode__container {
  font-family: "Big Noodle Too", impact, sans-serif;
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: 0 0.7rem 0.7rem 0;
  width: 25rem;
  height: 7.5rem;
  transition: ease 0.15s;
}

.gamemode__title {
  font-size: 3.5rem;
  font-style: italic;
  color: var(--text-color);
}

.gamemode__description {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-color-lg);
}

@media (max-width: 650px) {
  .description {
    font-size: 1.5rem;
  }

  .gamemode__icon {
    width: 5rem;
    height: 5rem;
  }

  .gamemodes__ul-alt {
    gap: 0.7rem;
  }

  .gamemode__icon-alt {
    width: 3.5rem;
    height: 3.5rem;
  }

  .gamemode__container {
    width: 15rem;
    height: 5rem;
  }

  .gamemode__title {
    font-size: 2rem;
  }

  .gamemode__description {
    font-size: 1rem;
  }
}

/* FOOTER */

.footer__text {
  opacity: 0.8;
  font-family: sans-serif;
  color: var(--background-color);
}

.ko-fi {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #71a3f1;
  padding: 0.3rem;
  padding-block: 0.5rem;
  border-radius: 1rem;
  position: absolute;
  left: 100%;
}

.ko-fi:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.ko-fi img {
  width: 3rem;
}

@media (max-width: 650px) {
  footer {
    width: 100%;
    gap: 2rem;
  }
  .ko-fi {
    position: static;
  }
  .ko-fi img {
    width: 2.5rem;
  }
}
