/* Navigation Bar for better Navigation of pages */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #1d8b42, #232325);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 1000;
    /* ensures navbar stays on top of everything */
}

.navbar-right {
    justify-self: end;
    display: flex;
    gap: 20px;
}

.navbar-spacer {
    height: 80px;
    /* same height as navbar to prevent content overlap */
}

.arrow-btn:hover {
    background: silver;
    transform: translateX(-5px);
}

span {
    color: black;
    font-weight: bold;
}

body {
    background: rgb(45, 78, 52);
    background-size: cover;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding-top: 30px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

h1,
h2 {
    color: black;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 2px 2px 2px black;
}

.arrow-btn-left {
    position: fixed;
    top: 20px;
    left: 25px;
    color: black;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3 ease, transform 0.2 ease;
    text-shadow: 1px 1px 1px black;

}

.arrow-btn-left:hover {
    background: rgba(255, 255, 255, 0.711);
    transform: translateX(-5px);
}

.flipped {
    display: inline-block;
    transform: scaleX(-1);
}

.arrow-btn-left span {
    color: black;
    font-weight: bold;
}

.section-divider,
.top-hr {
    width: 100%;
    height: 3px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(90deg, rgb(52, 71, 51), #060706, #3f633b);
    margin: 60px auto 40px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
footer{
    text-align: center;
    color: black;
    text-shadow: 1px 1px 1px black;
    margin-top: 50px;
}

/* ---------------------------------InfiniteTrigger Video/Description, Project Info Section-------------------------------------------------------- */
.IFTGvideo-card {
    flex: 1;
    max-width: 50%;
    background: rgb(26, 48, 31);
    border: 2px solid black;
    box-shadow: 0 0 10px black;
    width: 100%;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 70px;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

.IFTGvideo-section {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}
/* Video on Top */
.IFTG-video {
    width: 100%;
    max-width: 1200px;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 0 0 10px black;
}
.IFTGvideo-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;/* Some Spacing*/
}
/* Video on Top */
/* ------------------ */
.IFTGvideo-description {
    flex: 1;
    color: black;
    font-size: 25px;
    line-height: 1.5;
    text-shadow: 1px 1px 1px black;
}

.IFTGvideo-description h2 {
    color: black;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px black;
    font-size: 28px;
}

.IFTGproject-info-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    color: black;
    font-size: 22px;
    line-height: 1.6;
}

.IFTGproject-info-list li {
    margin-bottom: 5px;
}

.IFTGproject-info-list strong {
    color: black;
    font-weight: 900;
    text-shadow: 1px 1px 2px black;
}


/* --------------------------------------InfiniteTrigger Info/Description Section-------------------------------------------------------- */
.IFTGAbout-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid black;
    background: rgb(26, 48, 31);
    border-radius: 20px;
    padding: 25px;
    width: 950px;
    height: auto;
    max-width: 1000px;
    box-shadow: 0 0 10px black;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

.IFTGAbout-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    width: 100%;
    max-width: 1800px;
    margin-left: 0px;
    padding: 0 auto;
}

.gameAbout-image {
    width: 850px;
    height: auto;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 0 0 10px black;
}

.IFTGAbout-description {
    flex: 1;
    margin-bottom: 100px;
    color: black;
    font-size: 24px;
    line-height: 1.5;
    text-shadow: 1px 1px 1px black;
}

.IFTGAbout-description h2 {
    color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px black;
    font-size: 28px;
}

/* --------------------------------------InfiniteTrigger Splash Section-------------------------------------------------------- */
.IFTGGameSplash-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid black;
    background: rgb(26, 48, 31);
    border-radius: 20px;
    padding: 25px;
    width: 950px;
    height: auto;
    max-width: 1000px;
    box-shadow: 0 0 10px black;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

.GameSplash-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-top: 40px;
    gap: 40px;
    width: 100%;
    max-width: 1800px;
    margin-left: 0px;
}

.GameSplash-image {
    width: 950px;
    height: auto;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 0 0 10px black;
}

.IFTGSplash-description {
    flex: 1;
    margin-bottom: 110px;
    color: black;
    font-size: 24px;
    line-height: 1.5;
    text-shadow: 1px 1px 1px black;
}

.IFTGSplash-description h2 {
    color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px black;
    font-size: 28px;
}

/* -----------------------------InfiniteTrigger Shop System Section------------------------ */
.IFTGShopSys-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid black;
    background: rgb(26, 48, 31);
    border-radius: 20px;
    padding: 25px;
    width: 950px;
    height: auto;
    max-width: 1000px;
    box-shadow: 0 0 10px black;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

.ShopSys-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-top: 40px;
    gap: 40px;
    width: 100%;
    max-width: 1800px;
    margin-left: 0px;
}

.ShopSys-image {
    width: 850px;
    height: auto;
    border-radius: 10px;
    border: 2px solid black;
    box-shadow: 0 0 10px black;
}

.IFTGShopSys-description {
    flex: 1;
    margin-bottom: 110px;
    color: black;
    font-size: 24px;
    line-height: 1.5;
    text-shadow: 1px 1px 1px black;
}

.IFTGShopSys-description h2 {
    color: black;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px black;
    font-size: 28px;
}

/* ------------------------------------ DESKTOP RESPONSIVE (1200px) -------------------------- */
@media (max-width: 1200px) {

    /* NAVBAR */
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 20px 20px;
        gap: 15px;
        text-align: center;
    }

    .navbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .navbar-spacer {
    height: 180px;
    /* same height as navbar to prevent content overlap */
}

    .arrow-btn-left {
        top: 15px;
        left: 15px;
        z-index: 2000;
    }

    /* All 2-column sections collapse */
    .IFTGvideo-section,
    .IFTGAbout-section,
    .GameSplash-section,
    .ShopSys-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
    }

    /* Gameplay images row and wrap */
    .Gameplay-images {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }

    /* Cards resizing */
    .IFTGvideo-card,
    .IFTGAbout-card,
    .IFTGGameSplash-card,
    .IFTGShopSys-card {
        width: 90%;
        max-width: 950px;
        margin: 0 auto 40px -10px;
        padding: 20px;
    }

    /* Images resizing */
    .IFTG-video,
    .gameAbout-image,
    .GameSplash-image,
    .ShopSys-image,
    .Gameplay-image {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
    }

    /* Text resizing */
    .IFTGvideo-description,
    .IFTGAbout-description,
    .IFTGSplash-description,
    .IFTGShopSys-description,
    .IFTGGameplay-description {
        font-size: 20px;
        line-height: 1.4;
        padding: 0 20px;
    }

    .IFTGvideo-description h2,
    .IFTGAbout-description h2,
    .IFTGSplash-description h2,
    .IFTGShopSys-description h2,
    .IFTGGameplay-description h2 {
        font-size: 26px;
    }
}

/* ------------------------ TABLET / SMALL-WINDOW Responsive (768px) ------------------------ */
@media (max-width: 768px) {

    .navbar {
        padding: 15px 15px;
        gap: 10px;
    }
    .navbar-spacer {
    height: 180px;
    /* same height as navbar to prevent content overlap */
}
    .nav-btn {
        font-size: 14px;
        padding: 6px 14px;
    }

    /* Section layout */
    .IFTGvideo-section,
    .IFTGAbout-section,
    .GameSplash-section,
    .ShopSys-section,
    .Gameplay-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 95%;
    }

    /* Cards */
    .IFTGvideo-card,
    .IFTGAbout-card,
    .IFTGGameSplash-card,
    .IFTGShopSys-card {
        width: 95%;
        padding: 18px;
        height: auto;
    }

    /* Images */
    .IFTG-video,
    .gameAbout-image,
    .GameSplash-image,
    .ShopSys-image,
    .Gameplay-image {
        width: 100%;
        height: auto;
        max-height: 350px;
    }

    /* Gameplay vertical stacking */
    .Gameplay-images {
        flex-direction: column;
        gap: 20px;
    }

    /* Text */
    .IFTGvideo-description,
    .IFTGAbout-description,
    .IFTGSplash-description,
    .IFTGShopSys-description,
    .IFTGGameplay-description {
        font-size: 18px;
        line-height: 1.4;
        padding: 0 10px;
        text-align: center;
        margin-bottom: 10px;
    }

    .IFTGvideo-description h2,
    .IFTGAbout-description h2,
    .IFTGSplash-description h2,
    .IFTGShopSys-description h2,
    .IFTGGameplay-description h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    /* Divider spacing */
    .section-divider,
    .top-hr {
        margin: 40px auto;
    }
}

/* ---------------------------------- MOBILE PHONE Responsive (480px) -------------------------- */
@media (max-width: 480px) {

    /* NAVBAR */
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 25px 15px;
        gap: 10px;
    }
    
    .navbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .arrow-btn-left {
        top: 8px;
        left: 12px;
        font-size: 18px;
    }

    /* Titles */
    h1, h2 {
        font-size: 24px;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    /* Cards */
    .IFTGvideo-card,
    .IFTGAbout-card,
    .IFTGGameSplash-card,
    .IFTGShopSys-card {
        width: 95%;
        padding: 15px;
        margin: 0 auto 20px auto;
    }

    /* Sections vertical */
    .IFTGvideo-section,
    .IFTGAbout-section,
    .GameSplash-section,
    .ShopSys-section,
    .Gameplay-section {
        flex-direction: column;
        max-width: 95%;
        gap: 18px;
    }

    /* Images */
    .IFTG-video,
    .gameAbout-image,
    .GameSplash-image,
    .ShopSys-image,
    .Gameplay-image {
        max-height: 230px;
        object-fit: cover;
        width: 100%;
    }

    /* Text */
    .IFTGvideo-description,
    .IFTGAbout-description,
    .IFTGSplash-description,
    .IFTGShopSys-description,
    .IFTGGameplay-description {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .IFTGvideo-description h2,
    .IFTGAbout-description h2,
    .IFTGSplash-description h2,
    .IFTGShopSys-description h2,
    .IFTGGameplay-description h2 {
        font-size: 20px;
    }

    /* Gameplay stacked */
    .Gameplay-images {
        flex-direction: column;
        gap: 15px;
    }

    body {
        padding-top: 5px;
    }
}
