* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", Courier, monospace;
  background-color: #1c1c1c;
  color: white;
}

header {
  background-color: #000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #333;
}

h1 {
  font-size: 36px;
  color: white;
  margin: 0;
  font-weight: bold;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #1e90ff;
}

.comparison-container {
  padding: 40px;
}

.comparison-container h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

.product-comparison {
  display: flex;
  justify-content: space-around;
}

.product-card {
  background-color: #2e2e2e;
    padding: 25px;
    padding-bottom: 35px;
    border-radius: 5px;
    width: 30%;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 50%;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
}

.card-title {
  margin-bottom: 10px;
}

.specs {
  text-align: left;
}

.laptop-selector {
  margin: 0;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.spec-item {
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
}

.spec-item.blue {
  background-color: #2c4c9c;
}

.spec-item.red {
  background-color: #b32624;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1em 0;
  margin-top: 20px;
}

footer p {
  margin: 5px 0;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 36px;
  color: white;
  margin: 0;
  text-align: left;
  flex: 1;
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 18px;
}

nav ul li a:hover {
  color: #1e90ff;
}

@media (min-width: 1280px) {
  body {
    font-size: 18px;
  }

  .product-card {
    width: 30%;
  }

  .product-comparison {
    justify-content: space-between;
  }
}

@media (max-width: 1280px) and (min-width: 1024px) {
  body {
    font-size: 16px;
  }

  .product-card {
    width: 45%;
  }

  .product-comparison {
    justify-content: space-around;
  }

  h1 {
    font-size: 28px;
  }

  nav ul li a {
    font-size: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  body {
    font-size: 12px;
  }

  h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
  }

  header {
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid #333;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 0 15px;
    text-align: center;
  }

  nav ul li a {
    font-size: 15px;
    text-decoration: none;
    color: white;
  }

  .product-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-comparison {
    flex-direction: column;
    align-items: center;
  }

  .specs {
    font-size: 12px;
  }

  footer p {
    font-size: 12px;
  }
}

@media (max-width: 767px) and (min-width: 480px) {
  body {
    font-size: 12px;
  }

  h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
  }

  header {
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid #333;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 0 15px;
    text-align: center;
  }

  nav ul li a {
    font-size: 15px;
    text-decoration: none;
    color: white;
  }

  .product-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-comparison {
    flex-direction: column;
    align-items: center;
  }

  .specs {
    font-size: 12px;
  }

  footer p {
    font-size: 12px;
  }
}

@media (max-width: 479px) {
  body {
    font-size: 12px;
  }

  h1 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
  }

  header {
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid #333;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
  }

  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    margin: 0 15px;
    text-align: center;
  }

  nav ul li a {
    font-size: 15px;
    text-decoration: none;
    color: white;
  }

  .product-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product-comparison {
    flex-direction: column;
    align-items: center;
  }

  .specs {
    font-size: 12px;
  }

  footer p {
    font-size: 12px;
  }
}