@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@100;400&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'IBM CGA';
    src: url(../../fonts/IbmCga.ttf);
}

@font-face {
    font-family: Verite;
    src: url(../../fonts/Verite.ttf);
}

.page {
    height: 100%;
    width: 100%;
    background-color: black;
}

.magnify-wrapper {
    position: fixed;
    right: 2vw;
    top: 1vh;
    display: flex;
    gap: 1vw;
    z-index: 100;
}

.magnify-btn {
    font-family: 'IBM CGA', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.btn-minus {
    color: #ff0000 !important;
}

.btn-plus {
    color: #009933 !important;
}
.main-img {
    transition: .1s all;
}

.main-img:hover {
    transform: scale(1.2);
}

.main p {
    margin-bottom: 0!important;
    font-size: 1.2rem;
}

.page .main {
    position: relative;
    min-height: 100svh;
    background-size: cover !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../../images/p3/btn2/p1/bg.png") no-repeat center top;
}

.main .main-img-wrapper {
    width: 80vw;
    position: relative;
    display: flex;
    min-height: 45vh;
    align-items: center;
    justify-content: center;
}

.main .main-img-wrapper img {
    width: 95%;
}


.main .sm-main-img-wrapper {
    width: 40vh; !important;
}

.main .title-wrapper {
    color: white;
    position: absolute;
    font-size: .7rem;
    left: 4vw;
    top: 4vh;
    font-family: 'IBM CGA', sans-serif;
}

.main .title-wrapper p{
    font-size: .9rem;
}

.main .btn-wrapper, .main .sub-btn-wrapper {
    color: white;
    position: absolute;
    font-family: 'IBM CGA', sans-serif;
    transition: .3s all;
    z-index: 2;
    user-select: none;
    font-size: .9rem;
}

.main .sub-img-wrapper {
    z-index: 2;
    position: absolute;
    transition: .3s all;
    width: 40%;
    aspect-ratio: 700/1061;
}

.main .btn-wrapper:hover {
    color: #ff0000;
}

.main .pre-wrapper {
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    left: 4vw;
}

.main .next-wrapper {
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    right: 4vw;
}

.main .return-wrapper {
    left: 4vw;
    bottom: 4vh;
}

.sc-red {
    color: #ff0000 !important;
}

.sc-green {
    color: #009933 !important;
}

.sub-img-wrapper {
    opacity: 0;
    transform: scale(.6);
}

/* ----------- Project 1 Card 1 --------------- */

.show {
    opacity: 1;
    transform: scale(1);
}

.p1-sub1-wrapper {
    top: 75%;
    right: 20%;
}

.p1-sub1-img-wrapper {
    bottom: -30%;
    left: -5%;
}

.p1-sub2-wrapper {
    bottom: 2%;
    right: -5%;
}

.p1-sub2-img-wrapper {
    bottom: 16%;
    left: 0;
}

/* ----------- Project 2 Card 1 --------------- */

.p2-sub1-wrapper {
    bottom: 5%;
    left: 0;
}

.p2-sub1-img-wrapper {
    top: -38%;
    right: 0;
}

/* ----------- Project 4 Card 1 --------------- */

.p4-sub1-wrapper {
    top: -15%;
    right: 5%;
}

.p4-sub1-img-wrapper {
    top: 60%;
    left: -2%;
}

/* ----------- Project 5 Card 1 --------------- */

.p5-sub1-wrapper {
    top: -15%;
    left: 25%;
}

.p5-sub1-img-wrapper {
    bottom: -35%;
    right: 0;
}

/* ----------- Project 6 Card 1 --------------- */

.p6-sub1-wrapper {
    bottom: -10%;
    right: 0;
}

.p6-sub1-img-wrapper {
    bottom: -30%;
    left: 0;
}

.p6-sub2-wrapper {
    bottom: -25%;
    right: 0;
}

.p6-sub2-img-wrapper {
    top: -30%;
    left: -5%;
}

/* ----------- Project 8 Card 1 --------------- */

.p8-sub1-wrapper {
    top: -25%;
    right: 30%;
}

.p8-sub1-img-wrapper {
    bottom: -36%;
    left: 20%;
}

.p8-sub2-wrapper {
    bottom: -10%;
    right: 12%;
}

.p8-sub2-img-wrapper {
    bottom: -15%;
    left: -3%;
}

.p8-sub3-wrapper {
    top: -10%;
    right: 5%;
}

.p8-sub3-img-wrapper {
    top: -25%;
    left: 0;
}

/* ----------- Project 9 Card 1 --------------- */

.p9-sub1-wrapper {
    bottom: -23vh;
    right: 25%;
}

.p9-sub1-img-wrapper {
    bottom: -20vh;
    left: 0;
}

.p9-sub2-wrapper {
    bottom: -23vh;
    right: 15%;
}

.p9-sub2-img-wrapper {
    top: -20vh;
    right: 20%;
}

.p9-sub3-wrapper {
    bottom: -23vh;
    right: 5%;
}

.p9-sub3-img-wrapper {
    top: -15vh;
    right: -7%;
}

/* ----------- Project 10 Card 1 --------------- */

.p10-sub1-wrapper {
    top: -5vh;
    right: 0;
}

.p10-sub1-img-wrapper {
    bottom: -15vh;
    right: -5%;
}

@media only screen and (orientation: landscape) and (max-width: 992px) {
    .page .main {
        padding: 30vw 0;
    }

    .main .main-img-wrapper {
        width: 70vw;
    }
}

@media only screen and (min-width: 992px) {

    .page .main {
        width: 100%;
        aspect-ratio: 16/9;
        padding: 0;
        overflow-y: hidden;
    }

    .main .main-img-wrapper {
        width: 50vw;
        min-height: 54.5vh;
        margin-top: 7vw;
    }

    .main .sub-img-wrapper {
        width: 37%;
    }

    .main .sub-btn-wrapper p, .main .btn-wrapper p {
        font-size: 1.2vw;
    }

    .main .title-wrapper p{
        font-size: 1.1vw;
        line-height: 1.3em;
    }

    .main .title-wrapper {
        left: 2vw;
    }

    .main .pre-wrapper {
        left: 2vw;
        font-size: 1.1vw;
    }

    .main .next-wrapper {
        right: 2vw;
        font-size: 1.1vw;
    }

    .main .return-wrapper {
        left: 2vw;
        font-size: 1.1vw;
    }

    /* ----------- Project 1 Card 1 --------------- */

    .show {
        opacity: 1;
        transform: scale(1);
    }

    .p1-sub1-wrapper {
        top: 50%;
        right: -10%;
    }

    .p1-sub1-img-wrapper {
        top: 5%;
        left: -17%;
    }

    .p1-sub2-wrapper {
        bottom: 15%;
        right: -30%;
    }

    .p1-sub2-img-wrapper {
        bottom: 25%;
        left:8%;
    }


    /* ----------- Project 2 Card 1 --------------- */

    .p2-sub1-wrapper {
        bottom: 30%;
        left: -25%;
    }

    .p2-sub1-img-wrapper {
        top: 15%;
        right: -35%;
    }

    /* ----------- Project 4 Card 1 --------------- */

    .p4-sub1-wrapper {
        top: 9%;
        right: -7%;
    }

    .p4-sub1-img-wrapper {
        top: 40%;
        left: -15%;
    }

    /* ----------- Project 5 Card 1 --------------- */

    .p5-sub1-wrapper {
        top: 0;
        left: 10%;
    }

    .p5-sub1-img-wrapper {
        top: 43%;
        right: -27%;
    }

    /* ----------- Project 6 Card 1 --------------- */

    .p6-sub1-wrapper {
        bottom: 20%;
        right: -20%;
    }

    .p6-sub1-img-wrapper {
        bottom: -1%;
        left: 8%;
    }

    .p6-sub2-wrapper {
        bottom: 10%;
        right: -20%;
    }

    .p6-sub2-img-wrapper {
        top: 13%;
        left: -30%;
    }

    /* ----------- Project 8 Card 1 --------------- */

    .p8-sub1-wrapper {
        top: 15%;
        right: -8%;
    }

    .p8-sub1-img-wrapper {
        top: 26%;
        right: -24%;
        left: initial;
    }

    .p8-sub2-wrapper {
        bottom: 5%;
        right: -26%;
    }

    .p8-sub2-img-wrapper {
        top: 40%;
        right: -2%;
        left: initial;
    }

    .p8-sub3-wrapper {
        top: 25%;
        right: -26%;
    }

    .p8-sub3-img-wrapper {
        top: 15%;
        left: -16%;
    }

    /* ----------- Project 9 Card 1 --------------- */

    .p9-sub1-wrapper {
        bottom: -22%;
        right: -16%;
    }

    .p9-sub1-img-wrapper {
        top: 35%;
        left: -35%;
    }

    .p9-sub2-wrapper {
        bottom: -22%;
        right: -23%;
    }

    .p9-sub2-img-wrapper {
        top: -35%;
        left: -35%;
    }

    .p9-sub3-wrapper {
        bottom: -22%;
        right: -30%;
    }

    .p9-sub3-img-wrapper {
        top: 25%;
        right: -35%;
    }

    /* ----------- Project 10 Card 1 --------------- */

    .p10-sub1-wrapper {
        top: 0;
        right: -35%;
    }

    .p10-sub1-img-wrapper {
        bottom: initial;
        top: 40%;
        right: -35%;
    }

}
