/* ========================================= Global Setting ========================================= */
* {
    box-sizing: border-box;
}

body {
    width:100%;
    font-family: "Josefin Sans", sans-serif;
    margin: 0;
    color: #1C1C1C; /*font color*/

    -webkit-user-select: none; 
    -ms-user-select: none;      
    user-select: none;         
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.bodyFont_light{
    font-size: 14px;
    font-weight: 400;
}









/* ========================================= Navigation - public ========================================= */

/*-------------navigation bar part------------*/
/*-------------navigation style------------*/
.nav_inside{
    display: flex; /* Have to have this for those below */
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #1C1C1C;
}

.navigation{
    position: fixed; /*it fixed the position, but lose to fit fullscreen, it's the box's self width*/
    width: 100%; /*fill screen width*/
    box-sizing: border-box; /*make sure padding add inside, not push the box more wide than screen*/
    top: 0;
    left: 0;
    z-index: 1000; /*make sure navi is above everything, this means coordinate z = 1000, default auto:0*/

    padding-left: 38px; 
    padding-right: 38px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px); /*the grass blur texture*/

    transition: all 0.2s linear;
}

.NavAndHeading04_SemiBold{
    font-size: 20px;
    font-weight: 600;
}

.nav_buttons{
    display: flex; /* Have to have this for those below */
    flex-direction: row;
    gap: 30px;
}
/*-------------navigation animation------------*/
#main-page-btn{
    transition: all 0.3s ease;
}
#main-page-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}

#archive-btn{
    transition: all 0.3s ease;
}
#archive-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}

#contact-btn{
    transition: all 0.3s ease;
}
#contact-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}

#About-btn{
    transition: all 0.3s ease;
}
#About-btn:hover{
    font-weight: 600;
    letter-spacing: 0.1em;
}
/*----------navigation hamburger for mobile-----------*/
ul {
    list-style: none; /* no black dots */
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;

    transition: transform 0.3s ease-in-out;
}

.hamburger .bar {
    width: 20px;
    height: 2px;
    background-color: #1C1C1C;

    transition: all 0.3s ease;
}

/*---------navigation mobile----------*/
.nav-links {
    position: fixed; 
    top: 0;
    right: -100%; /* default: right side out of the screen */
    width: 100%; 
    height: 100vh; 
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px); /*the grass blur texture*/

    padding-left: 16px;
    padding-right: 16px;
    padding-top: 48px;
    margin-top: 51px;
    
    transition: right 0.4s ease-in-out; /* slide-in animation */
}

.nav-links.active { /* active status */
    right: 0; 
}

.nav-links li {
    width: 100%;
    margin: 12px 0;
    border-bottom: 0.5px solid #FFFFFF; 
    padding-bottom: 8px;
    padding-top: 8px;
}

.nav-links a {
    color: #FFFFFF; 
    font-size: 16px;
    font-weight: 300;
}

.NavAndHeading04_SemiBold.active {
    color: #FFFFFF;
}

.hamburger.active{
    transform: rotate(90deg);
}

.hamburger.active .bar {
    background-color: #FFFFFF;
}

.navigation.mobile{
    position: fixed; /*it fixed the position, but lose to fit fullscreen, it's the box's self width*/
    width: 100%; /*fill screen width*/
    box-sizing: border-box; /*make sure padding add inside, not push the box more wide than screen*/
    top: 0;
    left: 0;
    z-index: 1000; /*make sure navi is above everything, this means coordinate z = 1000, default auto:0*/

    padding: 0 16px;
    background-color: rgba(28, 28, 28, 1);
    backdrop-filter: blur(10px); /*the grass blur texture*/

    transition: all 0.2s linear;
}

body.no-scroll { /* no scroll */
    overflow: hidden !important; 
    height: 100vh !important;    
}











/* ========================================= ContactBar & Buttom - public ========================================= */

/*-------------below are contact bar part------------*/
.NavAndHeading04 {
    font-size: 20px;
    font-weight: 300;
}

.container_inside{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.container_inside_I{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

.NavAndHeading04_slash{
    font-size: 20px;
    font-weight: 300;
    text-decoration: underline;
    width: 100%;
}

.nav_contact{
    display: flex;
    gap: 80px;
}

.nav_contact_I{
    display: flex;
    justify-content: center;
    gap: 108px;
}

.bar_container{
    display: flex;
    flex-direction: column;
    gap: 36px;
}
.nav_contact div:nth-of-type(1){
    width: 10vw;
}
.nav_contact div:nth-of-type(2){
    width: 7vw;
}

.bar_container_I{
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-align: center;
}

.comma_container{
    height: 13px;
    width: 15px;
}

.quotationComma{
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.contact_bar{
    display: flex;
    flex-direction: row;
    padding-left: 38px;
    padding-right: 38px;
    padding-top: 68px;
    padding-bottom: 68px;
    justify-content: space-between;

    background-color: #F9F9F9;
}

.contact_bar_I{
    display: flex;
    flex-direction: column;
    padding-left: 38px;
    padding-right: 38px;
    padding-top: 120px;
    padding-bottom: 120px;

    background-color: #F9F9F9;
    gap: 120px;
}

.phrase{
    display: flex;
    flex-direction: column;
    max-width: 354px;
    gap: 10px;
}

.phrase_I{
    display: flex;
    align-self: center;
    flex-direction: column;
    max-width: 354px;
    gap: 10px;
}

.intro_phrase{
    width: 100%;
    font-size: 20px;
    font-weight: 300;
    display: flex;
    flex-wrap: wrap;
}

.container_inside .NavAndHeading04,
.container_inside_I .NavAndHeading04 {
    transition: all 0.3s ease;
}
.container_inside .NavAndHeading04:hover,
.container_inside_I .NavAndHeading04:hover {
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* blow are the bottom */
.bodyFont{
    font-size: 16px;
    font-weight: 300;
}

.bottom{
    display: flex;
    justify-content: space-between;

    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 20px;

    background-color: #F9F9F9;
}









/* ========================================= firstpar - project_metaphor - public - ========================================= */
.first_part {
    display: flex;
    flex-direction: column;
}
.up_container{
    margin-top: 51px;
    height: calc((100dvh - 51px) / 6*5);
    width: 100%;
    overflow: hidden;

    position: relative;
}
.up_container img{
    width: 100%;
    height: 100%;/* img zoom out abit */
    object-fit: cover;
}
.hero_title {
    position: absolute;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    color: black;
    font-size: 128px; 
    font-weight: 700; 
    
    z-index: 10;
    white-space: nowrap;
}

.osc > div:nth-of-type(2){
    font-size: 10px;
    font-weight: 300;
}
.osc{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}
.bodyFont_slash{
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
}
.down_container > div:nth-of-type(1){
    display: flex;
    flex-wrap: wrap;
    width: 38vw;
}
.bar_container .container_inside{
    display: flex;          
    flex-direction: column;
    gap: 6px;
}
.right_side_part .bar_container{
    display: flex;
    gap: 12px;
    padding-top: 8px;
}
.right_side_part{
    display: flex;
    flex-direction: column;
    flex-direction: row;
    gap: 68px;
}
.down_container{
    padding-left: 58px;
    padding-right: 58px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding-top: 22px;    
    padding-bottom: 22px;
    height: calc((100dvh - 51px) / 6);
}






/* ========================================= img content style - public ========================================= */
.content-img-container {
    max-width: 1280px; /* 限制 PC 端最大宽度，手机端会自动缩小 */
    margin: 0 auto;    /* 整体居中 */
}

.content-img-container img {
    display: block;
    width: 100%;       /* 强制图片占满容器宽度（2x图在这里被压缩变清晰） */
    height: auto;
    border: none;
}





/* ========================================= video content style - public ========================================= */
.video_part {
    display: flex;
    flex-direction: column;
    max-width: 1044px;
    margin: 0 auto;

    padding-top: 48px;
    padding-bottom: 48px;
}
.video {
    display: block;
    width: 100%;
    height: auto;
}
#video_text {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 48px;
    padding-top: 30px;
    padding-bottom: 30px;
    width: 35vw;
}
.video_text p {
    margin-bottom: 25px; 
    text-align: left;  
}
.video_text p:last-child {
    margin-bottom: 0;
}
.text-box {
    flex: 1;
}
#part02_text {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 48px;
    padding-top: 30px;
    padding-bottom: 30px;
    width: 30vw;
}
#part02_text p:nth-of-type(n+2):nth-of-type(-n+4) {
    padding-left: 20px;
}
.second {
    padding-top: 20px;
}









/* ========================================= part03 - private ========================================= */
.part03-container {
    display: flex;
    max-width: 1280px;
    max-height: 855px;
    margin: 0 auto;
    gap: 68px;
}
.work-image-wrapper {
    height: 100%;
    width: 60%;
}
.work-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    overflow: hidden;
    display: block;
}
.info-section {
    flex: 1; 
    background-color: #fff;
    color: #333;
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    padding-bottom: 68px;
}
#part03_text {
    width: 25vw;
}







/* ========================================= part04 - private ========================================= */
.part04-container {
    display: flex;
    max-width: 1280px;
    max-height: 855px;
    margin: 168px auto;
}
.bounus-video-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
}
#bonus_video {
    height: 100%;
}
.bounus-img-container {
    width: 30%;
    height: auto;
    display: flex;
    align-items: center;
}
.bounus-img-container img {
    width: 100%;
    height: auto;
    object-fit: fill;
    overflow: hidden;
    display: block;
}









/* ========================================= Breaking Points - public ========================================= */
/* ========================================= Breaking Points - public ========================================= */
@media screen and (max-width: 1290px) {
    .card_toolKit{
        width: 20vw;
        height:40vh;
    }
}

@media screen and (max-width: 1212px) { /* breaking point from 3items a row to 2*/
    .card_container{
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        gap: 38px;
        padding-left: 38px;
        padding-right: 38px;
        padding-bottom: 120px;
        row-gap: 36px;

        max-width: 1280px;
        margin: 0 auto;
    }
    .img_container{
        width: 100%;
        height: auto;
        overflow: hidden;

        /* find that the img container change ratio, then affects the layout*/
        aspect-ratio: 16 / 9;
    }

    .nav_contact div:nth-of-type(2){
        width: 20vw;
    }
    .nav_contact div:nth-of-type(1){
        width: fit-content;
    }
}

@media screen and (max-width: 1081px) {
    .filter_up,
    .filter_down {
        gap: 16px; 
    }

    .filter .NavAndHeading04{
        font-size: 20px;
    }
}

@media screen and (max-width: 995px) {
    .filter_up,
    .filter_down {
        gap: 10px; 
    }

    .filter .NavAndHeading04{
        font-size: 18px;
    }
}

@media screen and (max-width: 927px) { /*banner breaking point*/
    /*the text in the filter will affect the decorative Archive letters*/
    .banner_inner{
        display: flex;
        flex-direction: column;
        /*why i cant use align-content?*/
        align-items: flex-start;
        width: 100%;
        max-width: 1280px; 
        padding-left: 38px; 
        padding-right: 38px;

        gap: 20px;
    }
    .filter_up{
        gap: 30px;
        display: flex;
        justify-content: flex-start;
    }
    .filter_down{
        gap: 30px;
        display: flex;
        justify-content: flex-start;
        font-weight: 300;
    }
}
@media screen and (max-width: 828px) {
    .bottom{
        padding-left: 16px;
        padding-right: 16px;
    }
    .hamburger {
        display: flex;
    }
    .nav_buttons{
        display: none;
    }
    .card_container{
        display: grid;
        grid-template-columns: repeat(1, 1fr);

        gap: 38px;
        padding-left: 38px;
        padding-right: 38px;
        padding-bottom: 120px;
        row-gap: 36px;

        max-width: 1280px;
        margin: 0 auto;
    }
    .contact_bar{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 38px;
        padding-right: 38px;
        padding-top: 68px;
        padding-bottom: 68px;
        gap: 96px;

        background-color: #F9F9F9;
    }
    .nav_contact{
        display: flex;
        justify-content: space-between;
        width:100%;
    }
    .bar_container{
        display: flex;
        flex-direction: column;
        align-content: space-between;
    }
    .phrase{
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width:100%;
        gap: 10px;
    }
    .banner_img_container{
        display: flex;
        justify-content: flex-start;
        height: 21vh;
        width: 80vw;
        aspect-ratio: 145 / 115;
        flex-direction: column;
    }
    .banner{
        padding-bottom: 24px;

        position: sticky;
        top: -80px;
    }
    /*projects breaking points*/
    .up_container {
        margin-top: 47px;
        height: auto;
        width: 100%;
    }
    .up_container img {
        height: auto;
    }
    .down_container {
        flex-direction: column;
        height: auto; 
        padding: 24px 16px;
        align-items: flex-start;
        gap: 16px;
    }
    .down_container > div:nth-of-type(1) {
        width: 100%; 
    }
    .content_container {
        width: 100vw;
    }
    #video_text {
        width: 80vw;
        padding-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .video_part {
        width: 88vw;
    }
    .work-image-wrapper {
        width: 100%;
    }
    .part03-container {
        flex-direction: column;
        gap: 16px;
    }
    #part03_text {
        width: 75vw;
    }
    .bounus-img-container {
        padding-right: 18px;
        flex: 1;
    }
    .part04-container {
        margin: 48px auto;
    }
    .bounus-video-wrapper {
        width: 60%;
        height: 40vh;
    }
    #part02_text {
        width: 100%;
    }

}

@media screen and (max-width: 696px){
    .filter .NavAndHeading04{
        font-size: 16px;
    }
    .filter_up,
    .filter_down {
        gap: 16px; 
    }
}

@media screen and (max-width: 490px){
    .filter .NavAndHeading04{
        font-size: 14px;
    }
}

@media screen and (max-width: 540px){
    .filter_up,
    .filter_down {
        gap: 12px; 
    }
    .banner_inner, 
    .card_container, 
    .contact_bar, 
    .navigation.mobile,
    .navigation {
        padding-left: 16px; /* original one is 38px */
        padding-right: 16px;
    }
    .card_text .bodyFont,
    .description{
        font-size: 14px;
    }
    .left_text .NavAndHeading04_SemiBold,
    .nav_contact .NavAndHeading04_slash,
    .nav_contact .NavAndHeading04,
    .nav_inside .NavAndHeading04_SemiBold,
    .intro_phrase{
        font-size: 16px;
    }
    .banner{
        position: sticky;
        top: -35px;
    }
    .hamburger .bar {
        width: 16px;
        height: 2px;
    }
    .nav-links {
         margin-top: 47px;
    }
    /* AboutMe page I */
    .intro_text > div:nth-of-type(3),
    .intro_text > div:nth-of-type(4) {
        display: flex;
    }
    .intro_text > div:nth-of-type(1),
    .intro_text > div:nth-of-type(2) {
        display: none;
    }

}

@media screen and (max-width: 431px){
    .filter_up,
    .filter_down {
        gap: 8px; 
    }
    .filter .NavAndHeading04{
        font-size: 14px;
    }
    #PC-filter:hover,
    #MA-filter:hover,
    #UXD-filter:hover,
    #PD-filter:hover,
    #SD-filter:hover,
    #Vi-filter:hover,
    #ALL-filter:hover,
    #Game-filter:hover {
        font-weight: 600;
        letter-spacing: 0.02em;
        cursor: pointer;
    }
    .physics-item {
        font-size: 78px; 
    }
}

@media screen and (max-width: 376px){
    .filter .NavAndHeading04{
        font-size: 13px;
    }

    #PC-filter:hover,
    #MA-filter:hover,
    #UXD-filter:hover,
    #PD-filter:hover,
    #SD-filter:hover,
    #Vi-filter:hover,
    #ALL-filter:hover,
    #Game-filter:hover {
        font-weight: 500;
        letter-spacing: 0em;
        cursor: pointer;
    }
}

@media screen and (max-width: 1205px){
    .contact_btn .line_2{
        display: none;
    }
    .contact_btn{
        flex-direction: column;
        gap: 12px;
        padding-left: 40px;
        background-color: rgba(0, 0, 0, 0);
    }
    .contact_btn .bodyFont{
        width: fit-content;
        background-color: #000000;
        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 4px;
        padding-right: 4px;
        font-size: 16px;
    }
    .intro_text{
        gap: 12px;
        width: 40%;
    }
    .down_part .DisplayH1{
        font-size: 96px;
    }
}

@media screen and (max-width: 730px){
    .down_part .DisplayH1{
        font-size: 68px;
    }
    .introduction_layout{
        padding-top: 48px;
        padding-bottom: 32px;
        margin-top: 47px;
        height: calc(100vh - 47px);
        background-position: 43%, 38%; /*move bg img to right a bit*/
    }
    .intro_text{
        gap: 12px;
        width: 50%;
        height: auto;
        padding-left: 16px;
    }
    .down_part{
        padding-left: 16px;
    }
    .contact_btn{
        flex-direction: column;
        gap: 12px;
        padding-left: 16px;
        background-color: rgba(0, 0, 0, 0);
    }
    .contact_btn .bodyFont{
        font-size: 16px;
    }
}

@media screen and (max-width: 390px){
    .introduction_layout{
        background-position: 43% 38%; /*move bg img to right a bit*/
    }
}

/* AboutMe page II */
@media screen and (min-width: 1660px){
    .card_toolKit{
        gap: 18px;

        width: 16vw;
        height:36vh;
    }
}

@media screen and (max-width: 1182px){
    .card_toolKit{
        gap: 18px;

        width: 20vw;
        height:36vh;
    }
    .card_toolKit .NavAndHeading04{
        font-size: 16px;
    }
    .card_toolKit .Heading03{
        font-size: 20px;
    }
}
@media screen and (max-width: 600px){
    .toolKit {
        background-position: 45% 40%; /*move bg img to right a bit*/
        overflow: hidden;
        padding: 0 0;
    }
    .card_toolKit .NavAndHeading04{
        font-size: 16px;
    }
    .card_toolKit .Heading03{
        font-size: 14px;
    }
    .card_toolKit{
        gap: 16px;

        width: 46vw;
        height:30vh;
    }
    .left_col,
    .right_col {
        flex-direction: row;
        flex-shrink: 0; /*create overflow*/
        gap: 5vh;
    }
    .scroll_part{
        display: flex;
        overflow-x: auto;
        gap: 5vh;
        scrollbar-width: none;

        width: 100%;
        max-width: 100vw;
        padding-top: 30vh;
        padding-right: 32vw;
        padding-left: 32vw;
        direction: rtl;
    }
}
@media screen and (max-width: 376px){
    .scroll_part{
        padding-top: 50vh;
    }
    .card_toolKit .NavAndHeading04{
        font-size: 16px;
    }
    .card_toolKit .Heading03{
        font-size: 14px;
    }
    .card_toolKit{
        width: 46vw;
        height:38vh;
    }
}
/* for the project page */
@media screen and (min-height: 1073px){
    .osc > div:nth-of-type(2){
        font-size: 14px;
    }
    .bodyFont_slash,
    .down_container > div:nth-of-type(1),
    .bar_container .bodyFont_light {
        font-size: 14px;
    }

    /*for the mainpage btn*/
    .float-btn {
        font-size: 112px;
    }
    .inner.hover {
    font-size: 114px;
}
}
@media screen and (max-width: 894px){
    .down_container > div:nth-of-type(1){
        width: 100%;
    }
    .right_side_part{
        gap: 32px;
    }
}
/* this part not finished yet */

/*main page breaking point*/
@media screen and (max-width: 1000px){
    .project_intro_text{
        padding-right: 4vw;
    }
    .hero_title_wrapper{
        flex: 0 0 clamp(120px, 15vw, 350px);
    }
    .gallery_container{
        flex: 0 0 clamp(400px, 48vw, 700px);
    }
    .project_date,
    .project_intro_text {
        font-size: 16px;
    }
    .hero_title_text{
        font-size: 24px;
    }
    .hero_title_wrapper {
        padding-right: 4vw;
    }
}
@media screen and (max-width: 740px){
    .project_details_panel{
        display: none;
    }
    .gallery_container{
        flex: 1;
        width: 100%;
        height: 200px;
    }
    #projectContainer.active{
        margin-top: 64px;
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media screen and (max-width: 376px){
    .gallery_container{
        height: 160px;
    }
}
@media screen and (min-width: 1653px){
    .hero_title_wrapper {
        flex: 0 0 clamp(180px, 28vw, 380px);
    }
}
@media screen and (min-height: 874px){
    .card_toolKit{
        height: 36vh;
    }
}
@media screen and (max-width: 1280px) {
    /*for the mainpage btn*/
    .float-btn {
        font-size: 68px;
    }
    .inner.hover {
    font-size: 70px;
    }
}
@media screen and (max-width: 1008px) {
    /*for the mainpage btn*/
    .float-btn {
        font-size: 68px;
    }
    .inner.hover {
    font-size: 70px;
    }
}
@media screen and (max-width: 780px) {
    /*for the mainpage btn*/
    .float-btn {
        font-size: 54px;
    }
    .inner.hover {
    font-size: 56px;
    }
    #float-myname-btn {
        padding-right: 16px;
        padding-left: 16px;
        padding-top: 16px;
        padding-bottom: 10px;
    }
    .projectList {
        padding-top: 68px;
    }
}
@media screen and (max-width: 431px) {
    /* mobile - mainpage*/
    .float-btn {
        font-size: 44px;
    }
    .inner.hover {
    font-size: 46px;
    }
    .projectList, 
    .project-interaction-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    #float-myname-btn {
        padding-right: 10px;
        padding-left: 10px;
        padding-top: 10px;
        padding-bottom: 6px;
    }
    @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeOut {
        from { opacity: 1; transform: translateY(0px); }
        to { opacity: 0; transform: translateY(4px); }
    }



    /* text ontop of the img*/
    /* Set the parent container as the reference system */
    .gallery_item {
        position: relative; /* position the text relative to this box */
        display: inline-block; /* keep images in their original size */
        overflow: hidden; 
    }

    .gallery_item::before,
    .gallery_item::after {
        position: absolute; 
        z-index: 10; /* text is ontop of img */
        color: white; 
        background-color: #1C1C1C;
        pointer-events: none; 
        padding-left: 2px;
        padding-right: 2px;

        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.8s ease;
    }

    .gallery_item::before {
        content: attr(data-title);
        bottom: 22px;
        right: 10px;
        font-size: 20px;
        font-weight: 500;
    }

    .gallery_item::after {
        content: attr(data-date);
        bottom: 10px;
        right: 10px;
        font-size: 10px;
        font-weight: 400;
    }

    .gallery_item.active::before,
    .gallery_item.active::after {
        opacity: 1;
        transform: translateY(0); 
    }
}
@media screen and (max-width: 376px) {
    /* mobile - mainpage*/
    .float-btn {
        font-size: 35px;
    }
    .inner.hover {
    font-size: 37px;
    }

    .physics-item {
        font-size: 48px; 
    }
}
@media screen and (max-width: 480px) {
    .hero_title {
        font-size: 48px;
        text-align: center;
    }
}