/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Gluten:wght@600&family=Space+Mono&display=swap");
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap');

/* Global Variables */
:root {
  --color-placemat: oklch(66.89% 0.0807 246.33 / 50%);
  --color-yellow: oklch(81.98% 0.1466 81.17);
  --color-blue: oklch(66.89% 0.0807 246.33 );
  --color-pastel: #eff2f1;
}

/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100%;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
  
}


h1, h2, h3, h4, p {
  text-align: center;
  font-family: "DM Serif Text", serif;
  margin-left: 10%;
  margin-right: 10%;
  padding: 2%;
}

h3, p {
  font-weight: 200;
}

p{
  text-align: left; 
}
.scroll-indicator {
  animation: bounce 1.5s infinite;
  width: 50px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}


a {
  color: var(--color-placemat);
}

/* Section Styles */
section {
  min-height: 100vh; /* Ensure each section takes at least full viewport height */
  height: 100vh;
  width: 100%;
  margin-bottom: 5%; /* Add margin to separate sections */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: auto;
  font-size: 2rem;
  transform: translateY(50px); /* Starts slightly lower */
  
}

/* .section-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
} */

#intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Navbar Styles */
.navbar {
  width: 100%;
  font-family: "Gluten", monospace;
  font-size: 1.2em;
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-links {
  display: flex;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  padding: 10px 15px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3182bd;
}

/* Progress Bar Styles */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
}

progress {
  position: fixed;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border: none;
  background: transparent;
}

progress::-webkit-progress-bar {
  background: transparent;
}

progress::-webkit-progress-value {
  background: linear-gradient(to left, 
  #4059ad,
  #6b9ac4,
  #3182bd,
  #9ecae1,	
  #c6dbef,
  #eff3ff
  );
  background-attachment: fixed;
}

progress::-moz-progress-bar {
  background: linear-gradient(to left, 
  #4059ad,
  #6b9ac4,
  #3182bd,
  #9ecae1,	
  #c6dbef,
  #eff3ff
  );
  background-attachment: fixed;
}

#diabeties_description {
  height: 100vh;
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

/* Paragraph Container */
.paragraph {
  width: 100%;
  padding: 20px;
  text-align: center;
  .highlight{
    width: 80vw;
    font-size: 5.5rem;
  }
}

.details {
  font-size: 1.5rem;
  width: 50%; /* Ensures a controlled width */
  line-height: 1.6;
  font-weight: 300;
  font-family: "Red Hat Text", sans-serif;
  margin: auto;  /* Centers the paragraph block horizontally */
  display: block; /* Ensures correct block behavior */
}

.section-header{
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-blue);
  margin-bottom: 10px;
}

.y-section-header{
  font-size: 3rem;
  font-weight: bold;
  color: var(--color-yellow);
  margin-bottom: 10px;
}

#yellow{
  color:"color:var(--yellow)"
}
#typing-text::after {
  content: "|"; /* Cursor */
  display: inline-block;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


.highlight{
  font-size: 5rem;
  font-weight: bold;
  color: var(--color-yellow);
  margin-bottom: 10px;
  width: 100vw;
}

.description {
  max-width: 80vw;
  
  padding: 20px;
  background: var(--color-yellow);
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.description p {
  font-size: 1.8rem;
  line-height: 1.6;
  font-weight: 200;
  color: white;
  font-family: "Red Hat Text", sans-serif;
}
#compare{
  background: var(--color-blue);
}

.stats{
  width: 100%;
}

/* Stats Container */
.stats-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 20px;
    /* Numbers */
    h1 {

      margin:auto;
    }  
}

.subtitle {
  font-size: 3.5rem;
  font-weight: bold;
  color: var(--color-blue);
}

/* Small Text */
.info {
  font-size: 3rem;
  margin-bottom: 10px;
  color: black;
}


#hook {
  display: flex;
  justify-content: center;  /* Centers horizontally */
  align-items: center;      /* Centers vertically */
  height: 100vh;            /* Full viewport height */
  text-align: center;       /* Centers text inside */
}


/* Count Animation */
.count {
  display: inline-block;
  min-width: 80px;
  text-align: center;
}

/* Panel Styles */

#panel-2 {
  height: 100vh;
  overflow: hidden; /* Prevents content overflow */
  margin: auto;
  h3{
    margin: 0;
    margin-bottom: 3%;
    #slider-text{
      margin: 0;
      padding-bottom: 0;

    }
  } 

}

#svg-title{
  margin:0;
  padding:0;
}


#panel-2-flex-container {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 10px;
  overflow: hidden;
}

.title-container {
  display: flex;
  align-items: center; 
  width: 100%;
  white-space: nowrap; 
  height: 80px;
  padding-bottom: 0;
  margin-bottom: 0;
  h3{
    margin: 0;
    padding-bottom: 0;
  }
}


.toggle-container {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Push to the right */
  width: 88%; /* Ensure it takes full width */
  font-size: 16px;
  color: #333;
  cursor: pointer;
  padding: 80px;
}

/* Hide the default checkbox */
#toggle-meal-icons {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}

/* Custom switch */
.toggle-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Create the switch background */
.toggle-label::before {
  content: "";
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  display: inline-block;
  position: relative;
  transition: background-color 0.3s ease;
}

/* Create the circle (toggle) */
.toggle-label::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  left: 4px;
  top: 2px;
  transition: transform 0.3s ease;
}

/* Checked state - blue background */
#toggle-meal-icons:checked + .toggle-label::before {
  background-color: #0071e3;
}

/* Move the toggle circle when checked */
#toggle-meal-icons:checked + .toggle-label::after {
  transform: translateX(16px);
}


#panel-2-flex-container .control-panel-wrapper {
  flex: 0 0 30%;
  margin-top: 2%;
  margin-left: 5%;
  height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

#panel-2-flex-container .visualization-wrapper {
  padding-bottom: 3%;
  padding-left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: hidden; /* Ensures visualization d~goesn't overflow */
}

#panel-3 {
  margin-top: 10%;
  height: 100%;
}

#panel-4 .controls-container {
  display: flex;
  justify-content: center;
  gap: 2rem;

  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;*/
} 

#panel-4 .metric-selector,
#panel-4 .group-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#panel-4 .checkbox-group {
  display: flex;
  gap: 1.5rem;
}

#panel-4 select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#panel-4 .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

#distribution-plot {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 430px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  overflow: visible;
}


#panel-4 .distribution-path {
  fill-opacity: 0.3;
  stroke-width: 2;
}

#panel-4 .distribution-path.diabetic {
  fill: #e74c3c;
  stroke: #c0392b;
}

#panel-4 .distribution-path.prediabetic {
  fill: #f1c40f;
  stroke: #f39c12;
}

#panel-4 .distribution-path.nondiabetic {
  fill: #2ecc71;
  stroke: #27ae60;
}

/* Graph Styles */
.graph-container {
  margin: 10px 0;
  width: 700;
  height: 80%;
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.graph-wrapper {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  width: 100%;
}

.visualization-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.control-panel-wrapper {
  width: 300px;
  flex-shrink: 0;
}

.visualization-wrapper {
  flex-grow: 1;
  min-width: 0; /* Prevents flex item from overflowing */
}

.control-panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  margin: auto;
  top: 20px;
}

.selector-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.participant-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.participant-btn {
  background: #f5f5f7;
  border: none;
  border-radius: 50%; /* Make the button circular */
  padding: 12px;
  font-size: 16px; /* Adjust font size as needed */
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  width: 40px; /* Set a fixed width */
  height: 40px; /* Set a fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.participant-btn:hover {
  background: #e8e8ed;
}

.participant-btn.active {
  background: #0071e3;
  color: white;
}


.time-preset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.time-btn {
  background: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

.time-btn.active {
  background: #28a745;
  color: white;
  border-color: #1e7e34;
}

.time-btn {
  margin: 5px;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.line {
  fill: none;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.line.active {
  stroke-width: 3;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

.dot {
  stroke: white;
  stroke-width: 1;
}

.dot:hover {
  r: 6;
  transition: r 0.2s;
}

.meal-dot {
  stroke-width: 1px;
  stroke: #000; /* Optional: Add a stroke color */
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  background-color: white;
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none; /* Use display instead of visibility */
}

.tooltip.show {
  opacity: 1;
}

.tooltip img {
  width: 100px;
  height: auto;
  margin-top: 5px;
}

/* Axis and Title Styles */
.axis-label {
  font-size: 12px;
  font-weight: 500;
}

.title {
  font-size: 16px;
  font-weight: bold;
}

.section-title {
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  margin: auto;
}

h2 {
  text-align: center;
}

h4 {
  margin-bottom: 10px;
  font-size: 12px;
}

/* Container Styles */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.glucose-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px;
  justify-content: center;
}

.group-container {
  margin-bottom: 30px;
}

.group-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.participant-section {
  text-align: center;
  padding: 10px;
}

.chart-container {
  display: flex;
  flex-direction: column; /* Ensures horizontal stacking */
  justify-content: space-evenly; /* Evenly distributes charts */
  align-items: center; /* Centers content */
  gap: 20px; /* Adds space between charts */
}

.visualization-container {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Specific Element Styles */
#question {
  background-color: var(--color-yellow);
}

#question section {
  position: relative;
  height: 100vh;
  overflow-x: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
}

#question p {
  font-size: 100px;
  text-align: center;
  position: relative;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  left: 200px;
}

#question .dot {
  background-color: white;
  width: 0;
  height: 0;
  border-radius: 50%;
  position: absolute;
}

#masthead {
  position: fixed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  z-index: 9999;
}

#masthead a {
  padding: 1rem 2rem;
}

.plate {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  grid-template-areas: "plate";
  aspect-ratio: 1;
  width: 50vmin;
  font-size: 8vmin;
  background: white;
  border-radius: 50%;
  border: 1vmin 50% rgb(151, 145, 145);
  box-shadow: 
    hsla(0 0% 0% / 0.05) 2vmin 2vmin 2vmin -2vmin,
    hsla(0 0% 0% / 0.05) -2vmin -2vmin 2vmin -2vmin,
    white 0 0 0 3vmin,
    var(--color-pastel) 0 0 0 3.5vmin,
    white 0 0 0 5vmin,
    hsl(0deg 0% 0% / 60%) 5vmin 5vmin 5vmin;
}

.plate > * {
  grid-area: plate;
}

.text {
  width: 100%;
  text-shadow: 2px 1px 2px var(--color-pastel);
  text-align: center;
  color: var(--color-yellow);
  font-family: "Gluten", monospace;
}

.mat {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 75%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5%;
  aspect-ratio: 5 / 4;
  gap: 8%;
  border-radius: 0.5vmin;
  box-shadow: hsla(0, 0%, 0%, 0.1) 0 1vmin 1vmin -0.5vmin;
  background: 
    repeating-linear-gradient(90deg, var(--color-placemat) 0 10%, transparent 10% 20%), /* Vertical Stripes */
    repeating-linear-gradient(0deg, var(--color-placemat) 0 10%, transparent 10% 20%),  /* Horizontal Stripes */
    var(--color-pastel); /* Base fabric color */
  background-size: 50vmin 50vmin; 
}

.fork, .knife {
  height: 55%;  
  width: 10vmin;
}

.glucose-section {
  margin-bottom: 30px;
}


svg {
  background-color: #f0f0f0;
  border-radius: 5px;
  background: white;
  max-width: 100%;
  height: auto;
  display: block;
  /* margin: auto; */

}

/* style for the animated svg */
.rolling_glucose_svg {
  background: white;
  border-radius: 10px;
  height: 100%;
  display: block;
  overflow: visible;
}


.control-section {
  margin-bottom: 24px;
}

.control-section h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #1d1d1f;
}

.time-custom {
  padding: 0 8px;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  background: #d2d2d7;
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #4059ad;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.step-description {
  font-size: 16px;
  line-height: 1.5;
  color: #1d1d1f;
  margin-top: 24px;
}

.legend g {
  cursor: pointer;
  transition: opacity 0.2s;
}

.legend g:hover {
  opacity: 0.8;
}

/* style for the glu_metrics_explain section */
#glu_metrics_explain {
  display: flex;
  flex-direction: column; 
}


#glu_metrics_explain #explain_graph {
  border: 1px solid #ccc;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 100%;
  height: 100%; /* Ensure the element takes up to 70% of the container height */
  flex: 0 0 70%;
}

#glu_metrics_explain #explain_text {
  border: 1px solid #ccc;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 100%;
  height: 100%; /* Ensure the element takes up to 70% of the container height */
  flex: 0 0 30%;
}


.page{
  display: block;
  width: 100%;
}

 .page__button:hover,  .page__button {
  transition: all 0.2s ease-in-out;
}

 .page__button {
  width: 50%;
  padding: 10px 20px;
  background:var(--color-yellow);
  color: #fff;
  border: solid 2px var(--color-yellow);
  cursor: pointer;
  font-size: 20px;
  line-height: 24px;
  border-radius: 40px;
}

 .page__button:hover {
  background: #fff;
  color: var(--color-yellow);
  border: solid 2px var(--color-yellow);
}
 .page__button--back {
  margin:auto;
  background: var(--color-blue);
  border-color: var(--color-blue);
  font-size: 20px;
  line-height: 24px;
}

 .page__button--back:hover {
  background: #fff;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

 #transition {
  height: 20px;
  width: 20px;
  background: var(--color-yellow);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  border-radius: 50%;
}





/* style for the rolling_glu_dots */
#rollig_glu_dot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5%;
    height: 100vh; /* Ensure the section takes the full viewport height */
    overflow: hidden;
    flex-wrap: wrap; /* Allow wrapping of child elements */
}

#rollig_glu_dot .chart-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 90%;
    margin: 0;
    max-width: 1200px; /* Prevent excessive stretching */
}

#rollig_glu_dot .line-category {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 100%;
    height: 23vh; /* Ensure the element takes the full height of the container */
}

.roll-title{
  margin-top: 1%;
  font-family: "Red Hat Text", sans-serif;
  font-size: 1.5rem;
  color:gray
}



.roll{
  padding: 0;
  .description{
    text-align: center;
    height: 50%;
    justify-content: center;
    background-color: #c6dbef; /* Light background */
    color:white;
    p{
      font-weight: 700;
      max-width: 80%;  /* Limits text width for better readability */
      line-height: 1.5;
      padding: 10px;
      font-size: 25px;
    }
  }
}

#intro-roll p{
  font-size: 100%;
}

.range-slider{
  margin: 0;
  padding: 0;
  cursor: pointer;
  background-color: white;
  border-radius: 0px;
}

.main-svg{
  height: 85%;
  cursor: pointer;
}

/* Center the quiz section */
#quiz {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  background-color: #c6dbef; /* Light background */
  padding: 20px;
}

/* Quiz container */
.quiz-container {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* Style the quiz heading */
.quiz-container h3 {
  width: 100%;
  margin: auto;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

/* Style all quiz questions */
.quiz-question {
  margin-bottom: 20px;
  text-align: center;
  width: 100%; /* Ensures questions align properly */
}

/* Style labels */
.quiz-question label {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  display: block; /* Ensures label is above the input */
  margin-bottom: 8px;
}

/* Style input fields */
.quiz-question input,
.quiz-question select {
  width: 400px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s ease-in-out;
  text-align: center;
}

/* Highlight input fields on focus */
.quiz-question input:focus,
.quiz-question select:focus {
  border-color: #007bff; /* Blue highlight */
  box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.5);
}

/* Remove number input spinners */
.quiz-question input[type="number"]::-webkit-inner-spin-button,
.quiz-question input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Style radio button container */
.quiz-question div {
  display: flex;
  align-items: center;
  justify-content: center; /* Center radio buttons */
  gap: 10px;
  margin-top: 5px;
}

/* Style radio buttons */
.quiz-question input[type="radio"] {
  accent-color: var(--color-blue);
}

/* Style buttons */
button {
  width: 100%;
  padding: 12px;
  font-size: 1.2rem;
  color: white;
  background:var(--color-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  margin-top: 10px;
  font-family: "Red Hat Text", sans-serif;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}


@keyframes blink {
  0%, 100% {
      opacity: 1; /* Fully visible */
  }
  50% {
      opacity: 0; /* Hidden */
  }
}

/* Apply blinking animation only initially */
.hint p {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-blue);
  display: block;
  margin-bottom: 8px;
  margin: 0;
  position: relative;
  transform: translateY(-10px);
  animation: blink 2s infinite ease-in-out;
}

/* Stop blinking when 'no-blink' class is added */
.hint p.no-blink {
  animation: none;
  opacity: 1; /* Keep the hint visible */
  color: var(--color-blue);
}


#quiz-result{
  justify-content: center;
  align-items: center;
  height: 70%;
  text-align: center;
  width: 100%;
}

#match{
  font-size: 1.2rem;
  font-family: "Red Hat Text", sans-serif;
  text-align: center;
}

#result{
  margin:0;
  font-size: 1rem;
  font-family: "Red Hat Text", sans-serif;
  text-align: center;
  font-weight: 600;
  width: 100%;
}

#header{
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blue);
  font-family: "Red Hat Text", sans-serif;
  text-align: center;

}
#instruction{
  margin-top: 10%;
  .section-header{
    color: white;
  }
  .description{
    background-color: var(--color-blue);
  }
}

#context{
  margin-top:10%;
  font-size: 1rem;
  font-weight: 600;;
  width:100%;
  text-align: center;
  color: var(--color-blue);
}

#ui{
  width: 80%;
}
#conclude{
  width: 100%;
  font-size: medium;
  padding-right: 5%;
}

/* Add these new styles and modifications */

/* Modify the analysis section styling */
.roll.analysis-section {
  min-height: auto;
  height: auto;
  padding: 20px 0;
}

.roll.analysis-section .description {
  max-width: 70vw;
  margin: 0 auto;
  background: var(--color-pastel);
  padding: 30px;
}

.roll.analysis-section .section-header {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--color-blue);
}

/* Style the details text and lists */
.roll.analysis-section .details {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin: 10px 0;
  width: 100%;
}

.roll.analysis-section .meal-list,
.roll.analysis-section .metrics-list {
  margin: 10px 0;
  padding: 0 20px;
}

.roll.analysis-section li {
  margin: 5px 0;
  color: #333;
  font-size: 1.2rem;
}

/* Acknowledgments Section */
.acknowledgments {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    width: 100%; /* Full width of the viewport */
}

.acknowledgments .description {
    width: 80vw; /* 80% of the viewport width */
    max-width: none; /* Remove the max-width constraint */
    background: var(--color-pastel);
    padding: 40px;
    border-radius: 12px;
    margin: 0 auto; /* Center the description div */
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.special-shoutout {
    width: 25%; /* Reduce the width */
    margin: 0 auto; /* Center the box */
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
}

.special-shoutout h3 {
    color: var(--color-blue);
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: "DM Serif Text", serif;
}

.special-shoutout p {
    color: #333;
    font-size: 1rem;
    font-family: "Red Hat Text", sans-serif;
    margin: 0;
    text-align: center;
}

.special-shoutout:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-member h3 {
    color: var(--color-blue);
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: "DM Serif Text", serif;
}

.team-member p {
    color: #333;
    font-size: 1rem;
    font-family: "Red Hat Text", sans-serif;
    margin: 0;
    text-align: center;
}