/* General Main Styles */
html {
  scroll-padding-top: 60px; 
}
main {
  font-family: Arial, sans-serif;
  padding: 40px;
  max-width: 850px;
  margin: auto;

}

.screenshot {
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  margin: 20px 0;
  max-width: 40%;
}

#doxxing {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 20px;
}

.screenshot > img {
  max-width: 70%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header {
  height: 60px;
  position: sticky;
  top: 0;
  background-color: white;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  height: 100%;
  a {
  text-decoration: none;
  color: black;
  }
}

/* Highlighted, Important, and General Text Styles */
.highlight { 
  background: #fffbcc; 
  padding: 0.5rem; 
  border-left: 4px solid #f39c12; 
}
.important { 
  color: #c0392b; 
  font-weight: bold; 
}
h1 {
  color: #333;
}

/* Form Styles */
form {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
input, textarea, select {
  width: 95%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
input[type="checkbox"] {
  width: auto;
}
button {
  margin-top: 20px;
  padding: 10px 20px;
  background: grey;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.consent {
  font-size: 0.9em;
  margin-top: 10px;
}

/* Warning, Green, and Blue Styles */
.warn {
  border-left: 4px solid #8A0000;
  background-color: #f8d7da;
  padding: .5rem;
}
.green {
  background-color: #d4edda;
  border-left: 4px solid #155724;
  padding: .5rem;
}
.blue {
  background-color: #cce5ff;
  border-left: 4px solid #004085;
  padding: .5rem;
}

/* Navbar Styling */
#navbar {
  list-style: none;
  display: flex;
  flex-direction: column; /* Change to vertical layout */
  gap: 20px;
  padding: 10px;
  align-items: center; /* Align items to the left */
}

.navbar ul {
  flex-direction: column; /* Stack links vertically */
  text-align: center;
  padding: 0;

}


#top-link {
  position: sticky;
  bottom: 0;
  text-decoration: none;
}

/* Quote Styling */
.quote {
  max-width: 80%;
  font-style: italic;
  padding-left: .5rem;
  margin-left: 5rem;
  border-left: 4px solid #8A0000;
}

#petition-num {
  font-size: 3em;
  font-weight: bold;
  color: #0058a3;
  text-align: center;
}

section {
  margin-bottom: 3rem;
}

ul {
  list-style: disc inside;
  padding-left: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #2563eb;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.highlighted {
  background-color: red;
  transition: background-color 1s ease;
}

.text-center {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  word-wrap: break-word;
}

.petition {
  margin-left: 2rem;
}

.profile-pic {
  max-width: 200px;
  height: 175px;
  border-radius: 50%;
  justify-self: center;
}

#bio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#response-counter {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.picture {
  max-height: 300px;
  max-width: 100vw;
}

#frame {
  width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote,
.green,
.warn,
.blue {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Hamburger Menu Styles */
.hamburger {
  display: block;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  position: absolute;
  top: 10px;
  right: 10px;
  margin-bottom: 20px; /* Position the hamburger on the right */
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #333;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
  position: fixed;
  top: 0;
  left: -100%;
  width: 10rem;
  height: 100vh;
  background: white;
  flex-direction: column;
  padding: 40px 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  align-self: center;
}

.nav-links.active {
  left: 0;
}

.nav-links li {
  margin: 15px 0;
  width: 100%;
  height: 90%;
  text-align: center;
  justify-items: center;
  font-size: 1.2em;
  a {text-decoration: none;
  color: black;
  }
  padding-bottom: 1rem;
  border-bottom: 2px solid #ccc;

}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}
th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}
th {
  background-color: #f0f0f0;
}
#totalFine {
  margin-top: 20px;
  font-size: 1.3em;
  font-weight: bold;
  color: darkred;
}

/* Combined Media Queries */
@media (max-width: 768px) {
  main {
    padding: 10px;
  }

  #response-counter {
    flex-direction: column;
    align-items: stretch;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 40px 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }


@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1, h2 {
    font-size: 1.5em;
  }

  .button-group {
    flex-direction: column;
    gap: 0.5rem;
  }
}
.JHSC {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}}