body#configuration,
body#settings {
    background-color: white;
    color: black;
}

body#results .btn:not(.btn-primary),
body#configuration .btn:not(.btn-primary),
body#settings .btn:not(.btn-primary) {
    background-color: #eee;
}

.wrapper_preview {
    display: none;
}

ul.utilities {
    display: inline-block;
    list-style-type: none;
    margin: 0;
    padding: 0;
    padding-left: 2rem;
}

.settings_page ul.utilities li:last-of-type {
    border-right: 1px solid #DFE0EB;
    padding-right: 2rem;
    margin-right: 2rem;
}

ul.utilities li:last-of-type {
    border-right: none;
    margin-right: 0;
    /* border-right: 1px solid #DFE0EB; */
    /* padding-right: 2rem;
    margin-right: 2rem; */
    margin: 0;
    padding: 0;
}

body#rules {
    padding: 0;
    background-color: #363740;
    min-height: 100vh;
}

body#rules header form {
    margin: 0;
    width: 100%;
}

.form-group .control-label {
    margin-bottom: 14px;
}

.form-group:nth-child(2) .control-label {
    margin-bottom: 14px;
    margin-top: 14px;
}

body#rules .wrapper .navbar-collapse {
    /* display: flex; */
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 991px) {
    body#rules .wrapper .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }
}

.tox-tinymce {
    height: 600px !important;
}

@media (max-width: 1440px) {
    .tox-tinymce {
        height: 460px !important;
    }
}

.tox .tox-statusbar {
    display: none !important;
}

body#rules header.logged,
body#rules header.inside_main {
    position: relative;
    /* flex: 1; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body#rules .wrapper_logged {
    display: flex;
    position: relative;
}

@media (max-width: 991px) {
    body#rules .wrapper_logged {
        flex-direction: column;
    }
}


body#rules .wrapper_logged header.logged {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* padding: 20px 0; */
    /* padding-right: 20px; */
}

@media (max-width: 991px) {
    body#rules .wrapper_logged header.logged {
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
        z-index: 99999;
    }

    body#rules .wrapper_logged .sidebar,
    body#results .wrapper_logged .sidebar {
        position: sticky;
        top: 0;
        z-index: 999999999;
    }
}

body#rules .wrapper main {
    width: 100%;
    height: 100%;
    display: flex;
    /* justify-content: center;
    align-items: center; */
    min-height: 100vh;
}

body#rules .wrapper main.main_inside_logged {
    display: flex;
    flex-direction: column;
    /* justify-content: center;
    align-items: center; */
    min-height: 100vh;
    flex: 1;
}

body#rules .wrapper main.main_logged .login_container {
    height: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    /* justify-content: center; */
    position: relative;
    /* margin: 20px 0; */
    box-shadow: 0 1px 4px 0 rgba(163, 163, 163, .5);
    background: #F7F8FC;
    border: 1px solid #DFE0EB;
    border-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 38px 32px;
    padding-top: 0;
}

@media (max-width: 991px) {
    body#rules .wrapper main .login_container {
        flex-wrap: inherit;
        min-height: 100vh;
    }
}

body#rules .wrapper main.main_logged .login_container {
    width: 100%;
}

@media (max-width: 991px) {
    body#rules .wrapper main.main_logged .login_container {
        width: inherit;
        border-radius: 0;
    }
}

body#rules .wrapper_logged header.logged p.title_menu {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-left: 12px;
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.4px;
    color: #A4A6B3;
    opacity: 0.8;
    max-width: 198px;
}

@media (max-width: 991px) {
    body#rules .wrapper_logged header.logged p.title_menu {
        margin-top: 15px;
        margin-bottom: 15px;     
        max-width: 100%;
    }
}

body#rules .wrapper_logged header.logged form button[type=submit] {
    background-color: transparent;
    border: none;
    transition: none;
}

body#rules header .btn.no-active {
    width: 100%;
    justify-content: flex-start !important;
    padding: 12px 16px;
    padding-right: 26px;
}

body#rules .wrapper_logged header.logged .btn.logout {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #A4A6B3;
    display: flex;
    justify-content: center;
    align-items: center;
}

body#rules .wrapper_logged header.logged .btn.logout::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #A4A6B3;
    -webkit-mask-image: url(../../images/on_off_white.svg);
    mask-image: url(../../images/on_off_white.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

body#rules header .languages .btn:disabled {
    display: none;
}

body#rules header .languages .btn.no-active {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #A4A6B3;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

body#rules header .languages .btn.no-active::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #A4A6B3;
    -webkit-mask-image: url(../../images/languages.svg);
    mask-image: url(../../images/languages.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

body#rules header .rules_link .btn.no-active {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #A4A6B3;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}

body#rules header .rules_link .btn.no-active.active {
    background-color: #9fa2b438;
    color: #DDE2FF;
    /* border-left: 1px solid #DDE2FF; */
    box-shadow: -1px 0px 0px 0px #DDE2FF;
}

body#rules header .rules_link .btn.no-active.active::before {
    background-color: #DDE2FF;
}

body#rules header .rules_link .btn.no-active::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #A4A6B3;
    -webkit-mask-image: url(../../images/rule_icon.svg);
    mask-image: url(../../images/rule_icon.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

body#rules header .back_button .btn.no-active {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #A4A6B3;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

body#rules header .back_button .btn.no-active::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #A4A6B3;
    -webkit-mask-image: url(../../images/back.svg);
    mask-image: url(../../images/back.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

body#rules header .wrap_statistics .btn.no-active {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #A4A6B3;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

body#rules header .wrap_statistics .btn.no-active::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #A4A6B3;
    -webkit-mask-image: url(../../images/stadistique.svg);
    mask-image: url(../../images/stadistique.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

body#rules header .wrap_statistics .btn.no-active.active {
    background-color: #9fa2b438;
    color: #DDE2FF;
    border-left: 1px solid #DDE2FF;
}

body#rules header .wrap_statistics .btn.no-active.active::before {
    background-color: #DDE2FF;
}

body#rules header .wrap_settings .btn.no-active {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #A4A6B3;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

body#rules header .wrap_settings .btn.no-active::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #A4A6B3;
    -webkit-mask-image: url(../../images/settings.svg);
    mask-image: url(../../images/settings.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

body#rules header .wrap_list_contest .btn.no-active {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #A4A6B3;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

body#rules header .wrap_list_contest .btn.no-active::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #A4A6B3;
    -webkit-mask-image: url(../../images/contacts.svg);
    mask-image: url(../../images/contacts.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

body#rules .wrapper main .login_container .inside_main h1 {
    margin-top: 30px;
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: 0.3px;
    color: #252733;    
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    body#rules .wrapper main .login_container .inside_main h1 {
        padding-left: 0;
    }
}

body#rules .wrapper main .login_container .inside_main h1 small {
    display: inline-block;
}

body#rules .wrapper main .login_container .inside_main ul li a {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.2px;
    color: #3751FF;
    text-decoration: none;
}

body#rules .wrapper main .login_container .inside_main ul li a:hover {
    color: #3751FFC7;
}

body#rules .wrapper main .login_container .button_save .btn_save {
    background: #3751FF;
    box-shadow: 0px 4px 12px rgba(55, 81, 255, 0.24);
    border-radius: 8px;
    font-family: 'Mulish',
        sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.2px;
    color: #FFFFFF;
    padding: 15px 24px;
    border: none;
}

body#rules .wrapper main .login_container .button_save .button_preview {
    background: #60626E;
    box-shadow: 0px 4px 12px rgba(55, 81, 255, 0.24);
    border-radius: 8px;
    font-family: 'Mulish',
        sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.2px;
    color: #FFFFFF;
    padding: 15px 24px;
    border: none;
    text-decoration: none;
}

body#rules .wrapper main .login_container .wrapper_footer_form {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 991px) {
    body#rules .wrapper main .login_container .wrapper_footer_form {
        flex-direction: column;
    }
}

body#rules .wrapper main .login_container .wrapper_footer_form .form-group.select {
    padding-left: 15px;
    display: flex;
    align-items: center;
}

body#rules .wrapper main .login_container .wrapper_footer_form .form-group.select label {
    padding-left: 0;
    width: fit-content;
    flex: 1;
    margin-bottom: 0;

    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #252733;
}

body#rules .wrapper main .login_container .wrapper_footer_form .form-group.select select {
    font-family: 'Mulish', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.2px;
    color: #252733;

    border: 0;
    background: none;
    outline: none;

    -moz-appearance: none;
    /* Firefox */
    -webkit-appearance: none;
    /* Safari and Chrome */
    appearance: none;

    background: url(http://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16x16/br_down.png) no-repeat right;
    background-position-x: 74px;
    width: 100px;
}

body#rules .wrapper main .login_container .wrapper_footer_form .form-group.select::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #60626E;
    -webkit-mask-image: url(../../images/languages.svg);
    mask-image: url(../../images/languages.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    margin-right: 12px;
}

/* style menu mobile */

body#rules .wrapper .navbar-toggler {
    border: none;
}

body#rules .wrapper .navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

@media (max-width: 991px) {

    body#rules .wrapper main .login_container .button_save {
        position: relative;
        display: block;
        width: 100%;
    }

    body#rules .wrapper main .login_container .button_save .button_preview,
    body#rules .wrapper main .login_container .button_save .btn_save {
        position: relative;
        display: block;
        width: 100%;
    }



    .navbar-collapse {
        width: 100%;
        position: fixed;
        z-index: 9;
        display: block;
        visibility: hidden;
        opacity: 0;
        z-index: -1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: opacity 0.01s linear;
    }

    .navbar-collapse.show {
        min-height: 100vh;
        height: 100vh;
        visibility: visible;
        opacity: 1;
        z-index: 9;


        top: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        background: #363740;
    }

    .settings_page .navbar-collapse.show {
        position: relative;
        top: 20px;
        padding-top: 20px;
    }

    .navbar-toggler .navbar-toggler-icon {
        background-image: none;
        background-color: #A4A6B3;
        -webkit-mask-image: url(../../images/close.svg);
        mask-image: url(../../images/close.svg);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-position: center;
        mask-position: center;
    }

    .navbar-toggler.collapsed .navbar-toggler-icon {
        background-image: none;
        background-color: #A4A6B3;
        -webkit-mask-image: url(../../images/open.svg);
        mask-image: url(../../images/open.svg);
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-position: center;
        mask-position: center;
    }

    .show {
        overflow: auto;
    }

    .hidden {
        overflow: hidden;
    }
}