@import url(https://static.kozhilya.ru/fonts/PresentScript3.css);
/*@import url(/static/fonts/PresentScript3.css);*/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext);


/***** COMMON *****/
body {
    background: url(https://static.kozhilya.ru/files/design/day/block_bg.png?ver=1.0);
    margin: 0;
    font: normal 12px 'Open Sans';
    color: #523c2e;
}

a, a:link, a:visited {
    text-decoration: none;
    color: #955830;
}

a:hover, a:focus, a:active {
    color: #904c20;
}

/***** MAIN *****/
.window#map {
    width: 100%;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 400px 1fr;
    grid-gap: 0;
    grid-template-areas:
        "info map";
}

/***** INFO SECTION *****/
section#info {
    grid-area: info;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

section#info .wrapper {
    border-width: 0 15px 0 0;
    border-style: none solid none none;
    border-image: url(https://static.kozhilya.ru/files/design/day/quote_bg.png?ver=2) 15 fill repeat;
    height: 100%;
    padding: 0 0 0 7px;
    display: grid;
    grid-template-rows: 50px 1fr 90px;
    grid-template-columns: 1fr;
    grid-gap: 0;
    grid-template-areas: 
        "tools"
        "texts"
        "footer";
}

section#info .wrapper > * {
    width: 100%;
    text-align: center;
}


/***** TOOLS *****/
section#info header {
    grid-area: tools;
    display: flex;
    flex-flow: row nowrap;
}

section#info header p {
    flex: 1 auto;
    margin: 0
}

section#info header p#searchbox {
    display: flex;
    align-items: baseline;
}

section#info header label {
    font-size: 1.2em;
    margin: 0 .4em;
    flex: 0 auto;
}

section#info header input {
    height: 100%;
    background: transparent;
    border: 0 none;
    font: normal 1.2em 'Open Sans';
    flex: 1 auto;
}

section#info header .toggler {
    width: 60px;
    flex: 0 auto;
    cursor: pointer;
}

section#info header .toggler strong {
    display: block;
    margin: .3em 0;
}

section#info header .toggler .icon {
    display: inline-block;
    position: relative;
    width: 32px;
    height: 16px;
    vertical-align: middle;
    border: 1px solid #d3b489;
    box-shadow: 0 0 0 1px #523c2e;
    border-radius: 16px;
    cursor: pointer;
}

section#info header .toggler .icon:before {
    content: '.';
    display: block;
    width: 50%;
    height: 100%;
    background: #523c2e;
    border-radius: 50%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    /* z-index: -1; */
    transition: left 150ms linear;
}

section#info header .toggler.checked .icon:before {
    left: 50%;
}


/***** MAIN *****/
section#info main {
    overflow-y: auto;
}

section#info main.searching {

}


/***** SEARCH *****/
section#info .search {
    display: none;
}

section#info main.searching .search {
    display: flex;
    flex-flow: column nowrap;
    padding: 0;
    list-style: none;
    margin: 0;
}

section#info main.searching .search li {
    font: bold 2em 'Present Script';
    padding: 7px 5px;
    text-align: left;
    cursor: pointer;
}

section#info main.searching .search li:hover {
    background: rgba(149, 88, 48, 0.3);
}


/***** TEXTS *****/
section#info article {
    display: block;
    visibility: hidden;
    grid-area: texts;
    text-align: center;
    flex: 1 auto;
}

section#info main.searching article {
    display: none;
}

section#info.focused article {
    visibility: visible;
}

section#info article #location-title {
    font: bold 2.5em "Present Script";
}

section#info article #location-image {
    margin: 0 auto;
}

section#info article #location-desc {
    text-align: justify;
}

/*
section#info article #last-links ul {
    list-style: none;
    padding: 0;
}
section#info article #last-links ul li {
    padding: 5px 0 10px;
}
section#info article #last-links ul li a {
    font: normal 1.1em 'Open Sans';
}
section#info article #last-links ul li p {
    margin: 3px 0 0;
}
/* */
/* */
section#info article #last-links ul {
    list-style: none;
    padding: 0;
}

section#info article #last-links ul li {
    display: flex;
    width: 300px;
    margin: 0 auto;
}

section#info article #last-links ul li a {
    display: flex;
    padding: 5px 0;
    align-items: center;
}

section#info article #last-links ul li a:hover {
    background: rgba(149, 88, 48, 0.12);
}

section#info article #last-links ul li a.charlink {
    flex: 1 1 300px;
}

section#info article #last-links ul li a.charlink .charlink-avatar {
    flex: 1 0 30px;
    text-align: center;
}

section#info article #last-links ul li a.charlink .charlink-avatar img {
    height: 35px;
}

section#info article #last-links ul li a.charlink .charlink-name {
    flex: 1 0 120px;
    font: bold 1.5em "Present Script";
    text-align: left;
}

section#info article #last-links ul li a.postlink {
    flex: 1 1 200px;
    justify-content: flex-end;
}

/* */


/***** FOOTER *****/
section#info footer {
    grid-area: footer;
}


section#map {
    grid-area: map;
}

section#map .canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
}


.tooltip {
    border-image: url(https://static.kozhilya.ru/files/design/day/block_tab.png?ver=2) 12 fill round;
    color: #d3b489;
    padding: 2px 5px;
    position: fixed;
    border-width: 10px;
    border-style: solid;
    max-width: 350px;
}

.pridetooltip {
    text-align: center;
}

.pridetooltip strong {
    font: bold 1.7em "Present Script";
    margin: 0 0px 5px;
    display: block;
}

#location-owner-block,
.pridetooltip .owners {
    display: none;
}

.pridemode #location-owner-block,
.pridemode .pridetooltip .owners {
    display: block;

}


#loadoverlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(https://static.kozhilya.ru/files/design/day/block_bg.png?ver=1.0);
}

.loading {
    overflow: none;
}

/*
.loading main {
        display: none;
}
*/
.loading #loadoverlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading #loadoverlay > * {
    text-align: center;
}


/**** Fix ****/
.pride {
    font-weight: bold;
}

/* highlight for bright */
span[style*="#fac81d"],
span[style*="#ee8d2d"],
span[style*="#5ea516"],
span[style*="#1cae8a"] {
    text-shadow: 1px 1px 2px #491D00,
    1px -1px 2px #491D00,
    -1px 1px 2px #491D00,
    -1px -1px 2px #491D00;;
}

/* highlight for dark */
span[style*="#1c132d"],
span[style*="#0f0bc8"],
span[style*="#581212"],
span[style*="#008000"] {
    text-shadow: 1px 1px 2px #bb8f53,
    1px -1px 2px #bb8f53,
    -1px 1px 2px #bb8f53,
    -1px -1px 2px #bb8f53;
}


/**** Loader ****/
.lds-default {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-default div {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #523c2e;
    border-radius: 50%;
    animation: lds-default 1.2s linear infinite;
}

.lds-default div:nth-child(1) {
    animation-delay: 0s;
    top: 29px;
    left: 53px;
}

.lds-default div:nth-child(2) {
    animation-delay: -0.1s;
    top: 18px;
    left: 50px;
}

.lds-default div:nth-child(3) {
    animation-delay: -0.2s;
    top: 9px;
    left: 41px;
}

.lds-default div:nth-child(4) {
    animation-delay: -0.3s;
    top: 6px;
    left: 29px;
}

.lds-default div:nth-child(5) {
    animation-delay: -0.4s;
    top: 9px;
    left: 18px;
}

.lds-default div:nth-child(6) {
    animation-delay: -0.5s;
    top: 18px;
    left: 9px;
}

.lds-default div:nth-child(7) {
    animation-delay: -0.6s;
    top: 29px;
    left: 6px;
}

.lds-default div:nth-child(8) {
    animation-delay: -0.7s;
    top: 41px;
    left: 9px;
}

.lds-default div:nth-child(9) {
    animation-delay: -0.8s;
    top: 50px;
    left: 18px;
}

.lds-default div:nth-child(10) {
    animation-delay: -0.9s;
    top: 53px;
    left: 29px;
}

.lds-default div:nth-child(11) {
    animation-delay: -1s;
    top: 50px;
    left: 41px;
}

.lds-default div:nth-child(12) {
    animation-delay: -1.1s;
    top: 41px;
    left: 50px;
}

@keyframes lds-default {
    0%, 20%, 80%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}
