@font-face {
  font-family: 'UndFont';
  src: url('font/und.ttf');
}

* {
  box-sizing: border-box;
  image-rendering: pixelated;
}

body {
  margin: 0;
  background: black;
  color: white;
  font-family: 'UndFont', monospace;
  position: relative;
  padding-top: 50px;
}

.lang-switcher {
  position: fixed;
  top: 60px;
  left: 16px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  background: black;
  padding: 5px;
  border-radius: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #00ccff;
  color: white;
  font-family: 'UndFont', monospace;
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.lang-btn:hover {
  background: #00ccff;
  color: black;
}

.lang-btn.active {
  background: #00ccff;
  color: black;
  border-color: #00ccff;
}

.topbar {
  width: 100%;
  background: #2b2b2b;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-item {
  cursor: pointer;
  font-size: 18px;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: yellow;
}

.content {
  min-height: 100vh;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
}

.devlogs-container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
}

.devlogs-title {
  font-size: 48px;
  text-align: center;
  color: #00ccff;
  margin-bottom: 16px;
}

.devlogs-subtitle {
  font-size: 18px;
  text-align: center;
  color: #cccccc;
  margin-bottom: 48px;
}

.devlog-card {
  background: #1a1a1a;
  border: 2px solid #00ccff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.devlog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 204, 255, 0.2);
}

.devlog-preview {
  flex-shrink: 0;
  width: 300px;
  background: black;
  display: flex;
  align-items: center;
}

.preview-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-right: 2px solid #00ccff;
}

.devlog-content {
  flex: 1;
  padding: 28px 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.devlog-name {
  font-size: 28px;
  font-weight: bold;
  color: #00ccff;
}

.devlog-description {
  font-size: 16px;
  line-height: 1.5;
  color: #cccccc;
}

.devlog-update {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 8px;
}

.update-label {
  font-size: 14px;
  color: #888888;
}

.update-date {
  font-size: 16px;
  color: #00ccff;
  font-weight: bold;
}

.download-btn {
  background: transparent;
  border: 1px solid #00ccff;
  color: #00ccff;
  font-family: 'UndFont', monospace;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  align-self: flex-start;
  margin-top: 8px;
}

.download-btn:hover {
  background: #00ccff;
  color: black;
}

.fade {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  z-index: 100;
}

.fade.hidden {
  opacity: 0;
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  .lang-switcher {
    top: 35px;
    left: 10px;
    background: black;
    padding: 4px;
    border-radius: 6px;
  }
  
  .lang-btn {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
  }
  
  .nav {
    padding: 8px 12px;
  }
  
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .nav-item { 
    font-size: 14px; 
  }
  
  .devlogs-title {
    font-size: 32px;
  }
  
  .devlogs-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }
  
  .devlog-card {
    flex-direction: column;
    gap: 0;
  }
  
  .devlog-preview {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
  }
  
  .preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-right: none;
    border-bottom: 2px solid #00ccff;
  }
  
  .devlog-content {
    padding: 20px;
    gap: 12px;
  }
  
  .devlog-name {
    font-size: 20px;
  }
  
  .devlog-description {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .devlog-update {
    margin-top: 4px;
  }
  
  .update-label {
    font-size: 12px;
  }
  
  .update-date {
    font-size: 14px;
  }
  
  .download-btn {
    font-size: 14px;
    padding: 8px 16px;
    align-self: stretch;
    text-align: center;
    margin-top: 4px;
  }
}
