/* Fontes usadas no site, importadas do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap'); /* fonte com estilo pixelado */

/* Variaveis com as cores, fontes e tamanhos usados em todo o site */
:root {
  --header-height: 3.5rem;

  /* Cores principais do site */
  --first-color: #2078CF;
  --first-color-alt: #0E4EB2;
  --first-color-dark: #011F65;

  /* Gradiente azul usado nos destaques */
  --gradient-text: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);

  --title-color: #ffffff;
  --text-color: #b3b3b3;
  --text-color-light: #8a93b5;
  --body-color: #000521;
  --container-color: #020C47;
  --border-color: rgba(79, 172, 254, 0.18);

  /* Espacamento entre as secoes, ajuste aqui se quiser mais ou menos */
  --section-padding: 9rem 4rem;

  /* Fontes e tamanhos de texto */
  --body-font: 'Poppins', sans-serif;
  --pixel-font: 'VT323', monospace;
  --biggest-font-size: 2rem;
  --h1-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    --section-padding: 14rem 6rem;
  }
}

/* Estilos basicos aplicados na pagina inteira */
* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  overflow-x: hidden;
}
h1, h2, h3 { color: var(--title-color); font-weight: var(--font-semi-bold); }
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: var(--body-font); cursor: pointer; border: none; background: none; }
input, textarea { font-family: var(--body-font); }

/* Desativa as animacoes para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Classes reaproveitadas em varias secoes */
.container { max-width: 1200px; margin-inline: 1.5rem; }
.grid { display: grid; gap: 1.5rem; }

.section { padding-block: var(--section-padding); }

.section__title-1, .section__title-2 {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 2rem;
}
.section__title-1 { text-align: center; }

.pixel-text { font-family: var(--pixel-font); }


/* Cabecalho fixo e menu de navegacao */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 5, 33, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--title-color);
  font-size: 1.4rem;
}
.nav__logo-img { width: 28px; height: 28px; object-fit: contain; }
.nav__logo-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__toggle, .nav__close {
  color: var(--title-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
}

.lang-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
}
.lang-selector span {
  cursor: pointer;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color-light);
  transition: 0.3s;
}
.lang-selector span:hover { color: var(--first-color); }
.lang-selector .lang-active { color: var(--title-color); border-bottom: 2px solid var(--first-color); }

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    box-shadow: 0 4px 16px hsla(0, 0%, 0%, .15);
    padding-block: 3.5rem 1.5rem;
    transform: translateY(-120vh);
    transition: transform .4s;
    z-index: var(--z-fixed);
  }
}

.nav__list { display: flex; flex-direction: column; text-align: center; row-gap: 2rem; }
.nav__link { color: var(--title-color); font-weight: var(--font-medium); transition: color .4s; }
.nav__link:hover, .active-link { color: var(--first-color); }
.nav__close { position: absolute; top: 1rem; right: 1.5rem; }
.show-menu { transform: translateY(0); }
.shadow-header { box-shadow: 0 2px 16px hsla(0, 0%, 0%, .3); }

/* Tela inicial */
.home { position: relative; }

/* Grade pixelada bem sutil no fundo da tela inicial */
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 172, 254, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 172, 254, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.home__container { position: relative; padding-top: 2rem; text-align: center; justify-items: center; }
.home__data { display: flex; flex-direction: column; align-items: center; }

.home__greeting {
  font-size: 1.4rem;
  color: var(--text-color-light);
  letter-spacing: 1px;
  margin-bottom: .25rem;
}

.home__name { font-size: var(--biggest-font-size); line-height: 1.2; margin-bottom: 0.5rem; }

.home__social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}
.home__social-link { color: var(--title-color); font-size: 1.8rem; transition: color .4s, transform .4s; }
.home__social-link:hover { color: var(--first-color); transform: translateY(-4px); }

.home__perfil { position: relative; justify-self: center; }

.home__image {
  width: 250px;
  height: 250px;
  background-color: transparent;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 30px rgba(32, 120, 207, 0.4);
}
.home__img { width: 100%; height: 100%; object-fit: contain; }

.home__info { display: flex; justify-content: center; margin-top: 2rem; }

.home__info-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home__info-small {
  font-size: var(--h3-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* Caixa onde o texto digitado aparece */
.home__typed-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pixel-gradient {
  font-family: var(--pixel-font);
  font-size: 2.5rem;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* Cursor pixelado que fica piscando */
.typed-cursor-pixel {
  font-family: var(--pixel-font);
  font-size: 2.5rem;
  color: #00f2fe;
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
/* Esconde o cursor original da biblioteca, ja que usamos o nosso */
.typed-cursor { display: none; }

.home__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botoes do site */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem 1.5rem;
  font-weight: var(--font-medium);
  border-radius: .5rem;
  transition: background-color .4s, border-color .4s, color .4s;
}
.button i { font-size: 1.25rem; }
.button:hover { background-color: var(--first-color-alt); }

.button--ghost {
  background-color: transparent;
  border: 2px solid var(--first-color);
  color: var(--title-color);
}
.button--ghost:hover { background-color: var(--first-color); }

/* Secao sobre mim */
.about__container { row-gap: 3rem; }
.about__perfil { position: relative; justify-self: center; margin-bottom: 2rem; }

.about__image {
  width: 260px;
  height: 260px;
  background-color: var(--container-color);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 40px rgba(32, 120, 207, 0.4);
}
.about__img { width: 100%; height: 100%; object-fit: cover; }

.about__info { display: grid; row-gap: 2rem; text-align: center; }
.about__title-left { text-align: center; margin-bottom: 1rem; }
.about__description { color: var(--title-color); }
.about__list { display: grid; row-gap: 1rem; justify-items: center; }
.about__item {
  color: var(--title-color);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.about__item i { color: var(--first-color); font-size: 1.25rem; }
.about__buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Secao de servicos, cada cartao abre e fecha ao clicar */
.services__container { grid-template-columns: 1fr; gap: 1.25rem; max-width: 700px; margin-inline: auto; }

.services__card {
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .4s;
}
.services__card:hover { border-color: var(--first-color); }

.services__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

.services__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: .6rem;
  background-color: var(--body-color);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--first-color);
  transition: background-color .4s, color .4s;
}
.services__card:hover .services__icon { background-color: var(--first-color); color: #fff; }

.services__name { font-size: var(--h3-font-size); flex-grow: 1; }

.services__arrow {
  font-size: 1.5rem;
  color: var(--title-color);
  transition: transform .4s;
}

.services__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.services__description {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-color);
}

.services-open .services__content { max-height: 300px; }
.services-open .services__arrow { transform: rotate(45deg); }

/* Secao de habilidades */
.skills__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}
.skills__content {
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 1.25rem;
  transition: border-color .4s, transform .4s;
}
.skills__content:hover { border-color: var(--first-color); transform: translateY(-6px); }
.skills__title { font-size: var(--h2-font-size); text-align: center; margin-bottom: 2rem; }

.skills__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 250px;
  margin: 0 auto;
}
.skills__data { display: flex; align-items: center; column-gap: 1.5rem; width: 100%; }
.skills__blob {
  width: 50px;
  height: 50px;
  background-color: var(--body-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .4s;
}
.skills__blob img { width: 25px; }
.skills__blob:hover { background-color: var(--first-color); }
.skills__name { font-size: var(--normal-font-size); font-weight: var(--font-medium); color: var(--title-color); }
.filter-white { filter: invert(100%) sepia(0%) saturate(7482%) hue-rotate(72deg) brightness(114%) contrast(105%); }

/* Secao de projetos */
.projects__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.projects__filter {
  font-family: var(--pixel-font);
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--text-color);
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  padding: .5rem 1.25rem;
  border-radius: .5rem;
  transition: color .4s, background-color .4s, border-color .4s;
}
.projects__filter:hover { color: var(--title-color); border-color: var(--first-color); }
.active-filter {
  color: #fff;
  background-color: var(--first-color);
  border-color: var(--first-color);
}

.projects__container {
  padding-block: 1rem 2rem;
  display: grid;
  gap: 2rem;
}
.projects__card {
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 1.5rem;
  transition: transform .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.projects__card:hover { transform: translateY(-10px); border-color: var(--first-color); }
.projects__card.hidden-card { display: none; }

.projects__image {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.projects__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.projects__card:hover .projects__img { transform: scale(1.05); }
.projects__image.white-bg { background-color: #fff; }
.projects__image.white-bg img { object-fit: contain; padding: 1.5rem; }

.projects__content { display: flex; flex-direction: column; flex-grow: 1; }
.projects__subtitle { font-size: var(--small-font-size); color: var(--text-color); margin-bottom: .25rem; }
.projects__title { font-size: var(--h2-font-size); margin-bottom: .75rem; color: var(--title-color); }
.projects__description { margin-bottom: 1rem; }

.projects__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.projects__tag {
  font-family: var(--pixel-font);
  font-size: 1.05rem;
  letter-spacing: .5px;
  color: #4facfe;
  background-color: rgba(79, 172, 254, 0.08);
  border: 1px solid var(--border-color);
  padding: .15rem .6rem;
  border-radius: .35rem;
}

.projects__links { margin-top: auto; display: flex; gap: 1.25rem; }
.projects__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--title-color);
  font-weight: var(--font-medium);
  font-size: var(--small-font-size);
  transition: color .3s;
}
.projects__link:hover { color: var(--first-color); }
.projects__link i { font-size: 1.15rem; }

.projects__more { display: flex; justify-content: center; margin-top: 1rem; }

/* Secao de contato */
.contact__container { row-gap: 3rem; padding-bottom: 2rem; }
.contact__title-left { text-align: center; }
.contact__lead { margin-bottom: 2rem; text-align: center; }
.contact__content { display: grid; row-gap: 2rem; justify-content: center; }
.contact__data { display: flex; align-items: center; justify-content: space-between; column-gap: 2rem; width: 100%; max-width: 400px; }
.contact__title { font-size: var(--h3-font-size); margin-bottom: .25rem; }
.contact__subtitle { color: var(--text-color); font-size: var(--small-font-size); }
.contact__button { color: var(--first-color); display: inline-flex; align-items: center; column-gap: .25rem; font-weight: var(--font-medium); }
.contact__button i { font-size: 1.25rem; transition: transform .4s; }
.contact__button:hover i { transform: translateX(.25rem); }

/* Formulario de contato */
.contact__form {
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  display: grid;
  row-gap: 1.25rem;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.contact__form-group { display: grid; row-gap: .4rem; }
.contact__label {
  font-family: var(--pixel-font);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--title-color);
}
.contact__input {
  background-color: var(--body-color);
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  padding: .9rem 1rem;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  outline: none;
  transition: border-color .3s;
}
.contact__input:focus { border-color: var(--first-color); }
.contact__textarea { resize: vertical; min-height: 120px; }

.contact__status {
  font-size: var(--small-font-size);
  min-height: 1.2rem;
}
.contact__status.success { color: #4ade80; }
.contact__status.error { color: #f87171; }

.contact__submit { justify-self: start; }

/* Rodape */
.footer { background-color: var(--first-color-dark); padding-block: 3rem 2rem; }
.footer__container { text-align: center; display: grid; row-gap: 1.25rem; justify-items: center; }
.footer__logo { color: var(--title-color); font-size: 1.6rem; }
.footer__links { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 2rem; row-gap: .5rem; }
.footer__link { color: var(--title-color); transition: color .4s; }
.footer__link:hover { color: #4facfe; }
.footer__social { display: flex; column-gap: 1.25rem; }
.footer__social-link { color: var(--title-color); font-size: 1.4rem; transition: color .4s, transform .4s; }
.footer__social-link:hover { color: #4facfe; transform: translateY(-3px); }
.footer__copy { display: block; font-size: var(--smaller-font-size); color: var(--text-color-light); }

/* Botao de voltar ao topo */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  color: var(--title-color);
  display: inline-flex;
  padding: .6rem;
  font-size: 1.25rem;
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s, border-color .4s;
}
.scrollup:hover { transform: translateY(-.25rem); border-color: var(--first-color); }
.show-scroll { bottom: 3rem; }

/* Ajustes para cada tamanho de tela */
/* Ajustes para celular */
@media screen and (max-width: 767px) {
  /* Espacamento menor no celular para o site nao parecer vazio */
  .section { padding-block: 6rem 3rem; }

  .home__container { padding-top: 4.5rem; }
  .home__image { width: 210px; height: 210px; }
  .about__image { width: 220px; height: 220px; }

  .pixel-gradient, .typed-cursor-pixel { font-size: 2.1rem; }
  .home__typed-box { min-height: 50px; }

  /* Botoes mais largos, faceis de tocar com o dedo */
  .home__buttons .button, .about__buttons .button { width: 100%; max-width: 300px; }

  .services__container { max-width: 100%; }
  .projects__image { height: 200px; }

  .contact__form { padding: 1.5rem 1.25rem; max-width: 100%; }
  .contact__submit { justify-self: stretch; }

  .footer__links { column-gap: 1.25rem; }
}

/* Telas bem pequenas */
@media screen and (max-width: 340px) {
  .container { margin-inline: 1rem; }
  .home__image { width: 180px; height: 180px; }
  .about__image { width: 180px; height: 180px; }
  .contact__data { flex-direction: column; align-items: flex-start; row-gap: .5rem; }
  .pixel-gradient, .typed-cursor-pixel { font-size: 1.7rem; }
  .nav__logo span { font-size: 1.15rem; }
  .projects__filter { font-size: 1.1rem; padding: .4rem 1rem; }
}

@media screen and (min-width: 576px) {
  .home__container, .about__container { grid-template-columns: 380px; justify-content: center; }
}

@media screen and (min-width: 768px) {
  .nav__toggle, .nav__close { display: none; }
  .nav__list { flex-direction: row; column-gap: 2.5rem; }
  .nav__menu { margin-left: auto; }
  /* Afasta as opcoes de idioma dos links do menu */
  .lang-selector { margin-left: 4rem; }

  .home__container { grid-template-columns: 1fr max-content 1fr; align-items: center; justify-items: start; }
  .home__data { align-items: flex-start; text-align: left; }
  .home__greeting { text-align: left; }
  .home__social { justify-content: flex-start; }

  .home__info-title { align-items: flex-start; }
  .home__typed-box { justify-content: flex-start; }
  .home__buttons { justify-content: flex-start; }

  .about__container { grid-template-columns: repeat(2, 1fr); align-items: center; }
  .about__info { text-align: left; }
  .about__title-left { text-align: left; }
  .about__list { justify-items: start; }
  .about__buttons { justify-content: flex-start; }

  .skills__container { grid-template-columns: repeat(2, 1fr); align-items: start; }

  .projects__container { grid-template-columns: repeat(2, 1fr); }

  .contact__container { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .contact__title-left, .contact__lead { text-align: left; }
  .contact__content { justify-content: flex-start; }
  .contact__data { max-width: 500px; }
}

@media screen and (min-width: 1024px) {
  .container { margin-inline: auto; }

  .home__container { grid-template-columns: 300px 350px 300px; justify-content: center; column-gap: 3rem; padding-top: 4rem; }
  .home__name { text-align: left; font-size: var(--biggest-font-size); }
  .home__image { width: 350px; height: 350px; }

  .home__info-small { font-size: var(--h2-font-size); }
  .pixel-gradient, .typed-cursor-pixel { font-size: 3.5rem; }
  .home__typed-box { min-height: 78px; }

  .about__image { width: 350px; height: 350px; }

  .skills__container {
    grid-template-columns: repeat(3, 300px);
    justify-content: space-between;
    width: 100%;
  }
  .skills__info { align-items: flex-start; }

  .projects__container { width: 100%; gap: 3rem; }
}

/* Foguete que abre o mini game, no mesmo lugar onde a seta aparecia */
.rocket-launch {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  width: 68px;
  height: 68px;
  padding: 6px;
  background-color: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s, border-color .4s, box-shadow .4s;
}
.rocket-launch img { width: 100%; height: 100%; object-fit: contain; }
.rocket-launch:hover {
  transform: translateY(-.25rem);
  border-color: var(--first-color);
  box-shadow: 0 0 18px rgba(79, 172, 254, 0.5);
}
.rocket-launch.show-scroll { bottom: 3rem; }

/* Com o foguete no lugar da seta, a seta sobe para logo acima dele */
.scrollup.show-scroll { bottom: 8.5rem; }

/* Tela cheia do mini game */
.game-overlay {
  position: fixed;
  inset: 0;
  background-color: #000521;
  z-index: 500;
  display: none;
}
.game-overlay.game-active { display: block; }
#game-canvas { display: block; width: 100%; height: 100%; }

/* Tempo no topo e botao de sair */
.game-hud {
  position: absolute;
  top: 1rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 1.5rem;
  pointer-events: none;
}
.game-time {
  font-size: 2rem;
  color: #4facfe;
  letter-spacing: 2px;
}
.game-quit {
  pointer-events: auto;
  color: var(--title-color);
  font-size: 1.8rem;
  background-color: rgba(2, 12, 71, 0.7);
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  padding: .25rem .5rem;
  transition: border-color .3s, color .3s;
}
.game-quit:hover { border-color: var(--first-color); color: #4facfe; }

/* Dica de controles que aparece no comeco e some sozinha */
.game-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color-light);
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-align: center;
  width: 90%;
  transition: opacity 1s;
}
.game-hint.hide-hint { opacity: 0; }

/* Botoes de toque para jogar no celular */
.game-touch { display: none; }
@media (pointer: coarse) {
  .game-touch {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    padding-inline: 1.25rem;
  }
  .game-hint { bottom: 6.5rem; font-size: 1.05rem; }
}
.game-touch-left, .game-touch-right { display: flex; gap: .75rem; }
.game-touch-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: rgba(2, 12, 71, 0.75);
  border: 1px solid var(--border-color);
  color: var(--title-color);
  font-size: 1.6rem;
  touch-action: none;
}
.game-touch-fire { border-color: var(--first-color); color: #4facfe; }

/* Caixa da pergunta */
.game-quiz {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 5, 33, 0.85);
  padding: 1.5rem;
}
.game-quiz.show-quiz { display: flex; }
.game-quiz-box {
  background-color: var(--container-color);
  border: 1px solid var(--first-color);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 0 40px rgba(32, 120, 207, 0.35);
}
.game-quiz-title {
  color: #f87171;
  font-size: 1.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-align: center;
}
.game-quiz-question { color: var(--title-color); margin-bottom: 1.5rem; text-align: center; }
.game-quiz-options { display: grid; gap: .75rem; }
.game-quiz-option {
  background-color: var(--body-color);
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  color: var(--title-color);
  padding: .9rem 1rem;
  text-align: left;
  font-size: var(--normal-font-size);
  transition: border-color .3s, background-color .3s;
}
.game-quiz-option:hover { border-color: var(--first-color); background-color: rgba(32, 120, 207, 0.15); }

/* Tela de game over */
.game-over {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 5, 33, 0.92);
}
.game-over.show-over { display: flex; }
.game-over-title {
  font-size: 4.5rem;
  color: #f87171;
  letter-spacing: 6px;
  animation: over-pulse 1s ease-in-out infinite alternate;
}
.game-over-time { color: var(--text-color); margin-top: .5rem; }
@keyframes over-pulse {
  from { opacity: .6; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Trava a rolagem do site enquanto o jogo esta aberto */
body.game-open { overflow: hidden; }
