* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times New Roman', Times, serif;
}

body {
  background-color: #c0c0c0; /* Retro silver-gray */
  color: #000000;
  font-size: 1.4rem; /* Increased from 1rem to 1.2rem */
  margin: 2vw;
  text-align: center;
}

.container {
  max-width: 800px;
  width: 95%;
  margin: 0 auto;
  background-color: #ffffff;
  border: 5px solid #000000; /* Thicker 90s border */
  padding: 3vw;
  box-shadow: 5px 5px 0 #808080; /* Pixelated shadow */
}

h1 {
  font-size: 1.8rem; /* Increased from 1.5rem */
  color: #8B0000; /* Dark red for Republican theme */
  text-transform: uppercase;
  margin: 1rem 0;
  letter-spacing: 2px; /* 90s flair */
}

h2 {
  font-size: 1.5rem; /* Increased from 1.25rem */
  color: #8B0000; /* Dark red */
  margin: 0.75rem 0;
  text-decoration: underline;
}

.intro, p {
  line-height: 1.6;
  margin: 0.75rem 0;
  max-width: 100%;
  word-wrap: break-word;
  color: #333333; /* Darker text for contrast */
  text-align: left;
}

a {
  color: #FF0000; /* Red for Republican links */
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: #FFFFFF; /* White text on hover */
  background-color: #FF0000; /* Red highlight */
  padding: 0 5px;
}

.image-placeholder {
  max-width: 250px;
  width: 40vw;
  height: auto;
  aspect-ratio: 1; /* Square for 90s photo frame */
  background-color: #d3d3d3;
  border: 3px solid #000000;
  margin: 1.5rem auto;
  overflow: hidden;
  position: relative;
}

.candidate-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px; /* Soft 90s curve */
}

.nav {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #e0e0e0; /* Light gray bar */
  padding: 0.5rem;
  border: 2px solid #000000;
}

.nav a {
  margin: 0.5rem 1rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  background-color: #ffffff;
  border: 2px solid #000000;
  text-decoration: none;
  font-size: 1.1rem; /* Slightly larger nav text */
}

.nav a:hover {
  background-color: #FF0000; /* Red highlight */
  color: #FFFFFF; /* White text */
}

.footer {
  margin-top: 1.5rem;
  font-size: 1.1rem; /* Increased from 0.9rem */
  color: #333333;
  border-top: 2px solid #000000;
  padding-top: 1rem;
}

.footer p {
  margin: 0.3rem 0;
}

.yard-sign {
  max-width: 250px; /* Controlled size for footer */
  height: auto;
  margin: 1rem auto;
  border: 2px solid #000000; /* 90s border */
  display: block; /* Ensure proper centering */
}

/* Mobile-specific styles */
@media screen and (max-width: 600px) {
  body {
    font-size: 1.1rem; /* Slightly smaller but still larger than original */
    margin: 3vw;
  }
  h1 {
    font-size: 1.5rem; /* Adjusted for mobile */
  }
  h2 {
    font-size: 1.3rem; /* Adjusted for mobile */
  }
  .container {
    padding: 4vw;
  }
  .nav {
    flex-direction: column;
    align-items: center;
  }
  .nav a {
    margin: 0.3rem 0;
    padding: 0.6rem;
    width: 80%;
    text-align: center;
    font-size: 1rem; /* Adjusted for mobile nav */
  }
  .image-placeholder {
    width: 50vw;
    min-width: 150px;
  }
  .footer {
    font-size: 1rem; /* Adjusted for mobile */
  }
  .yard-sign {
    max-width: 120px; /* Smaller on mobile */
  }
}

/* Contact Form Styles */
.form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #E8E8E8; /* Light retro gray */
    border: 2px solid #8B0000; /* Dark red border for Republican theme */
    box-shadow: 4px 4px 0 #000000; /* Pixelated shadow */
}

.contact-form {
    max-width: 100%;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem; /* Spacious layout */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem; /* Comfortable padding */
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    border: 2px solid #000000; /* Bold border */
    background-color: #F5F5F5; /* Light gray */
    border-radius: 5px; /* Subtle rounded corners */
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666; /* Gray placeholders */
    font-style: italic;
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF0000; /* Red focus border */
    background-color: #FFFFFF; /* White on focus */
}

.form-group textarea {
    resize: vertical; /* Vertical resize */
    min-height: 140px; /* Inviting textarea */
}

.form-group input[type="submit"] {
    display: block;
    margin: 0 auto; /* Center button */
    padding: 0.8rem 2rem; /* Prominent size */
    font-family: "Times New Roman", Times, serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase; /* Retro style */
    background-color: #8B0000; /* Dark red */
    color: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.form-group input[type="submit"]:hover {
    background-color: #FF0000; /* Red hover */
    color: #FFFF00; /* Yellow text */
    transform: scale(1.05); /* Slight zoom */
}

.form-group-submit {
    text-align: center; /* Center submit button */
}

.recaptcha-notice {
    font-family: "Times New Roman", Times, serif;
    font-size: 0.85rem;
    color: #8B0000; /* Dark red */
    text-align: center;
    margin: 0.5rem 0 0;
}

.recaptcha-notice a {
    color: #FF0000; /* Red links */
    text-decoration: underline;
}

.recaptcha-notice a:hover {
    color: #FFFF00; /* Yellow hover */
}

/* Desktop-specific styles */
@media screen and (min-width: 1024px) {
  /* No additional desktop-specific styles needed */
}

.social-links {
  margin: 15px 0;
  display: flex;
  gap: 25px; /* Increased space between icons */
  justify-content: center;
}

.social-icon {
  width: 40px; /* Larger icon size */
  height: 40px; /* Larger icon size */
  transition: opacity 0.3s;
}

.social-icon:hover {
  opacity: 0.7;
}