/* ===== Base Font & Body ===== */
body, .class, h1, h2, p, ul, li, a {
  font-family: 'Lucida Sans Typewriter', 'Lucida Console', Monaco, monospace;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #333;
}

html, body {
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* ===== Border ===== */
.border {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  border-top: 30px solid #42f5aa;
  border-left: 30px solid #42f5aa;
  border-right: 30px solid #42f5aa;
  border-bottom: none;
  pointer-events: none;
  z-index: 1000;
}

/* ===== Content ===== */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 80px 20px 40px;
  text-align: center;
}

.class h1 {
  font-size: 28px;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* ===== Bio Text ===== */
.bio-text {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  line-height: 1.7;
  font-size: 16px;
  color: #222;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.bio-text p { margin-bottom: 18px; }
.bio-text ul {
  margin: 15px 0 25px 20px;
  list-style-position: inside;
  text-align: left;
}
.bio-text li { margin-bottom: 10px; }

/* ===== Carousel ===== */
.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 300px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
  border: 3px solid #42f5aa;
  display: flex;
  align-items: center;
  background: #f9f9f9;
}

.carousel-slide {
  display: flex;
  width: max-content;
  animation: scrollDesktop 60s linear infinite;
  align-items: center;
}

.carousel-photo {
  max-height: 250px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 15px;
  background-color: #fff;
  padding: 6px;
  transform: rotate(var(--rotation));
  transition: transform 0.3s ease;
}
.carousel-photo:hover { transform: rotate(0deg) scale(1.05); z-index:2; }

.carousel-photo:nth-child(1) { --rotation: -5deg; }
.carousel-photo:nth-child(2) { --rotation: 4deg; }
.carousel-photo:nth-child(3) { --rotation: -3deg; }
.carousel-photo:nth-child(4) { --rotation: 6deg; }
.carousel-photo:nth-child(5) { --rotation: -4deg; }
.carousel-photo:nth-child(6) { --rotation: 5deg; }
.carousel-photo:nth-child(7) { --rotation: -6deg; }
.carousel-photo:nth-child(8) { --rotation: 3deg; }
.carousel-photo:nth-child(9) { --rotation: -2deg; }
.carousel-photo:nth-child(10) { --rotation: 4deg; }

@keyframes scrollDesktop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sidebar & Hamburger ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #111;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: 0.3s;
  z-index: 2000;
}
.sidebar a {
  color: #42f5aa;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 18px;
}
.sidebar a:hover { background-color: #222; color: #36c58a; }
.sidebar.active { left: 0; }

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1500;
}
.overlay.active { opacity: 1; visibility: visible; }

.hamburger {
  position: fixed;
  top: 20px; left: 20px;
  z-index: 2100;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #42f5aa;
  border-radius: 2px;
}

/* ===== Return Button ===== */
.button-container { margin-top: 40px; text-align:center; }
.return-btn {
  padding: 10px 20px;
  background-color: #42f5aa;
  color: white;
  text-decoration: none;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.return-btn:hover { background-color: #36c58a; }

/* ===== Responsive Mobile ===== */
@media (max-width: 768px) {
  .border { border-top: 10px solid #42f5aa; border-left: 10px solid #42f5aa; border-right: 10px solid #42f5aa; }
  .hamburger { display: flex; }

  .carousel-slide { animation: none; flex-wrap: nowrap; width: auto; }
  .carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }
  .carousel-photo { flex: 0 0 auto; scroll-snap-align: center; max-width: 140px; max-height: 250px; margin: 0 10px; }
  .bio-text { max-width: 100%; padding: 20px 15px; font-size: 15px; line-height: 1.6; }
  .class h1 { font-size: 24px; }
}
