
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.centered-container {
    width: 1400px;
    margin: 0 auto; 
    padding: 0 20px; 
    background-color: #272727; 
}

body{
    background-color: #1a1a1a;
    color: #ddd;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #333;
}

header h1 {
    font-size: 18px;
    color: #f1c40f;
}

header nav ul {
    list-style: none;
    display: flex;
}


header nav ul li {
    margin: 0 16px;
}

header nav ul li a {
    text-decoration: none;
    color: #ddd;
    
}

header nav ul li a:hover {
    color: #f1c40f;
}

/* Hero Section Styling */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
}

.hero-overlay h2 {
    font-size: 56px;
    max-width: 800px;
    margin-bottom: 32px;
}

.cta-button {
    background-color: #f1c40f;
    color: #333;
    padding: 16px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    position: relative;
    bottom: -1px;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: url('image/6e68cf9a946f16a5fb18204dd563be14.png') no-repeat center;
    background-size: cover;
    transform: translate(-50%, -50%);
    
}

.cta-button::after {
    content: "Explore";
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1c40f;
    font-size: 12.8px;
    text-align: center;
}

.cta-button:hover {
    background-color: #d4ac0d;
    transform:scale(1.1);
}

.cta-button:active {
    transform: scale(2);
    background-color: red;
}

.sections {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 600px;
    padding-top: 200px;
    justify-content: center;
}

.section-card {
    width: 370px;
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.card-image {
    overflow: hidden;
}

.section-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-card h3 {
    color: #f1c40f;
    margin: 5px;
    font-size: 25px;
}

.section-card a {
    text-decoration: none;
}

.section-card p {
    padding: 10px;
    color: #ddd;
    font-size: 20px;
}

.section-card:hover {
    transform: scale(1.05);
}

/* General Section Styling */
.info-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    transition: background-color 1s ease, color 1s ease;
}

.info-section h2 {
    color: #f1c40f;
    font-size: 32px;
    margin-bottom: 16px;
    text-align: center;
}

/* Figure styling for images */
figure {
    margin: 0;
    padding: 10px;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ccc;
    font-size: 14px;
}

.image-left {
    float: left;
    width: 45%;
    margin-right: 15px;
    margin-bottom: 10px;
}

.image-right {
    float: right;
    width: 30%;
    margin-left: 15px;
    margin-bottom: 10px;
}

.image-left, .image-right {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center;
}

.image-left:hover, .image-right:hover {
    transform: scale(2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #bbb;
    text-align: center;
}

.info-section p {
    margin: 1rem 0;
}

/* Mute/Unmute Button Styling */
.mute-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: #f1c40f;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.mute-button:hover {
    background-color: #555;
}

/* General Styling for Introduction Section */
#space-marines-info {
    padding: 20px;
    text-align: center;
    color: #ddd;
}

.intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text h2 {
    font-size: 32px; 
    color: #f1c40f; 
    margin-bottom: 10px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 10px;
}

/* Styling for Image Slideshow */
.intro-image {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.intro-image .slide {
    position: relative;
    width: 350px; 
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
}

/* Caption Styling */
.intro-image .caption {
    margin-top: 5px;
    font-size: 14px;
    color: #bbb; 
}

.slide {
    opacity: 0; 
    transform: translateY(10px); 
    transition: opacity 1s ease, transform 1s ease;
    margin-bottom: 20px;
}

.slide.visible {
    opacity: 1; 
    transform: translateY(0);
}

.caption {
    margin-top: 10px;
    color: #ddd;
    font-size: 16px;
}


/* Timeline Styling */
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    position: relative;
    padding: 60px 0px;
    width: 100%;
}

/* Center Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #f1c40f;
}

/* Timeline Event - Initial State */
.timeline-event {
    position: relative;
    width: 40%; 
    max-width: 80%;
    max-height: 80px;
    margin-bottom: 20px;
    padding: 20px 20px;
    cursor: pointer;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden; 
    transition: width 0.5s ease, max-height 1s ease, padding 0.5s ease; 
}

/* Left-aligned (odd) events */
.timeline-event:nth-child(odd) {
    align-self: flex-start;
    text-align: right;
    padding-right: 50px; 
}

/* Right-aligned (even) events */
.timeline-event:nth-child(even) {
    align-self: flex-end;
    text-align: left;
    padding-left: 50px; 
}

/* Expanded State */
.timeline-event.active {
    width: 80%; 
    max-height: 800px; 
    padding: 30px; 
}

/* Center the year along the timeline */
.timeline-year {
    top: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #f1c40f;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1;
}

/* Event Title */
.timeline-event h3 {
    font-size: 1.2rem;
    color: #f1c40f;
}

/* Short description */
.timeline-event .short-description {
    font-size: 0.9rem;
    color: #ddd;
}

/* Event Details - Hidden by default */
.event-details {
    display: none; 
    background-color: #333;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    padding: 10px;
    margin-top: 10px;
}

/* Event details shown on active */
.timeline-event.active .event-details {
    display: block; 
}

.event-details img {
    max-width: 60%;
    border-radius: 8px;
    margin-top: 10px;
}

.event-details p {
    margin: 10px 0;
    color: #ddd;
}


/* Equipment container styling */
.equipment-container {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    padding: 40px 20px;
    justify-content: center;
    
}

.equipment-item {
    position: relative;
    text-align: center;
    cursor: pointer;
    
}

.equipment-item img {
    width: 200px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.equipment-item:hover img {
    transform: scale(1.38);
}

/* Tooltip styling */
.equipment-tooltip {
    position: absolute;
    background-color: #222;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Individual Chapter Styling */
.chapter {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #ddd;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.chapter-image {
    width: 30%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.chapter-content {
    padding: 0 20px;
}

.chapter h3 {
    color: #FFD700;
}

.chapter:hover img.chapter-image {
    transform: scale(1.05);
}


.full-width-background {
    background-image: url('image/2vzRcaq0N2meCF19-w2560-188b92068eba6a53863c8921ebec99a321382f27.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-attachment: fixed; 
    width: 100vw;
    padding: 60px 0; 
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #aaa;
}

footer a {
    color: #f1c40f;
    text-decoration: none;
}

footer a:hover {
    color: #d4ac0d;
}
