html {
    scroll-snap-type: y mandatory;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #fff;
    margin: 0;
}

.uc-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    width: 250px;
    /* Adjust size as needed */
    height: auto;
}

.section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    width: 100%;
    height: 100vh;
    /* Change from 100% */
}

.section h1 {
    font-size: clamp(1.5rem, 5vh, 6rem);
    /* Larger font size */
    font-weight: 900;
    /* Bolder */
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    /* Add this */
}

.section h2 {
    font-size: clamp(1rem, 4vw, 4rem);
    /* Larger font size */
    font-weight: 900;
    /* Bolder */
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    /* Add this */
}

.section p {
    font-size: 1em;
    max-width: 800px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    text-align: center;
    /* Re-added for centering text within the paragraph */
    margin: 0 auto;
    /* Center the paragraph element itself */
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

#home {
    background-image: url('assets/section-bg.png');
    background-position: center;
    background-size: cover;
    /* Add this */
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
    width: 100%;
    height: 100%;
    gap: 20px;
    overflow-y: auto;
}

.games-content-wrapper {
    height: 100%;
}

.info-top-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content horizontally */
    gap: 20px;
    /* Space between h1 and badges */
    overflow-y: auto;
}

.games-main-content {
    display: flex;
    flex-direction: row;
    /* Align children horizontally */
    justify-content: center;
    align-items: center;
    width: 100%;
}

.left-content h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 5px;
}

.left-content {
    flex: 1;
    padding-left: 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    width: 750px;
}

#tech .left-content {
    justify-content: start;
}

.middle-content {
    flex: 2;
}

.phone-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 400px;
    /* A reasonable max-width for a phone-like display */
    width: 80%;
    /* Take up 80% of its container's width */
    aspect-ratio: 540 / 1118;
    margin: 0 auto;
    border-radius: 15% / 7.5%;
    /* Added for rounded corners */
    overflow: hidden;
    /* Ensures video corners are rounded */
}

.phone-display video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Behind the phone frame */
}

.right-content {
    flex: 1;
    padding: 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.store-badge {
    width: 150px;
    /* Revert to 150px */
}

#media {
    background-color: #485461;
    background-image: linear-gradient(315deg, #485461 0%, #28313b 74%);
}

#games {
    background-image: url('assets/section-bg.png');
    background-position: center;
    background-size: cover;
    overflow: hidden;
    height: 100vh;
}

#tech {
    background-image: url('assets/section-bg.png');
    background-position: center;
    background-size: cover;
}

#info {
    background-image: url('assets/section-bg.png');
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    overflow-y: auto;
}

.info-bottom-content {
    padding-bottom: 50px;
}

.scrollable-content {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    /* For Firefox */
    -ms-overflow-style: none;
    /* For Internet Explorer and Edge */
}

.scrollable-content::-webkit-scrollbar {
    display: none;
    /* For Chrome, Safari, and Opera */
}

.info-top-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content horizontally */
    gap: 20px;
    /* Space between h1 and badges */
}

.info-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content horizontally */
    /* gap: 10px; */
}

.down-arrow {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    /* Increase z-index */
    width: 25px;
    /* Adjust size as needed */
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.down-arrow:hover {
    opacity: 1;
}

.phone-frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Add this */
    z-index: 1;
}

.video-screen-alignment {
    position: absolute;
    /* User MUST adjust these percentages to precisely match the transparent opening of their phone-frame-transparent.png image across different screen sizes. */
    top: 2%;
    left: 10%;
    width: 80%;
    height: 96%;
    object-fit: cover;
    z-index: 0;
    /* Behind the phone frame */
    border-radius: 40px;
    /* Added for rounded corners */
}

.middle-content.square-video {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 80%;
}

.video-square {
    object-fit: cover;
    width: 500px;
    height: 800px;
    z-index: 0;
    /* Behind the phone frame */
    border-radius: 40px;
    /* Added for rounded corners */
}

#fp-nav ul li a span {
    background: rgba(255, 255, 255, 0.5) !important;
    /* Half-transparent for unfocused */
}

#fp-nav ul li a.active span {
    background: #fff !important;
    /* White for focused */
}

.menu-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    padding: 10px;
}

.menu-icon .line1,
.menu-icon .line2 {
    width: 35px;
    height: 3px;
    background-color: #fff;
    margin: 8px 0;
    transition: 0.4s;
}

.menu-icon.open .line1 {
    transform: rotate(-45deg) translate(-3.5px, 3.5px);
}

.menu-icon.open .line2 {
    transform: rotate(45deg) translate(-3.5px, -3.5px);
}

/* Overlay Menu */
.overlay-menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    /* Add this */
    justify-content: center;
    align-items: center;
}

.overlay-menu a {
    color: white;
}

.overlay-menu.open {
    width: 100%;
}

.overlay-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.overlay-menu ul li {
    margin: 15px 0;
}

.overlay-menu ul li a {
    color: #fff;
    padding: 8px;
    text-decoration: none;
    font-size: 3em;
    display: block;
    transition: 0.3s;
    font-weight: 900;
    /* Make text bold */
}

.overlay-menu ul li a:hover,
.overlay-menu ul li a:focus {
    color: #009ffd;
}

.app-store-badge-in-menu {
    margin-bottom: 20px;
    /* Space from the bottom */
    margin-left: auto;
    /* Center horizontally */
    margin-right: auto;
    /* Center horizontally */
    display: block;
    /* Make it a block element to apply width and margin auto */
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    /* Space from the App Store badge */
    gap: 15px;
    /* Space between icons */
}

.social-icons img {
    width: 40px;
    /* Size of social icons */
    height: 40px;
    border-radius: 50%;
    /* Make them circular */
    transition: transform 0.3s ease;
    /* Smooth hover effect */
}

.social-icons img:hover {
    transform: scale(1.1);
    /* Slightly enlarge on hover */
}

.social-icons-large {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    /* More space from content above */
    gap: 25px;
    /* Larger space between icons */
    position: relative;
    z-index: 2;
}

.social-icons-large img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: filter 0.3s ease, transform 0.3s ease;
    /* Add filter to transition */
    filter: grayscale(100%) brightness(1.5);
    /* Grayish effect */
}

.social-icons-large img:hover {
    transform: scale(1.1);
    /* Slightly enlarge on hover */
}

.store-badge-large {
    display: block;
    width: 250px;
    /* Larger size for the badge */
    margin: 20px auto;
    /* Center it and add vertical spacing */
    position: relative;
    /* Ensure z-index works */
    z-index: 2;
    /* Place above the scrim */
}

.store-badge-large img {
    width: 100%;
    /* Make the image fill its parent .store-badge-large */
    height: auto;
    /* Maintain aspect ratio */
}

.section .left-content p {
    font-size: 1.2em;
    max-width: 100%;
    line-height: 50px;
    text-shadow: 0 0 50px rgba(0, 0, 0, 1);
    font-weight: 350;
}

.section .left-content p strong {
    font-weight: bolder;
}

.section .games-content-wrapper .left-content {
    max-width: 900px;
}

@media (max-height: 1000px) {
    .video-square {
        object-fit: cover;
        max-width: 90%;
        height: auto;
        max-height: 400px;
        z-index: 0;
        /* Behind the phone frame */
        border-radius: 40px;
        /* Added for rounded corners */
    }

    .phone-display {
        align-items: start;
    }

    .phone-display video {
        width: 60%;
        height: 60%;
        border-radius: 15% / 7.5%;
        object-fit: cover;
        z-index: 0;
        border-radius: 15% / 7.5%;
        align-items: start;
    }
}

@media (max-width: 1000px) {
    .phone-display {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-content-wrapper {
        flex-direction: column;
        flex: 1;
        /* Add this back */
        height: auto;
        gap: 10px;
        justify-content: flex-start;
    }

    .games-top {}

    .info-top-content {}

    .section {
        height: 100vh;
        justify-content: flex-start;
        /* Override to push content to top */
        box-sizing: border-box;
        /* Add this */
        padding-top: 120px;
    }

    .left-content,
    .phone-display,
    .right-content {
        flex: none;
        width: 90%;
        padding: 10px;
    }

    .left-content {
        order: 1;
        padding-top: 0;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .middle-content {
        order: 2;
    }

    .middle-content.square-video {
        flex-direction: column;
    }

    .phone-display {
        order: 2;
        width: 50%;
        aspect-ratio: 540 / 1118;
        border-radius: 15% / 7.5%;
        overflow: hidden;
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        /* Safari fix */
        -webkit-backface-visibility: hidden;
        /* Safari fix */
        -moz-backface-visibility: hidden;
        /* Firefox fix */
        backface-visibility: hidden;
        /* Standard fix */
        -webkit-transform: translate3d(0, 0, 0);
        /* Safari fix */
        -moz-transform: translate3d(0, 0, 0);
        /* Firefox fix */
        transform: translate3d(0, 0, 0);
        /* Standard fix */
        padding: 0;
        /* Remove padding for phone-display on mobile */
    }

    .phone-display video {
        border-radius: 15% / 7.5%;
    }

    .right-content {
        order: 3;
        text-align: center;
    }

    .section h1 {
        line-height: 1;
        /* margin-top: 33%; */
        /* This was added by the user */
    }

    .section h2 {
        line-height: 1;
        /* margin-top: 33%; */
        /* This was added by the user */
    }

    .character-gallery {
        overflow-x: auto;
        /* Enable horizontal scrolling */
        scroll-snap-type: x mandatory;
        /* Add this */
        -webkit-overflow-scrolling: touch;
        /* Add this for iOS momentum scrolling */
    }

    .character-column {
        flex-shrink: 0;
        /* Prevent shrinking */
        scroll-snap-align: center;
        /* Add this to make columns snap */
        flex: 0 0 150px;
        /* Make it smaller */
        max-width: 150px;
        /* Make it smaller */
        min-height: 350px;
        /* Add this for mobile */
    }

    .scroll-arrow {
        /* display: none; */
        /* Hide arrows on mobile */
    }

    .store-badge-large {
        width: 250px;
        /* Reduce size on mobile */
    }

    .video-square {
        object-fit: cover;
        max-width: 50%;
        height: auto;
        max-height: 50%;
        aspect-ratio: 1 / 1;
        z-index: 0;
        /* Behind the phone frame */
        border-radius: 40px;
        /* Added for rounded corners */
    }
}