/* Mobile Design - 479px and below */

/* Base adjustments */
@media (max-width: 480px) {


    body {
        height: auto;
        padding: 0;
        margin: 0;
        width: 100vw;
        height: 100vh;
    }

    .mainDiv {
        width: 100%;
        height: auto;
        position: relative;
        overflow-x: hidden;
    }


    .banner {
        height: 0px !important;
        visibility: hidden !important;
    }

    .navDiv {
        height: 50%;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        position: relative;
        background-color: white;
    }

    #slideshow-div {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        position: relative;
        background-color: white;
    }




    /* Navigation arrows */
    .mover {
        height: 100% !important;
        width: 15%;
        font-size: 30px;
        z-index: 1001;
        flex-shrink: 0;
        min-width: 15%;
        display: flex;
        position: absolute;
        background-color: rgba(255, 0, 0, 0) !important;
        align-items: center;
        justify-content: center;
        background-color: transparent;
    }

    #mv-bck {
        left: 0;
    }

    #mv-fwr {
        right: 0;
    }

    /* Content area */
    .content {
        display: grid;
        grid-template-rows: 100%;
        gap: 0px;
        background-color: rgb(0, 0, 0);
        position: absolute;
        transition: 0.5s ease-in-out;
        height: 50%;
        z-index: 1000;
        overflow: hidden;
        left: 0%;
        overflow: hidden;
        width: 100%;
    }

    /* Slides */
    /* Slides */
    .undercontent {
        width: 100%;
        left: 0;
        padding: 0px;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        transform: translateX(0);
        padding-left: 55px;
        padding-right: 55px;
        position: relative;
        height: 100%;
        overflow-y: auto;


        justify-content: center;
        align-items: center;

        overflow-x: hidden;
        background-color: rgb(0, 0, 0);
    }


    .text-undercontent>*{
        margin: 10px;
    }


    .text-undercontent {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .image-on-bottom>.text-undercontent {
        grid-row-start: 1 !important;
        grid-row-end: 1 !important;
        grid-column-start: 1 !important;
        grid-column-end: 3 !important;
    }

    .image-on-bottom>img {
        grid-row-start: 2;
        grid-row-end: 3;
        grid-column-start: 1;
        grid-column-end: 3;
        max-width: 150%;
        width: 150%;
        max-height: 50%;
        left: -25%;
        height: 100%;
        top: -15%;
    }
    .mobile-higher{
        top:-25% !important;
        height: 50% !important;
        width: 130% !important;
        left: -10% !important;
    }


    .image-on-right>.text-undercontent {
        grid-row-start: 1 !important;
        grid-row-end: 2 !important;
        grid-column: 1 !important;
    }

    .image-on-right>img {
        grid-row-start: 1;
        grid-row-end: 3;
        grid-column: 2;
        max-width: 200%;
        width: 200%;
        max-height: 50%;
        left: -50%;
        height: 100%;
    }

    /* Light content section */
    #lantern {
        position: relative;
        z-index: 111;
        top: 5vh;
        width: 100%;
    }

    #lantern>img {
        display: none;
    }

    #lantern>.light_content {
        width: 100%;
        height: auto;
        top: 0;
        position: relative;
        padding: 30px 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .light_content>span {
        font-size: 20px;
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .top-margin-100px {
        margin-top: 20px !important;
    }

    /* Dots navigation */
    .dot-holder {
        width: 100%;
        gap: 5px;
        justify-content: center;
        position: absolute;
        top: auto;
        bottom: 10px;
        left: 0;
        right: 0;
        z-index: 10001;
    }

    .dot-holder>div {
        width: 8px;
        height: 8px;
        border-radius: 100%;
    }

    /* Banner adjustments */
    .banner {
        height: 35px;
        width: 300vw !important;
        left: -150vw;
        font-size: 14px;
        line-height: 35px;
        padding: 0;
        margin: 0;
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
        border: 3px solid rgb(00, 3, 44);
        display: grid;
    }

    .banner>span {
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .banner>span>a {
        font-size: 12px;
    }

    /* Projects section */
    .ghost {
        width: 100%;
        left: 0;
        padding: 20px;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 30px;
        justify-items: center;
        position: relative;
    }

    /* Project boxes */
    .box {
        width: 100%;
        max-width: 320px;
        height: auto;
        padding: 30px 20px;
        box-sizing: border-box;
        border-radius: 20px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        box-shadow: 3px 3px rgb(0, 0, 0);
    }

    .box.active {
        opacity: 1;
        transform: translateX(0);
    }

    .box>img {
        grid-column: 1;
        grid-row: 2;
        max-width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: contain;
        position: relative;
        top: 0;
        left: 0;
    }

    .box>a {
        grid-column: 1;
        grid-row: 1;
        color: black;
    }

    .box>a>h1 {
        font-size: 20px;
        margin: 0;
        padding: 0;
    }

    .box>p {
        grid-column: 1;
        grid-row: 3;
        font-size: 13px;
        margin: 0;
        padding: 0;
        position: relative;
        left: 0;
    }

    /* Utility classes adjustments */
    .fill-height {
        height: 100%;
        position: absolute;
    }

    .fill-width {
        width: 100%;
        position: relative;
    }

    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .horizontal-flex {
        display: flex;
        flex-direction: row;
    }

    .al-txt-cntr {
        justify-content: center;
    }

    .al-txt-mdl {
        display: flex;
        align-items: center;
    }

    .al-txt-btm {
        align-items: flex-end;
    }

    /* Image rotation classes */
    .rotate90 {
        transform: rotate(90deg) !important;
    }

    .flip-horizontal {
        transform: scale(-1, 1);
    }

    .extra-large,
    .larger,
    .graph,
    .mega-large,
    .medium,
    .medium-high,
    .medium-higher {
        height: auto !important;
        max-height: 150px !important;
        object-fit: contain;
    }

    .higher {
        top: 0;
    }


    .override-pos-absolute {
        position: absolute !important;
    }

    .override-pos-relative {
        position: relative !important;
    }

    .smaller {
        height: auto !important;
    }

    /* Hide elements that clutter mobile */
    #lantern>img {
        display: none;
    }

    /* Ensure no overflow */

    /* Touch-friendly sizes */
    .mover {
        min-height: 44px;
        min-width: 44px;
    }

    .dot-holder>div {
        min-width: 8px;
        min-height: 8px;
    }

    /* Prevent text clipping */
    .light_content {
        line-height: 1.5;
    }

    .light_content>span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Adjust keyframe animations for mobile */
    @keyframes slideRight {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(50vw);
        }
    }

    .only-mobile {
        width: 100%;
        visibility: visible;
        height: 30%;
        position: absolute;
        display: grid;
        grid-template-rows: repeat(5, 1fr);
        flex-direction: column;
        align-items: center;
        color: black;
        background-color: rgb(0, 0, 0);
        background-image: url("../img/light.png");
        background-size: 100%;
        transition: transform 0.1s ease-in-out;
        transform: translateY(-80%);
        z-index: 1000;
    }

    .only-mobile>.element {
        width: 100%;
        text-align: center;


        font-size: 20px;
        background-color: transparent;
        line-height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-decoration: underline;
    }

    .element>a {
        color: rgb(209, 113, 3);
    }

    .element>a:visited {
        color: rgb(158, 86, 4);
    }


    :root {
        --arrow-rotate: 0deg;
    }

    .roller {
        background-color: white;
        border-bottom: 5px double rgb(0, 0, 0);
    }

    .roller::before {
        content: "";
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../img/tria.svg");
        background-repeat: no-repeat;
        background-size: 8%;
        transition: transform 0.5s ease-out;
        transform: rotate(var(--arrow-rotate));

        background-position: center;
        z-index: -1;
    }


    .mobile-extra-smaller {
        max-width: 130% !important;
        left: -12% !important;
    }
}