* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #0f0f0f;
  color: white;
}

/* Header */
header {
  background: #1f1f1f;
  padding: 14px;
  text-align: center;
  border-bottom: 2px solid #00ff99;
}

/* Main */
main {
  padding: 12px;
}

/* Grid rows */
.computer-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1000px) {
  .computer-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .computer-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 450px) {
  .computer-list {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.computer {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
  text-decoration: none;
  color: white;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
  .computer:hover {
    transform: scale(1.04);
    box-shadow: 0 0 12px rgba(0, 255, 153, 0.35);
  }
}

.computer img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.computer-content {
  padding: 10px;
}

.computer h2 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #00ff99;
}

.computer p {
  margin: 0 0 4px;
  font-size: 12px;
}

.computer small {
  font-size: 11px;
  color: #aaa;
}

/* SERVER AD SECTION */
.server {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto 20px;
  width: 100%;
  max-width: 800px; /* max width for large screens */
  text-align: center;
  padding: 0 12px; /* padding for small screens */
}

.server a {
  display: block;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .server a:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.4);
  }
}

.server img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.server h2 {
  margin: 0 0 6px;
  color: #00ff99;
  font-size: 18px;
}

.server p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

/* Small screens adjustments */
@media (max-width: 500px) {
  .server h2 {
    font-size: 16px;
  }
  .server p {
    font-size: 13px;
  }
}

/* Footer */ 
footer {
  text-align: center;
  padding: 8px;
  background: #1f1f1f;
  margin-top: 12px;
}

