@import url("../../env.css");

body {
    margin: 0;
    padding: 0;
    background: #344a61;
    font-family: 'Open Sans', sans-serif;
    color: #24364a;
    width: 100%;
    font-size: 14px;
}

body.nav-opened {
    overflow: hidden;
}

#overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1;
}

.nav-opened #overlay {
    display: block;
}

.mobile-only .menu-header {
    text-transform: none;
}

a {
    color: #5e7f9e;
}

a:hover {
    text-decoration: none;
}

a:focus {
    outline: none;
    text-decoration: none;
}

.navbar {
    min-height: 100px;
    border-radius: 0;
    margin-bottom: 0;
    position: fixed;
    width: 100%;
    z-index: 9999;
    background: #213042;
    color: #e8e8e8;
    border: 0;
}

.navbar .container {
    background: url(heade-1r.png) no-repeat;
}

.navbar-header {
    padding: 25px 0;
    float: left;
}

.navbar-right {
    float: right !important;
    margin-right: -15px;
    padding: 25px 0 20px 0;
}

.navbar-nav > li {
    float: left;
}

.header-nav li:not(:last-child) {
    position: relative;
    padding: 0 10px;
}

.header-nav li:hover .title {
    -ms-transform: scale(1);
    -webkit-transform: scale(1);
    transform: scale(1);
    transition: transform .3s;
    transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

.title {
    position: absolute;
    background-color: #597fa3;
    padding: 10px;
    left: -7px;
    top: 65px;
    font-size: 12px;
    width: 100px;
    z-index: 99;
    -ms-transform: scale(0);
    -webkit-transform: scale(0);
    transform: scale(0);
    transition: transform .3s;
    transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

.title:after {
    content: ' ';
    position: absolute;
    right: 45%;
    top: -20px;
    border: 10px solid transparent;
    border-bottom: 10px solid #597fa3;
}

.header-nav li:last-child {
    padding: 0 10px;
    min-width: 175px;
}

.alert {
    padding: 0;
    width: 100%;
    font-weight: bold;
    margin-bottom: 10px;
}

.alert-content {
    padding: 10px;
}

.alert.fail {
    background: rgba(231, 76, 60, 0.5);
    color: #c0392b;
}

.alert.success {
    background: rgba(46, 204, 113, 0.5);
    color: #27ae60;
}

a .icon:before {
    font-size: 28px;
    margin-left: 0;
}

li.full-post {
    position: relative;
}

.full-post:after {
    content: ' ';
    height: 10px;
    width: 10px;
    background-color: #5e7f9e;
    top: 0;
    position: absolute;
    border-radius: 50%;
    right: 13px;
}

.header-nav a {
    color: #fff !important;
    text-decoration: none;
}

.profile-link:hover {
    cursor: pointer;
}

.profile-link:hover .hover-animate:after {
    content: "\e013";
    font-family: Flaticon;
    font-size: 30px;
    position: absolute;
    top: 5px;
    left: 10px;
    color: #5e7f9e;
}

.profile-link > span {
    float: left;
}

.profile-link:hover .hover-animate img {
    opacity: 0.3;
}

.profile-pic {
    width: 50px;
    border-radius: 50%;
    height: 50px;
    margin-right: 10px;
    object-fit: cover;
}

.profile-pic-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.profile-header {
    margin-bottom: 25px;
    display: flex;
}

.profile-header h1 {
    display: inline-block;
    align-self: center;
    margin-bottom: 0;
    font-size: 42px;
}

#fake-dropdown {
    position: absolute;
    background-color: #313131;
    top: 75px;
    right: 0;
    padding: 0;
    z-index: 9;
    display: none;
}

#fake-dropdown .menu-icon:before {
    font-size: 0.9em;
    margin-right: 5px;
    margin-left: 0;
}

#fake-dropdown .menu-icon {
    padding-right: 5px;
    margin-right: 5px;
}

#fake-dropdown-menu li {
    display: block;
    margin: 0 0 5px -30px;
    padding: 5px !important;
}

#fake-dropdown-menu .divider {
    border-top: 1px solid #2d2d2d;
    padding: 0 !important;
    margin-bottom: 0;
    margin-left: -37px;
}

#fake-dropdown-menu a {
    display: block;
    width: 100%;
}

.hover-animate {
    position: relative;
}

.container {
    position: relative;
}

.main {
    padding-right: 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main > div.stocks, .main > div.stocks_old {
    background: url(aktsiad.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.haridus {
    background: url(haridus.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.jõusaal {
    background: url(jõusaal.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.kaklemine {
    background: #f0f0f0 url(kaklemine.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.kontakt {
    background: url(kontakt.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.maffia {
    background: url(maffia.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.turva {
    background: url(turva.png) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.pank {
    background: #f0f0f0 url(pank.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.puskar {
    background: url(puskar.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}
.main > div.turg {
    background: #f0f0f0 url(turg.jpg) no-repeat;
    background-size: cover;
    background-position-x: 50%;
}

.navbar-brand {
    padding-left: 60px;
    text-transform: uppercase;
    font-size: 36px;
    font-family: 'Oswald', sans-serif;
    color: #fff !important;
}

.main-menu {
    padding: 5px 10px 15px 10px;
}

.nav-opened .main-menu {
    display: block;
}

.nav-opened.stats .main-menu {
    display: none;
}

.main-menu ul {
    padding: 0;
    margin: 5px;
}

.main-menu .menu-group {
    padding: 0;
    margin: 5px 10px;
    display: inline-table;
}

.main-menu ul li {
    list-style: none;
    margin-left: 5px;
}

.menu-header {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    line-height: 2em;
    margin-left: -20px;
}

#toggler {
    float: left;
    padding: 12px 0;
}

.nav-opened #toggler .flaticon-menu51 {
    display: none;
}

.nav-opened #toggler .flaticon-cross97 {
    display: block;
}

#toggler .flaticon-cross97 {
    display: none;
}

#toggler .flaticon-menu51 {
    display: block;
}

.menu-icon:before {
    margin-left: 0;
    margin-right: 10px;
    font-weight: normal;
}

.sub-menu {
    position: relative;
}

.sub-menu li {
    line-height: 1.5em;
}

.sub-menu li a {
    color: #929292;
}

#sidebar.offline .sub-menu li a {
    font-size: 16px;
    display: block;
    padding: 2px 0 2px 0;
}

.sub-menu li.current a {
    color: #aaaaaa;
    font-weight: bold;
}

.user-stats {
    background-color: #5e7f9e;
    padding: 8px 5px 1px 5px;
    font-size: 13px;
}

.user-stats ul li {
    list-style: none;
    margin-left: -30px;
    color: #fff;
}
.user-stats ul li a {
    color: #fff;
}

.nav-opened .user-stats {
    display: none;
}

.nav-opened.stats .user-stats {
    display: block;
}

#sidebar {
    min-width: 300px;
    max-width: 300px;
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}

.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}

/*
 * Main content
 */
.main > div {
    background: #f0f0f0;
    padding-bottom: 50px;
    padding-left: 50px;
    padding-right: 20px;
}

.main .contentWindow {
    padding-top: 120px;
    flex-grow: 1;
}

.main .chatWindow {
    min-height: 40vh;
}

.gymSelect {
    width: 250px;
}

@media (min-width: 1200px) {
    .gymTable {
        width: 75%;
    }
}

@media (min-width: 800px) {
    #sidebar {
        position: fixed;
        top: 100px;
        bottom: 0;
        z-index: 1000;
        display: block;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background: #212121;
    }

    .mobile-only {
        display: none !important;
    }

    .main > div {
        padding-right: 20px;
        padding-left: 110px;
    }

    .not-mobile {
        display: block;
    }

    .not-mobile-inline {
        display: inline;
        padding-top: 5px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .main > div {
        padding-left: 140px !important;
    }
}

.main .page-header {
    margin-top: 100px;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}

.placeholders h4 {
    margin-bottom: 0;
}

.placeholder {
    margin-bottom: 20px;
}

.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

@media only screen
and (max-width: 991px) {
    .navbar a .icon:before {
        font-size: 24px;
        margin-left: 0;
    }

    .header-nav li:not(:last-child) {
        position: relative;
        padding: 0;
    }

    #sidebar {
        min-width: 220px;
        max-width: 220px;
    }

    .main > div {
        padding-left: 40px;
    }

    .container {
        width: 100% !important;
    }

    .gymSelect {
        width: 170px;
    }
}

@media only screen and
(min-width: 840px) and (max-width: 991px) {
    #sidebar {
        min-width: 250px;
        max-width: 250px;
    }
}

@media only screen and
(min-width: 840px) and (max-width: 899px) {
    .main > div {
        padding-left: 55px !important;
    }
}

@media only screen and
(min-width: 900px) and (max-width: 949px) {
    .main > div {
        padding-left: 40px !important;
    }
}

@media only screen and
(min-width: 950px) and (max-width: 991px) {
    .main > div{
        padding-left: 20px !important;
    }
}

@media (max-width: 799px) {
    .navbar-brand {
        padding-left: 20px;
        font-size: 25px;
    }

    .navbar-brand.offline {
        padding-left: 0;
        margin-left: 50px;
    }

    .title {
        display: none;
    }

    .not-mobile {
        display: none !important;
    }

    .not-mobile-inline {
        display: none !important;
    }

    .navbar {
        min-height: 10px;
    }

    .main {
        padding-left: 0px;
    }

    .main > div:first-child {
        padding-top: 85px;
    }

    .main > div {
        padding-left: 5px;
        padding-right: 5px;
    }

    .main > div.offline {
        padding-top: 57px;
    }

    .main .page-header {
        margin-top: 55px;
    }

    .navbar-header, .header-nav {
        padding: 0;
    }

    .full-post:after {
        right: 5px;
    }

    .mobile-only {
        display: block;
    }

    #sidebar {
        padding: 0;
        background: #212121;
        min-width: 300px;
        display: none;
        bottom: 0;
        top: 58px;
        z-index: 9;
        max-height: 100vh;
        width: 100%;
        max-width: 715px;
        overflow: hidden;
        overflow-y: scroll;
        position: fixed;
    }

    #sidebar.offline {
        top: 48px;
    }

    .nav-opened #sidebar {
        display: block;
    }

    #sidebar li {
        max-height: 1px;
    }

    .nav-opened #sidebar li {
        max-height: none;
    }

    .profile-pic {
        width: 30px;
        height: 30px;
    }

    .profile-pic-large {
        width: 75px;
        height: 75px;
    }

    .header-nav li:last-child {
        padding: 4px 0 0 5px;
        min-width: 1px;
    }

    .profile-link:hover .hover-animate:after {
        font-size: 20px;
        top: 3px;
        left: 3px;
    }

    #fake-dropdown {
        top: 45px;
        min-width: 188px;
    }
}

@media (max-width: 488px) {
    .navbar a .icon:before {
        font-size: 20px;
        margin-left: 0;
    }

    .navbar-brand:not(.offline) {
        display: none !important;
    }

    .full-post:after {
        height: 8px;
        width: 8px;
        right: 5px;
    }

    .halfPage {
        width: 100%;
        max-width: 100%;
    }

    body {
        font-size: 12px;
    }

    .h1, h1 {
        font-size: 30px;
    }

    .h2, h2 {
        font-size: 25px;
    }

    .menu-header {
        font-size: 12px;
    }

    .user-stats {
        font-size: 11px;
    }

    #sidebar {
        max-width: 400px;
        width: 100%;
    }

    .main-menu .menu-group {
        font-size: 14px;
    }
}

.chatWindow {
    margin-top: 15px;
    padding-top: 10px;
}

.nav-opened.stats #sidebar {
    bottom: auto;
    overflow-y: hidden;
}

table {
    border-collapse: collapse;
    width: 100%;
}

.row {
    max-height: 100vh;
}

h1 {
    margin-top: 0;
}

.stat-bar {
    color: #212121;
    background: #ccc;
}

.stat-bar .container {
    background: none;
    font-size: 12px;
}

.stat-bar .container .smallIcon:before {
    font-size: 15px;
}

.nav-opened .stat-bar {
    display: none;
}

.icnoNoLeftPad:before {
    margin-left: 0 !important;
}

table.a tr td {
    border: 1px solid #e0e0e0;
    border-bottom: 1px;
    border-left: 0;
    border-right: 0;
}

fieldset {
    padding: .35em .625em .75em;
    border: 1px solid silver;
}

legend {
    margin-bottom: 0;
    font-size: 14px;
    border-bottom: none;
}

.topTenItem {
    color: #929292;
}

label {
    font-weight: normal;
}
