/* --------------------------------------Main Page Style--------------------------------------------------------- */
/* Navigation Bar for better Navigation of pages */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #7e0808, #dbdbd9);
    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(139, 7, 7);
    background-size: cover;
    display: block;
    margin: 0;
    min-height: 100vh;
    padding-top: 30px;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

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

.arrow-btn-left {
    position: fixed;
    top: 20px;
    left: 25px;
    color: white;
    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: white;
    font-weight: bold;
    text-shadow: 1px 1px 1px black;
}

.section-divider,
.top-hr {
    width: 100%;
    height: 3px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(90deg, white, #a00606, white);
    margin: 60px auto 40px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
footer{
    text-align: center;
    color: white;
    text-shadow: 2px 2px 2px black;
    margin-top: 50px;
}
/* --------------------------------------LeapCity 2 Video Description/Project Info--------------------------*/
.LC2VidDesign-card {
    flex: 1;
    max-width: 50%;
    background: rgb(209, 76, 83);
    border: 2px solid white;
    box-shadow: 0 0 10px white;
    width: 100%;
    padding: 30px;
    border-radius: 20px;
    margin-bottom:70px;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

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

.LC2VidGame-description h2 {
    color: white;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px black;
    font-size: 30px;
}
.LC2project-info-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
    color: white;
    font-size: 22px;
    line-height: 1.6;
    text-shadow: 2px 2px 2px black;
  }
  .LC2project-info-list li{
    margin-bottom: 5px;
  }
  .LC2project-info-list strong{
    color: white;
    font-weight: 900;
    text-shadow: 1px 1px 2px black;
  }


/* --------------------------------------LeapCity 2 Level 1 Design Section--------------------------*/
.LC2Lvl1-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid white;
    background: rgb(209, 76, 83);
    border-radius: 20px;
    padding: 25px;
    width: 950px;
    height: auto;
    max-width: 1000px;
    box-shadow: 0 0 10px white;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

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

.LC2level-image {
    width: 950px;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    border: 2px solid white;
    box-shadow: 0 0 10px white;
}

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

.LC2Game-description h2 {
    color: white;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px black;
    font-size: 30px;
}
/* ------------------------------------LeapCity2 Level 2 Image -----------------------------*/
.LC2Lvl2-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid white;
    background: rgb(209, 76, 83);
    border-radius: 20px;
    padding: 25px;
    width: 950px;
    height: auto;
    max-width: 1000px;
    box-shadow: 0 0 10px white;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

.LC2level2-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    width: 100%;
    max-width: 1800px;
    margin-left: 10px;
    padding: 0 auto;
}
/* ------------------------------------LeapCity2 Level 2 Image -----------------------------*/
.LC2Lvl3-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid white;
    background: rgb(209, 76, 83);
    border-radius: 20px;
    padding: 25px;
    width: 950px;
    height: auto;
    max-width: 1000px;
    box-shadow: 0 0 10px white;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

.LC2level3-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
    width: 100%;
    max-width: 1800px;
    margin-left: 10px;
    padding: 0 auto;
}
/* ------------------------------------LeapCity2 Level 2 Image -----------------------------*/
.LC2Lvl4-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid white;
    background: rgb(209, 76, 83);
    border-radius: 20px;
    padding: 25px;
    width: 950px;
    height: auto;
    max-width: 1000px;
    box-shadow: 0 0 10px white;
    transition: transform 0.3s ease, box-shadow 0.3 ease;
}

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

/* ------------------------------- 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;
    }

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

    /* Sections collapse to 1 column */
    .LC2Vid-section,
    .LC2level-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
    }

    /* Cards resize */
    .LC2VidDesign-card,
    .LC2LvlDesign-card {
        width: 90%;
        max-width: 950px;
        padding: 20px;
        margin: 0 auto 40px -10px;
    }

    /* Images smaller */
    .LC2Vid-Video,
    .LC2level-image {
        width: 100%;
        max-height: 550px;
        object-fit: cover;
    }

    /* Text resize */
    .LC2VidGame-description,
    .LC2Game-description {
        font-size: 20px;
        line-height: 1.4;
        padding: 0 20px;
    }

    .LC2VidGame-description h2,
    .LC2Game-description h2 {
        font-size: 26px;
    }
}

/* ---------------------------------- TABLET RESPONSIVE (768px) ------------------------------- */
@media (max-width: 768px) {

    /* NAVBAR */
    .navbar {
        padding: 15px 15px;
        gap: 10px;
    }

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

    /* Sections vertical */
    .LC2Vid-section,
    .LC2level-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 95%;
    }

    /* Cards */
    .LC2VidDesign-card,
    .LC2LvlDesign-card {
        width: 95%;
        padding: 18px;
    }

    /* Images */
    .LC2Vid-Video,
    .LC2level-image {
        width: 100%;
        max-height: 380px;
        object-fit: cover;
    }

    /* Text */
    .LC2VidGame-description,
    .LC2Game-description {
        font-size: 18px;
        line-height: 1.4;
        padding: 0 10px;
        text-align: center;
    }

    .LC2VidGame-description h2,
    .LC2Game-description h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

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

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

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

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

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

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

    /* Cards */
    .LC2VidDesign-card,
    .LC2LvlDesign-card {
        width: 95%;
        padding: 15px;
        margin-bottom: 25px;
    }

    /* Sections vertical */
    .LC2Vid-section,
    .LC2level-section {
        flex-direction: column;
        max-width: 95%;
        gap: 18px;
    }

    /* Images */
    .LC2Vid-Video,
    .LC2level-image {
        width: 100%;
        max-height: 240px;
        object-fit: cover;
    }

    /* Text */
    .LC2VidGame-description,
    .LC2Game-description {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .LC2VidGame-description h2,
    .LC2Game-description h2 {
        font-size: 20px;
    }

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

    body {
        padding-top: 0px;
    }
}