* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 20px;
  background: #f9f9f9;
  color: #333;
}

h2 {
  margin-top: 0;
  color: #0066cc;
}

.main-header {
  background: #0066cc;
  color: white;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.main-header nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
}

.main-header nav a:hover {
  text-decoration: underline;
}

.main-footer {
  background: #eee;
  text-align: center;
  padding: 10px;
  margin-top: 40px;
  font-size: 0.9em;
}

.content {
  padding: 20px;
}

form,
.form-section {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
input[type="file"],
select {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 10px 16px;
  background: #0066cc;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #004999;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.grid div {
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  width: calc(33.333% - 10px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  text-align: center;
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

#lightboxOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightboxContent {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

#lightboxImage {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#closeBtn {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 5px 10px;
}

#lightboxNav {
  text-align: center;
  margin-top: 10px;
}

#lightboxNav button {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  margin: 0 10px;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 6px;
}

#lightboxNav button:hover {
  background: white;
}

@media screen and (max-width: 768px) {
  * {
    margin: 0;
    padding: 0;
  }
  body {
    padding: 0;
  }
  .grid div {
    width: calc(50% - 10px);
  }
}

@media screen and (max-width: 480px) {
  header nav h1 {
    font-size: 1.2rem;
  }

  form input,
  form textarea,
  form select {
    font-size: 1rem;
  }

  form button {
    font-size: 2px 3px;
  }
  .grid div {
    width: 100%;
  }
}
