/* Custom Styles for "You Make My Heart Giggle" Website */

:root {
  --primary-color: #F9C47B;
  --dark-text: #2F2E2C;
  --background-light: #D4D3C6;
  --footer-background: #59483C;
  --light-cream: #F6F3E9;
}

body {
  background-color: var(--background-light);
  color: var(--dark-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem; /* Increase font size */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
  font-weight: 600;
}

hr {
  border-color: var(--dark-text);
  border-style: solid;
  border-width: 2px;
  margin: 2rem 0;
}
.hero-section {
  background: linear-gradient(to bottom, #F6F3E9, #D4D3C6); /* warm neutrals */
}

.cta-note { min-height: 1.25rem; }

.header-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem; /* Add some space below the image on small screens */
}

@media (min-width: 768px) {
  .header-image {
    margin-bottom: 0; /* Remove margin on larger screens */
  }
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
}

.btn-primary:hover {
  background-color: #e6b062;
  border-color: #e6b062;
}

.btn-primary:active {
  background-color: #e6b062 !important;
  border-color: #e6b062 !important;
  box-shadow: none !important;
  transform: translateY(1px);
}

.btn-primary:focus {
  background-color: #e6b062;
  border-color: #e6b062;
}

footer {
  background-color: var(--footer-background);
  position: relative;
  min-height: 575px; /* Set a minimum height to accommodate the graphic */
}

.footer-graphic {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.footer-bottom {
  background-color: #493529 !important;
  padding: 1rem 0;
  position: relative;
  z-index: 2;
}

.footer-bottom nav {
  margin-bottom: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#get-the-book .card-body img {
  width: 96px;
  height: 128px;
  object-fit: cover;
}


.social-links svg {
  shape-rendering: geometricPrecision;
  transform: translateZ(0); /* Forces GPU rendering */
}

.navbar {
  background-color: #23272c !important;
  padding: 1rem 0 !important;
  margin-bottom: 0rem;
}

.navbar .container-fluid,
.navbar .container {
  padding: 0 1rem;
}

.navbar-brand {
  color: var(--background-light) !important;
  position: static;
  left: auto;
  transform: none;
  margin: 0;
  padding: 0;
  font-weight: bold;
}

.navbar-toggler {
  position: static;
  left: auto;
  z-index: auto;
  margin-left: auto;
}

.navbar-collapse {
  width: auto;
  margin-top: 0;
}

.navbar-nav {
  /* Remove justify-content, width, and text-align for right alignment */
  flex-direction: row !important;
  gap: 1rem;
}

.nav-link {
  color: var(--background-light) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Mobile styles */
@media (max-width: 991.98px) {
  .navbar-brand {
    margin: 0 auto 1rem auto;
    text-align: center;
  }
  
  .navbar-toggler {
    margin-left: 0;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column !important;
    text-align: left;
    gap: 0;
  }
}

section {
  padding-top: 2rem;
  padding-bottom: 0rem;
}

.book-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem; /* Add some space below the image on small screens */
}

@media (min-width: 768px) {
  .book-image {
    margin-bottom: 0; /* Remove margin on larger screens */
  }
}

form input.form-control {
  background-color: #fff;
  border: 1px solid #ccc;
}

form .btn {
  background-color: var(--primary-color);
  border: none;
}

.author-image-rounded {
  border-radius: 1rem !important; /* Slightly more rounded corners, using !important to override Bootstrap's .rounded */
}
