@font-face {
  font-family: 'Amstrad';
  src: url('../fonts/Ac437_Amstrad_PC-2y.ttf') format('truetype');
}

html, body {
  overflow-y: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0;
}

#backbutton {
  position: fixed;
  top: 16px;
  left: 20px;
  font-family: 'Amstrad', monospace;
  font-size: 1rem;
  color: #000;
  text-decoration: none;
  z-index: 999;
  background: rgba(255,255,255,0.6);
  padding: 4px 10px;
  border: 1.5px solid #333;
}

#backbutton:hover {
  background: rgba(255,255,255,0.9);
}

/* ── university index page layout ── */
#university-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  padding-top: 60px;
  font-family: 'Amstrad', monospace;
}

/* ── sidebar ── */
#uni-sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 240px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 20px 16px;
  background: rgba(255,255,255,0.55);
  border-right: 1.5px solid #333;
  font-family: 'Amstrad', monospace;
  font-size: 0.9rem;
}

#uni-sidebar h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

#uni-sidebar .filter-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

#uni-sidebar .filter-actions button {
  font-family: 'Amstrad', monospace;
  font-size: 0.8rem;
  padding: 3px 8px;
  border: 1.5px solid #333;
  background: rgba(255,255,255,0.7);
  cursor: pointer;
}

#uni-sidebar .filter-actions button:hover {
  background: rgba(255,255,255,1);
}

#uni-sidebar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#uni-sidebar label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  line-height: 1.4;
  padding: 4px;
}

#uni-sidebar label:hover {
  background: rgba(255,255,255,0.5);
}

/* ── main grid area ── */
#grid-area {
  margin-left: 240px;
  padding: 30px 30px 60px 30px;
  flex: 1;
  min-width: 0;
}

#grid-area h1 {
  font-family: 'Amstrad', monospace;
  font-size: 1.6rem;
  margin-bottom: 30px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

#project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: #000;
  border: 1.5px solid #333;
  background: rgba(255,255,255,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: rotate(2deg);
  box-shadow: 3px 3px 0px #333;
}

.project-card-img {
  height: 320px;
  overflow: hidden;
  background: #ccc;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-info {
  padding: 12px 14px;
}

.project-course {
  display: block;
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 6px;
  text-transform: lowercase;
}

.project-card-info h2 {
  font-size: 0.95rem;
  text-transform: lowercase;
  line-height: 1.4;
}

#no-results {
  display: none;
  font-family: 'Amstrad', monospace;
  font-size: 0.9rem;
  margin-top: 40px;
  color: #555;
}

/* ── pdf page ── */
#pdf-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  padding: 0;
  margin: 0;
  font-family: 'Amstrad', monospace;
}

#pdf-header {
  padding: 52px 30px 16px 30px;
  border-bottom: 1.5px solid #333;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

#pdf-header h1 {
  font-size: 1.2rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

#pdf-container {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: 0;
}

#pdf-container embed {
  display: block;
  width: 100%;
  height: 100%;
}