:root {
  --accent: #007acc;
  --bg-dark: #121212;
  --bg-card: #1f1f1f;
  --text-light: #f3f3f3;
  --text-muted: #aaa;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #1f1f1f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.6rem;
}

nav a:hover {
  text-decoration: underline;
}

section {
  padding: 2rem 1.5rem;
}

h1 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

h2 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 1rem;
}

h3 {
  text-align: center;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* center content inside the card */
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal centering */
  text-align: center; /* center text inside children */
  gap: 0.8rem; /* space between items (optional) */
  /* ensure card takes full height in grid */
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(0, 122, 204, 0.6);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: auto; /* stick to bottom of card */
}

.btn-primary:hover {
  background: #009cff;
}

.access {
  background: #1a1a1a;
  text-align: center;
  padding: 3rem 1rem;
}

input[type="text"] {
  padding: 0.6rem;
  width: 250px;
  border: none;
  border-radius: 8px;
  margin-right: 0.5rem;
}

input[type="submit"] {
  padding: 0.6rem 1rem;
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: #009cff;
}

#message {
  margin-top: 1rem;
  font-weight: bold;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #1f1f1f;
  font-size: 0.9em;
  color: var(--text-muted);
}

.scale-box {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content {
  transform: scale(0.8); /* manually scale down content */
  transform-origin: center;
}
