/* Arcade font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap'); /* easier-to-read body font */

/* General Reset */
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  color: #00ffea; /* neon cyan default text */
}

body {
  background: radial-gradient(circle at top, #111 0%, #000 100%);
  font-family: 'VT323', monospace; /* readable pixel-style font */
  line-height: 1.6;
}

/* Container */
.container{
  width: 70%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  background-color: #000;
}

.bg-container{
  background-color: #000;
}

section {
  scroll-margin-top: 80px; 
}

/* Header */
#main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #000;
  box-shadow: 0 0 15px #00ffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navbar */
.logo {
  font-size: 2rem;
  font-family: 'Press Start 2P', monospace;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
  animation: flicker 4s infinite;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list a {
  color: #00ffea;
  padding: 5px 10px;
  transition: all 0.2s ease-in-out;
  font-family: 'Press Start 2P', monospace;
  font-size: 16pt;
  text-shadow: 0 0 5px #00ffea;
}

.nav-list a:hover {
  color: #ff0;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
}

/* Floating sidebar */
.sidebar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(5px);
  color: #00ffea;
  padding: 10px;
  border-radius: 5px 0 0 5px;
  box-shadow: -2px 0 15px #00ffff;
  text-align: right;
}

@media (max-width: 1100px) {
  .sidebar {
      display: none;
  }
}

.sidebar a {
  display: block;
  color: #00ffea;
  text-decoration: none;
  margin-bottom: 5px;
  padding: 5px;
  font-size: 10px;
  font-family: 'Press Start 2P', monospace;
}

.sidebar a.active {
  border-left: 3px solid #ff00ff;
  padding-left: 10px;
  text-shadow: 0 0 10px #ff00ff;
}

.sidebar a:hover {
  color: #ff0;
}

/* Showcase / Project Title */
#showcase {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
  position: relative;
}

#showcase img {
  width: 100%;
  height: auto;
}

#showcase h1 {
  font-size: 3vw;
  color: #ff00ff;
  font-family: 'Press Start 2P', monospace;
  font-weight: normal;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
}

#showcase p {
  font-size: calc(0.5vw);
  color: #00ffff;
}

.title {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.abstract {
  background: none;
  position: absolute;
  text-align: center;
  top: 83%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 2.4vw;
  color: #ff0;
  text-shadow: 0 0 10px #ff00ff;
}

/* Introduction container */
.intro-container {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  align-items: flex-start;
  justify-content: space-between;
  background-color: #000;
  background-image: url('images/000000.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  position: relative;
  z-index: 10; 
  gap: 2%;
  padding-top: 80px;
}


/* Introduction */
#introduction {
  width: 80%; 
  color: #00ffea;
  margin: 0 auto 30px auto;
  position: relative;
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 60vw;
}

#introduction h2 {
  font-size: 35px;
  font-family: "Press Start 2P", monospace;
  font-weight: normal;
  margin-bottom: 20px;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
}

#introduction p {
  text-align: justify;
  font-size: 20px;
  padding-bottom: 16px;
  color: #00ffea;
}

#introduction a {
  color: #ff0;
}

/* Research Questions */
#research-questions {
  width: 80%;
  color: #00ffea;
  margin: 0 auto 30px auto;
  box-sizing: border-box;
  position: relative;
  background-position: top right;
  background-repeat: no-repeat;
  background-size: 45vw;
}

#research-questions h2 {
  font-size: 35px;
  font-family: "Press Start 2P", monospace;
  font-weight: normal;
  margin-bottom: 20px;
  margin-top: 0;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
}

#research-questions ol {
  text-align: justify;
  font-size: 20px;
  margin :0;
  list-style-type: none;
  counter-reset: list-counter;
}

#research-questions li {
  padding-left: 40px;
  position: relative;
}

#research-questions li::before {
  content: counter(list-counter) ". ";
  counter-increment: list-counter;
  font-size: 24px;
  position: absolute;
  left: 0;
  color: #ff0;
}

/* Media queries */
@media (max-width: 800px) {
  .intro-container {
    flex-direction: column;
  }

  #introduction, #research-questions {
    width: 100%;
    padding-left: 5vw;
    margin-right: 0;
  }
}

@media (max-width: 700px) {
  h2, h3 { font-size: 22px; }
  p, li { font-size: 14px; }
  .nav-list a { font-size: 12pt; }
}

/* The Story */
#story{
  padding-top: 80px;
  text-align: justify;
  font-size: 16px;
  color: #00ffea;
}

#story h2{
  text-align: center;
  font-size: 45px;
  font-family: 'Press Start 2P', monospace;
  padding-bottom: 10px;
  font-weight: normal;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
}

#story h3{
  font-size: 35px;
  font-family: 'Press Start 2P', monospace;
  padding-bottom: 15px;
  font-weight: normal;
  margin-top: 25px;
  color: #ff00ff;
}

#story h4 {
  font-size: 25px; /* smaller than h3 */
  font-family: 'Press Start 2P', monospace;
  padding-bottom: 10px;
  font-weight: normal;
  margin-top: 20px;
  color: #cc66ff; /* softer magenta */
}
#story h4 span {
  color: #ffd75e; /* soft gold for numbers or highlights */
  text-shadow: none;
}

#story p{
  text-align: justify;
  font-size: 20px;
  padding-bottom: 16px;
  color: #00ffea;
}

/* Gradient text with smoother glow */
.gradient-text {
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #ff00ff, 0 0 10px #00ffff; }
  to { text-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff; }
}

/* Footer */
#main-footer {
  background-color: #000;
  color: #00ffea;
  height: 95px;
  position: relative;
  box-shadow: 0 -5px 15px #ff00ff;
}

.team {
  display: flex;
  gap: clamp(10px, 5vw, 30px);
  width: 100%;
  max-width: 50%;
  margin: 0 auto;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.team-member {
  flex: 1 1 150px;
  text-align: center;
  padding: 10px;
}

.first-name { color: #ff00ff; font-size: 18px; }
.last-name { color: #00ffff; font-size: 18px; }

.team-member .contact {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.contact a img { max-width: 24px; height: auto; }

.plot-container-wrapper { display: flex; justify-content: space-between; align-items: center; }
.plot-container-right, .plot-container-left { flex: 1.5; margin-right: 2%; margin-bottom: 50px; padding-bottom: 50px; height: 500px; }
.text-container-right, .text-container-left { flex: 1; }

@media (max-width: 1000px) {
  .plot-container-wrapper { flex-direction: column; align-items: center; }
  .plot-container-right, .plot-container-left, .text-container-right, .text-container-left { width: 100%; }
}

/* Animations */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.4; }
}

/* Neon dividers */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  box-shadow: 0 0 10px #00ffff;
}

.arcade-output {
  background: #0a0a0a;
  border: 1px solid #1d7d7d; /* muted teal */
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
  padding: 18px;
  margin: 40px auto;
  width: 80%;
  border-radius: 8px;
  font-family: 'VT323', monospace;
}

.arcade-output h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #cc66ff; /* softened magenta */
  text-shadow: 0 0 3px rgba(204, 102, 255, 0.4);
  margin-bottom: 6px;
  margin-top: 18px;
}

.arcade-output h4 span {
  color: #ffd75e; /* soft gold */
  text-shadow: none;
}

.arcade-output p {
  font-size: 16px;
  color: #b2f7f7; /* pale cyan */
  margin-left: 16px;
  line-height: 1.4;
  text-shadow: 0 0 2px rgba(0, 255, 255, 0.2);
}

.arrow {
  display: inline-block;
  color: #00ffff; /* neon cyan */
  font-family: 'Press Start 2P', monospace;
  font-size: 24px; /* bigger arrow */
  margin: 0 10px;
  animation: blinkArrow 1s infinite;
}

@keyframes blinkArrow {
  0%, 50%, 100% { opacity: 1; transform: translateX(0); }
  25% { opacity: 0.5; transform: translateX(3px); }
  75% { opacity: 0.5; transform: translateX(-3px); }
}

.rating-container {
  text-align: center;
  margin: 30px 0;
}

.rating-buttons button {
  background-color: #222;
  color: #00ffee;
  border: 2px solid #00ffee;
  padding: 12px 18px;
  font-size: 20px;
  margin: 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.rating-buttons button:hover {
  background-color: #00ffee;
  color: #000;
}

.active-rating {
  background-color: #00ffee;
  color: #000;
  border-color: #00ffee;
}

.rating-display {
  font-size: 28px;
  margin-top: 20px;
  color: #ff00ff;
  font-weight: bold;
  min-height: 40px; /* keeps the area stable */
}

.plot-switcher {
    text-align: center;
    margin-bottom: 15px;
}

.plot-btn {
    padding: 8px 16px;
    margin: 5px;
    background: black;
    color: #00ffea;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 5px #00ffea;
    box-shadow: 0 0 10px #ff00ff;
    transition: 0.2s ease-in-out;
}

.plot-btn:hover {
    color: #ffff00;
    border-color: #00ffea;
    box-shadow: 0 0 15px #00ffea;
}

.plot-frame {
    width: 100%;
    height: 500px;
    border: none;
    display: none;
}

.neon-button {
    display: inline-block;  /* allows text width to fit tightly */
    padding: 20px 15px;     /* snug padding */
    font-size: 2.2rem;
    font-family: 'Press Start 2P', monospace;
    color: #00ffff;
    text-decoration: none;
    text-align: center;

    border: 4px solid #00ffff;
    border-radius: 12px;
    box-sizing: border-box;

    background: rgba(0, 255, 255, 0.05);

    text-shadow:
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 20px #00ffff;

    box-shadow:
        0 0 10px #00ffff,
        0 0 25px #00ffff,
        inset 0 0 10px #00ffff;

    letter-spacing: -1px;          /* optional tightens text */
    animation: neonBlink 0.8s infinite alternate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neon-button:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 20px #00ffff,
        0 0 50px #00ffff,
        inset 0 0 20px #00ffff;
}

/* Blinking animation */
@keyframes neonBlink {
    0% {
        opacity: 1;
        box-shadow:
            0 0 10px #00ffff,
            0 0 25px #00ffff,
            inset 0 0 10px #00ffff;
    }
    100% {
        opacity: 0.6;
        box-shadow:
            0 0 5px #00ffff,
            0 0 15px #00ffff,
            inset 0 0 5px #00ffff;
    }
}

.start-game-wrapper {
    text-align: center;  /* same as .plot-switcher */
    margin-bottom: 40px; /* spacing below button */
}

/* list styles for features */
.content-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.content-list li {
    position: relative;
    font-size: 20px;
    line-height: 1.5;
    padding-left: 28px;
    margin-bottom: 12px;
}

.content-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0px;
    color: #ff00ff;
    font-size: 30px;
    line-height: 1;
}

strong {
    color: #ff00ff;
}