html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
 /* Main stuff such as header, the nav, and dark theme (Temp disabled for now, focusing on main things before adding more features */
header {
  background-image:url(media/header.png);
  color: hsl(32, 10%, 95%);
  font-family: Georgia, serif;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  width: 100%;
  height: 150px;
  text-align: center;
  padding: 150px; 
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
  transition: top 0.3s;
}

.sticky-nav {
  top: 0;
}
.nav a {
  text-decoration: none;
  color: #ffffff;
  padding: 10px 20px;
  margin: 0 10px;
  border: 2px solid #000;
  border-radius: 10px;
  display: inline-block;
  transition: transform 0.2s, background-color 0.2s;
}

.nav a:hover {
  background-color: #555;
  transform: scale(1.1);
}

body{
  display: flex;
  flex-direction: column;
  text-align:center;
  }

.mode {
  position: fixed;
  top: 10px;
  right: 10px;
  }

.dark{
  background-color: #333;
  color: #fff;
  }

.dark .container {
    background-color: #333;
    color: white;
}


.dark-mode-switch {
  display: flex;
  position: fixed;
  top: 45px;
  right: 10px;
  justify-content: center;
  margin: 20px 0;
}

.toggle {
  display: none;
}

.toggle + label {
  position: relative;
  cursor: pointer;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border-radius: 15px;
}

.toggle + label::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle:checked + label {
  background-color: #32a852;
}

.toggle:checked + label::before {
  transform: translateX(30px);
}

.copyright {
  background-color: #333;
  color: white; 
  text-align: center;
  width: 100%;
  padding: 10px;
}

@media screen and (max-width: 768px) {
  header {
    height: 100px;
    padding: 20px;
  }

  .nav a {
    padding: 10px 15px;
    margin: 0 5px;
  }

  .categoryone,
  .categorytwo {
    padding: 30px;
  }
}

@media screen and (max-width: 480px) {
  header {
    height: 80px;
    padding: 10px;
  }

  .nav {
    padding: 5px;
  }

  .nav a {
    padding: 8px 12px;
    margin: 0 3px;
  }

  .categoryone,
  .categorytwo {
    padding: 20px;
  }
}
 /* Home page Category options */
.box {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 0px;
}

.box img {
  width: 50%;
  height: auto;
  transition: transform 0.3s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.overlay:hover {
  opacity: 1;
}

.box:hover img {
  transform: scale(1.1);
}

.box:hover .text {
  opacity: 1;
  font-size: 80px;
  background-size: cover;
}

.box .text {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 100%;
  text-align: center;
  padding: 10px;
  opacity: 0;
  font-size: 0;
  transition: opacity 0.2s ease, font-size 0.3s ease, background-size 0.3s ease;
  pointer-events: none;
}

.overlay:hover .box .text {
  opacity: 1;
  font-size: 16px;
  background-size: cover;
  transition: opacity 0.2s ease, font-size 0.3s ease, background-size 0.3s ease;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  margin: 15px 0;
}

.categoryone{
  background-image: url("media/hawk.jpg");
  background-position: top;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  width: 48%;
  margin: 18px;
  transition: transform 0.3s ease;
}

.categorytwo{
  background-image:url("media/hacker.jpg");
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  width: 48%;
  margin: 18px;
  transition: transform 0.3s ease;
}

.categorythree{
  background-image:url("media/headerss.png");
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  width: 100%;
  margin: 15px;
  transition: transform 0.3s ease;
}

.content {
  padding-top: 35px;
}
/* Contact Page stuff */
input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical
}

input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049; 
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align:left;
  width: 65%;
  margin: auto;
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

.container input[type="submit"] {
  margin: 0 auto;
  display: block;
}
/* Event List */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: rgb(255, 255, 255);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

ul#eventList {
  list-style-type: none;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
}

ul#eventList li.event-item {
  background-color: rgb(36, 81, 100);
  border-radius: 10px;
  padding: 40px;
  margin: 20px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s; 
}

ul#eventList li.event-item span.date {
  font-size: 1.2em;
  font-weight: bold;
  margin-right: 20px;
}

ul#eventList li.event-item button.more-info {
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

ul#eventList li.event-item button.more-info:hover {
  background-color: #45a049;
}

ul#eventList li.event-item.even {
  background-color: #f0f0f0; 
}

ul#eventList li.event-item.odd {
  background-color: #f0f0f0; 
}

ul#eventList li.event-item:hover {
  transform: translateY(-5px);
  background-color: rgb(36, 81, 100);
}

ul#eventList li.event-item img {
  max-width: 100px;
  border-radius: 10px;
  margin-right: 20px;
}

ul#eventList li.event-item .event-details {
  flex-grow: 1;
}

button.more-info {
  float: center;
  border: none;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

button.more-info:hover {
  background-color: #45a049;
  transform: scale(1.1);
  animation: wiggle 0.5s infinite alternate;
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(10deg);
  }
}


button.more-info {
  float: center;
  border: none;
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

button.more-info:hover {
  background-color: #45a049;
  transform: scale(1.1);
  animation: wiggle 0.5s infinite alternate;
}
/* Inventory Details Button */
@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(10deg);
  }
}


/* About Us Page Design */

.about-header {
  background-color: #4285f4;
  padding: 20px;
  width: 80%;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.about-header:hover {
  transform: scale(1.05);
}

.about-heading {
  font-size: 2em;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.about-body {
  font-size: 1.2em;
  color: #fff;
  text-align: center;
}

.officer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 80%;
  margin: 20px auto;
}

.officer {
  flex-basis: calc(30% - 20px);
  height: 225px;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  background-color: #4285f4;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.officer:hover {
  transform: scale(1.05);
}

.officer-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.officer-details {
  text-align: center;
}

.officer-name {
  font-size: 1.5em;
  font-weight: bold;
  margin: 5px 0;
}

.officer-rank {
  font-size: 0.9em;
  margin-bottom: 10px;
}

.contact-btn {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.contact-btn:hover {
  background-color: #1967D2;
}

h1 {
  color: #007bff;
}

h2 {
  color: #007bff;
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

.resource-category {
  margin-top: 30px;
}

.resource {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.resource a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.resource a:hover {
  text-decoration: underline;
}

ul {
  list-style-type: none; 
  padding: 0; 
}