/* Navigation Bar for better Navigation of pages */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #b4a78c, #776c57);
    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(150, 126, 95);
    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(71, 57, 38), #000000, #685539);
    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;
}
/* --------------------------------------Info Section (video) Style and layout--------------------------------------------------------- */
.SSVidDesign-card {
    flex: 1;
    max-width: 50%;
    background: rgb(73, 62, 45);
    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;
}

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

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


/* --------------------------------------SHopsimulator Info/Description Section-------------------------------------------------------- */
.ShopSimUML-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid black;
    background: rgb(73, 62, 45);
    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;
}

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

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

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

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

/* ---------------------------------- ShopSimulator Video/ Description -----------------------*/
.ShopSimVid-card {
    display: flex;
    flex-direction: flex;
    text-align: left;
    align-items: left;
    border: 2px solid black;
    background: rgb(73, 62, 45);
    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;
}

.Gameplay-images {
    display: flex;
}

.ShopSimVideo-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-top: 40px;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-left: 5px;
}
.ShopSimVid-description {
    flex: 1;
    margin-bottom: 100px;
    color: black;
    font-size: 24px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px black;
}

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

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

    /* VIDEO SECTION becomes 1 column */
    .SSVid-section {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
        max-width: 95%;
        margin: 0 auto;
        text-align: center;
    }

    .SSVidDesign-card {
        width: 90%;
        padding: 20px;
        max-width: 950px;
    }

    .SSVid-Video {
        width: 100%;
        max-height: 520px;
        object-fit: cover;
    }

    .SSVid-description {
        font-size: 22px;
        padding: 0 20px;
    }

    .SSVid-description h2 {
        font-size: 28px;
    }

    /* UML, INFO SECTION 1 column */
    .info-section {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        max-width: 95%;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .ShopSimUML-card {
        width: 90%;
        padding: 20px;
    }

    .coding-image {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
    }

    .ShopSim-description {
        font-size: 20px;
        padding: 0 20px;
    }

    .ShopSim-description h2 {
        font-size: 26px;
    }

    /* VIDEO SECTION (Gameplay) */
    .ShopSimVideo-section {
        width: 95%;
        margin: 40px auto 0 auto;
        gap: 30px;
    }

    .ShopSimVid-card {
        width: 90%;
        padding: 20px;
        max-width: 950px;
    }

    .ShopSimVid-description {
        font-size: 20px;
        padding: 0 20px;
    }

    .ShopSimVid-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 */
}

    /* Stack everything vertically */
    .SSVid-section,
    .info-section,
    .ShopSimVideo-section {
        flex-direction: column;
        width: 95%;
        gap: 20px;
    }

    /* Cards */
    .SSVidDesign-card,
    .ShopSimUML-card,
    .ShopSimVid-card {
        width: 95%;
        padding: 18px;
        height: auto;
    }

    /* Images */
    .SSVid-Video,
    .coding-image,
    .video-image {
        width: 100%;
        height: auto;
        max-height: 350px;
    }

    .ShopSimVideo-section img,
    .ShopSimVideo-section video {
        width: 100%;
    }

    /* Descriptions */
    .SSVid-description,
    .ShopSim-description,
    .ShopSimVid-description {
        font-size: 18px;
        line-height: 1.4;
        text-align: center;
        padding: 0 10px;
    }

    .SSVid-description h2,
    .ShopSim-description h2,
    .ShopSimVid-description h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

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

    .nav-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

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

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

    /* Sections stack fully */
    .SSVid-section,
    .info-section,
    .ShopSimVideo-section {
        max-width: 95%;
        gap: 18px;
        margin: 0 auto;
        flex-direction: column;
    }

    /* Cards */
    .SSVidDesign-card,
    .ShopSimUML-card,
    .ShopSimVid-card {
        width: 95%;
        padding: 15px;
        margin-bottom: 20px;
    }

    /* Images */
    .SSVid-Video,
    .coding-image,
    .video-image {
        width: 100%;
        max-height: 230px;
        object-fit: cover;
    }

    /* Text */
    .SSVid-description,
    .ShopSim-description,
    .ShopSimVid-description {
        font-size: 16px;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .SSVid-description h2,
    .ShopSim-description h2,
    .ShopSimVid-description h2 {
        font-size: 20px;
    }

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

    body {
        padding-top: 0px;
    }
}
