
@import "helveticons.less";
@import "variables.less";
@import "application/umb-outline.less";

/******* font-face *******/

@font-face {
  src: url('assets/fonts/helveticons/helveticons.eot') !important;
  src: url('assets/fonts/helveticons/helveticons.eot?#iefix') format('embedded-opentype'), url('assets/fonts/helveticons/helveticons.ttf') format('truetype'), url('assets/fonts/helveticons/helveticons.svg#icomoon') format('svg') !important;
}

/****************************/
/* General style */
/****************************/

body {
    position: absolute;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    height: calc(~"100% - 40px");
    width: 100%;
    padding: 0;
    margin: 0;
    padding-bottom:40px;
    background-color: @brownGrayExtraLight;
}

/****************************/
/* General class */
/****************************/

.menu-bar {
    position: absolute;
    bottom:0;
    left: 0;
    right: 0;
    background-color: @blueExtraDark;
    color:@white;

    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-size: 12px;
    line-height: 16px;

    animation: menu-bar-animation 1.2s;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);

}

@keyframes menu-bar-animation {
    0% {
        bottom: -50px;
    }
    40% {
        bottom: -50px;
    }
    80% {
        bottom: 0px;
    }
  }

.menu-bar__right-part {
    float: right;
    display: flex;
    flex: row;

    > div, > button {
        border-left: 1px solid rgba(255, 255, 255, .25);
    }
}

.menu-bar__title {
    display: inline-block;
    padding: 11px 15px;
    font-weight: bold;
    font-size: 13px;
}

.menu-bar__button {
    display: inline-block;
    padding: 11px 15px;
    height: 40px;
    border:none;
    background-color: @blueExtraDark;

    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;

    transition: color 120ms linear, background-color 120ms linear;

    .icon {
        margin-right: 10px;
        font-size: 18px;
        vertical-align: middle;
    }

    span {
        vertical-align: middle;
    }

    > svg {
        display: inline-block;
        width: 14px;
        height: 14px;
        fill: #fff;
        margin-right: 10px;
        vertical-align: middle;
        transition: fill 120ms linear;
    }

    &:hover {
        background-color: lighten(@blueExtraDark, 4%);
    }
    &.--active {
        color: @pinkLight;
        > svg {
            fill: @pinkLight;
        }
    }
}

.preview-menu-option {

    position: relative;
    display: inline-block;

    > .menu-bar__button {
        position: relative;
    }

    .dropdown-menu {
        display:none;

        position: absolute;
        right: 0;
        bottom: 100%;
        min-width: 200px;

        border-radius: 3px 3px 0 3px;
        overflow: hidden;

        background-color: @blueExtraDark;

        > button {
            position: relative;
            display: list-item;
            text-align: left;
            width: 100%;

            &.--active {
                &::before {
                    content: '';
                    position: absolute;
                    left:0;
                    width: 3px;
                    top: 0;
                    bottom: 0;
                    border-top-right-radius: 3px;
                    border-bottom-right-radius: 3px;
                    background-color: @pinkLight;
                }
            }
        }
    }

    &.--open {
        z-index:1;
        box-shadow: 0 5px 10px 0 rgba(0,0,0,.26);
        > .menu-bar__button {
            z-index: (@zindexDropdown + 1);
        }
        .dropdown-menu {
            display:block;
            z-index: @zindexDropdown;
            box-shadow: 0 5px 10px 0 rgba(0,0,0,.26);
        }
    }

}




/*************************************************/
/* IFrame size */
/*************************************************/

#demo-iframe-wrapper {
    transition: all 240ms cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink:0;
}

.fullsize {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.desktop {
    width: 1920px;
    height: 1080px;
}

.laptop {
    width: 1366px;
    height: 768px;
}

.iPad-portrait {
    width: 769px;
    height: 929px;
}

.iPad-landscape {
    width: 1024px;
    height: 675px;
}

.smartphone-portrait {
    width: 360px;
    height: 640px;
}

.smartphone-landscape {
    width: 640px;
    height: 360px;
}

.shadow {
    margin: 10px auto;
    background-color: @white;
    border-radius: 3px;
    overflow: hidden;
    opacity: 1.0;
    box-shadow: 0 5px 20px 0 rgba(0,0,0,.26);
}

iframe {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
}

.flip:before {
    transform: rotate(90deg);
}
