@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* General Styles */
body {
  background-color: #1f1f1f;
  color: #676767;
  font-family: 'Cabin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  color: #c19191;
}

a:hover {
  color: #0570b0;
}

video {
  width: 130%; 
  height: 90%;
}

h3 {
  color: #937070;
}

/* Sections */
.container {
  width: 100%;
}

#hook {
  margin-top: 30px;
}

.hook-text-section {
  padding: 50px 80px 0px 80px;
}
.hook-quiz-section {
  display: flex;
  flex-direction: column;
  padding: 10vh 100px 10vh 100px;
  background-color: #181818;
}
#hook p, .hook-text-section, .hook-quiz-section h5, #credits p, #credits ul{
  color: #eeeeee;
}

.title-sections {
  margin-top: 1vh;
  margin-bottom: 1vh;
}

.title-sections h2 {
  border: 2px dashed #ced4da;
  padding: 15px;
  background-color: #ffffff31;
}

#hook h2, .title-sections {
  color: #bfdbff;
}

.section-gap {
  background-color: #eeeeee;
}

.title-sections, .section-gap, #credits {
  padding: 90px
}

/* Flex layout for visualization and description pairs */
.viz-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Visualization placeholder styling */
.viz {
  flex: 1;
  min-height: 300px;
  /* background-color: #e9ecef; */
  border: 2px dashed #ced4da;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* Description styling */
.description {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

/* Quiz section styling */
.quiz-section {
  margin-bottom: 20px;
}

.quiz {
  padding: 15px;
  /* border: 1px solid #ced4da;
  background-color: #f1f3f5; */
}

/* Dot graph */
#categorySelectorDotGraph {
  margin-bottom: 5%;
  background-color: #fdfdfd;
  border: 2px dashed #ced4da;
}
.text-for-sex, .text-for-sex-2 {
  display: block;
}

.text-for-age-group, .text-for-age-group-2 {
  display: none;
}

/* Solutions Section Items */
.solution-item {
  border: 2px dashed #ced4da;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f1f3f5;
}

/* Optional: Center headings in sections */
h1, h2, h3, h4, h5 {
  margin-bottom: 20px;
}

.insight-viz-2-subtitle{
  font-weight: 600;
  font-size: 12px;
}

.viz-title{
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
}

/* Make the quiz container wider */
#hook-quiz {
  max-width: 800px;  /* increased from 500px to 800px */
  margin: 0 auto;    /* center horizontally */
  text-align: center;
  padding: 1rem;
}

/* The quiz-content wrapper */
.quiz-content {
  background-color: #f8f9fa; /* light background (Bootstrap gray-100) */
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease-in-out;
}

/* Container for the option buttons; allow wrapping */
.quiz-options {
  margin-top: 1.5rem;
  display: flex;            /* use flex layout */
  flex-wrap: wrap;          /* allow buttons to wrap onto new lines */
  justify-content: center;  /* center them horizontally */
}

/* Quiz option buttons */
.quiz-btn {
  min-width: 120px;       /* ensure each button has some minimum width */
  margin: 0.5rem;         /* spacing around each button */
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #c19191;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* For reveal button */
#reveal-btn, .btn, .btn-success{
  background-color: #c19191;
  border: none;
}

.quiz-btn:hover, #reveal-btn:hover, .btn:hover, .btn-success:hover{
  background-color: #8c6868;
  border-color: #c19191;
}


.btn-success:focus, .btn-success:active{
  box-shadow: 0 0 0 .2rem #c19191;
}

.btn-success:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 .2rem #c19191;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

/* Fade-out animation */
.fade-out {
  animation: fadeOut 0.5s forwards;
}

/* Keyframes for fadeIn and fadeOut */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

#main-viz-4, #insight-viz-2{
  flex-direction: column;
}

.reveal-text{
  opacity: 0;
  font-size: 16px;
  margin-top: 10px;
}
/* Nav Bar */
.side-nav {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav li {
  margin: 10px 0;
}

.nav-dot {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #b5b5b5;
  position: relative;
}

.nav-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #b5b5b5;
  border-radius: 50%;
  display: block;
  transition: background 0.3s ease-in-out;
}

.nav-dot span {
  display: none;
  position: absolute;
  left: 20px;
  font-size: 14px;
  color: #b5b5b5;
  white-space: nowrap;
}

/* Show text when hovering */
.nav-dot:hover span {
  display: inline;
}

/* Highlight active section */
.nav-dot.active::before {
  background: #5b5b5b;
  width: 14px;
  height: 14px;
}

/* Title page specific*/
#title-page h5 {
  color: #a2a2a2;
}

.title-page-title-section {
  text-align: center;
  margin: 10% 10% 10% 10%;
  /* color: #676767; */
  color: #eeeeee;
}

.title-page-title {
  font-weight: 800;
  font-size: 5em;
}

/* Landscape */
.landscape {
  background: #1f1f1f;
  /* background: #eeeeee; */
  overflow: hidden;
  position: relative;
}

.mountains_group {
  padding-top: 40vh;
}

.landscape_layer {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.landscape_image {
  bottom: 0;
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
}

.landscape_image svg {
  display: block;
  height: auto;
  width: 100%;
}

.foreground_valley {
  z-index: 100;
}

/* Solutions section */
.solutions-suggestions {
  margin-left: 10%;
}
.solutions-suggestions img {
  width: 50%;
  margin-left: 40px;
}