/* Base styling */
body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: black;
    color: white;
  }
  
  section {
    padding: 3em 1em;
    text-align: center;
  }
  
  canvas {
    display: block;
    margin: 2em auto;
    max-width: 100%;
    position: relative;
    z-index: 1;
  }
  
  /* Style for the navigation bar */
nav {
  position: fixed; /* Makes the menu stay at the top */
  top: 0; /* Sticks to the top of the page */
  width: 100%; /* Full width */
  background-color: #fff; /* Background color */
  border-bottom: 1px solid #ccc; /* Optional: Add a border for separation */
  z-index: 1000; /* Ensures it stays above other content */
  padding: 0.5em 0; /* Adds some padding for better appearance */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; /* Centers the menu items */
}

nav ul li {
  margin: 0 1em;
}

nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s ease; /* Smooth color transition on hover */
}

nav ul li a:hover {
  color: #007BFF; /* Change color on hover */
}

 /* Introduction section */
 #intro {
  display: flex;
  align-items: center;
  gap: 4em; /* ⬅️ increase this from 2em */
  padding: 4em 5vw 2em;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  flex-wrap: wrap;
}


.intro-photo {
  flex: 0 0 180px;
}

.intro-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid white;
}

.intro-text {
  flex: 1;
  max-width: 700px;
}

.intro-text h1,
.intro-text p {
  text-align: left;
  margin: 0.6em 0;
  font-size: 1.4em;
  line-height: 1.8;
}

  /* Unity container */
  #unity-container {
    position: relative;
    z-index: 0;
    margin: 0 auto;
    text-align: center;
  }
  
  #p5-wrapper {
    text-align: center;
    margin: 60px auto;
    background: #111;
    padding: 40px 40px 60px;
    border-radius: 12px;
    max-width: 90vw; /* increased from 1000px */
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  }

  #game {
    text-align: center;
    margin: 60px auto;
    background: #111;
    padding: 40px 40px 60px;
    border-radius: 12px;
    max-width: 90vw; /* increased from 1000px */
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  }
  
  #mrdemo {
    text-align: center;
    margin: 60px auto;
    background: #111;
    padding: 40px 40px 60px;
    border-radius: 12px;
    max-width: 90vw; /* increased from 1000px */
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  }

  #i14ytitle {
    text-align: center;
    margin: 60px auto;
    background: #111;
    padding: 40px 40px 60px;
    border-radius: 12px;
    max-width: 90vw; /* increased from 1000px */
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  }
  

  #others {
    text-align: center;
    margin: 60px auto;
    background: #111;
    padding: 40px 40px 60px;
    border-radius: 12px;
    max-width: 90vw; /* increased from 1000px */
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  }


  
 
  
  /* Expandable section toggle */
  #expandable-container {
    margin-top: 40px;
    text-align: center;
  }
  
  #expand-btn {
    background: #333;
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 6px;
    transition: background 0.3s ease;
  }
  
  #expand-btn:hover {
    background: #555;
  }
  
  #expandable-content {
    margin-top: 20px;
    padding: 25px;
    background: #222;
    color: white;
    display: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.6);
    transition: max-height 0.4s ease;
  }
  
  #more-info-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1em;
    color: #ccc;
    max-width: 700px;
    margin: 4em auto 0;
    text-align: center;
    line-height: 1.6; /* ✅ MUCH better */
    letter-spacing: 0.04em;
  }
  
  #carousel {
    margin: 4em auto;
    max-width: 800px;
    position: relative;
  }
  
  .carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
  }
  
  .carousel-image {
    min-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0.5em;
    cursor: pointer;
    z-index: 10;
  }
  
  .carousel-btn.left {
    left: 10px;
  }
  
  .carousel-btn.right {
    right: 10px;
  }

  #carousel2 {
    width: 100%;
    overflow: hidden;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  .carousel-image {
    width: 100%;
    height: auto;
  }
  
  /* Container for the bachelor thesis section */
  #bachelorthesis {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4em 2em;
    justify-content: space-between;
  }
  
  .bachelorthesis-text {
    flex: 1 1 30%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1em;
    color: #ccc;
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-align: left;
    min-width: 250px;
  }
  

/* Style for paragraphs */
#bachelorthesis-text p {
  margin: 0 0 1.5em;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1em;
  color: #ccc;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

#i14y {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4em 2em;
  justify-content: space-between;
}

.i14y-text {
  flex: 1 1 30%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1em;
  color: #ccc;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: left;
  min-width: 250px;
}

#workshop {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4em 2em;
  justify-content: space-between;
}

.workshop-text {
  flex: 1 1 30%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1em;
  color: #ccc;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: left;
  min-width: 250px;
}

#birdie {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4em 2em;
  justify-content: space-between;
}

.birdie-text {
  flex: 1 1 30%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1em;
  color: #ccc;
  line-height: 1.8;
  letter-spacing: 0.02em;
  text-align: left;
  min-width: 250px;
}

/* Distribute paragraphs evenly across three columns */
#bachelorthesis-text p:nth-child(1) { grid-column: 1; }
#bachelorthesis-text p:nth-child(2) { grid-column: 2; }
#bachelorthesis-text p:nth-child(3) { grid-column: 3; }
#bachelorthesis-text p:nth-child(4) { grid-column: 1; }
#bachelorthesis-text p:nth-child(5) { grid-column: 2; }

/* Responsive fallback for smaller screens */
@media (max-width: 900px) {
  #bachelorthesis {
    grid-template-columns: 1fr;
  }
  #bachelorthesis-text p {
    grid-column: 1 !important;
  }
}

  
  

  #oranmr-demo {
  padding: 4em 5vw;
  background: #111;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
}

.oranmr-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.oranmr-image,
.oranmr-text {
  flex: 1 1 45%;
  min-width: 280px;
}

.oranmr-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 2px solid white;
}

.oranmr-text h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.oranmr-text p {
  font-size: 1.1em;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

/* Container for the content */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Text section */
  .text {
    margin-bottom: 20px;
  }
  
  .text h2 {
    font-size: 1.5em;
    color: solid white;
  }
  
  .text p {
    font-size: 1em;
    color: solid white;
    line-height: 1.5;
  }

  #p5js-context {
    padding: 4em 2em;
    max-width: 900px;
    margin: 0 auto;
    /* remove center text-align for columns */
  }
  
  .context-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em; /* space between columns */
  }
  
  .context-col {
    flex: 1 1 300px; /* flexible columns, won't be too narrow */
    min-width: 280px;
  }
  
  .context-col p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1em;
    color: #ccc;
    line-height: 1.8;      /* slightly tighter for dual columns */
    letter-spacing: 0.02em;
    text-align: left;       /* left-align text for readability */
    margin: 0 0 1.5em 0;    /* spacing between paragraphs */
  }
  

/* Container for the two-column section */
#game-context {
  display: flex;
  flex-wrap: wrap;           /* Allows columns to wrap on small screens */
  gap: 2em;                  /* Space between columns */
  padding: 4em 2em;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* Each column inside the container */
#game-context .column {
  flex: 1 1 45%;             /* Grow & shrink, base width ≈ 45% */
  box-sizing: border-box;
  min-width: 300px;          /* Ensures readability on smaller screens */
}

/* Typography for column content */
#game-context .column p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1em;
  color: #ccc;
  line-height: 1.9;
  letter-spacing: 0.02em;
  margin: 0;
}

/* On small screens (below 600px), stack columns */
@media (max-width: 600px) {
  #game-context {
    flex-direction: column;
    padding: 2em 1em;
  }
  #game-context .column {
    flex: 1 1 100%;
  }
}

  
  
  /* Image section */
  .image {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .image img {
    max-width: 90%; /* Ensures the image doesn't exceed the container width */
    height: auto;
    display: block; /* Removes space below the image */
    margin: 0 auto; /* Centers the image */
  }
  
  .image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding: 2em;
    flex-wrap: wrap; /* allow wrap if too tight */
  }
  
  .image-row img {
    width: 22%;
    max-width: 200px;    /* LIMIT size */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #444;
    flex-shrink: 0;
  }
  
  .video-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 2em;
}

.video-container video {
  max-width: 100%;
  width: 320px;
  border-radius: 10px;
}

.sandbox {
  position: relative;
  width: 90vw;
  height: 400px;
  margin: 2em auto;
  background: #111;
  border: 2px dashed #555;
  overflow: hidden;
}

.draggable {
  position: absolute;
  width: 300px !important;   /* Force 150px width */
  height: auto;              /* Maintain aspect ratio */
  position: absolute;
  cursor: grab;
  user-select: none;
  touch-action: none;
  object-fit: cover;
}

#rotator {
  margin: 2em auto;
  width: 60%;
  max-width: 600px;
  position: static; /* ensures it's in the flow and scrolls normally */
}

#rotator img {
  width: 100%;
  height: auto;
  display: block;
}



