/* Modern Layout CSS for Moderate Party .net */
.tmp-headline {
  margin-left: 0 !important;
  /* Remove left margin that was for cockroaches */
  text-align: center;
  margin-bottom: 5px;
  display: block !important;
}

.subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  font-style: italic;
  margin-top: 10px;
  display: block !important;
  clear: both;
}

mobile responsiveness,
professional styling,
and removing cockroaches */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Header improvements - remove cockroaches and make mobile friendly */
.title-roaches {
  display: none !important;
  /* Remove cockroach imagery */
}

/* Ensure header is visible - very aggressive rules */
header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: static !important;
  z-index: 999 !important;
}

/* Ensure all header content is visible */
header * {
  display: inherit !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure inner header text container stacks vertically (only the title/subtitle wrapper) */
header .d-flex.flex-column:not(.flex-md-row) {
  flex-direction: column !important;
}

.tmp-headline,
.header-outs,
.header-links,
.header-link {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.tmp-headline {
  margin-left: 0 !important;
  /* Remove left margin that was for cockroaches */
  text-align: center;
  margin-bottom: 5px;
  /* Ensure space for subtitle */
}

.subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  font-style: italic;
  margin-top: 10px;
  display: block !important;
  clear: both;
}

.tmp-headline a {
  font-size: clamp(24px, 5vw, 36px) !important;
  text-decoration: none;
  color: #2c3e50 !important;
  font-weight: 600;
}

/* Header navigation improvements */
.header-outs {
  text-align: center;
  padding: 15px 0;
  clear: both;
  margin-top: 10px;
}

/* Facebook link - simple link style */
.header-outs a[href*="facebook"] {
  display: block;
  margin: 0 0 5px 0;
  padding: 0;
  background: none !important;
  color: #666 !important;
  text-decoration: underline;
  border-radius: 0;
  font-size: 16px;
  transition: color 0.3s ease;
}

.header-outs a[href*="facebook"]:hover {
  background: none !important;
  color: #333 !important;
}

/* Copyleftout link - keep old school style with cockroaches */
.header-outs a[href*="copyleftout"] {
  display: inline-block !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  background: none !important;
  color: #666 !important;
  text-decoration: underline !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  transition: none !important;
}

.header-outs a[href*="copyleftout"]:hover {
  background: none !important;
  color: #333 !important;
}

/* Mobile header fixes */
@media screen and (max-width: 768px) {
  .header-outs {
    padding: 10px 5px;
    /* Collapse whitespace */
    margin-top: 10px;
    text-align: center;
  }

  .header-outs a[href*="facebook"] {
    display: inline-block;
    /* Make it just a link, not a big button */
    margin: 5px 10px;
    padding: 0;
    /* Remove button padding */
    background: none !important;
    /* Remove button background */
    color: #3498db !important;
    /* Make it look like a link */
    font-size: 14px;
    /* Smaller text */
    text-decoration: underline;
    /* Link style */
    border-radius: 0;
    /* Remove rounded corners */
    max-width: none;
  }

  .header-outs a[href*="facebook"]:hover {
    background: none !important;
    color: #2980b9 !important;
  }

  .header-outs a[href*="copyleftout"] {
    display: inline-block !important;
    margin: 0 !important;
    text-align: left !important;
  }
}

/* Keep cockroaches for copyleftout links only */
.header-outs a[href*="copyleftout"] img[src*="roach"] {
  display: inline !important;
  width: 16px;
  height: auto;
  margin: 0 2px;
}

/* Header links - make mobile friendly and professional */
.header-links {
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px;
  padding: 20px 10px;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 15px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-link {
  margin: 3px 5px !important;
  font-size: 13px;
  white-space: nowrap;
}

.header-link a {
  color: #2c3e50;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: inline-block;
  border: 1px solid #e9ecef;
}

.header-link a:hover {
  background-color: #3498db;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* OVERRIDE RESPONSIVE FRAMEWORK - Maximum specificity */
.responsive .header-links,
.header-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px;
  padding: 20px 10px;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 15px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.responsive .header-link,
.header-link {
  /* Style the entire div as a pill */
  margin: 3px 5px !important;
  padding: 8px 12px !important;
  font-size: 13px;
  white-space: nowrap;
  float: none !important;
  color: #2c3e50 !important;
  background: white !important;
  border-radius: 20px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid #e9ecef !important;
  display: inline-block !important;
  text-decoration: none !important;
}

.responsive .header-link:hover,
.header-link:hover {
  background-color: #3498db !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.responsive .header-link a,
.header-link a {
  /* Make the link inherit the pill styling */
  color: inherit !important;
  text-decoration: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  transition: none !important;
  background: none !important;
  box-shadow: none !important;
  display: inline !important;
  border: none !important;
  float: none !important;
  margin: 0 !important;
  height: auto !important;
}

.responsive .header-link:hover a,
.header-link:hover a {
  color: white !important;
}

/* MOBILE OVERRIDES - Compact two-column layout FIRST */
@media screen and (max-width: 768px) {

  .responsive .header-links,
  .header-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3px 8px !important;
    padding: 12px !important;
    margin: 10px auto !important;
    max-width: 350px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    float: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  .responsive .header-link,
  .header-link {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    white-space: normal !important;
    float: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #2c3e50 !important;
    transition: none !important;
  }

  .responsive .header-link:hover,
  .header-link:hover {
    background: none !important;
    color: #3498db !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .responsive .header-link a,
  .header-link a {
    color: inherit !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    line-height: inherit !important;
    font-size: inherit !important;
    white-space: inherit !important;
    text-align: inherit !important;
    float: none !important;
  }

  .responsive .header-link:hover a,
  .header-link:hover a {
    color: #3498db !important;
  }
}

/* DESKTOP - Ensure pills display properly on larger screens AFTER mobile */
@media screen and (min-width: 769px) {

  .responsive .header-links,
  .header-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 20px 10px !important;
    margin: 15px 10px !important;
    max-width: none !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  .responsive .header-link,
  .header-link {
    margin: 3px 5px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e9ecef !important;
    display: inline-block !important;
    color: #2c3e50 !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    float: none !important;
    width: auto !important;
    line-height: 1.4 !important;
  }

  .responsive .header-link:hover,
  .header-link:hover {
    background-color: #3498db !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  }

  .responsive .header-link:hover a,
  .header-link:hover a {
    color: white !important;
  }
}

@media screen and (max-width: 480px) {

  .responsive .header-links,
  .header-links {
    max-width: 320px !important;
    padding: 10px !important;
    gap: 2px 6px !important;
  }

  .responsive .header-link,
  .header-link {
    font-size: 10px !important;
    padding: 3px 4px !important;
  }
}

@media screen and (max-width: 360px) {

  .responsive .header-links,
  .header-links {
    max-width: 280px !important;
    padding: 8px !important;
    gap: 1px 4px !important;
  }

  .responsive .header-link,
  .header-link {
    font-size: 9px !important;
    padding: 2px 3px !important;
  }
}

/* Main content layout improvements */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
}

.hero-left,
.hero-center,
.hero-right {
  padding: 20px;
}

/* Left column improvements */
.hero-left {
  text-align: center;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 20px;
}

.hero-left img {
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Center column - professional polish */
.hero-center {
  text-align: center;
  padding: 30px 20px;
}

/* Megazord image - reduce size and improve styling */
.hero-center img[src*="megazord"] {
  height: 180px !important;
  /* Reduced from 240px */
  width: auto;
  border-radius: 0;
  /* Sharp corners as requested */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-center img[src*="megazord"]:hover {
  transform: scale(1.05);
}

/* Add super gramma images - little hits of acid */
.super-gramma-container {
  margin: 20px 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.super-gramma {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  /* Square with slightly rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  object-fit: cover;
  /* Ensure square aspect ratio */
}

.super-gramma:hover {
  transform: rotate(360deg) scale(1.1);
}

/* Main title styling */
#biglink {
  font-size: clamp(32px, 6vw, 45px) !important;
  font-weight: 700;
  color: #2c3e50;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  margin: 30px 0 !important;
}

/* Right column improvements */
.hero-right {
  background: #f8f9fa;
  border-radius: 10px;
  border: none !important;
  /* Remove dashed border */
  padding: 25px !important;
  margin-top: 20px;
}

.hero-right u {
  color: #2c3e50;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid #3498db;
  padding-bottom: 2px;
}

/* Navigation links styling */
.neon {
  color: #3498db !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.neon:hover {
  color: #2980b9 !important;
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .d-flex.flex-md-row {
    flex-direction: column !important;
  }

  .hero-left,
  .hero-center,
  .hero-right {
    width: 100% !important;
    margin-bottom: 20px;
  }

  .hero-center {
    order: 1;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 3;
  }

  .header-links {
    flex-direction: column;
    align-items: center;
  }

  .header-link {
    margin: 3px 0 !important;
    text-align: center;
  }

  /* Keep super gramma images horizontal on mobile - little hits of acid dancing */
  .super-gramma-container {
    flex-direction: row;
    /* Keep horizontal */
    gap: 15px;
    justify-content: center;
  }

  /* Adjust font sizes for mobile */
  .tmp-headline a {
    font-size: 28px !important;
  }

  #biglink {
    font-size: 32px !important;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding: 10px;
  }

  .hero-left,
  .hero-center,
  .hero-right {
    padding: 15px;
  }

  .tmp-headline a {
    font-size: 24px !important;
  }

  #biglink {
    font-size: 28px !important;
  }

  .hero-center img[src*="megazord"] {
    height: 140px !important;
  }
}

/* Flip class for super gramma */
.flip {
  transform: scaleX(-1);
}

/* Video responsiveness */
video {
  max-width: 100%;
  height: auto;
}

/* Form improvements - fix quiz box positioning */
.tmp-block {
  margin: 20px auto !important;
  /* Center instead of offset to the right */
  max-width: 400px !important;
}

.jvotesystem {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  width: 100%;
}

.jvotesystem .question {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .tmp-block {
    max-width: 350px !important;
    margin: 15px auto !important;
  }

  .jvotesystem {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .tmp-block {
    max-width: 280px !important;
    margin: 10px auto !important;
  }

  .jvotesystem {
    padding: 12px;
  }
}

/* Footer improvements */


footer a {
  color: #3498db;
  text-decoration: none;
}

footer a:hover {
  color: #5dade2;
}

/* Remove cockroaches from title area only - keep them for copyleftout links */
.title-roaches img[src*="roach"] {
  display: none !important;
}

/* Main branding - prominent super gramma in center */
.main-super-gramma-center {
  width: 320px !important;
  height: auto !important;
  /* Much larger for main branding */
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background: white;
  /* White background for interactive look */
  border: none;
  /* Remove blue border */
  display: block;
  margin: 0 auto;
  /* Center it */
  padding: 8px;
  /* Add padding to create white border effect */
  transform: rotate(3deg);
  /* Default slight right tilt */
}

.main-super-gramma-center:hover {
  transform: rotate(7deg) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background: #f8f9fa;
  /* Slightly off-white on hover */
}

@media (max-width: 768px) {
  .main-super-gramma-center {
    max-width: calc(100vw - 60px);
    /* Prevent overflow with padding */
    width: 280px;
    /* Preferred width */
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .main-super-gramma-center {
    max-width: calc(100vw - 40px);
    /* Even tighter on small screens */
    width: 240px;
    /* Smaller preferred width */
    padding: 8px;
  }
}

@media (max-width: 360px) {
  .main-super-gramma-center {
    max-width: calc(100vw - 30px);
    /* Very tight on tiny screens */
    width: 200px;
    /* Much smaller for tiny screens */
    padding: 6px;
  }
}

/* Clean up the "copy left out overnight with gross roaches" text */
a[href*="copyleftout.net"] {
  font-size: 14px;
  color: #7f8c8d;
  text-decoration: underline;
}

a[href*="copyleftout.net"]:hover {
  color: #95a5a6;
}

/* Clean header styles - no Bootstrap conflicts */
.mp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
}

.mp-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mp-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-outs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

/* Desktop layout */
@media screen and (min-width: 768px) {
  .mp-header {
    flex-direction: row;
    justify-content: flex-start;
  }

  .mp-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .mp-left {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .mp-title-wrap {
    align-items: flex-start;
    text-align: left;
  }

  .mp-title-wrap .tmp-headline {
    text-align: left;
  }

  .mp-title-wrap .subtitle {
    text-align: left;
  }

  .header-outs {
    align-items: flex-start;
    margin-top: 0;
  }
}

.super-gramma {
  width: 60px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(-15deg);
  transition: transform 0.3s ease;
}

.super-gramma:hover {
  transform: rotate(-15deg) scale(1.1);
}

.mp-title-wrap .tmp-headline {
  margin: 0;
}

.mp-title-wrap .tmp-headline a {
  font-size: clamp(24px, 5vw, 36px);
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
}

.mp-title-wrap .subtitle {
  font-size: 16px;
  color: #666;
  font-style: italic;
  margin-top: 5px;
  margin-bottom: 0;
}

.super-gramma {
  width: 60px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: rotate(-15deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.super-gramma:hover {
  transform: rotate(-15deg) scale(1.1);
}

.mp-title-wrap .tmp-headline {
  margin: 0 !important;
  text-align: left !important;
}

.mp-title-wrap .tmp-headline a {
  font-size: clamp(24px, 5vw, 36px) !important;
  text-decoration: none !important;
  color: #2c3e50 !important;
  font-weight: 600 !important;
}

.mp-title-wrap .subtitle {
  text-align: left !important;
  font-size: 16px !important;
  color: #666 !important;
  font-style: italic !important;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  display: block !important;
  clear: both !important;
}

.header-outs {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 15px !important;
}

.fb-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #666 !important;
  text-decoration: underline !important;
  font-size: 16px !important;
  transition: color 0.3s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  border: none !important;
}

.fb-link:hover {
  color: #333 !important;
  background: none !important;
}

/* Override existing Facebook link styles */
.header-outs .fb-link,
.header-outs a[href*="facebook"].fb-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #666 !important;
  text-decoration: underline !important;
  font-size: 16px !important;
  transition: color 0.3s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  border: none !important;
}

.header-outs .fb-link:hover,
.header-outs a[href*="facebook"].fb-link:hover {
  color: #333 !important;
  background: none !important;
}

/* Mobile styles for new header */
/* Mobile layout */
@media screen and (max-width: 768px) {
  .mp-header {
    padding: 15px 5px;
  }

  .mp-left {
    gap: 10px;
  }

  .super-gramma {
    transform: rotate(-15deg);
    align-self: flex-start;
  }

  .mp-title-wrap .tmp-headline a {
    font-size: 28px;
  }

  .header-outs {
    gap: 15px;
    margin-top: 10px;
  }

  .fb-link {
    font-size: 14px;
  }
}

/* === Scoped final header layout & animation overrides (last wins) === */
.mp-header,
.mp-header * {
  box-sizing: border-box;
}

.mp-header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 10px;
}

.mp-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

@media (min-width: 900px) {
  .mp-main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .mp-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .mp-title-wrap {
    align-items: flex-start;
    text-align: left;
  }

  .header-outs {
    align-items: flex-start;
    margin-top: 4px;
  }
}

.mp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mp-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-outs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Ensure stacked links never wrap side‑by‑side on wide screens */
@media (min-width:900px) {
  .header-outs {
    flex-direction: column !important;
  }
}

/* Super Gramma base & interactive states - different animations for each */
.super-gramma {
  cursor: pointer;
  transition: transform .35s ease, filter .35s ease;
}

.super-gramma:hover {
  transform: rotate(-15deg) scale(1.08);
  filter: brightness(1.08);
}

/* Header gramma - subtle wobble */
.header-gramma.spin {
  animation: header-wobble 1s ease-in-out 1;
}

@keyframes header-wobble {
  0% {
    transform: rotate(-5deg) scale(1);
  }

  25% {
    transform: rotate(-25deg) scale(1.05);
  }

  50% {
    transform: rotate(10deg) scale(1.1);
  }

  75% {
    transform: rotate(-15deg) scale(1.05);
  }

  100% {
    transform: rotate(-5deg) scale(1);
  }
}

/* Main brand gramma - dance left to right */
.brand-gramma.spin {
  animation: brand-dance 1.2s ease-in-out 1 !important;
  transform-origin: center center !important;
}

/* Override main-super-gramma-center transform when animating - highest specificity */
.main-super-gramma-center.super-gramma.brand-gramma.spin {
  animation: brand-dance 1.2s ease-in-out 1 !important;
  transform-origin: center center !important;
}

@keyframes brand-dance {
  0% {
    transform: rotate(3deg) translateX(0px) scale(1);
  }

  25% {
    transform: rotate(-2deg) translateX(-15px) scale(1.05);
  }

  50% {
    transform: rotate(4deg) translateX(0px) scale(1.1);
  }

  75% {
    transform: rotate(-2deg) translateX(15px) scale(1.05);
  }

  100% {
    transform: rotate(3deg) translateX(0px) scale(1);
  }
}

/* Acid gramma 1 - bouncy flip */
.acid-gramma-1.spin {
  animation: acid-bounce 1.5s ease-in-out 1;
}

@keyframes acid-bounce {
  0% {
    transform: rotate(0deg) scale(1);
  }

  20% {
    transform: rotate(180deg) scale(1.2) translateY(-10px);
  }

  40% {
    transform: rotate(360deg) scale(0.9) translateY(5px);
  }

  60% {
    transform: rotate(540deg) scale(1.1) translateY(-5px);
  }

  80% {
    transform: rotate(720deg) scale(1.05) translateY(2px);
  }

  100% {
    transform: rotate(720deg) scale(1);
  }
}

/* Acid gramma 2 - crazy wiggle */
.acid-gramma-2.spin {
  animation: acid-wiggle 2s ease-in-out 1;
}

@keyframes acid-wiggle {
  0% {
    transform: scaleX(-1) rotate(0deg);
  }

  10% {
    transform: scaleX(-1) rotate(36deg) scale(1.1);
  }

  20% {
    transform: scaleX(-1) rotate(-30deg) scale(0.9);
  }

  30% {
    transform: scaleX(-1) rotate(45deg) scale(1.15);
  }

  40% {
    transform: scaleX(-1) rotate(-60deg) scale(0.85);
  }

  50% {
    transform: scaleX(-1) rotate(72deg) scale(1.2);
  }

  60% {
    transform: scaleX(-1) rotate(-45deg) scale(0.9);
  }

  70% {
    transform: scaleX(-1) rotate(30deg) scale(1.1);
  }

  80% {
    transform: scaleX(-1) rotate(-15deg) scale(0.95);
  }

  90% {
    transform: scaleX(-1) rotate(10deg) scale(1.05);
  }

  100% {
    transform: scaleX(-1) rotate(0deg) scale(1);
  }
}

/* Pulse (click) effect shared */
.pulse-once {
  animation: mp-pulse .45s ease-out 1;
}

@keyframes mp-pulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(.9);
  }

  70% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

/* Megazord subtle click animation */
img[src*="megazord"].mz-animate {
  animation: mz-pop .5s ease-out 1;
}

@keyframes mz-pop {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(.92);
  }

  70% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Lower-row multiple super grammas (keep playful) */
.super-gramma-container .super-gramma {
  transition: transform .4s ease;
}

.super-gramma-container .super-gramma:hover {
  transform: rotate(-15deg) scale(1.12);
}

/* Accessibility helper (prefers-reduced-motion) */
@media (prefers-reduced-motion:reduce) {

  .super-gramma,
  .header-gramma.spin,
  .brand-gramma.spin,
  .acid-gramma-1.spin,
  .acid-gramma-2.spin,
  .pulse-once,
  img[src*="megazord"].mz-animate {
    animation: none !important;
    transition: none !important;
  }
}

/* Fix header layout on desktop - force single row for header links */
@media (min-width: 768px) {
  header .d-flex.flex-column.flex-md-row {
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }

  .header-outs {
    flex-shrink: 0 !important;
    min-width: max-content !important;
    white-space: nowrap !important;
    align-self: flex-start !important;
    margin-right: 20px !important;
  }

  .header-outs a[href*="copyleftout"] {
    display: block !important;
    margin-bottom: 8px !important;
  }

  .header-outs a[href*="facebook"] {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
  }

  /* Three-column layout alignment - ensure top alignment */
  .hero-left,
  .hero-right {
    align-self: flex-start !important;
  }

  .hero-center {
    align-self: flex-start !important;
  }
}

/* Spacing adjustments for Rockazoola and Megazord */
img[src*="megazord"] {
  margin-top: 40px;
}

/* Desktop spacing for Rockazoola - much more top padding */
@media (min-width: 768px) {
  .hero-left {
    margin-top: 80px;
  }
}

/* Mobile Hamburger Menu Styles */
.mobile-menu-container {
  position: relative;
  margin: 15px 0;
  text-align: center;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  position: relative;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: #f8f9fa;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #333;
  border-radius: 1px;
  display: block;
  margin: 3px 0;
  transition: all 0.2s ease;
}

/* Hamburger stays the same when clicked - that's fine! */

.mobile-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 280px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 450px;
}

.mobile-menu-content {
  padding: 20px 0;
}

.mobile-menu-link {
  display: block;
  padding: 15px 25px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
  line-height: 1.4;
}

.mobile-menu-link:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
  .mobile-menu-container {
    display: none !important;
  }
}

/* Responsive Video Container */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer Bullets */
.footer-bullet {
  color: #333;
  font-weight: bold;
  margin: 0 4px;
}

/* Responsive Footer */
.tmp-postcontent#linkBar {
  font-size: 14px !important;
  padding: 6px 0 !important;
  white-space: normal !important;
  line-height: 1.4 !important;
}

.tmp-postcontent#linkBar a {
  display: inline-block;
  margin: 2px 0;
  white-space: nowrap;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .tmp-postcontent#linkBar {
    font-size: 12px !important;
    padding: 4px 0 !important;
    width: 98% !important;
    margin-left: 1% !important;
  }

  .tmp-postcontent#linkBar a {
    margin: 1px 0;
  }

  .footer-bullet {
    margin: 0 2px;
  }
}
