/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 90%;
    max-width: 1920px;
    text-align: center;
    margin: 20px 0 0px 0; /* Reduced margin-bottom to 0px */
}

header h1 {
    font-family: 'Creepster', cursive;
    font-size: 30px;
    color: #ffcc00;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis if text still overflows */
    padding: 0 20px; /* Add breathing room on sides */
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1920px;
}

.video-container {
    position: relative;
    width: 100%; /* Adjust as needed */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 1920px; /* Set maximum width to 1920px */
    max-height: 1080px; /* Set maximum height to 1080px */
}

.video-container video,
.video-container .poster-image-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio */
}

.poster-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0; /* Initially transparent */
    transition: opacity 3s ease-in-out; /* Smooth transition for opacity */
}

.welcome-message {
    text-align: center;
    margin: 0px 0 10px 0; /* Reduced margin to 10px */
    font-family: 'Creepster', cursive;
    font-size: 24px;
    color: #c31515;
}

.video-section {
    width: 100%;
    margin-bottom: 20px;
}

.thumbnails-section {
    width: 100%;
    margin-bottom: 20px;
}

.thumbnails-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.thumbnails-container a {
    display: block;
    margin: 10px;
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
}

.thumbnails-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid white;
    transition: transform 0.3s ease;
}

.thumbnails-container img:hover {
    transform: scale(1.05);
}

.call-to-action {
    text-align: center;
    margin: 20px 0;
    font-family: 'Creepster', cursive;
    font-size: 24px;
    color: #ffcc00;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px; /* Increased gap for larger icons */
    padding: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
    max-width: 1920px; /* Optional: Set a maximum width */
}

.icon {
    width: 64px; /* Doubled size */
    height: 64px; /* Doubled size */
}

.footer {
    text-align: center;
    padding: 10px;
    width: 90%;
    max-width: 1920px;
    margin-top: 20px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
        padding: 0 15px; /* Adjust padding for smaller screens */
    }

    .welcome-message, .call-to-action {
        font-size: 18px;
    }

    .social-links {
        gap: 30px;
    }

    .thumbnails-container a {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px; /* Further reduce size for very small screens */
        padding: 0 10px;
    }

    .welcome-message, .call-to-action {
        font-size: 18px;
    }

    .social-links {
        gap: 20px;
    }

    .thumbnails-container a {
        flex: 1 1 100%;
    }
}

/* Fullscreen Styles */
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen,
.video-container:fullscreen {
    width: 100%;
    height: 100%;
}

.video-container:-webkit-full-screen video,
.video-container:-moz-full-screen video,
.video-container:fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container:-webkit-full-screen .poster-image-overlay,
.video-container:-moz-full-screen .poster-image-overlay,
.video-container:fullscreen .poster-image-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container:-webkit-full-screen .welcome-message,
.video-container:-moz-full-screen .welcome-message,
.video-container:fullscreen .welcome-message {
    display: none;
}

.video-container:-webkit-full-screen .call-to-action,
.video-container:-moz-full-screen .call-to-action,
.video-container:fullscreen .call-to-action {
    display: none;
}

/* Cookie Consent Banner */
#cookieConsent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 15px;
    z-index: 9999;
}

.cookie-consent-text {
    margin-bottom: 15px; /* Add space between text and buttons */
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Adjust the spacing as needed */
}

#cookieConsent button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
}

#cookieConsent #rejectCookies {
    background-color: #f44336;
}