/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Logo Styling */
.navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Hero Carousel */
#heroCarousel {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
}

.carousel-item {
    height: 600px;
    background-color: #000;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    opacity: 0.7;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.carousel-caption .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* Hymn Cards */
.hymn-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.hymn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hymn-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Featured Hymns */
.featured-hymns {
    padding: 50px 0;
}

/* Search Bar */
.search-bar {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.about-section img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Call to Action */
.cta-section {
    background-color: #007bff;
    color: white;
    padding: 50px 0;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #007bff;
    text-decoration: none;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption .lead {
        font-size: 1.2rem;
    }
}

/* Hymn Detail Page */
.hymn-detail {
    padding: 30px 0;
}

.hymn-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.lyrics-content {
    white-space: pre-line;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Search Results */
.search-results {
    padding: 30px 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Donate Section */
.donate-section {
    text-align: center;
    padding: 50px 0;
}

.donate-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.donate-option {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    flex: 1;
    max-width: 300px;
}

/* Donate Button */
.donate-btn {
    background-color: #28a745;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.donate-btn:hover {
    background-color: #218838;
    color: white !important;
}

/* MIDI Player Styles */
.midi-player {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.midi-player audio {
    width: 100%;
    margin-top: 10px;
} 

#subscription-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
  }

  .popup-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.4s ease;
  }

  .popup-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .popup-content {
    padding: 20px;
    text-align: center;
  }

  .popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2d2d2d;
  }

  .popup-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
  }

  .popup-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }

  .popup-content button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
  }

  #subscription-form button[type="submit"] {
    background-color: #1f8c3f;
    color: white;
  }

  #popup-close {
    background-color: #ddd;
    color: #333;
  }

  @keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }