* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Lexend, sans-serif;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
  padding-bottom: 2rem;
}

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Container for max-width on large screens */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  background: transparent;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo with white glow for contrast on dark backgrounds */
.header > a:first-of-type img {
  filter: drop-shadow(0 0 8px white) drop-shadow(0 0 15px white) drop-shadow(0 0 25px rgba(255,255,255,0.8));
  max-height: 6rem;
  transition: transform 0.2s;
}

.header > a:first-of-type img:hover {
  transform: scale(1.05);
}

/* Register to Vote button */
.header > a:last-of-type img {
  max-height: 7rem;
  transition: transform 0.2s;
}

.header > a:last-of-type img:hover {
  transform: scale(1.05);
}

/* Navbar container - keeping blue with white text */
.navbar {
  overflow: visible;
  background-color: #1D4ED8;
  font-family: "Bebas Neue", sans-serif;
  position: relative;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding-left: max(2rem, calc((100% - 1200px) / 2 + 2rem));
  padding-right: max(2rem, calc((100% - 1200px) / 2 + 2rem));
}

.navbar::after {
  content: "";
  display: table;
  clear: both;
}

/* Space after navbar */
.navbar + * {
  margin-top: 2rem;
}

/* Links inside the navbar */
.navbar > a {
  float: left;
  font-size: 1.1rem;
  line-height: 1.4rem;
  color: white;
  text-align: center;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  background-color: #1D4ED8;
  transition: background-color 0.2s;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: visible;
  background-color: #1D4ED8;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 1.1rem;
  line-height: 1.4rem;
  border: none;
  outline: none;
  color: white;
  padding: 0.875rem 1.25rem;
  background-color: #1D4ED8;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Add a background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: #3b63d9;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 180px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  z-index: 100;
  border-radius: 0 0 0.5rem 0.5rem;
  overflow: hidden;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: #333;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  display: block;
  text-align: left;
  background-color: white;
  font-family: Lexend, sans-serif;
  font-size: 0.95rem;
}

/* Add hover effect to dropdown links */
.dropdown-content a:hover {
  background-color: #e8f0fe;
  color: #1D4ED8;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Main content area */
main, .content {
  background-color: white;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Tables */
table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  background-color: white;
  border-collapse: collapse;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

th, td {
  padding: 1.5rem 2rem;
  vertical-align: top;
  background-color: white;
}

/* Typography */
h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
  padding: 1rem 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* h1 inside content areas should be blue */
table h1, .content h1, main h1, th h1 {
  color: #1D4ED8;
  text-shadow: none;
  text-align: left;
  padding: 0;
}

h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 0.75rem;
  text-align: center;
  padding: 0.5rem 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* h2 inside content areas should be dark */
table h2, .content h2, main h2, th h2, form h2 {
  color: #1e3a5f;
  text-shadow: none;
  text-align: left;
  padding: 0;
}

h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  color: #1e3a5f;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* p inside content areas should be dark */
table p, .content p, main p, th p, td p, form p {
  color: #555;
  text-align: left;
  padding: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Forms */
form {
  background-color: white;
  max-width: 600px;
  margin: 1.5rem auto;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  color: #333;
  text-align: left;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem 0;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button[type="submit"] {
  background-color: #1D4ED8;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.25rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

form button[type="submit"]:hover {
  background-color: #3b63d9;
}

/* Links outside content areas */
h2 a, p a {
  color: #7dd3fc;
}

h2 a:hover, p a:hover {
  color: white;
}

/* Content images - cropped to fit */
.content-img {
  width: 70%;
  height: 25rem;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Donate button special styling */
.navbar a[href*="donate"] {
  background-color: #16a34a;
  font-weight: bold;
}

.navbar a[href*="donate"]:hover {
  background-color: #22c55e;
}

/* Iframes - centered with max-width */
iframe {
  display: block;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Footer placeholder */
footer {
  background-color: #1e3a5f;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* Remove white background from specific elements that should be transparent */
br {
  background: transparent;
}
