/*
 *  (c) 2000-2025 deviantART, Inc. All rights reserved.
 */
/* @@include cssms/lib/mixins/css3.css */
html {
    min-height: 100%;
    height: 100%;
}
html body {
    background: #F5F5F5 !important;
}
#stash-body {
    padding-left: 18px;
    margin-right: -10px;
}
.unselectable {
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
    user-select: none;
}
.selectable {
    -moz-user-select: text;
    -webkit-user-select: text;
    user-select: text;
}
.stash-top {
    overflow: visible;
    color: #2F3134;
    margin: 0 -10px 0 0;
    position: relative;
    height: 58px;
    padding: 24px 0 0 19px;
}
.stash-container {
    float: left;
    width: 100%;
    position: relative;
}
.stash-container-bottom-margin {
    float: left;
    width: 100%;
    height: 70px;
}
.stash-container > .hh {
    padding-right: 350px;
    min-width: 360px; /* for browsers that do not support media queries */
    overflow: visible;
}
.stash-container > .hh > .ll {
    float: left;
    width: 100%;
    overflow: visible; /* do not hide thumbs when dragged out of the column */
}
.stash-container > .hh > .rr {
    width: 300px;
    padding: 0 20px 0 25px;
    margin-right: -350px;
}
.stash-container .stash-create {
    padding-top: 51px;
}
@media all and (max-width: 470px) {
    .stash-container > .hh {
        min-width: 310px;
        padding-right: 0;
    }
    .stash-container > .hh > .ll {
        float: none;
        width: 100%;
        padding-top: 15px;
        margin-right: 0;
    }
    .stash-container > .hh > .rr {
        float: none;
        margin: 0 auto;
        padding: 23px 5px 0 5px;
    }
    .stash-container > .hh > .ll > div {
        padding: 0 15px;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 100%;
    }
    .stash-container > .hh > .rr > #stash-create,
    .stash-container > .hh > .rr > #stash-news {
        padding-top: 0;
    }
}
.get-chromeframe {
    display: none;
    display: block\9;
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: -15px;
    text-align: center;
}
.get-chromeframe a {
    color: #1B91E0;
}
#stash-title {
    display: inline; 
    display: none\9;
}

noindex:-o-prefocus, #stash-title {
    display: none;
}
#stash-nodrag-title {
    display: none;
    display: inline\9;
}
noindex:-o-prefocus, #stash-nodrag-title {
    display: inline;
}
#stash-subtitle {
    float: left;
    margin-top: 24px;
    clear: both;
}
#stash-title,
#stash-subtitle h3 {
    font-family: Depot New, Depot New Light, Trebuchet MS;
    letter-spacing: -1px;
}
.stash-stream-header {
    float: left;
    width: 100%;
    margin-bottom: 12px;
}
.stash-stream-header .ssh-left {
    float: left;
    margin-left: 20px;
    margin-top: 2px;
}
.stash-stream-header .ssh-right {
    float: right;
    margin-right: 27px;
    margin-top: -8px;
}
.stash-storage-progress {
    overflow: hidden;
    float: right;
    margin-top: 5px;
}
.stash-storage-progress-text {
    color: #939499;
    font-family: Verdana, sans-serif;
    font-size: 9px;
    position: absolute;
    right: 5px;
    text-align: right;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    top: 2px;
}
.stash-storage-progress-text .descriptor {
    font-weight: bold;
}
.stash-storage-progress-text .amount {
    font-weight: bold;
    font-size: 8px;
}

/* Storage alerts */
.storage-flag {
    border-radius: 2px 2px 2px 2px;
    color: #FFFFFF;
    display: inline;
    padding: 2px 6px;
    text-shadow: none;
}
.storage-flag.low {
    background: #f58635;
}
.storage-flag.full {
    background: #f13a1c;
}
.stash-switch {
    margin: 24px 0 0;
}
.stash-container .stash-switch > a {
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
    letter-spacing: -0.25px;
    text-shadow: 0 0 0.2px #76777A, 0 1px 1px #EAF2EE;
    box-shadow:0 1px 0 #E2E2E2;
    margin: 0;
    outline: medium none;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 53px;
    z-index: 2;
    color: #76777A;
    border: 1px solid #B9B9B9;
    background: #E0E0E0;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F3F3F3', endColorstr='#D9D9D9');
    background: -webkit-gradient(linear, left top, left bottom, from(#F3F3F3), to(#D9D9D9));
    background: -moz-linear-gradient(top,  #F3F3F3,  #D9D9D9);
}
.stash-container .settings-btn {
    border: 1px solid #d3d2d2;
    border-radius: 4px 4px 4px 4px;
    box-shadow:0 1px 0 rgba(0, 0, 0, 0.1), 0 1px 0 #FFFFFF inset;
    cursor: pointer;
    float: right;
    font-size: 11px;
    margin: 24px 0 0;
    text-align: center;
    text-shadow: 0 1px 0 #FFFFFF;
    background: -moz-linear-gradient(center top , #fff, #f8f8f8) repeat scroll 0 0 transparent;
    background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#f8f8f8));
    padding: 5px 8px;
    color: #737577;
}
.stash-container .settings-btn:hover {
    background: -moz-linear-gradient(center top , #fcfcfc, #e0e0e0) repeat scroll 0 0 transparent;
    color: #1b91e0;
}
.stash-container .stash-switch > a.settings-btn {
    text-shadow: none;
}

.stash-streams {
    padding-top: 30px;
    padding-bottom: 15px;
    margin-bottom: 30px; /* make sure that thumb popups do not overflow container even when there's no pager */
}

.stash-stream {
    clear: both;
    position: relative;
}

/* When one's sta.sh is empty */

#stash-empty-notice {
    margin: 80px auto;
    text-align: center;
    width: 100%;
    color: #939499;
    clear:both;
}

.stash-embedded #stash-empty-notice {
    margin: 0 auto;
    width: 80%;
}

#stash-logged-out-notice {
    margin-top: 50px;
    text-align: center;
}

.stash-page .ile-shorturl input[readonly],
.stash-page .details-section input.embed-code,
.stash-page .deviation-share-links-dropdown input,
.stash-stream .stash-thumb-container input.text.shorturl {
    text-align: left;
    font-family: Verdana, sans-serif;
    font-size: 8pt;
    width: 114px;
    text-indent: -3.6em;
    padding-left: 10px;
    padding-right: 10px;
}
/* IE9*/
.ie.eq9 .stash-page .ile-shorturl input[readonly] {
    text-indent: -37px;
    line-height: 1;
    width: 106px;
}
.ie.eq9 .stash-stream .stash-thumb-container input.text.shorturl {
    text-indent: -2.8em;
}
.ie.eq9 .stash-page .deviation-share-links-dropdown input,
.ie.eq9 .stash-page .details-section input.embed-code {
    text-indent: -3.2em;
}
/* IE8 */
.ie.eq8 .stash-page .ile-shorturl input[readonly] {
    text-indent: -47px;
}
.ie.eq8 .stash-stream .stash-thumb-container input.text.shorturl {
    text-indent: -3.9em;
}
.ie.eq8 .stash-page .deviation-share-links-dropdown input,
.ie.eq8 .stash-page .details-section input.embed-code {
    text-indent: -4.2em;
}
/* Firefox */
@-moz-document url-prefix() {
    .stash-page .ile-shorturl input[readonly] {
        padding-left: 3px;
        padding-right: 3px;
        text-indent: -3.5em;
    }
    .stash-page .deviation-share-links-dropdown input,
    .stash-stream .stash-thumb-container input.text.shorturl,
    .stash-page .details-section input.embed-code {
        padding-left: 3px;
        padding-right: 3px;
        text-indent: -3.3em;
    }
}
/* Opera only obeys text-indent when the input is a certain width */
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
    .stash-page .ile-shorturl input[readonly],
    .stash-page .details-section input.embed-code,
    .stash-page .deviation-share-links-dropdown input,
    .stash-stream .stash-thumb-container input.text.shorturl {
        text-indent: -37px;
        width: 130px;
    }
    .stash-page .deviation-share-links-dropdown input {
        width: 87%; /* restores original width */
    }
}

#output > .stash-change-tracker {
    position: fixed;
    z-index: 500;
    top: 6px;
    right: 6px;
    border: 1px solid #AB1200;
    background-color: #FDDCD7;
    border-radius: 5px;
    padding: 7px;
    color: #AB1200;
    cursor: pointer;
    display: none;
}

/* quicktip margining on sta.sh pages caused by dev-page-container top-margin:42px */
body.stash-page .quicktip.simple-tip {
    margin-top:-42px;
}
/* @@include cssms/lib/mixins/css3.css */
#stash-news {
    padding-top: 13px;
}
#stash-news .stash-news-header {
    color: #8d8f99;
    font-family: Trebuchet, 'Trebuchet MS', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
#stash-news .news-items {
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 9px;
    background: #fff;
    box-shadow:0 1px 0 0 #dadada;
    margin-top: 4px;
}
#stash-news .news-item {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom:1px solid #e3e3e3;
}
#stash-news .news-item:last-child {
    margin-bottom:0;
    padding-bottom:0;
    border-bottom:none;
}
#stash-news .news-item-icon {
    display: block;
    width: 16px;
    height: 15px;
    background-image: url('/minish/stash/stash-arrows-icons.png?15');
    background-position: 0 -259px;
    position: absolute;
    top: 3px;
    left: 0;
}
#stash-news .news-item-title  {
    display: block;
    line-height: 1.4em;
}
#stash-news .news-item-title a {
    color: #1b91e0;
    font-family: Trebuchet, 'Trebuchet MS', sans-serif;
    font-size: 14px;
    font-weight: bold;
}
#stash-news .news-item-date, #stash-news .news-item-comments {
    color: #939499;
    font-family: Verdana, sans-serif;
    font-size: 11px;
}
#stash-news .news-item-comments {
    padding-left: 15px;
    background-image: url('/minish/stash/stash-arrows-icons.png?15');
    background-position: -35px -256px;
}
#stash-news .news-item-comments a {
    color: #939499;
}

/* @@include cssms/lib/mixins/css3.css */
body.stash-page #overhead-collect.fixed-bar {
    position: fixed;
}
body.stash-page #overhead-collect.fixed-bar.undocked {
    border-bottom: 1px solid #A0A4AA;
    box-shadow:0 1px 0 rgba(0, 0, 0, 0.09), 0 2px 0 rgba(0, 0, 0, 0.07), 0 1px 0 rgba(255, 255, 255, 0.05);
}
body #overhead-collect.fixed-bar.undocked #overhead tbody tr td.oh-stashinactivetab {
    height: 38px;
}
#html body #overhead-collect #overhead tbody tr td.f .gmbutton2.gmhuge.ntmid.alone,
#html body #overhead-collect #overhead tbody tr td#oh-stashbacktab.f .gmbutton2.gmhuge.ntmid {
    top: 11px;
}
#overhead .popup2.popup2-stash-toolbar-menu {
    position: fixed;
}
#stash-stash-toolbar {
    display: none;
}
.default-toolbar .headerButton,
.default-toolbar .headerButton b {
    color: #434349;
    font:13px/25px Verdana, sans-serif;
    height: 26px;
}
.default-toolbar .headerMenu {
    margin-right: 5px;
    text-align: left;
    text-indent: 0px;
}
#html body #overhead-collect #overhead tbody tr td.f .gmbutton2.gmhuge.ntmid.alone,
#html body #overhead-collect #overhead tbody tr td#oh-stashbacktab.f .gmbutton2.gmhuge.ntmid {
    top: 11px;
}
#overhead .popup2.popup2-stash-toolbar-menu {
    position: fixed;
}
.oh-stash-toolbar {
    position: relative;
    top: 2px;
    min-width: 150px;
    left: 0;
}
.oh-stash-toolbar > .stash-toolbar {
    position: relative;
    left: -103px;
    top: 2px;
}
.writer .oh-stash-toolbar > .stash-toolbar {
    left: 197px;
}
#stash-stash-toolbar {
    display: none;
}
.default-toolbar .headerButton {
    float: left;
    text-indent: -1000px;
    margin: 9px 0 0 5px;
    cursor: pointer;
    width: 42px;
}
.default-toolbar .headerButton,
.default-toolbar .headerButton b {
    color: #434349;
    font:13px/25px Verdana, sans-serif;
    height: 26px;
}
.default-toolbar .headerMenu {
    margin-right: 5px;
    text-align: left;
    text-indent: 0px;
}
.stash-page .gmbutton2 b {
    top: 1px;
    right: -2px;
}
#overhead div.default-toolbar .headerMenu {
    background-image: none;
}
#overhead div.default-toolbar .headerMenu b {
    background-image: url(/minish/stash/caret_down.png);
    background-repeat: no-repeat;
    background-position: 0 10px;
}
#overhead .default-toolbar .headerMenu:hover {
    background-color: #fff;
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8));
    background: -moz-linear-gradient(top,  #fff,  #f8f8f8);
    border-radius: 4px;
    border: 1px solid #cbcbcb;
    height: 24px;
    margin-left: 3px;
    margin-right: 1px;
    margin-top: 8px;
}
.default-toolbar .headerMenu b {
    width: 20px;
}
.stash-toolbar .stash-toolbar-file {
    margin-right: 13px;
}
div.default-toolbar .headerButton {
    float: left;
    text-indent: -1000px;
    margin: 9px 0 0 5px;
    cursor: pointer;
}

div.default-toolbar .headerMenu {
    margin-right: 5px;
    text-align: left;
    text-indent: 0px;
    position: relative;
    z-index: 500;
}
div.default-toolbar .headerMenu b {
    width: 20px;
}

/* Override for writer - remove with feature protection */
#overhead div.default-toolbar .headerMenuActive,
#overhead div.default-toolbar .headerMenuActive:hover,
#overhead div.default-toolbar .headerMenuActive.headerMenu:active {
    height: 25px;
    background-color: #fff;
    background-image: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid #cbcbcb;
    border-bottom: none;
    margin-left: 3px;
    margin-right: 1px;
    margin-top: 8px;
}
div.stash-toolbar .stash-toolbar-file,
div.stash-toolbar .stash-toolbar-edit {
    margin-right: 10px;
}
div.stash-toolbar .stash-toolbar-file,
div.stash-toolbar .stash-toolbar-edit {
    margin-right: 2px;
    margin-left: 4px;
    padding-left: 10px;
}
div.stash-toolbar .stash-toolbar-edit {
    width: 46px;
}
div.popup2.stashwriter-toolbar-menu,
div.popup2.default-toolbar-menu {
    width: 175px;
    height: auto;
    padding: 6px 0;
    font-size: 11px;
    line-height: 27px;
    color: #4d4e50;
    background: #fff;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    border: 1px solid #bdbdbe;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow:1px 3px 4px rgba(0, 0, 0, 0.2);
}
div.popup2.default-toolbar-menu.right-aligned {
    border-radius: 4px 0 4px 4px;
    box-shadow:-1px 3px 4px rgba(0, 0, 0, 0.2);
}
div.popup2.default-toolbar-menu.stash-toolbar-file {
    width: 206px;
}
div.popup2.default-toolbar-menu.stash-toolbar-edit {
    width: 125px;
}
.stashwriter-toolbar-menu .blockmenu,
.default-toolbar-menu .blockmenu {
    padding: 0;
    margin: 0;
    list-style: none;
    white-space: nowrap;
}
.stashwriter-toolbar-menu li,
.default-toolbar-menu li {
    padding: 0 0 0 12px;
    list-style: none;
    cursor: pointer;
    position: relative;
}
.stashwriter-toolbar-menu li:hover,
.stashwriter-toolbar-menu li.hover,
.default-toolbar-menu li:hover,
.default-toolbar-menu li.hover {
    background: #1b91e0;
}
.default-toolbar-menu li.disabled {
    opacity: 0.3;
    filter: alpha(opacity=30); /* IE8 */
    cursor: default;
}
.stashwriter-toolbar-menu li.disabled,
.default-toolbar-menu li.disabled {
    color: #bfc0c2;
    opacity: 1;
}
.stashwriter-toolbar-menu li.disabled:hover,
.default-toolbar-menu li.disabled:hover {
    background: none;
}
.stashwriter-toolbar-menu .weak,
.stashwriter-toolbar-menu .hotkey {
    color: #747679;
}
.stashwriter-toolbar-menu .disabled .weak,
.stashwriter-toolbar-menu .disabled .hotkey {
    color: #d9d9d9;
}
.default-toolbar-menu .weak,
.default-toolbar-menu .hotkey {
    color: #d9d9d9;
}
.default-toolbar-menu .hotkey {
    position: absolute;
    right: 9px;
}
.stashwriter-toolbar-menu .separator,
.default-toolbar-menu .separator {
    padding: 0;
    border-bottom: 1px solid #d6d6d6;
    border-top: none;
    height: 0;
    margin: 4px 0;
    overflow: hidden;
    cursor: default;
}
#stash-toolbar-form, #stash-toolbar-file {
    position: fixed;
    top: -1337px;
    left: -1337px;
    z-index: 250;
}
body.stash-page #overhead-collect nav {
    width: 230px;
}
body.stash-page #overhead-collect nav li {
    float: left;
}
body.stash-page #overhead-collect nav a,
body.stash-page #overhead-collect nav .disabled a:hover {
    background: #eee; /* Old browsers */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#eee)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #fff 0%,#eee 100%); /* Chrome10+,Safari5.1+ */
    background: -ms-linear-gradient(top,  #fff 0%,#eee 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #fff 0%,#eee 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */

    color: #121516;
    display: block;
    font: normal 11px/1 Verdana, sans-serif;
    padding: 7px 12px 8px;
}
body.stash-page #overhead-collect nav ul {
    padding: 0 0 0 4px;
}
body.stash-page #overhead-collect nav li {
    list-style: none;
}
body.stash-page #overhead-collect nav a {
    color: #3B5A4A;
    border: 1px solid #999;
}
body.stash-page #overhead-collect nav a:hover {
    background: #fff;
    color: #3b5a4a
}
body.stash-page #overhead-collect nav a:active {
    background: #ddd; /* Old browsers */
    background: -moz-linear-gradient(top,  #bbb 0%, #ddd 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bbb), color-stop(100%,#ddd)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #bbb 0%,#ddd 100%); /* Chrome10+,Safari5.1+ */
    background: -ms-linear-gradient(top,  #bbb 0%,#ddd 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #bbb 0%,#ddd 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#bbb', endColorstr='#ddd',GradientType=0 ); /* IE6-9 */
}
body.stash-page #overhead-collect nav i {
    font-style: normal
}
body.stash-page #overhead-collect nav .disabled {
    opacity: 0.5;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}
body.stash-page #overhead-collect nav .disabled a {
    cursor: default;
}
body.stash-page #overhead-collect nav li.prev a {
    border-right: 1px solid transparent;
    border-radius: 5px 0 0 5px;
}
body.stash-page #overhead-collect nav li.next a {
    border-left: 1px solid transparent;
    border-radius: 0 5px 5px 0;
    border-right: 1px solid #b9b9b9;
}

body.stash-page #overhead-collect nav li.back a {
    border-radius: 5px;
}

body.stash-page #overhead-collect nav li.prev a img,
body.stash-page #overhead-collect nav li.next a img {
    width: 8px;
    height: 8px;
}

@media only screen and (max-device-width: 480px)  {
    .stash-page #overhead-collect #overhead tbody tr td.f,
    .oh-stash-toolbar {
        min-width: 0;
    }
}

.footer {
    text-align: center;
}
.footer .switch_mode {
    margin: 0 auto;
    padding: 10px 0 5px;
}
.footer .switch_mode a:link {
    color: #222;
    text-decoration: underline;
}
.footer .switch_mode a:hover,
.footer .switch_mode a:active {
    color: #000;
}

.stash-footer {
    border-top: 1px solid #c0c0c2;
    margin: 13px 0;
    padding-top: 10px;
    position: relative;
    text-align: center;
}

/* Stack download link */
#stack-download-link > a {
    text-align: left;
    display: inline-block;
}
#stack-download-link > a > strong {
    color: #5b6ba7;
    font-family: Trebuchet, 'Trebuchet MS', sans-serif;
    font-size: 15px;
    font-weight: bold;
}
#stack-download-link > a:hover > strong {
    text-decoration: underline;
}
#stack-download-link > a > strong,
#stack-download-link > a > span {
    position: relative;
}
#stack-download-link > a > span {
    left: 35px;
    color: #747062;
}
#stack-download-link > a > i {
    width: 35px;
    display: inline-block;
    height: 14px;
    background-position: -240px -4px;
    background-image: url(/minish/deviation/iconset-moreart.png?3);
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* This jumps up to the top when opening the inline editor */
.stash-page #gmi-PreviewStreamControls {
    visibility: hidden;
}

/* Helper mixins */
.colormixin(@color:false) when not (@color=false) {color: @color;}
.bgcolormixin(@color:false) when not (@color=false) {background-color: @color;}
.bordercolormixin(@color:false) when not (@color=false) {border-color: @color;}

.widthmixin(@width:false) when not (@width=false) {width: @width;}
.minwidthmixin(@width:false) when not (@width=false) {min-width: @width;}
.maxwidthmixin(@width:false) when not (@width=false) {max-width: @width;}

.heightmixin(@height:false) when not (@height=false) {height: @height;}
.minheightmixin(@height:false) when not (@height=false) {min-height: @height;}
.maxheightmixin(@height:false) when not (@height=false) {max-height: @height;}

/* Helper variable for retina media queries */
@retina : ~"(-webkit-min-device-pixel-ratio: 2), (min--moz-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 2dppx), (min-resolution: 192dpi)";

/*
 * helper function for .linear-gradient
 * @encode - string of svg xml
 */
.base64DataUriBackground (@encode, @type: ~"image/svg+xml") {
    @dataUriPrefix: ~"url(data:@{type};base64,";
    @dataUriSuffix: ~")";
 
    // because our lessc doesn't give access to btoa()
    // we have to make our own
    @b64DataUri: ~`(function(a,b,c){function e(a){a=a.replace(/\r\n/g,'\n');var b='';for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(d<128){b+=String.fromCharCode(d)}else if(d>127&&d<2048){b+=String.fromCharCode(d>>6|192);b+=String.fromCharCode(d&63|128)}else{b+=String.fromCharCode(d>>12|224);b+=String.fromCharCode(d>>6&63|128);b+=String.fromCharCode(d&63|128)}}return b}function f(a){var b='';var c,f,g,h,i,j,l;var m=0;a=e(a);while(m<a.length){c=a.charCodeAt(m++);f=a.charCodeAt(m++);g=a.charCodeAt(m++);h=c>>2;i=(c&3)<<4|f>>4;j=(f&15)<<2|g>>6;l=g&63;if(isNaN(f)){j=l=64}else if(isNaN(g)){l=64}b=b+d.charAt(h)+d.charAt(i)+d.charAt(j)+d.charAt(l)}return b}var d='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';return a+f(b)+c})('@{dataUriPrefix}','@{encode}','@{dataUriSuffix}')`;
 
    background: @b64DataUri;
}

/*
 * @angle - 1st param (eg 45deg, top, to left bottom)
 * @legacy_color - Color if no gradient at all is available
 * @ie_gradient_type - 0 (vertical) or 1 (horizontal).  If anybody wants to write a filter to deduce this 
 *                     angle, have at it
 */
.linear-gradient(@start_color, @end_color) {
    .linear-gradient(top, @start_color, @end_color, @start_color);
}
.linear-gradient(@angle, @start_color, @end_color) {
    .linear-gradient(@angle, @start_color, @end_color, @start_color);
}
.linear-gradient(@angle, @start_color, @end_color, @legacy_color: @start_color, @ie_gradient_type: 0) {
    @svg: ~'<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><linearGradient id="grad-ucgg-generated" gradientUnits="userSpaceOnUse" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="@{start_color}" stop-opacity="1"/><stop offset="100%" stop-color="@{end_color}" stop-opacity="1"/></linearGradient><rect x="0" y="0" width="1" height="1" fill="url(#grad-ucgg-generated)" /></svg>';
 
    
    /* base background */
    background: @legacy_color;
    
    /* IE9 you so special */
    .ie.eq9 & {
        .base64DataUriBackground(@svg);
    }
    /* IE8 is the bad kind of special */
    .ie.lt9 & {
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{start_color}', endColorstr='@{end_color}',GradientType=@ie_gradient_type );
    }
    
    /* hooray modern browsers */
    background: -webkit-linear-gradient(@angle, @start_color, @end_color);
    background: -moz-linear-gradient(@angle, @start_color, @end_color);
    background: linear-gradient(@angle, @start_color, @end_color);
}

.linear-gradient-stops(@angle, @legacy_start_color, @legacy_end_color, @legacy_color, @rest...) 
{
    @svg: ~'<?xml version="1.0" ?><svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><linearGradient id="grad-ucgg-generated" gradientUnits="userSpaceOnUse" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="@{legacy_start_color}" stop-opacity="1"/><stop offset="100%" stop-color="@{legacy_end_color}" stop-opacity="1"/></linearGradient><rect x="0" y="0" width="1" height="1" fill="url(#grad-ucgg-generated)" /></svg>';
 
    
    /* base background */
    background: @legacy_color;
    
    /* IE9 you so special */
    .ie.eq9 & {
        .base64DataUriBackground(@svg);
    }
    /* IE8 is the bad kind of special */
    .ie.lt9 & {
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='@{legacy_start_color}', endColorstr='@{legacy_end_color}',GradientType=0 );
    }
    
    /* hooray modern browsers */
    background: -webkit-linear-gradient(@angle, @rest);
    background: -moz-linear-gradient(@angle, @rest);
    background: linear-gradient(@angle, @rest);
}

/*
 * This is not compatible with IE8, don't use it if you have to support old IE
 * 
 * @lhs - Left hand side (height, width, whatever)
 * @rhs - Right hand side, whatever your calculation is.  You probably need a ~
 *
 * Example: .calc(height, ~"100% - 50px")
 *
 * Note, using a guard because less doesn't seem to like using a variable for lhs
 * Annoying, but don't know what else to do
 *
 * http://caniuse.com/calc
 */
.calc(@lhs, @rhs) when (@lhs = width) {
    width: -webkit-calc(@rhs);
    width: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = height) {
    height: -webkit-calc(@rhs);
    height: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = left) {
    left: -webkit-calc(@rhs);
    left: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = right) {
    right: -webkit-calc(@rhs);
    right: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = top) {
    top: -webkit-calc(@rhs);
    top: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = bottom) {
    bottom: -webkit-calc(@rhs);
    bottom: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = min-width) {
    min-width: -webkit-calc(@rhs);
    min-width: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = max-width) {
    max-width: -webkit-calc(@rhs);
    max-width: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = min-height) {
    min-height: -webkit-calc(@rhs);
    min-height: calc(@rhs);
}
.calc(@lhs, @rhs) when (@lhs = max-height) {
    max-height: -webkit-calc(@rhs);
    max-height: calc(@rhs);
}


/*
 * Not compatible with IE8 or IE9 (nothing breaks, they just don't get transitions)
 */
.transition(@arg) {
    -moz-transition: @arg;
    -webkit-transition: @arg;
    transition: @arg;
}

.transition(@transition, @duration, @timingFunction: ease-in-out ) when (@transition = transform) {
    -webkit-transition: -webkit-transform @duration @timingFunction;
    -moz-transition: -moz-transform @duration @timingFunction;
    -ms-transition: -ms-transform @duration @timingFunction;
    transition: transform @duration @timingFunction;
}

.animation (@name, @duration: 300ms, @delay: 0, @ease: ease, @iterationCount: 1) {
    -webkit-animation: @name @duration @delay @ease;
    -moz-animation:    @name @duration @delay @ease;
    -ms-animation:     @name @duration @delay @ease;
    animation-iteration-count: @iterationCount;
    -webkit-animation-iteration-count: @iterationCount;
    -moz-animation-iteration-count: @iterationCount;
}

.transition-delay(@arg) {
    -webkit-transition-delay: @arg;
    -moz-transition-delay: @arg;
    -o-transition-delay: @arg;
    transition-delay: @arg;
}

/*
 * Not supported in <=IE8
 */
.transform(@arg) {
    -ms-transform: @arg;
    -webkit-transform: @arg;
    transform: @arg;
}

.transform-scale(@arg) {
    -ms-zoom: @arg;
    -ms-transform: scale(@arg);
    -webkit-transform: scale(@arg);
    transform: scale(@arg);
}

.transform-origin(@arg) {
    -ms-transform-origin: @arg;
    -moz-transform-origin: @arg;
    -webkit-transform-origin: @arg;
    transform-origin: @arg;
}

.box-sizing(@arg) {
    -moz-box-sizing: @arg;
    -webkit-box-sizing: @arg;
    box-sizing: @arg;
}

.filter(@arg) {
    -ms-filter: @arg;
    -moz-filter: @arg;
    -webkit-filter: @arg;
    filter: @arg;
}

.user-select(@arg) {
    -ms-user-select: @arg;
    -moz-user-select: @arg;
    -webkit-user-select: @arg;
    user-select: @arg;
}

.backface-visibility(@arg) {
    -webkit-backface-visibility: @arg;
    backface-visibility: @arg;
}

.perspective(@arg) {
    -webkit-perspective: @arg;
    perspective: @arg;
}

.cursor-zoom-in(@arg) {
    cursor: @arg;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
}

.cursor-zoom-out(@arg) {
    cursor: @arg;
    cursor: -webkit-zoom-out;
    cursor: -moz-zoom-out;
}

.appearance(@arg) {
    -webkit-appearance: @arg;
    -moz-appearance: @arg;
}

.text-size-adjust(@arg) {
    -webkit-text-size-adjust: @arg;
    -moz-text-size-adjust: @arg;
    -ms-text-size-adjust: @arg;
}

/* 
 *  Make something spin for infinite time, one rotation per @interval 
 *  example: .spin(3000ms)
*/
.spin(@interval) {
    -webkit-animation-name: spin;
    -webkit-animation-duration: @interval;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-name: spin;
    -moz-animation-duration: @interval;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation-name: spin;
    -ms-animation-duration: @interval;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    animation-name: spin;
    animation-duration: @interval;
    animation-iteration-count: infinite;
    animation-timing-function: linear;

    @-ms-keyframes spin {
        from { -ms-transform: rotate(0deg); }
        to { -ms-transform: rotate(360deg); }
    }
    @-moz-keyframes spin {
        from { -moz-transform: rotate(0deg); }
        to { -moz-transform: rotate(360deg); }
    }
    @-webkit-keyframes spin {
        from { -webkit-transform: rotate(0deg); }
        to { -webkit-transform: rotate(360deg); }
    }
    @keyframes spin {
        from { transform:rotate(0deg); }
        to { transform:rotate(360deg); }
    }
}

/*
 * CSS3 multi-column layout.
 * Won't do anything for IE8 or 9.
 */
.column-count(@arg) {
    -moz-column-count: @arg;
    -webkit-column-count: @arg;
    column-count: @arg;
}
.column-width(@arg) {
    -moz-column-width: @arg;
    -webkit-column-width: @arg;
    column-width: @arg;
}
.column-gap(@arg) {
    -moz-column-gap: @arg;
    -webkit-column-gap: @arg;
    column-gap: @arg;
}
.column-rule(@arg) {
    -moz-column-rule: @arg;
    -webkit-column-rule: @arg;
    column-rule: @arg;
}

/*
 * Input placeholder text
 */
.placeholder-font-style(@style){
    &::-webkit-input-placeholder {
        font-style: @style;
    }
    &:-moz-placeholder {
        font-style: @style;
    }
    &::-moz-placeholder {
        font-style: @style;
    }
    &:-ms-input-placeholder {
        font-style: @style;
    }
}
.placeholder-color(@color: false, @bgcolor: false, @bordercolor: false){
    &::-webkit-input-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
    &:-moz-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
    &::-moz-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
    &:-ms-input-placeholder {
        .colormixin(@color);
        .bgcolormixin(@bgcolor);
        .bordercolormixin(@bordercolor);
    }
}

/* Full-screen mixin */
.full-screen-width(@width: false, @minwidth: false, @maxwidth: false) {
    &:-webkit-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:-moz-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:-ms-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:-o-full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
    &:full-screen {
        .widthmixin(@width);
        .minwidthmixin(@minwidth);
        .maxwidthmixin(@maxwidth);
    }
}
.full-screen-height(@height: false, @minheight: false, @maxheight: false) {
    &:-webkit-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:-moz-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:-ms-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:-o-full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
    &:full-screen {
        .heightmixin(@height);
        .minheightmixin(@minheight);
        .maxheightmixin(@maxheight);
    }
}

/* Text hyphenation */
.hyphenate(@style:auto) {
    -webkit-hyphens:@style;
       -moz-hyphens:@style;
        -ms-hyphens:@style;
            hyphens:@style;
}

.clearfix() {
    zoom:1;
    &:before, &:after{ 
        content:""; 
        display:table; 
    }
    &:after{ 
        clear: both; 
    }
}

.font-smoothing(@value: antialiased) when(@value = antialiased) {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.font-smoothing(@value) when (@value = subpixel) {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

.font-default(@font-size: 14px, @line-height: 1.2, @font-weight: 300) {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: @font-size;
    line-height: @line-height;
    font-weight: @font-weight;
}

.font-face-calibre() {
    @font-face {
    font-family: 'Calibre-Bold';
        src: url('//st.deviantart.net/fonts/calibre-bold.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }
    @font-face {
    font-family: 'Calibre-Semibold';
        src: url('//st.deviantart.net/fonts/calibre-semibold.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
    font-family: 'Calibre-Light';
        src: url('//st.deviantart.net/fonts/calibre-light.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }
}

.font-heading-bold(@font-size: 40px, @line-height: 1, @font-weight: 300) {
    font-family: 'Calibre-Bold';
    line-height: @line-height;
    font-weight: @font-weight;
    font-size: @font-size;
}

.flexbox() {
    /* order is important here */
    display: -webkit-box;      /* OLD - iOS <6, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox <19 */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: flex;             /* NEW, Opera 12.1, Firefox >20 */
}

.flex() {
    .flexbox();

    /* but not here */
    flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-direction: row;
    -webkit-flex-direction:row;
    -moz-flex-direction:row;
    justify-content: flex-start;
    -webkit-justify-content:flex-start;
    -moz-justify-content:flex-start;
}
.flex-sizing(@size:1) {
    flex-grow: @size;
    -ms-flex-grow: @size;
    -moz-flex-grow: @size;
    -webkit-flex-grow:@size;
    flex-shrink: @size;
    -ms-flex-shrink: @size;
    -moz-flex-shrink: @size;
    -webkit-flex-shrink: @size;
}
.flex-center() {
    -webkit-box-pack: center; /* OLD - iOS <6, Safari 3.1-6 */
    -webkit-box-align: center;
    -moz-box-pack: center; /* OLD - Firefox <19 */
    -moz-box-align: center;
    -ms-flex-pack: center; /* TWEENER - IE 10 */
    -ms-flex-align: center;
    -webkit-justify-content: center; /* NEW - Chrome, Safari */
    -webkit-align-items: center;
    justify-content: center; /* NEW, Opera 12.1, Firefox >20 */
    align-items: center; 
}

.flexbox-inline() {
    display: -ms-inline-flex;
    display: -webkit-inline-flex;
    display: inline-flex;
}
.flex-direction(@value: row) {
    -webkit-flex-direction: @value;
    -ms-flex-direction: @value;
    flex-direction: @value;
}
.flex-grow(@value: 0) {
    -webkit-flex-grow: @value;
    -ms-flex-grow: @value;
    flex-grow: @value;
}
.flex-shrink(@value: 1) {
    -webkit-flex-shrink: @value;
    -ms-flex-shrink: @value;
    flex-shrink: @value;
}
.flex-justify(@value: flex-start) {
    -webkit-justify-content: @value;
    -ms-justify-content: @value;
    justify-content: @value;
}
.flex-align(@value: stretch) {
    -webkit-align-items: @value;
    -ms-align-items: @value;
    align-items: @value;
}
.flex-align-self(@value: auto) {
    -webkit-align-self: @value;
    -ms-align-self: @value;
    align-self: @value;
}
.flex-wrap(@value: wrap) {
    -webkit-flex-wrap: @value;
    -ms-flex-wrap: @value;
    flex-wrap: @value;
}
.fit(@margin:0) {
    position: absolute;
    top: @margin;
    right: @margin;
    bottom: @margin;
    left: @margin;
}

.fit-fixed(@margin:0) {
    position: fixed;
    top: @margin;
    right: @margin;
    bottom: @margin;
    left: @margin;
}

.transition-cubic-bezier(@property: all, @duration: 0.2s) {
    .transition(@property @duration cubic-bezier(0, 0, 0.58, 1));
}

/*
 * Push lately to have greyscale interfaces.
 * UI likes to think in terms of % grey, so they make mocks with
 * rgba(0,0,0, .74) for 74% grey.
 * This style uses more css room, requires more processing cycles from the browser's paint, and is dangerous
 * if underlying element is ever changed to something other than white.
 *
 * Now you can just do .foo { .grey(74%); color:@grey; }
 */

.grey(@percentage) {
    @grey: darken(#fff, 100% - @percentage);
}


/* Old brand colors */
.brandcolors() {
    @primary-green: #0FCC47;
    @primary-teal: #41CFC7;
    @primary-orange: #F75908;
    @primary-magenta: #ED145A;
    @primary-lightgreen: #BDD023;
    @primary-darkgreen: #026D20;

    @grey1: #111;
    @grey2: #242626;
    @grey3: #2F3131;
    @grey4: #323232;
    @grey5: #363636;
    @grey6: #474747;
    @grey7: #555;
    @grey8: #575757;
    @grey9: #666;
    @grey10: #6F6F6F;
    @grey11: #727272;
    @grey12: #828282;
    @grey13: #999;
    @grey14: #909090;
    @grey15: #CBCBCB;
    @pale-grey: #F2F2F2;

    @black-alpha1: rgba(0,0,0,0.5);
    @black-alpha2: rgba(0,0,0,0.2);

    @white-alpha1: rgba(0,0,0,0.8);
    @white-alpha2: rgba(0,0,0,0.5);
    @white-alpha3: rgba(0,0,0,0.3);
    @white-alpha4: rgba(0,0,0,0.2);
    @white-alpha5: rgba(0,0,0,0.1);
    @white-alpha6: rgba(0,0,0,0.07);

    @list-level-0: #19252C;
    @list-level-1: #273943;
    @list-level-2: #324855;
    @list-level-3: #455C69;
}

/* New brand colors */
.11-14-brandcolors() {
    /* Used by the header */
    @brand-green: #05CC47;
    @header-green: #475C4D;
    @dark-header-green: #46584A;
    @border-green: #38463B;
    @subheader-green: #3D4F42;
    @submit-green: #5FAC75;
    @menu-grey: #313836;
    @hover-blue: #508FA3;

    /* Colors from the brand guidelines */

    @black: #000;
    @grey1: #181A1B;
    @grey2: #4F5254;
    @grey3: #7D8080;
    @grey4: #F2F2F2;
    @white: #FFF;
    @darker-grey: #181A1B;
    @pale-grey: #F2F2F2;


    @blue1: #1F3833;
    @blue2: #36807A;
    @blue3: #40CFC7;
    @blue4: #D4F5F2;

    @green1: #1F3626;
    @green2: #42704F;
    @green3: #4DC47D;
    @green4: #D4F5DE;

    @orange: #F7590A;


    @core-access-icon: #FFB35C;
    @core-plus-icon: #FF815F;
    @core-pro-icon: #E776FF;
    @core-pro-plus-icon: #FF94B4;
    @core-max-icon: #7579FF;


    @accent-orange: darken(@orange, 10%);
}


