$primaryColor1: #e9c46a;
$primaryColor2: #f4a261;
$primaryColor3: #e76f51;
$primaryColor3_dark: #974936;
$primaryColor3_darker: #4b241a;
$primaryColor4: #2a9d8f;
$primaryColor5: #264653;
$whiteColor: #ffffff;
$h2: 6rem;
$h3: 4rem;
$h4: 2.5rem;
$mainFont: "Anton SC", sans-serif;
$subFont: "Outfit", sans-serif;
$defaultFontSize: 1.6rem;

@mixin buttonDesign {
    font-family: $subFont;
    padding: 1.5rem;
    font-size: 1.8rem;
    margin: 0 0.5px;
    background-image: linear-gradient(to bottom, $primaryColor1, $primaryColor3);
    border: 0;
    cursor: pointer;
}

@mixin breadCrum {
    background-color: $primaryColor1;
    padding: 2rem;
    text-align: left;
    margin-bottom: 2rem;
    font-family: $subFont;
    font-size: $defaultFontSize;
}

@mixin titleQuest{
    width: 100%;
    font-family: $subFont;
    background-color: $primaryColor2;
    border-bottom: 2px solid $primaryColor3_darker;
    padding: 1rem;
    text-align: left;
    font-size: $defaultFontSize;
}

.mb10 {
    margin-bottom: 1rem;
}

html {
    font-size: 62.5%;

    @media only screen and (max-width:800px) {
        font-size: 50%;
    }
    @media only screen and (max-width:600px) {
        font-size: 40%;
    }
}

h2,
h3,
h4,
ul,
li,
p {
    margin: 0;
    padding: 0;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: linear-gradient(242deg, rgba($primaryColor2, 0.5) 30%, rgba($primaryColor3, 0.9)), url(../images/bg.jpg);
    width: 100%;
    height: 100vh;
}

input[type="text"],
input[type="number"] {
    height: 3rem;
    background-color: $primaryColor1;
    border: 1px solid $primaryColor3_dark;
    border-radius: 1rem;
    margin-left: 10px;
    margin-right: 10px;
}

input[type="number"] {
    max-width: 4rem;
    text-align: center;
}

.margin-top-big {
    margin-top: 3rem;
}

.margin-top-small {
    margin-top: 2rem;
}

.margin-bottom-big {
    margin-bottom: 3rem;
}

.margin-bottom-small {
    margin-bottom: 2rem;
}

h2 {
    font-family: $mainFont;
    font-weight: 400;
    font-style: normal;
    font-size: $h2;
    color: $primaryColor3;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);

}

h3 {
    font-family: $mainFont;
    font-weight: 400;
    font-style: normal;
    font-size: $h3;
    color: $primaryColor2;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
}

h4 {
    font-family: $mainFont;
    font-weight: 400;
    font-style: normal;
    font-size: $h4;
    color: $primaryColor3_dark;
}

#mainContainer {
    width: 96%;
    max-width: 115rem;
    margin: auto;
    background-color: $primaryColor1;
    height: 100vh;
    border-left: 8px solid $primaryColor3_dark;
    border-right: 8px solid $primaryColor3_dark;
    background-image: linear-gradient(242deg, rgba($whiteColor, 0.7), rgba($whiteColor, 0.9)), url(../images/bg.jpg);
    overflow-x: hidden;
    position: relative;

    .addToTestContainer {
        .logoSection {
            text-align: center;
        }

        #wrapper-button {
            text-align: center;
        }

        .col5{
            flex-wrap: wrap;
        }
    }



    .logoSection {
        padding: 2rem;

        #headLogo {
            max-width: 25rem;
        }
    }

    .addToPrintContainer {

        .logoSection{
            text-align: center;
        }
        #wrapper-button{
            text-align: center;
        }

        .schoolInfo_td {
            &:first-child {
                flex: 0 1 50%;
            }
        }

        .schoolInfo_tr {
            display: flex;
            padding: 1rem 0;
        }

        .schoolInfo_tr:not(:last-child){
            border-bottom: 1px dotted;
        }

        #addPrintBase {
            
            .schoolInfo {
                width: 96% !important;
                max-width: 60rem;
                border: 4px solid $primaryColor3_dark !important;
                font-family: $subFont;
                font-size: $defaultFontSize;
                margin: auto;
                border-radius: 2rem !important;
                background-color: rgba($whiteColor, 0.7);
                padding: 2rem;
            }

            .title-quest{
                margin-top: 2rem;
                @include titleQuest;
            }

            .option-quest{
                font-family: $subFont;
                font-size: $defaultFontSize;
                margin: 2rem
            }
        }

        #addToBreadCrum {
            @include breadCrum;

        }

        .school-data-enter {
            width: 96%;
            max-width: 60rem;
            border: 4px solid $primaryColor3_dark;
            font-family: $subFont;
            font-size: $defaultFontSize;
            margin: auto;
            border-radius: 2rem;
            background-color: rgba($whiteColor, 0.7);
            padding: 2rem;

            .btn-prop {
                @include buttonDesign;
                border-radius: 1rem;
                margin-top: 1rem;
            }

            
        }
    }

    #breadCrum {
        @include breadCrum;

        .breadcrumb {
            display: flex;
            font-size: $subFont;

            li+li {
                padding-left: 22px;
                margin-left: 5px;
                position: relative;

                &:last-child {
                    font-weight: bold;
                    color: $primaryColor3_darker;
                }

                &::before {
                    content: "\279D";
                    font-size: 16px;
                    font-weight: bold;
                    color: $primaryColor3_dark;
                    position: absolute;
                    top: -3px;
                    left: 0;
                }
            }
        }

        a {
            font-family: Arial, Helvetica, sans-serif;
            color: $primaryColor3_dark;
            font-size: $defaultFontSize;
            text-decoration: none;

            &:hover {
                color: #000;
            }
        }
    }

    #questBase {
        .title-quest {
            @include titleQuest
        }
    }

    #questBase,
    #addtestBase {
        display: flex;
        gap: 2.5rem;
        flex-wrap: wrap;
        padding: 2rem;

        .selected-full-quest {
            width: 100%;
        }

        .col5 {
            .alterButtonsWrap{
                display: flex;
            }
            .column {
                

                &:nth-child(1) {
                    flex: 0 1 50%;
                }

                &:nth-child(2) {
                    flex: 0 1 30%;
                }
            }
        }

        .col2 {
            .title-quest {
                @include titleQuest
            }
        }

        .col5 {
            &.title-id-prop {
                width: 100%;
                font-family: $subFont;
                background-color: $primaryColor2;
                border-bottom: 2px solid $primaryColor3_darker;
                padding: 1rem;
                text-align: left;
                font-size: $defaultFontSize;
            }

            .select-btn-prop {
                font-family: $subFont;
                font-size: $defaultFontSize;
                background-color: $primaryColor1;
                border: 0;
                padding: 1rem;
                border-radius: 1rem;
                margin: 0 0.5px;
            }
        }

        .col2 {
            justify-content: space-between;
        }

        .col5,
        .col2 {
            display: flex;
            background-color: #fff;
            padding: 2rem;
            border-radius: 18px;
            box-shadow: 0 0 5px 0px rgba($primaryColor3_darker, 0.8);
            width: 100%;

            .column {
                display: flex;
                align-items: flex-start;
                font-size: $defaultFontSize;
                font-family: $subFont;
                gap: 2rem;
                text-align: left;

                .selected-quest {
                    display: flex;
                    gap: 2rem;
                    flex-wrap: wrap;

                    .hang {
                        flex: 0 0 3rem;
                    }

                    .quest-text {
                        flex: 0 0 70%
                    }

                    #answer-txt {
                        flex: 0 1 100%;

                        ul li {
                            list-style: none;
                        }
                    }
                }



                .hang {
                    width: 3rem;
                    height: 3rem;
                    border-radius: 50%;
                    border: 2px solid $primaryColor3;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }
            }
        }

        .col3 {
            width: 100%;
            display: flex;
            gap: 2rem;
            padding: 0.5rem;
            border: 1px dotted $primaryColor3_dark;
            font-size: $defaultFontSize;
            font-family: $mainFont;
            color: $primaryColor3_darker;
            align-items: center;

            .heading-btn {
                margin-left: auto;

                .btn-prop {
                    @include buttonDesign;
                    border-radius: 8px;
                    margin: 0 0.5rem;
                }
            }

        }



        .option-quest {
            .select-btn-prop{
                @include buttonDesign;
            }
            width: 100%;
            &.emptyBlock{
                .column{
                    display: block;
                    text-align: right;
                    width: 100%;
                }
                .col2{
                    background-color: transparent;
                    box-shadow: none;

                    .column:first-child{
                        display: none;
                    }
                }
            }
        }

        .folderLogo {
            font-family: $subFont;
            padding: 1rem;
            width: 21rem;
            height: auto;
            min-height: 10rem;
            color: $primaryColor3_dark;
            font-size: $defaultFontSize;
            background-color: rgba($primaryColor1, 0.5);
            border: 2px solid $primaryColor3_dark;
            border-radius: 1rem;
            cursor: pointer;
            transition: all .3s;

            &:hover {
                transform: translateY(-8px);
                background-color: rgba($primaryColor1, 1);
            }
        }
    }

    #wrapper-button {

        .btn-prop {
            @include buttonDesign;
            -webkit-border-top-left-radius: 8px;
            -webkit-border-top-right-radius: 8px;
            -moz-border-radius-topleft: 8px;
            -moz-border-radius-topright: 8px;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .total_number {
            padding: 2rem;
            color: $primaryColor1;
            background-color: $primaryColor3_dark;
            font-size: 1.8rem;
            font-family: $subFont;
            text-align: right;
        }

        .col2_allStr {
            background-color: $primaryColor1;
            background-color: #e9c46a;
            display: flex;
            padding: 2rem;
            font-family: "Outfit", sans-serif;
            font-size: 16px;

            .column {
                margin: 0 2rem;
            }
        }
    }
}



.openButton {
    font-family: $mainFont;
    -webkit-border-top-right-radius: 15px;
    -webkit-border-bottom-right-radius: 15px;
    -moz-border-radius-topright: 15px;
    -moz-border-radius-bottomright: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    font-size: 1.5rem;
    background-color: $primaryColor2;
    padding: 1.5rem;
    position: absolute;
    left: 0;
    top: 1rem;
    cursor: pointer;
    display: none;
}

.iPage {
    position: relative;

    .closeButton {
        position: absolute;
        text-align: right;
        top: 0;
        left: 0;
        z-index: 100;
        font-family: $mainFont;
        font-size: 1.5rem;
        padding: 1rem;
        color: #000;
        cursor: pointer;
        display: inline-block;
        background-color: $primaryColor3;
        -webkit-border-top-right-radius: 15px;
        -webkit-border-bottom-right-radius: 15px;
        -moz-border-radius-topright: 15px;
        -moz-border-radius-bottomright: 15px;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        margin-top: 5px;
        min-width: 7rem;
    }

    .jstree-default {
        width: 40rem;
        position: absolute;
        padding-left: 1rem;
        font-family: Arial, Helvetica, sans-serif;
        font-size: $defaultFontSize;
        overflow: auto;
        top: 0;
        left: -41rem;
        background-color: $primaryColor2;
        padding-top: 5rem;
        height: calc(100vh - 5rem);
        transition: all 0.3s ease-in;
        z-index: 10;

        .jstree-container-ul {
            .jstree-closed {
                background-image: url(../images/closeFolder.png);
                background-repeat: no-repeat;
            }

            .jstree-open {
                background-image: url(../images/openFolder.png);
                background-repeat: no-repeat;
            }

            li {
                padding: 10px;
                padding-left: 30px;
                background-position: 0 10px;

                a {
                    color: $primaryColor3_dark;
                    font-weight: bold;
                    text-decoration: none;
                }
            }
        }
    }





    ul {
        li {
            list-style: none;
        }
    }

    .iPageL1 {
        width: 100%;
        position: relative;
    }
}

.alertBox {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    .btn-prop {
        @include buttonDesign;
        border-radius: 8px;
        margin: 0 0.5rem;
    }

    .infoBoxColTxt {
        display: none;
    }

    .replaceBox-inner {
        position: absolute;
        width: 90vw;
        max-width: 90rem;
        max-height: 90vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        overflow-y: auto;

        .customGap {
            height: 1rem;
        }

        .add-lable-txt {
            font-size: $defaultFontSize;
            font-family: $subFont;
            margin-bottom: 0.5rem;
        }

        select {
            max-width: 96%;
            font-family: $subFont;
            height: 4rem;
            border: 1px solid $primaryColor3_dark;
        }

        .question-txt {
            input {
                margin: 0;
            }
        }

        .add-main {
            padding: 1rem;
        }

        .replace-scroll {

            .replace-txt {
                padding: 2rem;
                border-bottom: 1px dotted $primaryColor3_darker;
                font-family: $subFont;
                font-size: $defaultFontSize;
                display: flex;
                justify-content: space-between;
            }
        }

        .close-btn {
            position: absolute;
            font-family: $mainFont;
            background-color: $primaryColor1;
            border: 1px solid $primaryColor3_dark;
            font-size: $defaultFontSize;
            color: #000;
            top: 1rem;
            right: 1rem;
        }

        .replaceBox-txt {
            background-color: $primaryColor1;
            padding: 1.5rem;
            font-family: $mainFont;
            font-size: $defaultFontSize;
        }

        .setGap {
            height: 2rem;
        }
    }

    &-inner {
        position: absolute;
        max-height: 90vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 2px solid $primaryColor3_dark;
        background-color: $primaryColor1;
        padding: 2rem;
        border-radius: 3rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        text-align: center;
        min-height: 8rem;

        .infoBox {
            display: flex;
        }

        .alert-txt {
            font-family: $mainFont;
            font-weight: 400;
            font-style: normal;
            font-size: $h4;
            color: $primaryColor3_dark;
        }

        .select-btn-prop {
            font-family: $mainFont;
            font-size: 2rem;
            color: #000;
            width: 20rem;
            height: 4rem;
            border: 0;
            border-radius: 1.5rem;
            background-image: linear-gradient(to bottom, $primaryColor3, $primaryColor3_dark);
            cursor: pointer;
        }
    }
}

#homePage {
    text-align: center;

    .dataLoaded {
        display: none;
    }

    #startBtn {
        font-family: $mainFont;
        font-size: 2rem;
        color: #000;
        width: 28rem;
        height: 6.5rem;
        border: 0;
        border-radius: 1.5rem;
        /* background-image: linear-gradient(242deg, rgba($primaryColor2, 1) 30%, rgba($primaryColor3, 1)); */
        background-image: radial-gradient(circle at center, $primaryColor2, $primaryColor3);
        cursor: pointer;
    }

    .decImg {
        img {
            width: 100%;
            border-top: 4px solid $primaryColor3_dark;
            border-bottom: 4px solid $primaryColor3_dark;
        }
    }

    .rsplLogo {
        padding-top: 3rem;
        img{
            max-width: 96%;
        }
    }
}