/**
* Custom CSS for Wizards Wiffle Ball Club
*/

/* Custom Color Variables */
:root { 
  --background-color: #FDF5E6; /* Cream background */
  --default-color: #333333; /* Default text color */
  --heading-color: #0D1B2A; /* Navy blue for headings */
  --accent-color: #1E6738; /* Green Monster green */
  --surface-color: #ffffff; /* White surface */
  --contrast-color: #ffffff; /* White contrast */
  --highlight-color-1: #F4A300; /* Mustard */
  --highlight-color-2: #B22222; /* Brick red */
  
  /* Override template variables */
  --nav-color: var(--heading-color);
  --nav-hover-color: var(--accent-color);
  --nav-dropdown-color: var(--heading-color);
  --nav-dropdown-hover-color: var(--accent-color);
}

/* Custom Font Styles */
:root {
  --heading-font: 'Roboto Slab', serif;
  --default-font: 'Roboto', sans-serif;
}

/* Add Google Font for Roboto Slab */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700;800&display=swap');

/* Body Styles */
body {
  background-color: var(--background-color);
  font-family: var(--default-font);
}

/* Header Styles */
.header .logo h1 {
  font-family: var(--heading-font);
  font-weight: 800;
}

/* Logo Styles */
.header .logo img, .hero-img {
  background-color: transparent !important;
  mix-blend-mode: multiply; /* This helps with transparency on non-transparent images */
}

.header .logo img {
  max-height: 40px; /* Make the header logo smaller */
  width: auto;
}

/* Hero Section */
.hero {
  padding: 80px 0 40px 0; /* Reduced top padding from 180px to 80px */
}

.hero .hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('../img/patternbg.png') !important;
  background-repeat: repeat !important;
  z-index: 1 !important;
}

.hero .hero-bg img {
  display: none !important; /* Hide the img element */
}

.hero h1 {
  font-family: var(--heading-font);
  font-weight: 800;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero .btn-get-started {
  background-color: var(--accent-color);
}

.hero .btn-get-started:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.hero .btn-watch-video i {
  color: var(--highlight-color-1);
}

/* Section Styles */
.section-title h2 {
  font-family: var(--heading-font);
  font-weight: 700;
}

.section-title h2:after {
  background: var(--accent-color);
}

/* Custom Section Styles */
.rules-section {
  padding: 40px 0;
}

.rules-section .rule-item {
  background-color: var(--surface-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--accent-color);
}

.rules-section .rule-item h3 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 24px;
}

.rules-section .rule-item ul {
  list-style: none;
  padding: 0;
}

.rules-section .rule-item ul li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
}

.rules-section .rule-item ul li i {
  color: var(--highlight-color-1);
  margin-right: 10px;
  font-size: 18px;
  margin-top: 4px;
}

/* RSVP Form Section */
.rsvp-section {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  padding: 60px 0;
}

.rsvp-section .section-title h2 {
  color: var(--heading-color);
}

.rsvp-section .form-container {
  background-color: var(--surface-color);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

.rsvp-section .form-container iframe {
  height: 1400px;
  width: 104%;
}

@media (min-width: 992px) {
  .rsvp-section .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Event Details Highlight */
.event-details {
  background-color: var(--highlight-color-1);
  color: var(--contrast-color);
  border-radius: 10px;
  padding: 25px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  border-left: 8px solid var(--accent-color);
}

.event-details h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--contrast-color);
}

.event-details .detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.event-details .detail-item i {
  font-size: 24px;
  margin-right: 15px;
}

.event-details .detail-item strong {
  margin-right: 8px;
}

/* Footer Styles */
.footer {
  background-color: var(--heading-color);
}

.footer .footer-about .logo span,
.footer h4,
.footer .footer-contact p,
.footer .footer-contact p strong {
  color: var(--surface-color);
}

.footer .social-links a {
  border-color: var(--highlight-color-1);
  color: var(--highlight-color-1);
}

.footer .social-links a:hover {
  background-color: var(--highlight-color-1);
  color: var(--heading-color);
}

/* Button Styles */
.btn-custom {
  background-color: var(--highlight-color-1);
  color: var(--contrast-color);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-custom:hover {
  background-color: color-mix(in srgb, var(--highlight-color-1), transparent 15%);
  color: var(--contrast-color);
}

/* Baseball-inspired elements */
.baseball-stitch {
  position: relative;
}

/* Removed the red dots from section titles */
/* 
.baseball-stitch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--highlight-color-2), var(--highlight-color-2) 5px, transparent 5px, transparent 15px);
  border-radius: 5px;
}
*/

/* Baseball diamond shape for certain elements - removed as requested */
.diamond-shape {
  position: relative;
}

/* Diamond shape after element removed
.diamond-shape::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--highlight-color-1);
  transform: rotate(45deg);
  bottom: -10px;
  left: calc(50% - 10px);
  z-index: 1;
}
*/

/* Mobile Navigation Enhancements */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--heading-color);
  }
  
  .navmenu ul {
    background-color: var(--background-color);
    border: 2px solid var(--accent-color);
  }
  
  .navmenu a:hover, 
  .navmenu .active, 
  .navmenu .active:focus {
    color: var(--accent-color);
    font-weight: 700;
  }
}

/* Field Layout Styles */
.field-tabs .nav-link {
  color: var(--heading-color);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.field-tabs .nav-link.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background-color: transparent;
}

.field-tabs .nav-link:hover:not(.active) {
  border-bottom-color: var(--highlight-color-1);
  color: var(--highlight-color-1);
}

.field-diagram {
  transition: all 0.3s ease;
}

.field-diagram img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.field-diagram img:hover {
  transform: scale(1.02);
}

.dimension-item h4 {
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--highlight-color-1);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.dimension-item ul li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.dimension-item ul li:last-child {
  border-bottom: none;
}

/* Dimensions Image Styles */
.dimensions-image-container {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.dimensions-image-container img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.dimensions-image-container img:hover {
  transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .rule-item {
    margin-bottom: 20px;
  }
  
  .field-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .dimension-item {
    margin-bottom: 2rem;
  }
}
