@font-face {
  font-family: 'Reikna';
  src: url(Reikna.ttf) format('truetype');
}

@keyframes subir {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-80px);
    opacity: 0;
  }
}

@keyframes descer {
  from {
    transform: translateY(-80px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

:root {
  --cor-circulo: #DE3D3D;
  --cor-circulo2: #FED9E599;
  --cor-texto1: #E96174;
  --cor-texto2: #BAE07C;
  --fonte: Reikna;
  --bg-color: rgb(220, 218, 253);
}

* {
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
}
header {
  position: absolute;
  font-family: 'Reikna';
  color: #c4aeff;
  text-transform: uppercase;
  font-size: 6vh;
  top: 10%;
}

header > p {
  font-size: 3vh;
  text-align: center;
  color: #9a83d8;
}
.container {
  position: relative;
  width: 600px;
  height: 400px;
  border: #949494 solid 1px;
  overflow: hidden;
  background-color: white;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.384);
}

.fundo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 225px;
  background: radial-gradient(circle at top, var(--cor-circulo), var(--cor-circulo2) 100%);
  border-top-left-radius: 225px;
  border-top-right-radius: 225px;
  display: flex;
  justify-content: center;
  align-items: center;

  overflow: visible; /* <--- permite que o Piplup não seja cortado */
}

.gradiente-atual, .gradiente-novo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-top-left-radius: 225px;
  border-top-right-radius: 225px;
}

.gradiente-atual {
  background: radial-gradient(circle at top, #DE3D3D, #FED9E599);
}

.gradiente-novo {
  background: radial-gradient(circle at top, #3D6ADE, #FEF0F599);
  opacity: 0;
  transition: opacity 2s ease;
}
#bolinho {
  position: absolute;
  width: 240px;
  top: -26%;
  image-rendering: pixelated;
  cursor: pointer;
  transition: transform 0.5s ease;
}

.texto {
  position: absolute;
  top: 3vw;
  left: 3vw;
  font-family: "Reikna", sans-serif;
  line-height: 20px;
  text-shadow: 2px 1px 1px rgba(48, 48, 48, 0.37);
}

.texto h1 {
  color: var(--cor-texto1);
  margin: 0;
  font-size: 3.5rem;
  
}

.texto h2 {
  color: var(--cor-texto2);
  margin: 0;
  font-size: 3.1rem;
}

#piplup {
  position: absolute;
  width: 240px;
  top: -26%;
  transform: rotate(90deg) translateY(-100px) translateX(300px);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}




