body {
  font-family: "Fira Code", "Courier New", monospace;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 30% 30%, #0c1a2a, #05060d);
  color: #d4d4d4;
}

header {
  background-color: #252526;
  color: #d4d4d4;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid #3c3c3c;
}

main {
  margin: 20px;
}

section {
  margin-bottom: 40px;
}


h2 {
  color: #d4d4d4;
}

.viz3-img {
  display: block;
  max-width: 90%;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.viz4-img {
  display: block;
  max-width: 90%;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.viz5-img {
  display: block;
  max-width: 50%;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.viz6-img {
  display: block;
  max-width: 50%;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.dot {
  fill: 	#DCDCAA;
  stroke: #333;
  stroke-width: 1px;
}


.details {
  position: absolute;
  left: 50%;
  /*transform: translate(-50%, 300%); /* Center horizontally & vertically */ 
  margin:auto;
  transform: translate(-50%,400px);
  background-color: #252526;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}


.bargraph-button {
  background-color: #3e3e3e;
  color: #aaa9a9;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

#bargraph-button-container{
  display: flex;
  justify-content: center; /* centers the buttons horizontally */
  gap: 10px; /* optional: adds spacing between buttons */
  margin-bottom: 20px; /* optional: adds spacing below the button group */
}
@keyframes orbit-rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes counter-rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}




.planet-orbit {
  position: relative;
  width: 500px;
  height: 500px;
  margin: 0 auto;
  margin-top: 3rem;

  animation: orbit-rotation 30s linear infinite;
}

.planet-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(calc(72deg * var(--i))) translate(200px);
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(calc(72deg * var(--i))) translate(200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;

  animation: counter-rotate 30s linear infinite;
}

.planet__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.planet__logo-img {
  width: 70%;
  height: auto;
  object-fit: contain;
}

.planet--python .planet__logo-img {
  width: 50%;
  object-fit: contain;
}

.planet__label {
  margin-top: 0.5rem;
  font-size: 1rem;
  text-align: center;
}

.stars {
  position: fixed;
  width: 100%;
  height: 100%;
  background: transparent url('https://raw.githubusercontent.com/mkhuda/starry-night-bg/main/stars.gif') repeat;
  z-index: -1;
  opacity: 0.3;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: #222;
  color: white;
  padding: 2rem;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.close-btn:hover {
  color: #ff6666;
  transform: scale(1.2);
  transition: 0.2s ease;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.centered-logo {
  width: 180px;
  margin: 1rem auto;
  display: block;
}

.icon-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 1rem;
}

.icon-item {
  position: relative;
  cursor: pointer;
}

.icon-item img {
  width: 100px;
  border-radius: 10px;
  border: 2px solid #555;
  transition: transform 0.3s;
}

.icon-item img:hover {
  transform: scale(1.1);
}

.icon-item span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: white;
  pointer-events: none;
}

@keyframes shake {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  25% {
    transform: translate(-48%, -50%) rotate(5deg);
  }

  50% {
    transform: translate(-52%, -50%) rotate(-5deg);
  }

  75% {
    transform: translate(-48%, -50%) rotate(3deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

.story {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

#toggle-btn {
  background-color: #ffd43b;
  color: #222;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  cursor: pointer;
}

#story-text {
  margin-top: 1rem;
  text-align: left;
  transition: all 1s ease;
  opacity: 1;
}

.hidden {
  display: none;
}

#map-tooltip {
  position: absolute;
  background-color: #1E1E1E; /* Dark background */
  border: 1px solid #9CDCFE; /* Accent border */
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #D4D4D4; /* Light gray text */
  pointer-events: auto;
  z-index: 10;
}

#map-tooltip strong {
  font-size: 15px;
  color: #9CDCFE; /* Accent blue for titles */
}

.tooltip-language {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2D2D2D; /* Subtle separator */
}

.tooltip-language:last-child {
  border-bottom: none;
}

.tooltip-language em {
  color: #C586C0; /* Optional accent purple for labels */
  font-style: normal;
}


#fullpage {
  height: 100%;
  width: 100%;
}



#intro {
  position: relative;
  height: 100vh;
  overflow: hidden;
  fill: 	#DCDCAA;
}

.details-graph{
    position:absolute;
    left: 50%; 
    margin:auto;
    /*transform: translate(-50%,-100px);*/
    background-color: #252526;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

#timeline-explanation {
  max-width: 800px;
  margin: 0 auto 50px auto;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  color: #ddd;
}


#timeline-explanation h2 {
  color: #9CDCFE;
  font-size: 26px;
  margin-bottom: 10px;
}

#timeline-explanation p {
  font-size: 15px;
  line-height: 1.6;
  color: #bbb;
}
#viz-map-container{
  width: 70%;
  height:70%;
  margin:auto;
}