@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Inter:ital,wght@1,600&display=swap');

:root {
  --table-bg: #8b5a2b;
}

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

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(35deg, #ff6400, #D50D32, #BD0D63, #6A287C, #2D3A89);
}

.table-container {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

.main-title {
  position: absolute;
  top: 5%;
  width: 100%;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 3rem;
  color: #ffffff;
  z-index: 500;
  text-shadow: 0 5px 15px rgba(0,0,0,0.4);
  pointer-events: none;
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
    top: 3%;
    padding: 0 10px;
  }
}

.polaroid {
  position: absolute;
  width: 250px;
  background-color: #ffffff;
  padding: 10px 10px 2px 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.05);
  border-radius: 2px;
  transition: transform 15s linear, opacity 2s ease-in-out;
  transform-style: preserve-3d;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hovering gives a slight lift */
.polaroid:hover {
  z-index: 999 !important;
  transform: scale(1.1) rotate(0deg) !important;
  transition: transform 0.3s ease-out !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.polaroid img.photo {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid #ddd;
  background-color: #111;
  pointer-events: none;
}

.school-name {
  margin-top: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.55rem;
  color: #333;
  text-align: center;
  width: 100%;
  padding: 0 10px;
}

.locality-pin {
  margin-top: 5px;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  width: 100%;
}

.pin-icon {
  color: #D50D32;
}


