body {
    font-family: 'Courier New', monospace; /* Pixel art font */
    background-color: #f0f0f0;
    color: #000000;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}



 header {
     background-color: #2594f0; /* TV blue */
     padding: 10px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 5px solid #000000;
     transition: background-color 0.3s;
     position: sticky;
     top: 0;
     z-index: 100;
 }



.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    image-rendering: pixelated; /* Keep pixel art crisp */
}

.logo h1 {
    color: #d2c9a5; /* Screen color */
    font-size: 24px;
    margin: 0;
}

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

nav li {
    margin-left: 20px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border: 2px solid #000000;
    background-color: #d2c9a5;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #2594f0;
    color: #d2c9a5;
}



main {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border: 3px solid #000000;
    background-color: #ffffff;
    box-shadow: 5px 5px 0px #000000;
    transition: background-color 0.3s, border-color 0.3s;
}



section h2 {
    color: #2594f0;
    border-bottom: 3px solid #000000;
    padding-bottom: 5px;
    transition: color 0.3s, border-color 0.3s;
}

section h3 {
    color: #49343d;
    transition: color 0.3s;
}



section h3 {
    color: #49343d; /* Speaker grill color */
}

ul {
    list-style-type: square;
    padding-left: 20px;
    transition: color 0.3s;
}



footer {
    text-align: center;
    padding: 10px;
    background-color: #2594f0;
    color: #d2c9a5;
    border-top: 3px solid #000000;
    transition: background-color 0.3s;
}



/* Card layout for main page */
.cards {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px; /* Cap the total width to prevent cards from getting too small */
    grid-template-columns: 1fr; /* Default for small screens */
}

@media (min-width: 600px) {
    .cards {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }
}

@media (min-width: 900px) {
    .cards {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
    }
}

@media (min-width: 1200px) {
    .cards {
        grid-template-columns: repeat(4, minmax(250px, 1fr));
    }
}

 .card {
     background-color: #c0c0c0;
     border: 3px solid #000000;
     box-shadow: 5px 5px 0px #000000;
     padding: 15px;
     text-align: center;
     transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
 }

 .card:hover {
     background-color: #d0d0d0;
     box-shadow: 8px 8px 0px #000000;
     transform: scale(1.05);
 }

  .card img {
      width: 150px;
      height: 150px;
      image-rendering: pixelated;
      margin-bottom: 10px;
      object-fit: cover;
  }

.card h3 {
    color: #2594f0;
    margin: 10px 0;
}

.card p {
    font-size: 14px;
    color: #49343d;
}



/* Pixel art effect for images */
img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Form styling for contact page */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

form label {
    margin-top: 10px;
    font-weight: bold;
}

form input, form textarea {
    padding: 8px;
    margin-top: 5px;
    border: 2px solid #000000;
    background-color: #d2c9a5;
    color: #000000;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

form input[type="submit"] {
    margin-top: 20px;
    background-color: #2594f0;
    color: #d2c9a5;
    border: 2px solid #000000;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #49343d;
}



#theme-toggle {
    transition: background-color 0.3s, color 0.3s;
}



nav li button {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border: 2px solid #000000;
    background-color: #d2c9a5;
    font-size: 16px; /* Smaller than 20px */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    vertical-align: middle;
}

 nav li button:hover {
     background-color: #2594f0;
     color: #d2c9a5;
 }



  /* Windows 3.1 Window Styles */
  .win31-window {
      background-color: #c0c0c0;
      border: 2px outset #c0c0c0;
      box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf;
      margin-bottom: 40px;
      padding: 0;
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
  }

  .win31-titlebar {
      background: linear-gradient(to bottom, #000080, #1084d0);
      color: white;
      padding: 2px 5px;
      font-weight: bold;
      font-size: 14px;
      border-bottom: 1px solid #808080;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .win31-titlebar::after {
      content: "×";
      cursor: pointer;
      margin-left: auto;
      padding: 0 5px;
      border: 1px outset #c0c0c0;
  }

  .win31-menubar {
      background-color: #c0c0c0;
      padding: 2px 5px;
      border-bottom: 1px solid #808080;
      display: flex;
      gap: 10px;
      font-size: 12px;
  }

  .win31-menubar span {
      padding: 2px 5px;
      cursor: pointer;
  }

  .win31-menubar span:hover {
      background-color: #000080;
      color: white;
  }

  .win31-content {
      padding: 20px;
      background-color: #c0c0c0;
      min-height: 300px;
  }

.blog-image {
    width: 50%;
    margin-bottom: 20px;
}