.tm {
    @color-00: #1b1c1d;
    @color-01: #fff;

    &.dev {
        @position: 10px;

        bottom: @position;
        float: left;
        left: @position;
        position: fixed;
        z-index: 1000;
    }

    .simple-rank > .segment.secondary {
        border: none;
        // border: 5px solid red;
        padding: 0 !important;

        table {
            border-radius: 0;
        }
    }

    &.hide {
        display: none;
    }

    .code, &.prop__info {
        // font-family: monospace;
        // font-size: 19px;
        // font-weight: 100;
        white-space: pre;
        min-height: 170px;

        &.editor {
            min-height: 800px;
        }
    }

    .dev {
        &.proxy {
            @color: #9d9d9d;
            &.history {
                border: 1px solid @color;
                min-height: 300px;
                margin-bottom: 20px;
            }

            &.preview {
                border: 1px solid @color;
                min-height: 300px;
                width: 100%;
            }
        }
    }

    &.filtered {
        border: 1px solid red;
        height: 400px;
        overflow: auto;
        width: 100%;
    }

    .ui.form {
        .field {
            .note {
                // border: 1px solid red;
                color: #9d9d9d;
                font-size: 0.9em;
            }
        }
    }

    .ui.cards.home-news {
        .card {
            // border: 1px solid red;
            margin: auto;
        }
    }

    .ui.card.recent-member {
        // border: 5px solid red;
        .image {
            background-color: transparent;
            padding: 10px;
            text-align: center;

            img {
                display: inline-block;
                width: 60%;
                border-radius: 100%;
            }
        }
    }

    .sidebar {
        // Additional rules that you need.
        z-index: 9999 !important;
    }

    .search-result {
        color: @color-00;
        text-align: left;

        .ui.breadcrumb {
            display: block;
            padding: 10px 10px;
            white-space: nowrap;

            .active.section {
                font-weight: normal;
            }
        }

        > .results {
            min-width: 18em;
            // width: 600px;
            // width: auto;
        }
    }

    .app-menu {
        background: @color-00 !important;
        // border: 3px solid red;
        border: none !important;
        height: 52px;
        margin: auto;
        // overflow: auto;
        position: fixed !important;
        width: 100% !important;
        z-index: 1000;

        .searchbar {
            @radius: 30px;

            input {
                border-radius: @radius;
            }

            .dropdown {
                border-top-right-radius: @radius;
                border-bottom-right-radius: @radius;

                .menu {
                    margin-top: 2px;
                }
            }
        }

        .ui.search > .results {
            min-width: 18em;
            width: auto;
        }
    }

    &.sidebar {
        // padding-top: 10px;

        .profile {
            // border: 5px solid red;
            // background-color: transparent;
            background-color: @color-01;
            border-radius: 0;
            margin: 0;
            padding: 10px;
            text-align: center;

            // .image {
            //     margin-top: 10px;
            //     min-height: 100px;
            //
            //     img {
            //         display: inline-block;
            //         width: 100px;
            //     }
            // }

            h2, h3, h4, h5 {
                margin: 8px;
            }

            .image {
                @size: 120px;

                // background-color: @color-01;
                border: 2px solid @color-01;
                border-radius: 100%;
                display: inline-block;
                height: @size;
                // margin: auto;
                // margin-right: 20px;
                margin-top: 5px;
                overflow: hidden;
                position: relative;
                width: @size;

                img {
                    height: @size;
                    max-width: initial !important;
                    width: auto !important;
                    position: absolute;
                    top: -9999px;
                    left: -9999px;
                    right: -9999px;
                    bottom: -9999px;
                    margin: auto;
                }
            }

            .content {
                .button {
                }

                .header {
                    color: @color-01;
                    margin-top: 10px;
                }
            }
        }
        .skill {
            border-radius: 0;
            margin: 0;
        }
    }

    &.profile {
        @height: 190px;

        .header {
            padding: 0 !important;
            max-height: @height;
            overflow: hidden;
        }

        .dimmer {
            background-color: @color-00;
            opacity: 0.7;
            position: absolute;
            height: @height;
            width: 100%;
            z-index: 1;
        }

        .ui.banner {
            // border: 0px solid red;
            float: left;
            position: absolute;
            bottom: 10px;
            left: 30px;
            z-index: 2;

            .item {
                // Large image croped in parent.
                // ref: https://stackoverflow.com/a/38550786
                .frame {
                    @size: 130px;

                    background-color: @color-00;
                    border: 2px solid @color-01;
                    border-radius: 100%;
                    height: @size;
                    margin-right: 20px;
                    overflow: hidden;
                    position: relative;
                    width: @size;

                    img {
                        height: @size;
                        max-width: initial !important;
                        width: auto !important;
                        position: absolute;
                        top: -9999px;
                        left: -9999px;
                        right: -9999px;
                        bottom: -9999px;
                        margin: auto;
                    }
                }

                .content {
                    margin-top: 25px;
                    // border: 1px solid red;
                    a.header, .meta {
                        color: @color-01;
                    }
                }
            }

        }

        .ui.footer.segment {
            // border: 1px solid red !important;
            min-height: 100px;
        }
    }

    pre {
        overflow: auto;
    }

    &.body {
        background-color: #1B1C1D;
    }
    &.body > .grid {
        height: 100%;
    }

    .ui.grid .row {
        /*border: 1px solid red;*/
        /*min-height: 100px;*/
    }

    .ui.grid div {
        /*border: 1px solid red;*/
        /*min-height: 100px;*/
    }

    // .app-menu-mobile {
    //     display: none !important;
    // }

    .pusher {
        background: #1b1c1d !important;
    }

    .page {
        background: #fff !important;
        // margin-top: 51px;
    }

    .ui.sidebar {
        background: #1b1c1d !important;
        overflow-y: visible !important;
        visibility: visible !important;
    }

    .ui.sidebar .ui.button.icon {
        /*border: 1px solid red;*/
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        font-size: 16px;
        float: left;
        left: -44px;
        position: absolute;
        top: 30px;
        /*top: 5px;*/
    }

    .login-form {
        margin: auto;
        // margin-top: 40px;
    }



    // .column {
    //     max-width: 450px;
    // }

    .hidden.menu {
        display: none;
    }

    .masthead.segment {
        min-height: 700px;
        padding: 1em 0em;
    }
    .masthead .logo.item img {
        margin-right: 1em;
    }
    .masthead .ui.menu .ui.button {
        margin-left: 0.5em;
    }
    .masthead h1.ui.header {
        margin-top: 3em;
        margin-bottom: 0em;
        font-size: 4em;
        font-weight: normal;
    }
    .masthead h2 {
        font-size: 1.7em;
        font-weight: normal;
    }

    .ui.vertical.stripe {
        padding: 8em 0em;
    }

    .ui.vertical.segment.alt {
        // border: 5px solid green;
        background-color: #F3F4F5;
    }

    .ui.vertical.stripe h3 {
        font-size: 2em;
    }
    .ui.vertical.stripe .button + h3,
    .ui.vertical.stripe p + h3 {
        margin-top: 3em;
    }
    .ui.vertical.stripe .floated.image {
        clear: both;
    }
    .ui.vertical.stripe p {
        font-size: 1.33em;
    }
    .ui.vertical.stripe .horizontal.divider {
        margin: 3em 0em;
    }

    .quote.stripe.segment {
        padding: 0em;
    }
    .quote.stripe.segment .grid .column {
        padding-top: 5em;
        padding-bottom: 5em;
    }

    .footer.segment {
        padding: 5em 0em;
    }

    .secondary.pointing.menu .toc.item {
        display: none;
    }

    @media only screen and (max-width: 700px) {
        .page {
            margin-top: 40px;
        }

        .ui.sidebar .profile {
            margin: 0 !important;
        }
        .ui.sidebar .ui.button.icon {
            /*border: 1px solid red;*/
            // border-top-right-radius: 0;
            // border-bottom-right-radius: 0;
            // font-size: 16px;
            // float: left;
            // left: -44px;
            // position: absolute;
            // bottom: 100px;
            // top: auto;
            // margin: 0 !important;
        }

        .vertical.segment {
            padding: 10px !important;
        }

        .app-menu {
            height: auto !important;
            // padding: 14px !important;
            height: 52px;

            .item {
                display: none !important;
            }

            // .item:nth-child(1) {
            .item.home {
                display: block !important;
                border-bottom: 2px solid #fff !important;
                color: rgba(255,255,255,1) !important;
                font-weight: 700 !important;
            }
        }

        .skill-list {
            .ui.segment {
                padding: 5px;
            }
        }



        // .app-menu {
        //     // display: none !important;
        // }
        //
        // .app-menu-mobile {
        //     display: block !important;
        // }
        //
        // .page {
        //     margin-top: 0;
        // }
        //
        // .ui.fixed.menu {
        //     display: none !important;
        // }
        // .secondary.pointing.menu .item,
        // .secondary.pointing.menu .menu {
        //     display: none;
        // }
        // .secondary.pointing.menu .toc.item {
        //     display: block;
        // }
        // .masthead.segment {
        //     min-height: 350px;
        // }
        // .masthead h1.ui.header {
        //     font-size: 2em;
        //     margin-top: 1.5em;
        // }
        // .masthead h2 {
        //     margin-top: 0.5em;
        //     font-size: 1.5em;
        // }
    }
}
