@media screen and (orientation:portrait) {
    .bg{
        height: 100%;
        width: auto;
    }
}
@media (max-width:830px) {
    html{
        font-size: 6.8px;
        scroll-padding-top: 70px;
    }
    #navbar{
        height: 70px;
    }
    #navbar .group2 .item{
        font-size: 20px;
    }
    #header::before{
        content: '';
        display: block;
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        background: black;
        opacity: 0.4;
    }
    
    #header .title-box{
        background: none;
        padding: 0;
        z-index: 9;
    }
    #menu>.title{
        font-size: 10rem !important;
    }
    #us .title{
        font-size: 16rem;
    }
    #us>*{
        text-align: center;
    }
    #us .text{
        font-size: 2.4rem;
        margin: auto;
        margin-bottom: 20px;
    }
    #header .title-box>*{
        transform: none;
    }
    #us{
        flex-direction: column;
        align-items: center;
    }
    #us>*{
        max-width: 80%;
        width: 100%;
        padding: 0;
    }
    .menu-decor{
        display: none;
    }
    .decor1 *{
        z-index: 1;
    }
    .decor1 .title{
        transform: none;
    }
    .decor1 p{
        transform: translateY(-30px);
    }
}
@media (max-width:580px) {
    html{
        font-size: 6px;
    }
    .ml{
        top:-10px;
    }
    #navbar .group2{
        display: flex;
        flex-direction: column;
    }
    #navbar .group2>.items1{
        position: absolute;
        display: flex;
        flex-direction: column;
        top: 0px;left: 0;
        padding:80px 20px 30px;
        background-color: var(--main-color);
        width: 100%;
        z-index: -2;
        box-sizing: border-box;
        transform: translateY(-60vh);
        transition: .5s;
        border-radius: 0 0 30px 30px;
    }
    #navbar .group2 .menu{
        display: block;
        padding: 10px 8px;
    }
    #navbar .group2>.items1>*{
        border-top: 1px solid white;
        padding: 20px 0;
        padding-right: 12px;
        box-sizing: border-box;
        width: 100%;
        justify-content: right;
        margin-left: 0;
        text-align: right;
    }
    #header .line{
        width: 500px;
    }

    .main-item{
        padding-left: 0;
        padding-right: 0;
    }
    #menu .wrapper{
        padding: 20px 30px;
    }
    #footer{
        padding: 50px 40px;
    }
    #footer .info{
        font-size: 3rem;
    }
    #footer .social{
        font-size: 6rem;
        margin-left: 10px;
    }
}
@media (max-width:500px) {
    html{
        font-size: 5.5px;
    }
    #footer{
        flex-direction: column;
    }
    #footer >*>.name{
        justify-content: center;
        font-size: 7rem;
        padding-bottom: 20px;
    }
    #footer .social{
        margin: 20px 0;
    }
}
@media (max-width:418px) {
    #menu .wrapper .title{
        font-size: 7rem;
    }
    #footer{
        padding-left: 10px;
        padding-right: 10px;
    }
}