@font-face {
  font-family: "Poppins";
  src: url("Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("Poppins-Bold.ttf") format("truetype");
  font-weight: 800;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.bg {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  background: linear-gradient(rgba(169, 52, 48, 0.3), rgba(169, 52, 48, 0.3)),
    url("brain_background.webp") center / contain no-repeat;
  background-color: #ab3525;
}

.content {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  flex-grow: 1;
}

.footer {
  font-size: 0.7rem;
  width: 90%;
  text-align: right;
  padding: 1rem 3rem;
}

.text-overlay {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  color: black;
  margin: 1rem;
  padding: 1rem 2rem;
  border-radius: 1rem 0 1rem 0;
  align-items: center;
  justify-content: center;
}

h1,
p {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 8rem;
}

p {
  font-size: 4.5rem;
  color: #ab3525;
}

@media (min-width: 2160px) {
  .content {
    width: 60%;
  }
}

@media (max-width: 1260px) {
  .content {
    width: 80%;
  }
  .text-overlay {
    margin: 0.5rem;
  }
  h1 {
    font-size: 6rem;
  }
  p {
    font-size: 3rem;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 4.5rem;
  }
  p {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  p {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem;
  }
  p {
    font-size: 1rem;
  }
}
