﻿/* General Page Styles */

.intro-deck {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.slide {
    scroll-snap-align: start;
    min-height: 100vh;
    position: relative;
    padding: 2rem 1rem;
    box-sizing: border-box;
}



/* Slide 1: Centered Landing Page */
.slide1 {
    background-image: url('/images/UrbanGolf/CityRoofAiming.png'); /* Set your background image */
    background-size: cover;
    background-position: center;
    color: white; /* Ensure text is white */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative; /* Allow overlay to be added */
}

    /* Dark overlay for slide3 */
    .slide1::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0); /* Adjust opacity to moderate darkness */
        z-index: -1;
    }


.title {
    font-size: 4rem;
    animation: glow 2s ease-in-out infinite alternate;
    text-align: center;
}

.subtitle {
    font-size: clamp(1rem, 5vw, 3rem);
    max-width: 600px;
    margin-bottom: 1rem;
    text-align: center;
    color: black;
    text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
}

.game-logo {
    width: clamp(150px, 80vw, 700px);
    height: clamp(84px, 45vw, 391px);
}

.studio-logo {
    width: clamp(100px, 20vw, 200px);
}


/* Slide 2: Bio Section */
.slide2 {
    padding-top: 4rem;
    background-image: url('/images/Town.jpg'); /* Set your background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column; /* Ensures vertical layout for bio section */
    height: 100vh;
    position: relative; /* Allow overlay to be added */
    z-index: 0; /* Ensure content is placed above the overlay */
}

    /* Apply dark overlay on slide2 */
    .slide2::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Apply darkening overlay */
        z-index: -1; /* Ensure overlay is behind the content */
    }

.bio-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    text-align: center;
    padding: 0.5rem; /* Ensure there's some padding around the bio */
    box-sizing: border-box; /* Prevent content overflow */
}

.bio-text {
    font-size: 1.2rem;
    line-height: 1.6;
}

.bio-image {
    width: clamp(80px, 30vw, 250px);
    border-radius: 16px
}

/* Slide 3: Game Concept */
.slide3 {
    background-image: url('/images/CityLevel.jpg'); /* Set your background image */
    background-size: cover;
    background-position: center;
    padding-top: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white; /* Ensure text is white */
    position: relative; /* Allow overlay to be added */
    z-index: 0; /* Ensure content is placed above the overlay */
}

    /* Dark overlay for slide4 */
    .slide3::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Apply darkening overlay */
        z-index: -1; /* Ensure overlay is behind the content */
    }

    .slide3 .title {
        font-size: 3rem; /* Adjust font size */
        margin-bottom: 2rem;
        text-align: center;
    }



.concept-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0rem auto;
    padding: 0.5rem;
    flex-wrap: wrap;
}

    .concept-block.reverse {
        flex-direction: row-reverse;
    }



.concept-video {
    width: 100%;
    max-width: 500px; /* Reduced max-width */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    max-height: 40vh; /* Reduced max-height for desktops */
    z-index: 5;
}


/* Slide 4: Gameplay Mechanics */
.slide4 {
    background-image: url('/images/Desert.jpg'); /* Set your background image */
    background-size: cover;
    background-position: center;
    padding-top: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white; /* Ensure text is white */
    position: relative; /* Allow overlay to be added */
    z-index: 0; /* Ensure content is placed above the overlay */
}

    /* Dark overlay for slide4 */
    .slide4::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Apply darkening overlay */
        z-index: -1; /* Ensure overlay is behind the content */
    }

    .slide4 .title {
        font-size: 3rem; /* Adjust font size */
        margin-bottom: 2rem;
        text-align: center;
    }




.concept-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.4;
    color: #f0f0f0;
    max-width: 500px;
    margin: 0;
}

/* Slide 5: Trailer Section */
.slide5 {
    background: black; /* Dark background for the video */
    height: 100vh; /* Full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
}



.trailer-title {
    position: absolute;
    top: 2rem; /* Add space from the top */
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-align: center;
    z-index: 1; /* Make sure the title stays above the video */
}

.video-frame {
    width: 99vw;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    max-height: 80vh; /* Optional: limit height to 80% of viewport */
}

/* Responsive Layout for Mobile */
@media (max-width: 768px) {
    /* Bio Section */
    .bio-container,
    .concept-block,
    .concept-block.reverse {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 0.5rem; /* Ensure a little space between elements */
        padding: 0rem;
     
    }


    .concept-video {
        max-width: 90vw; /* Ensure these images/videos fit the screen */
        width: 90vw;
        height: auto;
        max-height: 40vh; /* Reduce the height on mobile */
    }


    .bio-text,
    .concept-text {
        max-width: 90vw;
        text-align: center; /* Ensure the text is properly aligned */
    }

    /* Adjusting the slide background for mobile to avoid overlap */
    .slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .slide2, .slide3, .slide4, .slide5 {
        padding-top: 2rem; /* Adjust padding for better spacing */
    }

    /* Ensuring titles and content are centered */
    .title,
    .concept-text,
    .bio-text {
        text-align: center;
        font-size: 0.9rem; /* Adjust font size for better readability */
    }



    .trailer-video {
        max-height: 50vh; /* Make trailer video smaller on mobile */
    }

    .slide5 .trailer-title {
        font-size: 2rem; /* Make the title smaller for mobile screens */
    }

    /* Re-enable scroll-snap for mobile */
    .intro-deck {
        scroll-snap-type: y mandatory; /* Re-enable snap scrolling on mobile */
    }
}
