:root {
    --primary: linear-gradient(to bottom right, #1b2631, #34495e);
    --secondary: #e67e22; /* Muted orange */
    --text: #ecf0f1; /* Light text color */
    --bg-color: #2c3e50; /* Dark blue-gray */
    --accent: #f39c12; /* Bright accent color */
    --hover-color: #2980b9; /* Hover color for tabs */
}


html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #181818;
    font-family: 'Arial', sans-serif;
    color: var(--text);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Navbar Style */

/* Bouncing or Pulsating Effect for Menu Icon */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@-webkit-keyframes bounceWithColor {
    0%, 20%, 50%, 80%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        color: white; /* Default color is white */
    }
    40% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
        color: #e74c3c; /* Mid-bounce color */
    }
    60% {
        -webkit-transform: translateY(-5px);
        transform: translateY(-5px);
        color: #3498db; /* Another color during the bounce */
    }
}

@keyframes bounceWithColor {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        color: white; /* Default color is white */
    }
    40% {
        transform: translateY(-10px);
        color: #e74c3c; /* Mid-bounce color */
    }
    60% {
        transform: translateY(-5px);
        color: #3498db; /* Another color during the bounce */
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: white; /* Default color is white */
    cursor: pointer;
    -webkit-animation: bounceWithColor 2s infinite; /* Webkit prefix for mobile browsers */
    animation: bounceWithColor 2s infinite; /* Regular animation */
}

.menu-icon:hover {
    -webkit-animation: none; /* Webkit prefix */
    animation: none;
    color: var(--hover-color);
}

.navbar {
    width: 100%;
    background-color: #f39c12;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--secondary);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    flex-direction: row;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
    padding: 8px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

.navbar ul li a:hover {
    background-color: var(--hover-color);
    color: var(--bg-color);
}

@media (max-width: 768px) {
    .intro-section {
        width: 100%;
        padding: 10px; /* Reduce padding for mobile */
        height: auto; /* Adjust height based on content */
    }

    #background-video {
        width: 100%;
        height: auto;
        object-fit: cover; /* Ensures the video scales properly */
        min-height: 100%; /* Covers full height */
    }

    .intro-content {
        width: 90%; /* Adjust width for mobile */
        margin-bottom: 20px;
        padding: 15px; /* Add padding for better spacing */
        font-size: 1rem; /* Smaller font for mobile */
    }

    .intro-content h1 {
        font-size: 1.8rem; /* Smaller heading for mobile */
    }

}


@media (max-width: 768px) {
    .menu-icon {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        -webkit-animation: bounceWithColor 2s infinite;
        animation: bounceWithColor 2s infinite;
    }

    .navbar ul {
        flex-direction: column;
        display: none;
        background-color: #202020;
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

    .navbar ul.active {
        display: block;
    }

    .navbar ul li {
        margin: 10px 0;
        text-align: center;
    }
}

/*video {
    pointer-events: none;
} */

/* Intro Section Styles */
.intro-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to the top */
    align-items: center;
    color: var(--text);
    text-align: center;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8;
}

.intro-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border-radius: 10px;
    margin-top: auto; /* Pushes the content towards the bottom */
    margin-bottom: 50px; /* Adjust this value to control the distance from the bottom */
}

.intro-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}


/* Paragraph Section Styles */
.paragraph-section {
    padding: 50px 20px;
    background-color: #222; /* Dark background to match the theme */
    color: #fff;
    text-align: center;
}

.paragraph-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border-radius: 10px;
    padding: 20px;
}

.paragraph-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 20px;
    color: #ecf0f1;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .paragraph-content p {
        font-size: 1rem;
        padding: 10px; /* Add padding for better readability on mobile */
        line-height: 1.4;
    }
}



/* Atheism Exposed Section */
.atheism-exposed-section {
    padding: 50px 20px;
    background-color: #222;
    color: #fff;
    text-align: center;
    position: relative;
}

/* Adjust max-width for mobile and desktop */
.atheism-exposed-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.atheism-exposed-content h2 {
    font-size: 2rem; /* Adjusted for mobile */
    color: var(--accent);
    margin-bottom: 20px;
}

.atheism-exposed-content p {
    font-size: 1rem; /* Adjust for mobile readability */
    line-height: 1.6;
}

/* Video and Image Row */
.atheism-image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 20px; /* Space between items */
    margin-bottom: 30px; /* Space between rows and the title */
}

.atheism-sub-video,
.atheism-image {
    width: 100%;
    height: 300px; /* Set a fixed height for videos and images */
    object-fit: cover; /* Ensure videos and images cover the area evenly */
    border-radius: 10px;
}

.atheism-sub-video, 
.atheism-image {
    width: 100%;
    height: 300px; /* Set a fixed height for videos and images */
    object-fit: cover; /* Ensure videos and images cover the area evenly */
    border-radius: 10px;
}

@media (max-width: 768px) {
    .atheism-image-row {
        grid-template-columns: 1fr; /* 1 item per row on mobile */
    }

    .atheism-sub-video, 
    .atheism-image {
        height: 200px; /* Adjust height for smaller screens */
    }
}

/* Sub-sections */
.atheism-sub-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Stack content for mobile */
    align-items: center;
}

.atheism-sub-content {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
}

.atheism-sub-content h3 {
    font-size: 1.8rem;
    color: #ffcc00;
    margin-bottom: 10px;
}

.atheism-sub-content p {
    font-size: 1rem; /* Smaller text for mobile */
    line-height: 1.6;
}

.atheism-sub-video {
    width: 100%;
    height: auto;
    max-width: 560px; /* Adjust video size for mobile */
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .atheism-exposed-content h2 {
        font-size: 1.6rem; /* Adjust heading size for mobile */
    }

    .atheism-exposed-content p {
        font-size: 0.9rem; /* Adjust paragraph size */
    }

    .atheism-image-row {
        flex-direction: column;
        gap: 15px;
    }

    .atheism-sub-section {
        margin-bottom: 30px;
        align-items: center;
    }

    .atheism-sub-video {
        width: 100%;
        height: auto;
    }
}

/* Scrollable container for YouTube videos */
.atheism-video-scroll {
    max-height: 800px; /* Increase the maximum height of the container */
    overflow-y: auto;  /* Enable vertical scrolling */
    display: flex;
    flex-direction: column; /* Stack videos vertically */
    gap: 20px; /* Space between the videos */
}

.atheism-video-scroll iframe {
    width: 100%;
    height: 400px; /* Increase the height of each video */
    border: none; /* Remove iframe border */
}

@media (max-width: 768px) {
    .atheism-video-scroll iframe {
        height: 250px; /* Smaller height for mobile screens */
    }
}

/* =============================
   CULTURE OF DEATH SECTION
   ============================= */

#culture-of-death {
    padding: 60px 20px;
    text-align: center;
}

#culture-of-death h1 {
    font-size: 2.2rem;
    color: #f1c40f;
    margin-bottom: 40px;
}

#culture-of-death h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

.cod-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;

    max-height: 700px;          /* adjust to taste */
    overflow-y: auto;
    padding-right: 10px;

    overflow-x: hidden;
}

.cod-slider::-webkit-scrollbar {
    width: 8px;
}

.cod-slider::-webkit-scrollbar-thumb {
    background: #f1c40f;
    border-radius: 6px;
}

.cod-slider::-webkit-scrollbar-track {
    background: #1b2631;
}

.cod-card {
    background: #1b2631;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.cod-card.active {
    display: block;
    animation: fadeSlide 0.4s ease;
}

.cod-card h2 {
    color: #f1c40f;
    margin-bottom: 15px;
}

.cod-image-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.cod-image-row img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.cod-card p {
    color: #ecf0f1;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Controls */
.cod-controls {
    margin-top: 25px;
}

.cod-controls button {
    background: #f1c40f;
    border: none;
    color: #000;
    padding: 10px 18px;
    margin: 0 8px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.cod-controls button:hover {
    background: #d4ac0d;
}

/* Animation */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile */
@media (max-width: 768px) {

     .cod-slider {
        max-height: 600px;
    }

    #culture-of-death h1 {
        font-size: 1.8rem;
    }

    .cod-card p {
        font-size: 1rem;
    }

    .cod-image-row {
        grid-template-columns: 1fr;
    }

    .cod-image-row img {
        height: 100%;
    }
}


/* Psychology Section */
.psychology-section {
    padding: 50px 20px;
    background-color: var(--bg-color);
    color: var(--text);
    text-align: center;
    border-radius: 10px;
    margin-top: 50px;

    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

    
    max-height: 800px;   /* desktop scroll height */
    overflow-y: auto;
}

.psychology-section::-webkit-scrollbar {
    width: 8px;
}

.psychology-section::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
}

.psychology-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}


.psychology-header h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.psychology-content {
    max-width: 1200px;
    margin: 0 auto;
}

.psychology-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.psychology-content h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin: 20px 0;
}

.psychology-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

     .psychology-section {
        max-height: 600px;   /* better for phones */
    }

    .psychology-header h1 {
        font-size: 2rem;
    }

    .psychology-content h2 {
        font-size: 1.6rem;
    }

    .psychology-content p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .psychology-image {
        max-width: 100%; /* Ensure image scales on smaller devices */
    }
}

.marx-obsession-section {
     padding: 50px 20px;
    background-color: var(--bg-color);
    color: var(--text);
    text-align: center;
    border-radius: 10px;
    margin-top: 50px;
    scroll-behavior: smooth;

    width: 1200px;
    margin-left: auto;
    margin-right: auto;

    max-height: 800px;       /* adjust height as you like */
    overflow-y: auto;
  }

  .marx-obsession-section::-webkit-scrollbar {
    width: 8px;
}

.marx-obsession-section::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
}

.marx-obsession-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
  
  .marx-obsession-section h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
  }
  
  .marx-obsession-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: justify;
  }
  
  .marx-image {
    width: 500px;
    height: 450px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }
  
  .marx-video video {
    width: 600px;
    height: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: auto; /* Ensure it's clickable */
  }
  
  /* Mobile optimization */
  @media (max-width: 768px) {

    .marx-obsession-section {
         max-width: 100%;
        max-height: 600px;
    }

    .marx-obsession-section h1 {
      font-size: 2rem;
    }
  
    .marx-obsession-section p {
      font-size: 1rem;
      padding: 0 10px;
    }
  
    .marx-image {
      max-width: 100%;
    }
  
    .marx-video video {
      max-width: 100%;
    }
  }

/* Final Message Section */
.final-message-section {
    padding: 50px 20px;
    background-color: #181818; /* Dark background to match the theme */
    color: #fff;
    text-align: center;
}

.final-message-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border-radius: 10px;
    padding: 40px 20px;
}

.final-message-content img.final-message-image {
    max-width: 150px; /* Adjust width as needed */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.final-message-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent); /* Accent color for heading */
}

.final-message-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ecf0f1;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

    .psychology-content {
        max-width: 800px;
    }    

    .final-message-content h2 {
        font-size: 1.6rem;
    }

    .final-message-content p {
        font-size: 1rem;
    }

    .final-message-content img.final-message-image {
        max-width: 100px; /* Smaller image on mobile */
    }
}


/*Video Playlist*/
.container {
    display: flex;
    justify-content: center; /* Center the container */
    width: 100%;
    max-width: 1800px; /* Increase the max-width for even larger displays */
    margin-top: 80px;
}

.main-video {
    flex: 8; /* Maximize space for the video player */
    background-color: #181818;
    margin-right: 20px; /* Add space between video and playlist */
}

.main-video video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-video .title {
    margin-top: 15px;
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: bold;
}

.video-playlist {
    flex: 1; /* Reduce the width of the playlist to the minimum */
    background-color: #202020;
    padding: 15px;
    border-radius: 8px;
}

.video-playlist > p {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.video-playlist .videos {
    height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 10px;
}

.video-playlist .videos::-webkit-scrollbar {
    width: 8px;
}

.video-playlist .videos::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
    border-radius: 10px;
}

.video-playlist .videos .video {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.video-playlist .videos .video:hover {
    background-color: var(--hover-color);
}

.video-playlist .videos .video.active {
    background-color: var(--secondary);
}

.video img {
    margin-right: 10px;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.video h3 {
    flex-grow: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.video p.time {
    font-size: 0.8rem;
    color: var(--accent);
}

.play-pause-icon {
    width: 24px;
    height: 24px;
}

/* Footer Styling */
footer {
    background-color: #202020;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

footer p:last-of-type {
    margin-bottom: 0;
    font-size: 1rem;
}

footer a {
    color: #f39c12;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-social {
    margin-top: 10px;
}

.footer-facebook i {
    font-size: 20px;
    color: #ffffff;
    margin-left: 10px; /* space beside email */
    transition: 0.3s ease;
}

.footer-facebook i:hover {
    color: #3b5998; /* Facebook blue */
    transform: scale(1.1);
}

#progress-container {
    width: 80%;
    background-color: #ecf0f1;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 10px;
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #f39c12;
    transition: width 0.5s ease;
}

#progress-text {
    font-size: 1rem;
    color: #ecf0f1;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .main-video {
        width: 100%;
    }

    .video-playlist {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .video-playlist .videos {
        height: auto;
    }
}

