@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --blue-dark: #1D1E33;
  --gray-light: #B0B3B8;
  --white: #FFFFFF;
  --yellow-gold: #FFBD1F;
  --blue-light: #4A90E2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  background-color: #f0f0f0;
  color: var(--blue-dark);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

nav {
  background-color: var(--blue-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 55px;
  margin-right: 10px;
}

.logo span {
  color: var(--white);
  font-size: 22px;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: var(--yellow-gold);
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -2px;
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

main {
  margin-top: 80px;
  flex: 1;
  flex-grow: 1;
}

.hero {
  background: url('img/fundo.jpg') no-repeat center/cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
  padding-top: 100px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.hero p {
  font-size: 2rem;
  font-weight: 700;
  margin: 20px 0;
  max-width: 80%;
  line-height: 1.4;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.btn {
  background-color: var(--yellow-gold);
  color: var(--blue-dark);
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 20px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: var(--white);
  transform: scale(1.05);
}

.numeros-sistema-solar,
.conteudos {
  padding: 40px 5%;
  background: linear-gradient(135deg, var(--blue-dark), #001f3f);
  color: var(--white);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.numeros-sistema-solar h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.conteudos-frase {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--yellow-gold);
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.numeros-grid {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.numero-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s, background-color 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  flex: 1;
}

.numero-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.numero-item .numero {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--yellow-gold);
}

.numero-item p {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
}

.conteudos-itens {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
}

.conteudo-item {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--white);
  padding: 20px 15px;
  border-radius: 10px;
  width: 30%;
  min-width: 250px;
  transition: transform 0.3s, background-color 0.3s;
}

.conteudo-item:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: 1rem 15px black;

}

.conteudo-item h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.conteudo-item p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.conteudo-item a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: var(--yellow-gold);
  font-weight: bold;
  padding: 8px 15px;
  border: 2px solid var(--yellow-gold);
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.conteudo-item a:hover {
  background-color: var(--yellow-gold);
  color: var(--blue-dark);
}

.pagina-com-fundo {
  background: url("img/fundo-cc.jpg") no-repeat center center fixed;
  background-size: cover;
  padding: 40px 0;
}

.carousel-wrapper {
  padding: 20px;
}

.carousel-container {
  position: relative;
  width: 85%;
  max-width: 1100px;
  margin: 140px auto 60px auto;
  background: rgba(29, 30, 51, 0.85);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
}

.carousel-item {
  min-width: 100%;
  display: none;
  align-items: center;
  gap: 2rem;
}

.carousel-item.active {
  display: flex;
  flex-direction: row;
}

.carousel-item img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.info {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid var(--yellow-gold);
  color: var(--white);
}

.info h2 {
  color: var(--yellow-gold);
  font-size: 2rem;
  margin-bottom: 10px;
}

.info p {
  color: var(--gray-light);
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

#prevBtn,
#nextBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow-gold);
  border: 2px solid var(--yellow-gold);
  padding: 12px 16px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  border-radius: 12px;
  transition: all 0.3s ease;
}

#prevBtn:hover,
#nextBtn:hover {
  background: var(--yellow-gold);
  color: var(--blue-dark);
}

#prevBtn {
  left: -60px;
}

#nextBtn {
  right: -102px;
}

#catalogo {
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

#catalogo h2 {
  font-size: 2.5em;
  margin-bottom: 35px;
  color: var(--yellow-gold);
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 1.2px;
  font-weight: bold;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.filtros input,
.filtros select {
  padding: 14px 20px;
  font-size: 1em;
  border-radius: 30px;
  border: 2px solid transparent;
  background: var(--white);
  color: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  min-width: 220px;
}

.filtros input::placeholder {
  color: var(--gray-light);
  font-style: italic;
}

.filtros input:focus,
.filtros select:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.7);
  transform: scale(1.03);
}

.grid-catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: rgba(29, 30, 51, 0.85);
  width: 260px;
  height: 380px;
  padding: 25px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(255, 189, 31, 0.3);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin: auto;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 28px rgba(255, 189, 31, 0.4);
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 15px auto;
}

.card h3 {
  font-size: 1.5em;
  margin-bottom: 12px;
  color: var(--yellow-gold);
  font-weight: bold;
}

.card p {
  font-size: 0.95em;
  color: var(--gray-light);
  line-height: 1.4;
  flex-grow: 1;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: rgba(29, 30, 51, 0.95);
  padding: 35px;
  border-radius: 18px;
  max-width: 600px;
  width: 90%;
  color: var(--white);
  text-align: center;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.4s ease;
}

.modal-content img {
  width: 140px;
  margin-bottom: 20px;
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.9em;
  color: var(--yellow-gold);
}

.modal-content p {
  font-size: 1.1em;
  color: var(--gray-light);
  line-height: 1.6;
}

#fecharModal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8em;
  cursor: pointer;
  color: var(--yellow-gold);
  transition: transform 0.3s;
}

#fecharModal:hover {
  transform: scale(1.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#simulacao {
  background: rgba(29, 30, 51, 0.85);
  color: var(--white);
  padding: 60px 30px;
  margin-top: 60px;
  border-radius: 20px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

#simulacao h2 {
  color: var(--yellow-gold);
  font-size: 2.4em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

#simulacao p {
  margin-bottom: 25px;
  color: var(--gray-light);
  font-size: 1.1em;
}

#simulacao select {
  padding: 14px 20px;
  border-radius: 30px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1em;
  margin-bottom: 40px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

#simulacao select:hover {
  transform: scale(1.05);
  border-color: var(--blue-light);
  box-shadow: 0 0 15px rgba(74, 144, 226, 0.7);
}

#graficoDistancia {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.barra-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.label {
  width: 100px;
  font-weight: bold;
  color: var(--white);
  text-align: right;
}

.barra {
  height: 22px;
  background: #555;
  border-radius: 12px;
  transition: width 2s ease-in-out, background 0.5s;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4);
}

.barra.selecionado {
  background: var(--yellow-gold);
  box-shadow: 0 0 12px rgba(255, 189, 31, 0.8);
}

.distancia {
  font-size: 0.95em;
  color: var(--gray-light);
  min-width: 150px;
  text-align: left;
}

.exploracao {
  background-color: var(--blue-dark);
  width: 100%;
  padding: 0;
  margin: 0;
}

.timeline-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  color: #fff;
  text-align: center;
}

.timeline-container h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.timeline {
  list-style: none;
  position: relative;
  padding: 0;
  margin: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--yellow-gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 40px 0;
  width: 50%;
  padding: 0 20px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--yellow-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  transition: background 0.3s;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.2);
}

.timeline-content h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: bold;
}

.timeline-content p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.info-article {
  position: relative;
  background-image: url("img/astronauta.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-descobertas {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 50px;
  max-width: 1300px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.overlay-descobertas h3 {
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: var(--yellow-gold);
  text-align: center;
  font-weight: bold;
}

.descobertas-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: nowrap;
}

.descoberta-bloco {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 25px 35px;
  border-radius: 12px;
  flex: 1 1 48%;
  min-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.descoberta-bloco h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.6rem;
  color: var(--yellow-gold);
  font-weight: bold;
}

.descoberta-bloco p {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 20px;
}

footer {
  width: 100%;
  background-color: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

.quiz-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: url('img/fundo.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Poppins', sans-serif;
}

.quiz-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 40px 30px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.5);
  max-width: 650px;
  width: 100%;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#question-counter {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: var(--yellow-gold);
  color: var(--white);
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.5s ease;
}

.quiz-container h1 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--yellow-gold);
  letter-spacing: 1px;
}


.question {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 600;
}

.answers button {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 14px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: bold;
  transition: transform 0.25s ease, background 0.25s ease;
}

.answers button:hover {
  transform: translateY(-3px);
  background: var(--gray-light);
}

.answers button.correct {
  background: #2ecc71 !important;
  color: var(--white);
  transform: scale(1.05);
}

.answers button.wrong {
  background: #e74c3c !important;
  color: var(--white);
  transform: scale(0.98);
}

#next-btn {
  margin-top: 20px;
  background: var(--yellow-gold);
  color: var(--blue-dark);
  font-size: 1.1rem;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

#next-btn:hover {
  background: #ffcd4d;
  transform: translateY(-2px);
}

#score-container {
  font-size: 1.4rem;
  color: var(--white);
  margin-top: 25px;
  padding: 20px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 10px rgba(255, 189, 31, 0.5);
}

.hidden {
  display: none !important;
}

.final-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.final-buttons button {
  background: var(--yellow-gold);
  color: var(--blue-dark);
  font-size: 1rem;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.final-buttons button:hover {
  background: #ffcd4d;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}