@import "../config";

@media screen and (max-width: 1161px) {
    .wrapper {
        width: 100%;
        padding: 0 20px;
    }

    #toggle-menu {
        display: block;
    }
    #slide-menu {
        display: block;
    }
    #navbar {
        .dbl_blk {
            .img_blk {
                width: 100%;
            }
            .nav_blk {
                display: none;
            }
        }
        .abstract-btn{
            right: 57px;
        }
    }
}

@media screen and (max-width: 900px) {

    #home {
        #imp_date {
            .left_blk {
                width: 100%;
                margin-bottom: 20px;
            }
            .right_blk {
                width: 100%;

                .blks {
                    margin-left: -20px;
                }
            }
        }

        #speaker {
            .blks {
                .blk {
                    width: calc((100% / 2) - 40px);
                    margin-bottom: 20px;
                }
            }
        }
    }

    #contact{
        .dbl_blk{
            .inner{
                width: calc(100%);
            }
            .left_blk{
                max-height: 300px;
                overflow: hidden;
            }
            .right_blk{
                padding: 20px;

                .blks{
                    .blk{
                        &:last-child{
                            margin-bottom: 0;
                        }
                    }
                }
            }
        }
    }

    #submission {
        form {
            .row.double {
                .blk {
                    width: 100%;
                    &:first-child {
                        margin-bottom: 10px;
                    }

                    label {
                        &.half {
                            width: 280px;
                        }
                    }
                    input {
                        &.half {
                            width: calc(100% - 290px);
                        }
                    }
                    select {
                        &.half {
                            width: calc(100% - 290px);
                        }
                    }
                }
            }
            .long-radio {
                label {
                    &.full {
                        width: 280px;
                    }
                }
            }
            input[type="file"] {
                &:after {
                    background: $main_clr;
                }
            }
        }
    }
}

@media screen and (max-width: 800px) {
    #home {
        #who {
            .content {
                transform: translate(-50%, -50%);
                left: 50%;
            }
        }
    }
}

@media screen and (max-width: 700px) {
    #home {

        #banner{
            height: unset;
            padding-bottom: 40px;
            .content{
                .btns{
                    flex-direction: column;

                    p{
                        margin-bottom: 20px;
                    }

                    a{
                        margin-right: 0;
                        margin-bottom: 20px;

                        &:last-child{
                            margin-bottom: 0px;
                        }
                    }
                }
            }
        }

        #about {
            background: none;
            .dbl_blk {
                flex-direction: column;

                .inner {
                    width: 100%;

                    &.right_blk {
                        padding: 20px;
                        background: $main_clr;
                    }
                }
            }
        }

        #event {
            #blks {
                margin-left: 0;
                .blk {
                    width: 100%;
                    margin-left: 0;
                }
            }
        }

        #imp_date {
            .right_blk {
                .blks {
                    margin-left: 0;
                    .blk {
                        display: block;
                        width: 100%;
                        margin-left: 0;
                    }
                }
            }
        }

        #program{
            .dbl_blk{
                .left_blk{
                    width: 100%;
                    margin-bottom: 30px;
                    padding-right: 0;
                }
                .right_blk{
                    width: 100%;
                }
            }
            .tabs {
                .tab.active, .tab.active:hover{
                    background: #1947ba url(../../images/event-list-down.png) no-repeat calc(100% - 20px) center;
                }
            }
            .btns{
                display: block;
                a{
                    margin-bottom: 5px;
                }
            }
        }
    }
}

@media screen and (max-width: 650px) {
    #speakers{
        .dbl_blk {
            display: flex;
            flex-direction: column;
            align-items: center;

            .left_blk{
                margin-bottom: 30px;
                padding-right: 0;
                width: 100%;
                text-align: center;

                img{
                    max-width: 250px;
                }
            }

            .right_blk{
                width: 100%;
            }
        }
    }
}


@media screen and (max-width: 600px) {
    #home {
        #banner {
            height: unset;
            padding-bottom: 40px;
            .content {
                h2 {
                    font-size: 40px;
                    margin-top: 40px;
                    line-height: 40px;
                }
            }
        }

        #learning {
            #dbl_blk {
                flex-direction: column;

                .inner {
                    width: 100%;

                    &.left_blk {
                        margin-bottom: 20px;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 500px) {
    .common-title {
        font-size: 30px;
        line-height: 30px;
    }

    br{
        &.px-80{
            content: " ";
            display: block;
            margin: 50px 0 0;
            line-height: 50px;
        }
    }

    #banner{
        h2{
            font-size: 30px;
            line-height: 35px;
        }
    }

    #home {
        #about{
            padding: 50px 0;
        }

        #event{
            padding: 50px 0;
        }

        #learning{
            padding: 80px 0;
        }

        #who{
            .wrapper{
                height: 400px;
            }
        }

        #imp_date {
            padding: 50px 0;
            .right_blk {
                .blks {
                    .blk {
                        padding: 20px;
                    }
                }
            }
        }

        #committee {
            padding-bottom: 70px;
            .dbl_blk {
                .left_blk {
                    width: 100%;
                    margin-bottom: 40px;

                    ul {
                        display: flex;
                        position: relative;

                        &:after {
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 50%;
                            transform: translateX(-50%);
                            height: 100%;
                            width: 2px;
                            background: $main_clr;
                        }

                        li {
                            text-align: center;
                            font-size: 15px;
                            width: calc(100% / 2);
                            &:first-child {
                                padding: 0;
                                border-bottom: 0;
                            }
                            &:last-child {
                                padding: 0;
                            }
                        }
                    }
                }
                .right_blk {
                    width: 100%;
                }
            }

            .owl-theme {
                .owl-nav {
                    margin: 0;
                    left: 50%;
                    transform: translateX(-50%);
                    bottom: -70px;
                }
            }
        }

        #speaker{
            padding: 50px 0;
        }

        #program{
            .dbl_blk{
                .right_blk{
                    table{
                        tr{
                            td{
                                &:first-child{
                                    width: 128px;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    #submission {
        form {
            label {
                width: 100% !important;
                margin-bottom: 10px;
                padding: 0;
                border: 0;
                padding-left: 5px;
            }
            input {
                width: 100% !important;
                margin-bottom: 20px;
            }
            select {
                width: 100% !important;
                margin-bottom: 20px;
            }

            .row {
                &.checkbox {
                    margin: 0;

                    input {
                        width: unset !important;
                        margin-bottom: 0 !important;
                    }
                    label {
                        width: unset !important;
                        margin-bottom: 0 !important;
                    }
                    .check-1 {
                        margin-left: 25px !important;
                        width: calc(100% - 48px) !important;
                        margin-bottom: 20px !important;
                    }
                }
                &.radio {
                    .btns {
                        width: 100%;

                        .btn {
                            width: 100%;

                            input[type="radio"] {
                                position: relative;
                                margin-bottom: 0;
                            }

                            input[type="radio"] + .radio-label {
                                margin-bottom: 0;
                            }
                        }
                    }
                    label {
                        &.full {
                            margin-bottom: 20px;
                        }
                    }
                }
            }

            .submit {
                margin-top: 0;
            }

            .long-radio {
                label {
                    &.full {
                        width: 100%;
                    }
                }
            }

            .abs_btn{
                width: 100% !important;
                margin-bottom: 20px !important;
            }
        }
    }
}

@media screen and (max-width: 450px) {
    #home{
        #about{
            .dbl_blk{
                .left_blk{
                    .blks{
                        .blk{
                            width: 100%;
                            background: #dae2f7;
                            padding: 15px 0;
                            padding-left: 20px;
                            margin-bottom: 15px;
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 400px) {
    #home{
        #speaker {
            .blks {
                margin-left: 0;
                .blk {
                    width: calc(100%);
                    margin-bottom: 20px;
                    margin-left: 0;
                }
            }
        }
    }
}
