/*fundo preto*/
html{
  background: #000;
}

/*textos normais*/
h1{
  text-align: center;
  font-size: 40px;
}

h2{
  text-align: right;
  font-size: 16px;
}

h3{
  text-align: center;
  font-size: 25px;
}

#language-screen{
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  color: white;
}

#botoesidiomas{
  display: flex;
  gap: 15px;
}

#botoesidiomas button{
  width: 80px;
  height: 50px;
  background: transparent;
  color: white;
  border: 2px solid white;
  cursor: pointer;
  font-size: 18px;
}

#botoesidiomas button:hover{
  background: white;
  color: black;
}

#start-screen {
  position: fixed;
  inset: 0;

  background: #000;

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 999999;
}

/*botao de inicio*/
#start {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

#start img{
  width: 60px;
  height: 60px;
}

/*efeitos de crt*/
body.tv-on{
  animation: TVligada 2s ease-out;
}

.crt-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.08) 0px,
      rgba(0, 0, 0, 0.08) 1px,
      transparent 1px,
      transparent 3px
    ),
    
    radial-gradient(
      ellipse at center,
      transparent 50%,
      rgba(0, 0, 0, 0.35) 100%
    );
}

/*background*/
body{
  margin: 0;
  min-height: 100vh;
  background-image: url("beachlifeisstrange.gif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/*efeitos de texto*/
.crt-text{
  color: #ffffff;
  text-shadow:
    2px 0 rgba(255, 0, 0, 0.5),
    -2px 0 rgba(0, 255, 255, 0.5),
    0 0 5px rgba(255, 255, 255, 0.7);
  animation:
    crt-flicker 0.08s infinite alternate;
}

.crt-textyellow{
  color: #F8FC12;
  text-shadow:
    2px 0 rgba(255, 0, 0, 0.5),
    -2px 0 rgba(0, 255, 255, 0.5),
    0 0 5px rgba(255, 255, 255, 0.7);
  animation:
    crt-flicker 0.08s infinite alternate;
}

/*efeitos de tela*/
@keyframes aparecer{
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes crt-flicker{
  from {
    opacity: 0.95;
  }
  to {
    opacity: 1;
  }
}

@keyframes TVligada{
  0%{
    opacity: 0;
    transform: scaleY(0.01);
    filter: brightness(0);
  }
  40%{
    opacity: 1;
    transform: scaleY(0.02);
    filter: brightness(0.4);
  }

  70%{
    transform: scaleY(1.05);
    filter: brightness(0.9);
  }
  
  100%{
    opacity: 1;
    transform: scaleY(1);
    filter: brightness(1);
  }
}

/*scrollbar*/
::-webkit-scrollbar{
  width: 14px;
}

::-webkit-scrollbar-track{
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb{
  background: #ffffff;
  border: 3px solid #1a1a1a;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover{
  background: #dddddd;
}

/*mobile*/
@media (max-width: 768px){
  body{
    background-attachment: scroll;
  }

  h1{
    font-size: 28px;
  }

  h{
    font-size: 20px;
  }

  h3{
    font-size: 20px;
  }

  #start{
    width: 80px;
    height: 80px;
  }

  #start img{
    width: 50px;
    height: 50px;
  }

  #botoesidiomas button{
    width: 70px;
    height: 45px;

    font-size: 16px;
  }
}