:root {
  --bg: #000000;
  --text: #00ff00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', monospace;
}

.header {
  text-align: center;
  padding: 40px 20px;
}

.top-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.top-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  font-family: 'Courier New', monospace;
  transition: color 0.2s;
}

.top-links a:hover {
  color: #66ff66;
}

.header-gif {
  display: block;
  margin: 0 auto 20px;
  width: 400px;
  max-width: 90%;
}

.header-text p {
  margin: 5px 0;
  font-size: 28px;
}

.library {
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 28px;
  justify-content: center;
  padding: 40px 20px;
}

.card {
  width: 220px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--text);
}

.card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-bottom: 1px solid var(--text);
}

.card-title {
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

.devlogs {
  max-width: 600px;
  margin: 40px auto 60px;
  padding: 20px;
}

.devlogs h2 {
  margin-bottom: 10px;
}

.divider {
  margin-bottom: 15px;
}

#devlog-list {
  list-style: none;
  padding: 0;
}

#devlog-list li {
  margin-bottom: 6px;
}

.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

@media (max-width: 1200px) {
  .library {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}

@media (max-width: 900px) {
  .library {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
  .header-text p {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .library {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 10px;
  }
  .header-gif {
    width: 250px;
  }
  .header-text p {
    font-size: 20px;
  }
  .top-links {
    gap: 10px;
  }
  .card img {
    height: 250px;
  }
  .devlogs {
    padding: 15px;
  }
}
