@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,200..800;1,200..800&display=swap');

body {
  background-color: #1c1c1c;
  color: #eee;
  max-width: 1000px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 16px;
  font-family: 'Atkinson Hyperlegible Next', arial, sans-serif;
  box-sizing: border-box;
}

nav a {
  color: #eee;
  text-decoration: none;
  margin-left: 15px;
}

nav a:hover {
  padding-left: 0;
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main {
  flex-grow: 1;
}

section {
  margin-top: 20px;
}

footer {
  text-align: center;
}

footer p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
}

footer img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.project-grid {
  list-style-type: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.project-card {
  background-color: #444;
  padding: 8px;
  border-radius: 8px;
  transition: transform 0.1s ease-in-out;
}

.project-card h3 {
  margin: 4px;
}

.project-card p {
  margin: 4px;
}

.project-card:hover {
  transform: scale(1.01);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card a {
  text-decoration: none;
  color: inherit;
}

.active {
  font-weight: bold;
  text-decoration: underline;
}

.game-page {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.game-content {
  min-width: 0;
}

.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-sidebar h1 {
  margin: 0;
  line-height: 1;
}

.game-sidebar p {
  margin: 0;
  flex-grow: 1;
}

.game-sidebar img {
  max-width: 100%;
  border-radius: 8px;
}

.game-details ul {
  list-style-type: none;
  padding-left: 0;
  background-color: #282828;
  border-radius: 8px;
}

.game-details li {
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 12px;
  border-bottom: solid #1c1c1c 1px;
}

.game-details li:last-child {
  border: none;
}

.game-details span {
  margin-left: auto;
  background-color: #708a5a;
  border-radius: 8px;
  padding: 8px;
}

.game-sidebar button {
  font-size: 28px;
  width: 100%;
  height: 60px;
  background-color: #708a5a;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.game-sidebar button:hover {
  filter: brightness(1.5);
}

#main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: black;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.thumbnail-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 12px;
}

.thumbnail {
  width: 100px;
  height: 60px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.thumbnail:hover {
  opacity: 1;
}

.active-thumb {
  opacity: 1;
}

.icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
  padding-right: 12px;
}

/* BLOG */

.blog-card {
  display: flex;
  flex-direction: row;
  background-color: #282828;
  border-radius: 8px;
  gap: 16px;
  padding: 8px;
}

.blog-link {
  text-decoration: none;
  color: inherit;
}

.blog-card img {
  width: 30%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-text {
  flex: 1;
}

.article-content {
  max-width: 700px;
  margin: auto;
}

@media (max-width:800px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .game-page {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-card img {
    width: 100%;
  }
}
