body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f4f6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #2c3e50;
  color: white;
}

.navbar h1 {
  margin: 0;
  font-size: 20px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar label {
  font-size: 14px;
}

.navbar select {
  padding: 5px;
  border-radius: 4px;
}

/* Pager */
.pager {
  background: #fff;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

button {
  padding: 8px 12px;
  margin: 0 5px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button:hover {
  background: #eee;
}

/* Viewer */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

canvas {
  max-width: 95%;
  height: auto;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
  background: white;
}

/* Footer */
.footer {
  background: #3e556e;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  margin-top: auto; /* ensures sticky footer with flexbox layout */
}

.footer p {
  margin: 5px 0;
}

.footer a {
  color: #f1c40f;
  text-decoration: none;
  margin: 0 8px;
}

.footer a:hover {
  text-decoration: underline;
}

/* Social Icons */
.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: white;
  margin: 0 8px;
  font-size: 20px;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #f1c40f;
  transform: scale(1.2);
}

/* Responsive Footer */
@media (max-width: 600px) {
  .social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .social-icons a {
    margin: 6px 0;
  }
}
