.nav{
    color: #8b4513;
    font-size: 18px;
    margin-right: 30px;
}
body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

html { scroll-behavior: smooth; }

header{
    width: 100%;
    height: 100px;
    background-color: #f5f5dc;
    color: #8b4513;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.software-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two items per row */
    gap: 30px;
    max-width: 2000px;
}
.software-item {
    display: flex; 
    align-items: center;
    gap: 16px;
    height: 150px;
    padding: 12px;
    background-color: #f5f5e4;
    border-radius: 10px;
    border: 5px solid #e4e4d6;
    margin: 0;
    box-sizing: border-box;
}

.software-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    flex: 0 0 75px;
}

.software-meta {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-right: 8px;
}

.software-meta h3 { margin: 0; font-size: 1.1rem; }
.software-meta p { margin: 0; color: #555; font-size: 0.95rem; }

.download-btn {
    flex: 0 0 auto;
    background: #8b4513;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    width: 80px;
}

.download-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.download-btn:hover { opacity: 0.9; }
/* ...existing code... */

@media (max-width: 1212px) {
    .software-list { grid-template-columns: 1fr; }
    .software-item { height: auto; flex-direction: column; text-align: center; }
    .nav { flex-direction: column; text-align: center; }
}
@media (max-width: 740px) {
  header { height: auto; padding: 10px; margin-top: -30px; }
  nav { height: auto; flex-direction: column; text-align: center; padding-top: 105px; position: relative; right: 20px; }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #efefef;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
  border-radius: 6px;
  border: #d2d1d1 solid 2px;
  right: 0%;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.copyright {
    text-align: center; 
    color: #666; 
    font-family: Arial, sans-serif;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 0;
}

.mailto {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #0e7cbc;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    position: relative;
    top: 8px;
}

.contact {
    background-color: rgba(226, 226, 226, 0.741); 
    margin-top: 150px;
    padding: 20px 0;
    max-height: 150px;
}

.contact-div {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 3px; 
    padding: 12px 0;
}

#search {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    font-size: 16px;
}

.popup {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* semi-transparent background */
  justify-content: center;
  align-items: center;
}
/* The popup content box */
.popup-content {
  background: white;
  padding: 20px;
  max-width: 1000px;   /* increase this value to make it wider */
  width: 90%;         /* optional: make it responsive */
  max-height: 80vh;   /* keeps it from overflowing the viewport */
  overflow-y: auto;   /* scroll if content is too tall */
  border-radius: 8px;
}

.popup-content h2, 
.popup-content h3 {
  margin-top: 10px;
}

.popup-content p, 
.popup-content li {
  line-height: 1.5;
}
/* Close button */
.close {
  cursor: pointer;
  color: red;
  font-weight: bold;
  float: right;
  font-size: 18px;
}

.popup-content-hidden {
  display: none;
}

.pagination { margin-top: 15px; text-align: center; }
.pagination button {
  margin: 2px;
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid #ccc;
}
.pagination button.active {
  font-weight: bold;
  background: #8b4513;
  color: white;
  border: 1px solid #8b4513;
}
a {
    color: #0000EE;
}






