/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */
body {
    font: 16px/26px Calibri, Verdana, Arial;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Orange Theme
   =================== */

html, body{
    height: 100%;
}

.header-container {
    font: 16px/26px 'Open Sans', Verdana, Arial;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', Verdana, Arial;
    color: #333;
    font-weight: 400;
}

h1 {
    font-size: 2em;
    /*text-shadow: 0 0 3px #999;*/
}

h2, h3 {
    font-size: 1.75em;
    /*text-shadow: 0 0 2px #999;*/
}

h1, h2, h3 {
    padding: 0;
    margin: 0 0 30px 0;
    padding: 60px 0 0 0;
    font-weight: normal;
}

.footer-container footer {
    background-color: #666;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.main {
    color: #666;
}

.main-container {
    padding: 0 0 60px;
}

.footer-container {
    overflow: hidden;

    margin: -45px 0 0;
    position: relative;
}

.left {
    float: left;
}

.right {
    float: right;
}

.title {
    font-size: 3.2em;
    font-weight: bold;
    margin: 0.8em 0 0.25em;
}

.title span {
    font-weight: normal;
}

.title a, .title a:hover, .title a:active {
    color: #000;
    text-decoration: none;
}

.subtitle {
    font-size: 1.7em;
    margin: 0 0 0.8em;
}
.subtitle-rus {
    font-size: 1.55em;
}


/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 0;
}

.main article h1 {
    font-size: 2em;
}

.footer-container footer {
    color: white;
    font-size: 0.85em;
}

footer .left, footer .right {
    margin: 1em 2em 0.4em;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

.lt-ie9 nav {
    float: right;
    width: 798px;
}

.lt-ie9 nav a {
    float: left;
    width: 11.35%;
    margin: 0;
    padding: 1px 0.5%;
    margin-bottom: 0;
}

.lt-ie9 nav ul li {
    display: inline;
}

.ie8 .oldie nav a {
    margin: 0 0.7%;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

#banner figure {
    border-radius: 5px 0 5px 5px;
    background: url(../img/shadow.png) repeat-x top;
    background-color: #F16529;
    overflow: hidden;
    position: relative;
}

#banner img {
    float: left;
    border-right: 1px solid #fff;
    border-radius: 5px 0 0 5px;
}

#banner figcaption {
    color: #fff;
    float: right;
    height: 337px;
    font-size: 1.7em;
    width: 400px;
    margin-right: 12px;
    position: absolute;
    right: 0;
    top: 90px;
    line-height: 1.5em;
}

#banner figcaption span {
    display: block;
    font-size: 3.2em;
    margin: 0 0 0.7em 0;
}

#banner figcaption span.bigger {
    font-size: 5em;
    margin-top: 0;
}

.wrapper {
    position: relative;
}

hr.divider {
    border: 0;
    display: block;
    height: 135px;
    background: url(../img/divider.jpg) no-repeat top center;
    margin: 0;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.main section, .main header {
    margin: 0 0 3em 0;
    padding: 0 1em;
}

.orange .header-container .title span {
    color: #fc6532;
}

.orange #banner figure, .orange nav a:hover, .orange nav a.active {
    background-color: #fc6532;
}

.cyan .header-container .title span {
    color: #33cccc;
}

.cyan #banner figure, .cyan nav a:hover, .cyan nav a.active {
    background-color: #33cccc;
}

.green .header-container .title span {
    color: #2ba74f;
}

.green #banner figure, .green nav a:hover, .green nav a.active {
    background-color: #2ba74f;
}

.lightgreen .header-container .title span {
    color: #9ae16f;
}

.lightgreen #banner figure, .lightgreen nav a:hover, .lightgreen nav a.active {
    background-color: #9ae16f;
}

.yellow .header-container .title span {
    color: #ebe924;
}

.yellow #banner figure, .yellow nav a:hover, .yellow nav a.active {
    background-color: #ebe924;
}

.blue .header-container .title span {
    color: #3365ca;
}

.blue #banner figure, .blue nav a:hover, .blue nav a.active {
    background-color: #3365ca;
}

.darkblue .header-container .title span {
    color: #40BBDE;
}

.darkblue #banner figure, .darkblue nav a:hover, .darkblue nav a.active {
    background-color: #40BBDE;
}

.red .header-container .title span {
    color: #fc5050;
}

.red #banner figure, .red nav a:hover, .red nav a.active {
    background-color: #fc5050;
}

.lightred .header-container .title span {
    color: #fc7f7f;
}

.lightred #banner figure, .lightred nav a:hover, .lightred nav a.active {
    background-color: #fc7f7f;
}


/* calendar */
#booking .event a{
    display: block;
    color: #666;
    padding: 1em 0;
}
#booking .event a:hover{
    background-color: #6DD;
}
#booking .event a.selected{
    background-color: #87a5db;
}

#booking .occupied {
    background-color: #ffa500;
}
#booking .recommended {
    background-color: #9ae16f;
}
#booking .available {
    background-color: #cFF;
}

#legend {
    font-size: 0.8em;
    margin: 1em 0 0 0;
}
#legend span {
    width: 20px;
    display: inline-table;
    margin: 2px 0;
    border-radius: 4px;
}

#bookform label {
    display: block;
    margin: 0 0 10px 0;
}
#bookform label input, #bookform label textarea {
    float: right;
    width: 66%;
}

.button {
    border: 1px solid #0a3c59;
    background: #248a8a;
    background: -webkit-gradient(linear, left top, left bottom, from(#1f7fcc), to(#248a8a));
    background: -webkit-linear-gradient(top, #1f7fcc, #248a8a);
    background: -moz-linear-gradient(top, #1f7fcc, #248a8a);
    background: -ms-linear-gradient(top, #1f7fcc, #248a8a);
    background: -o-linear-gradient(top, #1f7fcc, #248a8a);
    background-image: -ms-linear-gradient(top, #1f7fcc 0%, #248a8a 100%);
    padding: 9px 18px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
    text-shadow: #091921 0 1px 0;
    color: #ffffff;
    font-size: 14px;
    font-family: helvetica, serif;
    text-decoration: none;
    vertical-align: middle;
}
.button:hover {
    border: 1px solid #0a3c59;
    text-shadow: #1e4158 0 1px 0;
    background: #3e779d;
    background: -webkit-gradient(linear, left top, left bottom, from(#1f7fcc), to(#3e779d));
    background: -webkit-linear-gradient(top, #1f7fcc, #3e779d);
    background: -moz-linear-gradient(top, #1f7fcc, #3e779d);
    background: -ms-linear-gradient(top, #1f7fcc, #3e779d);
    background: -o-linear-gradient(top, #1f7fcc, #3e779d);
    background-image: -ms-linear-gradient(top, #1f7fcc 0%, #3e779d 100%);
    color: #fff;
}
.button:active {
    text-shadow: #1e4158 0 1px 0;
    border: 1px solid #0a3c59;
    background: #65a9d7;
    background: -webkit-gradient(linear, left top, left bottom, from(#1f7fcc), to(#3e779d));
    background: -webkit-linear-gradient(top, #1f7fcc, #65a9d7);
    background: -moz-linear-gradient(top, #1f7fcc, #65a9d7);
    background: -ms-linear-gradient(top, #1f7fcc, #65a9d7);
    background: -o-linear-gradient(top, #1f7fcc, #65a9d7);
    background-image: -ms-linear-gradient(top, #1f7fcc 0%, #65a9d7 100%);
    color: #fff;
}

#gallery{
    margin: 2em 0 0 0;
    text-align: center;
}
#gallery img {
    margin: 0 0 5px 0;
}

#flash_message {
    margin: 1em;
    background: lightgreen;
    padding: 0.5em;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    float: left;
    width: 50%;
    margin-bottom: 10px;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 1px 3px #aaa;
    font-size: 0.7em;
    color: #000;
}

nav .divider {
    border-right: 1px solid #fff;
}

nav a.last {
    border-right: none;
}

nav a:hover,
nav a:visited {
    color: #000;
}

nav a:hover {
    text-decoration: underline;
}

nav ul {
    overflow: hidden;
    border-bottom: 1px solid #fff;
    border-radius: 4px 4px 0 0;
    background: #f1f1f1; /* Old browsers */
    background: -moz-linear-gradient(top,  #f1f1f1 0%, #c9c9c9 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f1f1f1), color-stop(100%,#c9c9c9)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  #f1f1f1 0%,#c9c9c9 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  #f1f1f1 0%,#c9c9c9 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  #f1f1f1 0%,#c9c9c9 100%); /* IE10+ */
    background: linear-gradient(to bottom,  #f1f1f1 0%,#c9c9c9 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f1f1f1', endColorstr='#c9c9c9',GradientType=0 ); /* IE6-9 */
}

/* MOBILE BOOKING */
#booking #calendar {
    width: 100%;
}

#booking #events {
    width: 100%;
}

#booking #bookform {
    width: 100%;
}

#social_icons {
    position: absolute;
    right: 0;
    margin-top: -40px;
}
#social_fb, #social_vk {
    display: inline-block;
    width: 30px;
    height: 28px;
    background: url(../img/fb_vk.png) no-repeat;
}
#social_fb {
    background-position: 0 -29px;
}
#social_fb:hover {
    background-position: 0 0;
}
#social_vk {
    background-position: -35px -29px;
}
#social_vk:hover {
    background-position: -35px 0;
}

#lang_selector {
    float: right;
    position: absolute;
    right: 45px;
    margin-top: -40px;
}
#lang_selector a {
    text-decoration: none;
    /* color: #000; */
}

article img {
    max-width: 100%;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 1140px) {

    /* ===============
        Maximal Width
       =============== */

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
}

@media only screen and (min-width: 768px) {

    /* ====================
        WIDE: CSS3 Effects
       ==================== */


    /* ============
        WIDE: Menu
       ============ */

    /* ============
        WIDE: Main
       ============ */

}

@media only screen and (min-width: 800px) {

    /* ====================
        INTERMEDIATE: Menu
       ==================== */

    nav {
        float: right;
        width: 798px;
    }

    nav a {
        float: left;
        width: 11%;
        margin: 0;
        padding: 1px 0.5%;
        margin-bottom: 0;
    }

    nav a.longer {
        width: 13.5%;
    }

    nav a.twoline {
        line-height: 4.3em;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

    .fixed {
        position: fixed;
        z-index: 10;
        width: 100%;
        background: #fff;
        top: 0;
    }
    .fixed .title {
        font-size: 35px;
        position: absolute;
        margin: 0.2em 0 0 0.1em
    }
    .fixed .subtitle {
        font-size: 18px;
        padding-top: 30px;
        position: absolute;
        padding-left: 4px;
    }

    .fixed .subtitle-rus {
        font-size: 17px;
    }

    .fixed nav ul {
        border-radius: 0 0 3px 3px;
    }

    #booking #calendar {
        width: 43%;
    }

    #booking #events {
        width: auto;
    }

    #booking #bookform {
        width: 35%;
    }

    #booking .event a{
        padding: 0;
    }

    /* ========================
        INTERMEDIATE: IE Fixes
       ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* PLUGINS */

.block-spoiler {
    color: #993333;
    float: right;
    position: relative;
    top: -3.0em;
    margin-right: 1em;
}

.block-spoiler-toggle {
    cursor: pointer;
}

.inline-spoiler-toggle {
    cursor: pointer;
}

.redac-text {
    color: #000000;
    background-color: #000000;
}

.redac-text:hover {
    background-color: #ffffff;
}

div.spoiler-text {
    display: none;
    padding: 0px 10px;
}

span.spoiler-text {
    display: none;
    padding: 0px 5px;
}
