* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  background: #ffffff url("Background image/Media Lab hallway empty.jpg") center center / cover no-repeat fixed;
  color: #000000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #000000;
  padding: 15px 30px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.site-title {
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.top-nav a {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid #000000;
  transition: all 0.2s ease;
  background: #ffffff;
}

.top-nav a:hover {
  background: #000000;
  color: #ffffff;
}

.container {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
}

canvas {
  display: block;
  cursor: default;
}

.face-panel {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 350px;
  max-height: 80vh;
  background: #ffffff;
  border: 1px solid #000000;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.face-panel.hidden {
  opacity: 0;
  transform: translateY(-50%) translateX(400px);
  pointer-events: none;
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  font-size: 18px;
  color: #000000;
  font-weight: normal;
}

.close-btn {
  background: none;
  border: 1px solid #000000;
  font-size: 18px;
  color: #000000;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #000000;
  color: #ffffff;
}

.panel-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid #000000;
  position: relative;
  overflow: hidden;
}

.photo-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.photo-placeholder p {
  color: #000000;
  font-size: 12px;
}

.text-content {
  margin-top: 20px;
}

.text-content h3 {
  font-size: 14px;
  color: #000000;
  margin-bottom: 12px;
  font-weight: normal;
}

.scrollable-text {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.scrollable-text::-webkit-scrollbar {
  width: 6px;
}

.scrollable-text::-webkit-scrollbar-track {
  background: #ffffff;
}

.scrollable-text::-webkit-scrollbar-thumb {
  background: #000000;
}

.scrollable-text::-webkit-scrollbar-thumb:hover {
  background: #000000;
}

.scrollable-text p {
  color: #000000;
  line-height: 1.5;
  margin-bottom: 12px;
  font-size: 12px;
}

.scrollable-text strong {
  color: #000000;
  font-weight: normal;
}

.scrollable-text ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.scrollable-text li {
  color: #000000;
  line-height: 1.5;
  font-size: 12px;
  margin-bottom: 6px;
}

/* Responsive design */
@media (max-width: 768px) {
  .face-panel {
    width: 90%;
    max-width: 350px;
    right: 5%;
    top: auto;
    bottom: 20px;
    transform: translateY(0);
    max-height: 60vh;
  }

  .face-panel.hidden {
    transform: translateY(calc(100% + 20px));
  }
}
