@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');



body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
  background: #f9f7f4;
    margin: 0px auto;     /* center horizontally */

    max-width: 1400px;     /* limit width on ultra-wide monitors */
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;          /* above chart */
  background: #f9f7f4;  /* same as body so it looks natural */
  padding: 0.2rem 1rem;
  margin: 0;
}

.name {
  margin-top: -10px;
  color: grey
}

.name a {
    color: orange;

}

h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
  text-align: center;
  text-decoration: underline;
}

h2 {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  margin-top: 1.5rem;
  color: #444;
  text-align: center;
}

p {
  line-height: 1.5;
}


.highlight-hex {
  fill: yellowgreen;
  stroke-width: 1.5;
  stroke: 0;
  transition: transform 0.3s ease;
  stroke-opacity: 0;
  opacity: 0.5;;
}


.highlight-hex:hover {  
  cursor: pointer;
  fill: black;
  stroke: black;
  stroke-width: 1.5;

}


.highlight-hex.compromise {
  fill: gold;
  stroke: orange;
  stroke-width: 1.5;
}

#tooltip {
  position: absolute;
  background: white;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  pointer-events: none;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.highlight-hex {
  stroke: #444;
  stroke-width: 0.8;
}

.hidden {
  display: none;
}

.info-box {
    background: #fceecf;
    padding: 12px;
    font-size: 0.9rem;
    display: none;
  }

/* Responsive styles */

.layout {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: stretch; /* ✅ force equal column height */
  margin: 20px 40px;
}



/* Bigger right column: 65% */
.right-column {
  flex: 0 0 65%;
  max-width: 65%;
  background: #f4f4f4;
  padding: 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  align-self: stretch; /* redundant but safe */
}

.left-column {
  flex: 0 0 35%;
  max-width: 35%;
  min-width: 300px;
  padding-top: 140px;
}


#chart {
  padding-top: 120px;
  width: 100%;
  height: 500px;  /* set fixed height */
  padding-bottom: 35px;
}

/* Make all right-column content sticky */
.right-sticky {
  position: sticky;
  top: 20px;  /* adjust how far from top */
}

.highlight-hex {
  pointer-events: all;
  cursor: pointer;
}


.step {
  line-height: 1.5;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  transition: background 0.3s;
}

.step.active {
  background: #ffd07f;
}
.color-buttons {
  display: flex;
  gap: 8px;
}

.color-buttons button {
  border: 2px solid #e3ad17;
  background: transparent;
  color: #e3ad17;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 6px;
  transition: background 0.2s, color 0.2s;
}

.color-buttons button.active {
  background: #e3ad17;
  color: white;
  border-color: transparent;
}

.color-buttons button:hover {
  background: rgba(227, 173, 23, 0.1);
  color: darkgray;
  border-color: darkgray;
}


/* Keep responsiveness */
@media screen and (max-width: 768px) {

  #tooltip {
    display: none;
  }

    .header {
      padding: 0.5rem;
    }

    h1 {
      font-size: 12px;
      margin-bottom: 0.3rem;
    }

    h2 {
      display: none; 
   }

    .layout {
    margin: 20px 0px;
    display: block; /* stack everything vertically */
    }

  .right-column {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Graph pinned at the top */
  .right-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;          /* stays above text */
    background: #f4f4f4;  /* or white if you want */
    padding: 8px;
    border-bottom: 1px solid #ddd;
  }

  #chart {
    width: 100%;
    height: 100%;
    padding-top: 80px;
    padding-bottom: 0;
  }

  .color-buttons {
    padding: 0;
    margin: 0;
  }

  .color-buttons button {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* Steps appear underneath */
  .left-column {
        margin-top: 52vh;
        max-width: 100%;
        padding: 1rem;
        font-size: 0.8rem;
  }

  .step {
    height: 100%; /* full-screen like storytelling */
    margin-bottom: 1rem;
  }

    .step.active {
    background: none;
  }


.info-buttons-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;   /* same height */
    gap: 10px;
    margin-top: 10px;
  }

  .info-box {
    display: block;
    font-size: 10px;
    min-height: auto;
    width: auto;
    flex: 1;               /* take available space */
  }

  .color-buttons {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    flex: 0 0 auto;        /* only as wide as needed */
  }

  .color-buttons button {
    font-size: 10px;
    padding: 4px 6px;
    white-space: nowrap;   /* keep short */
  }

body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  padding-top: 120px;
}


}

.hexagons path {
  will-change: transform, opacity, fill;
}

/* shine animation */

.highlight-hex {
  animation: glint 3s ease-in-out infinite;
}

@keyframes glint {
  0%, 100% {
    stroke-width: 1.5;
    stroke: white;
    fill-opacity: 1;
  }
  50% {
    stroke-width: 2.5;
    stroke: #fffde9;
    fill-opacity: 1;
  }
}

@keyframes shineSweep {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

#shine-sweep {
  animation: shineSweep 4s ease-in-out infinite;
}

/* select */

#x-select {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
  color: #fea864;
  background-color: #fff;
  border: 2px solid #fdedcf;
  border-radius: 0; /* sharp corners */
  padding:8px 0px 8px 40px; /* extra right padding for arrow */
  cursor: pointer;
  width: 240px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #fea864 50%),
    linear-gradient(135deg, #fea864 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  position: relative;
  transition: border-color 0.3s ease;
}

#x-select:focus {
  outline: none;
  border-color: #fdedcf;
}

#x-select {
  position: relative; /* this alone doesn’t work well for <select>, so better on wrapper */
}

.select-wrapper {
  position: relative;
  display: inline-block; /* so width fits content */
}

.select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fea864;
  pointer-events: none;
  font-size: 1.2em;
  z-index: 10;
}


#color-select {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
  color: #fea864;
  background-color: #fff;
  border: 2px solid #fdedcf;
  border-radius: 0; /* sharp corners */
  padding:8px 0px 8px 10px; /* extra right padding for arrow */
  cursor: pointer;
  width: 240px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #fea864 50%),
    linear-gradient(135deg, #fea864 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  position: relative;
  transition: border-color 0.3s ease;
}

#color-select:focus {
  outline: none;
  border-color: #fdedcf;
}

#color-select {
  position: relative; /* this alone doesn’t work well for <select>, so better on wrapper */
}

.select-wrapper {
  position: relative;
  display: inline-block; /* so width fits content */
}

.select-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fea864;
  pointer-events: none;
  font-size: 1.2em;
  z-index: 10;
}



