/* Generated by Font Squirrel (http://www.fontsquirrel.com) on August 18, 2014 */
@font-face {
    font-family: 'fbmodulary_bold';
    src: url('../fonts/fbmodulary-bold-webfont.eot');
    src: url('../fonts/fbmodulary-bold-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/fbmodulary-bold-webfont.woff') format('woff'), url('../fonts/fbmodulary-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Alef';
    src: url('../fonts/Alef-Regular.eot');
    src: url('../fonts/Alef-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/Alef-Regular.woff') format('woff'), url('../fonts/Alef-Regular.ttf') format('truetype'), url('../fonts/Alef-Regular.svg#alefregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Alef;
    color: #595959;
}

[class*="title"] {
    font-family: fbmodulary_bold;
}

header {
    background: url('../img/header.png');
    background-size: cover;
    background-position: center bottom;
    color: #fff;
    padding: 0 calc(50% - 35em) 1rem;
}

a {
    text-decoration: none;
    color: #595959;
}

.column.fifth {
    width: 18.4%;
    margin-left: 2%;
}

.column.fourth {
    width: 19%;
}

.logos {
    position: relative;
    z-index: 1;
}

body:not(.about) .logos:after {
    content: '';
    position: absolute;
    bottom: -394px;
    left: 0;
    background-image: url('../img/sprite.png');
    background-repeat: no-repeat;
    background-position: 0 54.5%;
    width: 167px;
    height: 181px;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    body:not(.about) .logos:after {
        bottom: -393px;
    }
}

.logos [class*="logo"] {
    background-image: url('../img/sprite.png');
    background-repeat: no-repeat;
    display: inline-block;
}

.logo-site {
    width: 235px;
    height: 180px;
}

.logo-ort {
    height: 100px;
    width: 260px;
    background-position: 0 -11.7rem;
}

.site-header {
    background-color: #0f1538;
    margin: -2% 0 0 0;
    padding: 1.8rem 1.8rem 1rem;
    box-shadow: 49rem 0 0 0 #0f1538;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .site-header {
        box-shadow: 350px 0 0 0 #0f1538; /*chrome behaves wierd when the units are rem, so use pixels...*/
    }
}

.page-title {
    font-size: 2em;
    font-weight: normal;
    margin: 0;
}

.page-description {
    font-size: 1.375em;
    font-weight: normal;
    margin-top: 0;
}

/** Tabs area***/
.tabs-wrapper {
    position: relative;
    height: 354px; /* This part sucks */
    clear: both;
    margin: 25px 0;
}

.tabs {
    list-style: none;
    padding-right: calc(50% - 35em);
    padding-left: 0;
}

.tab {
    float: right;
}

.tab label {
    background-color: #cacaca;
    background-image: url("../img/pattern.png");
    padding: 10px 25px;
    position: relative;
    left: 1px;
    margin-left: 5px;
    color: #5b5b5b;
    font-size: 1.6rem;
    text-align: center;
    -webkit-transition: background-color .17s linear;
    -moz-transition: background-color .17s linear;
    transition: background-color .17s linear;
    display: block;
}

.hatab.tab label {
    padding-bottom: 35px;
    margin-right: 20px;
}

.tab-subtitle {
    font-size: 1.2rem;
    font-family: Alef;
    display: block;
}

.tab [type=radio] {
    display: none;
}

.tab-content {
    position: absolute;
    top: -26px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px calc(50% - 579px);
    border: 1px solid #ccc;
    border-bottom: 10px solid #d3d3d3;
    border-top: 10px solid #ee5a13;
    opacity: 1;
    background-image:url('../img/pattern.png');

}

[type=radio]:checked ~ label {
    background-color: #e15512;
    background-image: none;
    color: white;
    z-index: 2;
}

[type=radio]:checked ~ label ~ .tab-content {
    background-image: url('../img/pattern.png');
    background-color: #e6e6e6;
    z-index: 1;
    opacity: 1;

}

/*Tab content - images with links to the curses */
.plain {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
}

.cat-title {
    float: none;
    /*flex: 1 1 170px;*/
    width: 20%;
}

.hatab .cat-title {
    width: 25%;
}

.content-top li a:before {
    content: "";
    background-image: url('../img/brain-sprite.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% auto;
    position: absolute;
    width: 170px;
    height: 170px;
    top: 0;
    right: 20px;

}

.hatab .content-top li a::before {
    right: 16%;
    /*in hatab - there are only 4 links so the image needs to be centered*/
}

.content-top li a {
    display: block;
    font-size: 1.75em;
    line-height: 1;
    text-align: center;
    position: relative;
    padding: 190px 20px 0;
}

.content-top li:nth-child(2) a:before {
    background-position: 0 -170px;
}

.content-top li:nth-child(3) a:before {
    background-position: 0 -340px;
}

.content-top li:nth-child(4) a:before {
    background-position: 0 -510px;
}

.content-top li:nth-child(5) a:before {
    background-position: 0 -680px;
}

.divRss {
    list-style-type: none;
}
.content-bottom{
    max-width: 68rem;
}
.rssTitle{
    margin: 0;
    padding: 0;
    font-family: fbmodulary_bold;
    font-size: 28px;
    color: #ef5a14;
}
.divRss ul{
  list-style: none;
  padding-left: 0;
}
.divRss li {
    margin-bottom: 2rem;
}
.divRss .rss-feed{
    padding-right: 0;
}
.divRss h4{
    margin: 10px 0 0 0;
}
.divRss img {
    float: right;
    margin-left: 1rem;
}
.column.ws_gestures{
    height: 266px !important;
    margin-top: 39px !important;
    width: 424px !important;
}
.content-bottom{
    margin-bottom: 60px;
}

footer.row-content {
    background-image: url('../img/footer.png');
    background-repeat: repeat-x;
    padding: 3.5% calc(50% - 35em) 1%;
    text-align: center;
    border-top: 10px solid #ee5a13;
}

.credits {
    padding: 2.5% calc(50% - 35em) 1%;
}

.link{
    text-decoration: underline;
}

#loginpanel {
    /*border-bottom: 1px solid #c6c6c6;*/
    padding-bottom: 2rem;
}

.login .login-title,
.login .login-description {
    margin: 0;
    font-weight: normal;
}

.login .login-title {
    font-size: 1.75rem;
}

.loginform label:not(#rememberlabel) {
    display: inline-block;
    width: 6rem;
    text-align: left;
}

.loginform .input {
    margin-bottom: 3%;
    width: calc(100% - 8rem);
}

.login .rememberpass,
.login .login-header {
    padding-right: 6.4rem; /* needed to account for label width + some more, don't know why...*/
    margin-bottom: 1rem;
}

.login .forgetpass {
    text-align: center;
    margin-right: 6.4rem;
    border-bottom: 1px solid #c6c6c6;
    padding-bottom: 2rem;
}

#loginbtn,
#guestbtn {
    border: none;
    font-size: 1.5rem;
    position: relative;
    background-image: url('../img/login_sprite.png');
    background-repeat: no-repeat;
    padding-left: 2rem;
}

#loginbtn {
    background-color: #ee5a13;
    color: #FFFFFF;
    margin-bottom: 1rem;
    background-position: 0.5rem -1.3rem;
}

#guestbtn {
    background-color: #c6c6c6;
    color: inherit;
    margin-top: 1.5rem;
    background-position: 0.5rem 0.5rem;
}

#forgotlink {
    text-decoration: underline;
}

#guestpanel {
    text-align: center;
    padding-right: 6.4rem;
    margin-top: 2rem;
}

#guestpanel h2 {
    margin: 0;
}

.about .pagetitle{
    font-family: fbmodulary_bold;
    font-size: 28px;
    margin-bottom: 1.5rem;
}
.paragraph{
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.paragraph h3{
    margin: 0;
}

.about header{
    border-bottom: 10px solid #ee5a13;
}
.footer-logos{
    margin-bottom: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: -20px;
}

.footer-logos .brain-logo a{
    display: inline-block;
    background-image: url("../img/sprite.png");
    background-position: -220% 0;
    background-size: 106% 550%;
    width: 110px;
    height: 68px;
    text-indent: -99999px;
}
.footer-logos .madait-logo a{
    background-image: url("../img/sprite.png");
    background-position: 20px -276px;
    background-size: 86%;
    display: inline-block;
    height: 94px;
    text-indent: -99999px;
    width: 160px;
    background-repeat: no-repeat;
}
/****************** max-width: 920px ************************/
@media screen and (max-width: 920px) {
    .content-top li a {
        font-size: 1.5em;
    }
}

/****************** max-width: 900px ************************/
@media screen and (max-width: 900px) {

}

/****************** max-width: 720px ************************/
@media screen and (max-width: 720px) {
    .content-top li a {
        font-size: 1.2em;
    }

    .login .login-header {
        padding-right: 0;
    }
}

/****************** max-width: 640px ************************/
@media screen and (max-width: 640px) {
    .logos:after {
        content: none;
    }

    .column.fifth {
        width: 48% !important;
    }

    .content-top li a {
        font-size: 1.75em;
        padding-top: 100%;
    }

    .column.fifth:nth-child(2) a {
        background-position: 0 25.5%;
    }

    .column.fifth:nth-child(3) a {
        background-position: 0 50.5%;
    }

    .column.fifth:nth-child(4) a {
        background-position: 0 75.7%;
    }

    .column.fifth:nth-child(5) a {
        background-position: 0 101.0%;
    }

    .login #loginpanel {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

/****************** max-width: 520px ************************/
@media screen and (max-width: 520px) {
    .logo-site {
        background-size: 100% auto;
        height: auto;
        padding-bottom: 31%;
        width: 50%;
    }

    .logo-ort {
        background-position: 0 25%;
        background-size: 100% auto;
        height: auto;
        padding-bottom: 15%;
        width: 45%;
    }
    .clear-after::after{
        display: none;
    }
    .tab-content{
        position: relative;
        height: 300px;
    }
    .plain{
        flex-wrap: wrap;
    }
    .cat-title{
        width: auto;
    }
    .content-top li a{
        padding:0 60px 40px 0;
    }
    .content-top li a::before{
        display: none;
    }
}