/*
    Theme Name: Laitse
    Theme URI: http://laitse.ee
    Description: Laitse Wordpress Theme
    Version: 1.0
    Design by: Redel;
    Designer URI: http://redel.ee
    Developed by: Birk Oidram
    Developer URI: http://zezz.ee
*/


.fbx-item-current {
    overflow: auto !important;
}

.modal-open {
    overflow: auto !important;
}

.grecaptcha-badge {
    visibility: hidden;
}

body {
    font-size: 14px;
    background-color: #fff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
    color: #2f2e2e;
    font-family: 'Ubuntu';
    font-weight: 400;
    padding-top: 60px;
    position: relative;
    width: 100%;
}
input[type="submit"] {
    -webkit-appearance: none !important;
}
img {
    display: block;
}
a {
    text-decoration: none;
    color: #2f2e2e;
}
strong,
b {} *:focus {
    outline: none !important
}
textarea {
    -webkit-appearance: none;
    resize: none;
}
p {
    line-height: 24px;
    font-size: 18px;
    font-weight: 300;
}
p a {} p a:hover {} h1 {
    font-size: 35px;
    margin: 23px 0;
    font-weight: 100;
}
h2 {
    font-size: 30px;
    font-weight: 100;
}
h3 {
    font-size: 25px;
    margin-top: 0;
    font-weight: 100;
}
.clear {
    clear: both;
}

.overflow {
    overflow: hidden;
}

.layer:before {
    content: '';
    background: rgba(0, 0, 0, 0.79);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
}

.slick-prev, .slick-next {
    z-index: 1;
}
/* POPUP */

.fbx-inner {
    background-image:url('images/popup-bg.jpg');
    background-repeat: no-repeat;
    background-color: transparent;
    border: 0 !important;
}

.single-post {
    background-color: transparent !important;
}

.popup, .popup2, .modal {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.79);
    z-index: 999;
    overflow: hidden;
    display: none;
}

.modal {
    position: absolute;
   height: auto;
   min-height: 60%;
   background: none;
}

.modal-content {
    width: 100%;
    max-height: 100%;
    position: absolute;
    top: 100px;
    margin: auto;
    max-width: 80%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10000;
    color: #000;
    text-align: center;
    padding: 60px 60px 60px 60px;
    -moz-box-shadow: 0 0 30px #000;
    -webkit-box-shadow: 0 0 30px #000;
    box-shadow: 0 0 30px #000;
    background: url('images/popup-bg.jpg') no-repeat;
    background-size: cover;
    overflow:hidden; 
}

.close-modal {
    background-image: url('images/close-modal.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 92px;
    height: 75px;
    position: absolute;
    top: -2px;
    right: 0;
    z-index: 10;
    cursor: pointer;
}

.close-modal-window {
    position: absolute;
    top: 0;
    right: 0;
    width: 92px;
    height: 77px;
    background-image: url('images/close-bg.png');
    background-repeat: no-repeat;
    z-index: 2;
}

.modal-window {
    overflow: hidden;
}

.modal-title {
    position: absolute;
    width: 100%;
    top: 0;
    left: 50px;
    right: 0;
    text-align: center;
    background: #fff;
    height: 75px;
    line-height: 75px;
    font-size: 30px;
    -webkit-transform: skewX(-28deg);
    transform: skewX(-28deg);
    -webkit-box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    -moz-box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    border-bottom: 2px solid #af0000;
}

.modal-title span {
    display: block;
    -webkit-transform: skewX(28deg);
    transform: skewX(28deg);
}
#prices-content, #packages-content {
    width: 100%;
    max-height: 700px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    max-width: 80%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10000;
    color: #000;
    text-align: left;
    padding: 60px 60px 60px 0;
    -moz-box-shadow: 0 0 30px #000;
    -webkit-box-shadow: 0 0 30px #000;
    box-shadow: 0 0 30px #000;
    background: url('images/popup-bg.jpg') no-repeat;
    background-size: cover;
    overflow-y:scroll;
}
#prices-content::-webkit-scrollbar,#packages-content::-webkit-scrollbar {
    width: 15px;
}
#prices-content::-webkit-scrollbar-track, #packages-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 0px;
}
#prices-content::-webkit-scrollbar-thumb, #packages-content::-webkit-scrollbar-thumb {
    border-radius: 0px;
    background: #000;
    border-top: 2px solid red;
    border-bottom: 2px solid red;
}
.fbx-dark .fbx-item-current::-webkit-scrollbar-thumb {
    border-radius: 0px;
    background: #000;
    border-top: 2px solid red;
    border-bottom: 2px solid red;
}
.fbx-dark .fbx-item-current::-webkit-scrollbar-track,
.fbx-dark .fbx-item-next::-webkit-scrollbar-track {
 background: #fff !important;
   
}
#prices-content .row, #packages-content .row  {
    margin: 0;
}
#prices-content h1, #packages-content h1 {
    padding-left: 20px;
}
#prices-content h3, #packages-content h3, .schedule-content h1, .popup-content h1 {
    background: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding-left: 60px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 5px solid #eb1c24;
    position: relative;
    margin: 0;
    z-index: 1;
}


.popup-content h1 {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 60px;
    font-size: 25px;
    display: inline-block;
}

.popup-content h1:after {
    content: '';
    width: 62px;
    height: 100%;
    position: absolute;
    background: #000;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    right: -35px;
    top: 0px;
    border-bottom: 5px solid #eb1c24;
    min-height: 64px;
}

.schedule-content h1 {
    font-size: 20px;
    padding-left: 30px;
}

.schedule-content p {
    font-weight: bold;
}

#prices-content .title, #packages-content .title {
    position: relative;
    right: 0;
    display: inline-block;
    max-width: 62%;
    min-width: 62%;
}
#prices-content .title:after, #packages-content .title:after {
    content: '';
    width: 62px;
    height: 100%;
    position: absolute;
    background: #000;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    right: -35px;
    top: 0px;
    border-bottom: 5px solid #eb1c24;
}
#close-popup {
    position: absolute;
    right: 20px;
    top: 20px;
}
#prices-content ul, #packages-content ul {
    margin: 0;
    padding: 0;
    padding-left: 60px;
    margin-bottom: 60px;
    font-size: 18px;
}
#prices-content ul li, #packages-content ul li {
    list-style: none;
    width: 100%;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    position: relative;
}
#prices-content ul li:after, #packages-content ul li:after {
    content: '';
    background: url('images/tiny-arrow.png') no-repeat;
    width: 10px;
    height: 14px;
    position: absolute;
    bottom: 0;
    right: 0;
}
#prices-content ul li .amount, #packages-content ul li .amount {
    text-align: right;
    display: inline-block;
    float: right;
    padding-right: 20px;
    font-weight: bold;
}
#close-popup span {
    display: inline-block;
    margin-right: 15px;
    position: relative;
    bottom: 7px;
    font-size: 18px;
}
#close-popup img {
    max-width: 30px;
    display: inline-block;
    border: 1px solid #000;
    padding: 5px;
    border-radius: 50%;
}
#close-popup a {
    text-decoration: none;
}
.popup input[type="text"], .popup2 input[type="text"] {
    width: 100%;
}
.popup input[type="email"], .popup2 input[type="email"] {
    width: 100%;
}
.popup textarea, .popup2 textarea {
    width: 100%;
}
.popup input[type="text"],
.popup input[type="email"],
.popup textarea,.popup2 input[type="text"],
.popup2 input[type="email"],
.popup2 textarea  {
    border: 1px solid #000;
    font-size: 15px;
    padding: 5px;
}
.popup input[type="submit"] {
    float: right;
    border: 1px solid #000;
    color: #000;
    background: #fff;
    font-size: 15px;
    padding: 5px;
}
.popup-nav {
    position: fixed;
    background: #fff;
    width: 100%;
    height: 80px;
    top: 0;
    max-width: 80%;
    z-index: 11000;
    left: 0;
    right: 0;
    margin: auto;
    border-bottom: 5px solid #eb1c24;
}
.popup-nav ul {
    margin-bottom: 0 !important;
    margin-top:0;
    height: 77px;
    line-height: 77px;
    padding: 0;
    width: 96%;
    float: right;
    -webkit-transform: skewX(-28deg);
    transform: skewX(-28deg);
    -webkit-box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    -moz-box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    padding-left: 60px;
    -webkit-backface-visibility: hidden;
}
.popup-nav ul li {
    -webkit-transform: skewX(28deg);
    transform: skewX(28deg);
    display: inline-block;
    color: #181818;
    border-bottom: 0 !important;
    width: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 19px;
    padding: 0 10px;
}
.popup-nav ul li:after {
    display: none;
}
.popup-nav ul li a {
    color: #181818;
}
.popup-container {
    position: relative;
}
#close-nav, #close-nav2 {
    float: right;
}
#tingimus, #packages-tingimus {
    padding-left: 20px;
}
::-webkit-input-placeholder {
    color: #000;
}
:-moz-placeholder {
    /* Firefox 18- */
    
    color: #b78822;
}
::-moz-placeholder {
    /* Firefox 19+ */
    
    color: #b78822;
}
:-ms-input-placeholder {
    color: #b78822;
}

.error-404 {
    text-align: center;
    padding: 50px 0;
}

/* HEADER */

header {
    width: 100%;
}
header .container-fluid {
    position: relative;
    padding: 0;
    overflow: hidden;
}
header .navigation-background {
    width: 100%;
    background: #fff;
    position: fixed;
    z-index: 20;
    top: 0;
    
}

.single header .navigation-background {
    border-bottom: 1px solid #efefef;
}
header .navigation {
    height: 60px;
    background: #fff;
    width: 100%;
    margin: 0 auto;
    line-height: 60px;
    font-size: 16px;
    display: block;
}
header .navigation ul {
    padding: 0;
    margin: 0;
}
header .navigation ul li {
    list-style: none;
    display: inline-block;
    margin-left: -4px;
    position: relative;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    
}
header .navigation ul li a {
    transform: skewX(30deg);
    -webkit-transform: skewX(30deg);
    display: block;
    padding: 0 15px;
}

header .navigation li:hover a {
    color: #0c9c1d;
}

/*
header .navigation li:hover:before,
header .navigation li:hover:after {
    position: absolute;
    content: '|';
    top: 0;
    bottom: 0;
    font-size: 20px;
    font-weight: bold;
    color: #0c9c1d;
}
header .navigation li:hover:before {
    left: -20px;
}
header .navigation li:hover:after {
    right: -20px;
}
*/

header .navigation ul li a {
    color: #898989;
    display: block;
    font-size: 16px;
}


/* COLORS */

header .navigation ul li.ralli-leht:hover, header .navigation li.ralli-leht.current_page_item {
    background: #dd2e2e;
}

header .navigation ul li.ava-leht:hover, header .navigation li.ava-leht.current_page_item {
    background: #dd2e2e;
}

header .navigation ul li.kart-leht:hover, header .navigation li.kart-leht.current_page_item {
    background: #0c9c1d;
}

header .navigation ul li.lapsed-leht:hover, header .navigation li.lapsed-leht.current_page_item {
    background: #f0d809;
}

header .navigation ul li.seminarid-leht:hover, header .navigation li.seminarid-leht.current_page_item {
    background: #3c79c5;
}

header .navigation ul li.muud-leht:hover, header .navigation li.muud-leht.current_page_item {
    background: #969696;
}

header .navigation ul li.expo-leht:hover, header .navigation li.expo-leht.current_page_item {
    background: #965a29;
}

header .navigation ul li.soidukool:hover, header .navigation li.soidukool.current_page_item {
    background: #f16006;
}

header .navigation ul li:hover a, header .navigation li.current_page_item a {
    color: #fff;
}

header .main-nav {
    display: inline-block;
    float: left;
    margin-left: 0px;
    height: 60px;
}
header .search {
    min-width: 300px;
    max-width: 325px;
    position: relative;
    z-index: 10;
        display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    float: right;
}

header .search a.search-icon {
    margin-right: 10px;
}
/*header .search:before {
    position: absolute;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    content: '';
    width: 20px;
    left: -10px;
    height: 30px;
    z-index: 10;
    background: #fff;
} */

header .search img {
    width: 20px;
    height: 20px;
}

header .search .book-btn {
    background: #282828;
    color: #fff;
    padding: 0 20px;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    margin-right: 20px;
    display: flex;
    height: 30px;
    align-items: center;
}

header .search .book-btn a {
    color: #fff;
    transform: skewX(30deg);
    -webkit-transform: skewX(30deg);
}


header .search .shop-btn {
    background: #282828;
    color: #fff;
    padding: 0 20px;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    margin-right: 20px;
    display: flex;
    height: 30px;
    align-items: center;
}

header .search .shop-btn span {
    transform: skewX(30deg);
    -webkit-transform: skewX(30deg);
    display: block;
}

header .asp_text_button {
    text-transform: uppercase !important
}
header .slant-bg {
    background: #e41e26;
    width: 36.03%;
    position: absolute;
    right: -18px;
    height: 60px;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    z-index: 5;
}
header .top-row {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}
header #top-b {
    width: 100%;
    position: relative;
    z-index: 5;
}
header .top-row ul li a {
    color: #fff;
}
header .top-row ul {
    text-align: right;
    display: inline-block;
    float: right;
    margin-top: 15px;
    margin-bottom: 0;
    height: 30px;
    line-height: 30px;
}
header .top-row ul li {
    display: inline-block;
    list-style: none;
}
header .language {
    font-weight: 500;
    font-size: 13px;
    padding-left: 25px;
}
header .language li {
    margin-right: 8px;
}
header .language li:last-child {
    margin: 0;
}
header .social li {
    margin-right: 15px;
}
header .social li:last-child {
    margin: 0;
}
header .lang {
    position: absolute;
    left: 10px;
    z-index: 10;
    color: #fff;
    width: 50px;
    top: 26px;
}
header .mobile-main {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
    margin: auto;
    color: #fff;
    font-size: 33px;
    top: 20px;
}
header .mobile-full-nav {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
    z-index: 1000;
    display: none;
}
header .mobile-full-nav .main-nav {
    margin: 0;
    padding: 0 25px;
    width: 100%;
    height: auto;
}
header .mobile-full-nav .nav-logo {
    width: 100%;
    max-width: 100px;
}
header .mobile-full-nav ul {
    margin: 0;
    padding: 0;
}
header .mobile-full-nav ul li {
    list-style: none;
    font-size: 16px;
    border-bottom: 1px solid #dcdcdc;
    font-weight: 500;
    text-transform: uppercase;
}
header .mobile-full-nav ul li a {
    padding: 13px 0;
    display: block;
}
header .mobile-full-nav .social {
    background: #1f1f1f;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}
header .mobile-full-nav #close-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    font-weight: 100;
}
header .mobile-full-nav #close-btn img {
    max-width: 30px;
}
header .mobile-full-nav .social li {
    display: inline-block;
    border: none;
}
header .mobile-main a {
    color: #fff;
}
header .lang .trigger .btn {
    display: block;
    overflow: hidden;
}
header .lang .trigger .btn img {
    display: inline-block;
    float: left;
}
header .lang .trigger .btn i {
    display: inline-block;
    color: #fff;
    display: inline-block;
    top: 8px;
    left: 5px;
    position: relative;
}
header .lang ul {
    padding: 0;
    margin: 0;
    float: left;
}
header .lang ul li {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    left: 0;
    width: 50px;
    height: 28px;
}
header .lang ul .active-lang {
    display: none;
}
header .text-box {
    position: absolute;
    right: 0;
    margin: auto;
    color: #fff;
    text-align: center;
    top: 0;
    bottom: 0;
    max-height: 470px;
    max-width: 40%;
}
header .text-box h1, .heading-box h1 {
    font-size: 25px;
    text-align: left;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    line-height: 50px;
    text-align: center;
}

header .text-box h2 {
    font-size: 25px;
}
header .text-box span {
    font-size: 14px;
}

header .content {
    max-width: 94%;
    display: none;
}
header .content a {
    color: #fff;
    font-size: 20px;
}
header .text-box p {
    font-size: 25px;
    font-weight: 100;
}
header .uudised {
    text-align: left;
}
header .uudised .slick-dots {
    bottom: -30px;
    position: relative;
}
header .uudised .slick-dots li {
    width: 30px;
    height: 30px;
}
header .uudised .slick-dots li button {
    background: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
}
header .uudised .slick-dots li button:before {
    visibility: hidden;
    font-size: 13px;
    line-height: 20px;
    width: 18px;
    height: 15px;
}
header .uudised .slick-dots li.slick-active button:before {
    color: #e41e26;
    visibility: visible;
    opacity: 1;
}
header .uudised .slick-dots li {
    margin: 0 15px;
    z-index: 2;
}
header .uudised .slick-dots:before {
    width: 100%;
    height: 0px;
    background: #fff;
    position: relative;
    top: 15px;
    content: '';
    display: block;
    z-index: 1;
}
header .uudised .slick-slide {
    overflow: hidden;
}
header .uudised .slick-prev,
header .uudised .slick-next {
    bottom: -118px;
    top: auto;
    z-index: 10;
    width: 21px;
    height: 61px;
}
header .uudised .slick-prev {
    left: -3px;
}
header .uudised .slick-next {
    right: -3px;
}
header .uudised .slick-prev::before,
header .uudised .slick-next::before {
    font-family: 'FontAwesome';
    font-size: 61px;
    opacity: 1;
}
header .uudised .slick-prev::before {
    content: '\f104';
}
header .uudised .slick-next::before {
    content: '\f105';
}
header .content-container {
    width: 100%;
    max-width: 1240px;
    margin: auto;
    position: absolute;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
header .desktop-nav {
    width: 100%;
    display: block;
    position: relative;
}
header .logo {
    display: inline-block;
    padding-top: 10%;
    max-width: 60%;
    position: relative;
}
header .logo img {
    width: 100%;
}
header .main-slider, .post_slider, .track_slider, .track_slider_content {
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}
header .main-slider .slick-slide img, .post_slider img {
    width: 100%;
}

.search_overlay {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
    background: rgba(228, 30, 38, 0.9);
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    color: #fff;
    flex-direction: column;
}

.search_overlay .search_container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    flex-direction: column;
    width: 100%;
}

.search_overlay .close_search {
    border-radius: 100%;
    border: 8px solid #fff;
    background: #fff;
    position: absolute;
    top: 10px;
    right: 80px;
}

    



.nav-bar {
    height: 60px;
    width: 100%;
    background: #2f2e2e;
    color: #fff;
    line-height: 60px;
    position: absolute;
}
.nav-bar ul {
    padding: 0;
    margin: 0;
    display: inline-block;
}
.nav-bar ul li {
    list-style: none;
    padding: 0;
    display: inline-block;
    padding-right: 20px;
}
.nav-bar ul li a {
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    text-transform: uppercase;
}
.nav-bar ul li a:hover {
    color: #e8373f;
    border-bottom: 1px solid #e8373f;
}
.nav-bar .language,
.nav-bar .social {
    float: right;
}
.nav-bar .social {
    padding-right: 10px;
}


.nav-bar .language li {
    padding-right: 5px;
    vertical-align: middle;
}
.nav-bar .social li {
    padding-right: 15px;
    vertical-align: middle;
}

.nav-bar .social li img {
    max-width: 25px;
}
.nav-bar .language img {
    max-width: 25px;
}
/* HOME */

.background-wrapper {
    position: relative;
    background: url('images/background.jpg') no-repeat;
    background-size: cover;
    overflow: hidden;
    width: 100%;
}
.services {
    width: 100%;
    display: block;
    text-align: center;
    padding-bottom: 40px;
}
.services .container {
    padding: 0;
}
.services h2 {
    font-size: 80px;
    margin-top: 65px;
    margin-bottom: 30px;
}
.services p {
    font-size: 35px;
    margin-bottom: 72px;
}
.service-name {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    color: #fff;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
}
.text-down .service-name {
    height: 0;
}
.polygons .item {
    display: inline-block;
    float: left;
    width: 16.6%;
    position: relative;
}



.polygons .item .text {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 60px;
    color: #fff;
    font-weight: 500;
    font-style: italic;
    font-size: 20px;
}

.polygons .item.text-down .text {
    top: auto;
    bottom: 60px;
}

.polygons .item:first-child, .polygons .item:nth-child(3),.polygons .item:nth-child(5) {
    margin-top: 70px;
}

.polygons .item:nth-child(4)  {
    margin-top: 140px;
}


.brown {
    font-family: "Times New Roman" !important;
}

.brown .navigation {
    font-family: 'Ubuntu' !important;
}


.polygons .cats.down {
    position: absolute;
    bottom: 25%;
    color: #fff;
    left: 0;
    right: 0;
    line-height: 22px;
    font-weight: bold;
    font-size: 15px;
    min-height: 110px;
    opacity: 0;
}

.polygons .cats.up {
    position: absolute;
    bottom: auto;
    top: 22%;
    color: #fff;
    left: 0;
    right: 0;
    line-height: 22px;
    font-weight: bold;
    font-size: 15px;
    min-height: 110px;
    opacity: 0;
}

.polygons .item:hover .cats {
    /*
    transition: opacity 1s;
    */
    opacity: 1;
}

.polygons .item:hover .cats:hover {
    opacity: 1;
}

.polygons svg g[id$="_x5F_hover"] {
    opacity: 0;
    /*
    transition: opacity 1s ease-out 1s;
    -webkit-transition: opacity 1s ease-out 1s;
    transition-delay: 0s;
    -webkit-transition-delay: 0s; */
}

.polygons .item:hover g[id$="_x5F_hover"] {
    opacity: 1;
}


/* NEWS */

.news {
    position: relative;
    margin-top: 40px;
}

.home .news {
    margin: 0;
    padding-top: 40px;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: 50%;
}
/* .news:after {
    position: relative;
    height: 5px;
    width: 100%;
    background: #dd2e2e;
    margin-bottom: 15px;
    content: '';
    display: block;
} */
.news .container {
    position: relative;
}
.dark-title-bg {
    background: #282828;
    width: 100%;
    max-width: 480px;
    height: 60px;
    line-height: 60px;
    color: #fff;
    -webkit-transform: skewX(30deg);
    transform: skewX(30deg);
    display: inline-block;
    margin-left: 15px;
}
.dark-title-bg h3 {
    font-size: 30px;
    font-weight: 400;
    padding-left: 45px;
    -webkit-transform: skewX(-30deg);
    transform: skewX(-30deg);
    margin-bottom: 0;
}

.lapsed .dark-title-bg {
    background: none;
    transform: none;
    -webkit-transform: none;
}

.lapsed .dark-title-bg h3 {
    transform: none;
    -webkit-transform: none;
    font-family: 'Impact';
    font-size: 55px;
    color: #ed2872;
    padding-left: 0;
    position: relative;
    display: inline-block;
}

.lapsed .gallery-content .dark-title-bg h3:after {
    position: absolute;
    content: '';
    background-image:url('images/gallery.png');
    right: -90px;
    height: 80px;
    width: 80px;
    background-size: contain;
    top: -10px;
}

.lapsed .video-gallery .dark-title-bg h3:after {
    position: absolute;
    content: '';
    background-image:url('images/media_2.png');
    right: -90px;
    height: 80px;
    width: 80px;
    background-size: contain;
    top: -10px;
}



.lapsed .contact-form .title {
    background: none;
    transform: none;
    -webkit-transform: none;
    font-family: 'Impact';
    font-size: 55px;
    color: #ed2872;
    text-align: left;
    font-size: 55px;
    height: auto;
    line-height: auto;
}

.lapsed .contact-form .title h2 {
    transform: none;
    -webkit-transform: none;
    font-size: 35px;
    display: inline-block;
}

.lapsed .contact-form .title h2:before {
    content: '';
    float: left;
    display: inline-block;
    width: 100px;
    height: 60px;
    background-image: url(/laitse/wp-content/themes/laitse/images/contact.png);
    background-position: 100% 50%;
}

.brown .contact-form .title {
    background: none;
    transform: none;
    -webkit-transform: none;
    font-size: 35px;
    color: #fff;
    text-align: left;
    height: auto;
    line-height: auto;
}

.brown .contact-form .title h2 {
    transform: none;
    -webkit-transform: none;
    font-size: 55px;
    display: inline-block;
    font-weight: bold;
    position: relative;
    margin-bottom: 0;
}

.brown .contact-form .title h2:after {
    background-image: url('images/unic-right-white.png');
    content: '';
    display: inline-block;
    position: absolute;
    width: 79px;
    height: 31px;
    right: -100px;
    top: 10px;
}

.brown .dark-title-bg {
    background: none;
    transform: none;
    -webkit-transform: none;
    display: block;
    text-align: left;
}

.brown .dark-title-bg h3 {
    transform: none;
    -webkit-transform: none;
    font-size: 55px;
    color: #a8652e;
    padding-left: 0;
}

.brown .dark-title-bg h3:before {
    background-image: url('images/unic-left.png');
    display: inline-block;
    float: left;
    width: 78px;
    height: 31px;
    position: relative;
    top: 15px;
    content: '';
    margin-right: 15px;
}


.tab-nav {
    position: relative;
    top: 0;
    right: 0;
    height: 50px;
    line-height: 50px !important;
    margin-bottom: 30px;
    padding-left: 10px;
}

.home .tab-nav {
    height: 25px;
    line-height: 25px !important;
}

.tab-nav li {
    display: inline-block;
    font-size: 20px;
    padding-right: 0px;
}
.tab-nav li:last-child {
    padding-right: 15px;
}
#tabs {
    overflow: hidden;
    margin-bottom: 65px;
    margin-top: 65px;
}

#tabs .tab-content {
    display: none;
}
#tabs .tab-content ul {
    padding: 0;
}

#tabs .tab-content ul {
    width: 50%;
    float: right;
    margin: 0;
}
#tabs .tab-content ul li {
    list-style: none;
    display: inline-block;
    margin-bottom: 15px;
}
#tabs .tab-content ul li:last-child {
    margin-bottom: 0;
}
#tabs .tab-content ul li .small-image-container {
    display: block;
    float: left;
    width: 210px;
    height: 172px;
    background-size: cover;
    background-position: 50%;
    max-width: 40%;
}
#tabs .tab-content ul li .content {
    display: inline-block;
    float: left;
    max-width: 383px;
    padding-left: 15px;
    width: 60%;
    max-height: 168px;
    overflow: hidden;
    position: relative;
}
#tabs .tab-content ul li .content p {
    margin: 0;
    line-height: normal;
}
#tabs .tab-content ul li .content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 18px;
    text-transform: uppercase;
}
#tabs .tab-content .main-post {
    display: inline-block;
    float: left;
    width: 50%;
    clear: none;
    position: relative;
    margin-bottom: 0;
    padding-right: 15px;
}

#tabs .tab-content .main-post a {
    width: 100%;
    height: 100%;
}
#tabs .tab-content .main-post .image-container {
    width: 100%;
    max-width: 100%;
    min-height: 550px;
    background-size: cover;
    background-position: 50%;
}
#tabs .tab-content .main-post h3 {
    position: absolute;
    bottom: 15px;
    left: 0;
    background: #282828;
    color: #fff;
    padding: 15px;
    text-transform: uppercase;
    width: calc(100% - 15px);
    max-width: 420px;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 22px;
}
#tabs .tab-content .main-post p {
    display: none;
}
.tabs_content {
    display: none;
}
/* ABOUT */

.about {
    padding: 125px 0;
    text-align: center;
    background-image: url('images/about-bg.jpg');
    background-size: cover;
    color: #fff;
}
.about .content {
    margin: 0 auto;
}
.about h1 {
    font-weight: 100;
    font-size: 80px;
    margin-top: 0;
    margin-top: 40px;
}
.about h3 {
    font-size: 35px;
    font-weight: 100;
    margin-bottom: 70px;
    margin-top: 0;
}
.about p {
    margin-top: 0;
    margin-bottom: 32px;
    font-size: 32px;
    margin-bottom: 80px;
    line-height: normal;
}
.about a {
    width: 100%;
}

.about .icon-block span {
    font-size: 25px;
}

.about #about-content, .about #about-content-secondary {
    display: none;
}

.contain {
    width: 100%;
    padding: 0 15px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.contain, .contain p {
    font-weight: bold;
}

.contain img {
    width: 100%;
}

.popup-content img {
    width: 100%;
}

.popup-content h1 {
    text-align: center;
}

.popup-content .content-row, .popup-content .first.content {
    margin-top: 30px;
}

.popup-content p:first-child {
    margin-top: 0;
}
/* GALLERY */

.gallery {
    background-image: url('images/background.jpg');
    background-position: top center;
}

.gallery .image {
    background-size: cover;
    min-height: 200px;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 30px;
}

.gallery .image .title {
    color: #fff;
    position: absolute;
    width: 100%;
    background: #282828;
    font-size: 12px;
    padding: 10px;
    bottom: 0;
    left: 0;
}

.page-template-page-subpage .gallery {
    background-color: #fff;
}

.gallery .gallery-content:before,
.gallery .gallery-content:after {
    position: relative;
    height: 5px;
    width: 100%;
    background: #dd2e2e;
    margin-top: 15px;
    content: '';
    display: block;
    margin-bottom: 35px;
}


.page-template-page-subpage .gallery-content {
    padding: 45px 0;
}

.home .gallery .gallery-content:before {
    position: relative;
    top: 15px;
    background: #dd2e2e;
    margin-top: 0;
}

.home .gallery-content {
    padding-bottom: 20px;
    position: relative;
}


.home .gallery h1 {
    color: #282828;
}

.lapsed .gallery h1 {
    color: #21abe4;
} 

.gallery .gallery-content img {
    width: 100%;
}

.gallery .gallery-content .row {
    margin: 0px -15px 30px -15px;
}

#meist {
    position: relative;
}

#meist:before,#rules:before {
    position: absolute;
    height: 5px;
    width: 100%;
    background: #fff;
    top: 15px;
    content: '';
    display: block;
    margin-bottom: 35px;
}

#rules:after, .home .gallery .gallery-content:after, #meist:after {
    position: absolute;
    height: 5px;
    width: 100%;
    background: #fff;
    bottom: 15px;
    content: '';
    display: block;
    margin-bottom: 0;
    margin-top: 0;
}

.home .gallery .gallery-content:after {
    background: #dd2e2e;
}

.partners {
    position: relative;
}

.page-template-page-subpage .gallery .gallery-content:before,.page-template-page-subpage .gallery .gallery-content:after {
    display: none;
}

.gallery .gallery-content:after {
    margin-top: 35px;
    margin-bottom: 15px;
}

.gallery .container {
    position: relative;
}
#gallery-tabs {
    margin-top: 50px;
    overflow: hidden;
}

.home #gallery-tabs {
    margin: 0;
}

.gallery .asp-ui .ui-state-active a, .gallery .ui-state-active a:link, .gallery .asp-ui .ui-state-active a:visited, .news .ui-state-active a, .news .ui-state-active a:link, .news .ui-state-active a:visited {
    color: #fff;
    background: #282828;
    -webkit-transform: skewX(30deg);
    transform: skewX(30deg);
    display: inline-block;
}

.gallery .ui-state-active a span, .news .ui-state-active a span {
    -webkit-transform: skewX(-30deg);
    transform: skewX(-30deg);
    display: inline-block;
}

.gallery a span, .news-tabs a span{
    padding: 5px 10px;
}

.home .gallery a span {
    padding: 0 8px;
}

.gallery .tab-nav {
    max-width: 50%;
    display: none;
}

.home .gallery .tab-nav, .brown .gallery .tab-na, .brown .gallery .tab-nav {
    display: block;
    
}

.home .gallery .tab-nav {
    margin: 30px 0;
    margin-left: 15px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.home .gallery .tab-nav li {
    font-size: 16px;
}

/* gallery paralax pin */
.gallery-pin.pin-1 #galerii {
    position: fixed;
    top: 90px;
    width: 100%;
    z-index: 1;
}
.gallery-pin.pin-2 #galerii {
    position: fixed;
    top: 100%;
    width: 100%;
    z-index: 1;
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    transform: translateY(-100%);
}
.gallery-pin #galerii+div {
    z-index: 2;
    position: relative;
}
/* PARTNERS */

.partners {
    background-image: url('images/partner-bg.jpg');
    background-position: 50%;
    background-size: cover;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 130px 0;
}
.partners h1 {
    font-size: 80px;
    margin-top: 0;
    margin-bottom: 45px;
}
.partners p {
    font-size: 35px;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 80px;
}
.partners img {
    margin: 0 auto;
    margin-bottom: 20px;
}
.partners span {
    font-size: 35px;
}
.partners a {
    color: #fff;
}

/* WORK */

.work span {
   color: #282828;
}

.work svg .st0, .work svg .st1 {
    fill: #282828;
}

.work h1, .work p {
    color: #282828;
}

#work:after {
    position: absolute;
    height: 5px;
    width: 100%;
    background: #dd2e2e;
    bottom: 15px;
    content: '';
    display: block;
    margin-bottom: 0;
    margin-top: 0;
}

/*
.work .work-content:before, .work .work-content:after {
    position: relative;
    height: 5px;
    width: 100%;
    background: #dd2e2e;
    margin-top: 15px;
    content: '';
    display: block;
    margin-bottom: 35px;
}

.work .work-content:before{
    position: relative;
    top: 15px;
    background: #dd2e2e;
    margin-top: 0;
}
*/

/* VIDEO GALLERY */

.video-gallery {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: 50%;
}
/*.video-gallery .content:before {
    position: absolute;
    height: 5px;
    width: 100%;
    background: #dd2e2e;
    margin-top: 15px;
    content: '';
    display: block;
}*/
.video-gallery .container {
    padding-top: 65px;
}
.video-container {
    background: url('images/video-bg-min.png');
    width: 100%;
    max-width: 1125px;
    display: table;
    height: 590px;
    margin: 65px auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50%;
}
.video-container .video-box {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
.hidden {
    display: none;
}
#video-thumbnails {
    padding: 0;
    margin: 0;
}
#video-thumbnails li {
    padding: 0;
    margin: 0;
    list-style: none;
}
#video-thumbnails li a {
    display: inline-block;
    position: relative;
    left: -20px;
    top: -20px;
}
#video-thumbnails li a i {
    color: #ef2424;
    font-size: 80px;
}

/* SUBPAGE */

svg {
    width: 100%;
}

.icon-block {
    padding: 15px;
    position: relative;
    min-width: 25%;
    max-width: 25%;
}


.icon-block svg g[id$="_x5F_normal"] {
    -webkit-transform-origin: 50% 50%;
    -moz-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    transform: rotate(0deg);
    transition: transform 1s ease-out 1s;
    transition-delay: 0s;
    -webkit-transform: rotate(0deg);
    -webkit-transition: -webkit-transform 1s ease-out 1s;
    -webkit-transition-delay: 0s;
}

.icon-block svg:hover g[id$="_x5F_normal"] {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.icon-block svg g[id$="_x5F_hover"] {
    transition: opacity 0.5s ease-out 0.5s;
    transition-delay: 0.1s;
    -webkit-transition-delay: 0s;
    opacity: 0;
}

.icon-block svg:hover g[id$="_x5F_hover"] {
    opacity: 1;
}


.icon-block svg g:nth-child(5) {
    opacity: 0;
}

.icon-block svg:hover g:nth-child(5) {
    opacity: 1;
}


.subsection {
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 90px 0;
    position: relative;
}
.subsection h1, .gallery h1 {
    font-size: 80px;
    margin-top: 0;
    margin-bottom: 45px;
}

.gallery h1 {
    text-align: center;
}

.brown .subsection h1 {
    display: inline-block;
    position: relative;
}

.brown .subsection h1:before, .brown .subsection h1:after, .brown .gallery h1:before, .brown .gallery h1:after {
    width: 78px;
    height: 31px;
    position: absolute;
    content: '';
    top: 25px;
}
.brown .subsection h1:before, .brown .gallery h1:before {
    left: -100px;
    background: url('images/unic-left.png') no-repeat;
}
.brown .subsection h1:after, .brown .gallery h1:after {
    right: -100px;
    background: url('images/unic-right.png') no-repeat;
}

.brown .subsection.unic h1:before,.brown .teenused h1:before,.brown .lisa h1:before {
    background: url('images/unic-left-white.png') no-repeat;
}
.brown .subsection.unic h1:after,.brown .teenused h1:after,.brown .lisa h1:after  {
    background: url('images/unic-right-white.png') no-repeat;
}

.brown .gallery {
    text-align: center;
}

.brown .gallery h1 {
    display: inline-block;
    position: relative;
    color: #a8652e;
}

.subsection p {
    font-size: 35px;
    line-height: normal;
    margin-top: 0;
    margin-bottom: 80px;
}
.subsection img {
    margin: 0 auto;
    margin-bottom: 20px;
}
.subsection span {
    font-size: 35px;
}
.subsection a {
    color: #fff;
}

.top, .bottom {
    width: 100%;
    border: 0;
    height: 5px;
    position: absolute;
}

.top {
    top: 5px;
}

.bottom {
    bottom: 5px;
}

.extra-text {
    display: block;
    font-size: 16px !important;
    position: absolute;
    left: 0;
    right: 0;
}


/* SINGLE */

.prev-post {
    display: inline-block;
    float: left;
    margin-top: 15px;
    position: relative;
}

.next-post {
    display: inline-block;
    float: right;
    margin-top: 15px;
    position: relative;
}

.prev-post:after, .next-post:after {
    position: relative;
    font-family: 'FontAwesome';
    display: inline-block;
    display: none;
}

.prev-post:after {
    content: "\f104";
    float: left;
    margin-right: 10px;
}

.next-post:after {
    content: "\f105";
    float: right;
    margin-left: 10px;
}

.post-navigation {
    display: block;
    width: 100%;
    position: absolute;
    top: -100px;
    bottom: 0;
    height: 1px;
    margin: auto;
    z-index: 2;
}

.post-navigation .prev-post {
    left: -56px;
    background-image: url('images/arrow-trans-left.png');
}
.post-navigation .next-post {
    right: -56px;
    background-image: url('images/arrow-trans-right.png');
}


.post-navigation .prev-post, .post-slider .next-post {
     -webkit-transition: all 1s ease;
      -moz-transition: all 1s ease;
      -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
      transition: all 1s ease;
}

.post-navigation .prev-post, .post-navigation .next-post {
    background-repeat: no-repeat;
    width: 85px;
    height: 101px;
    bottom: 20px;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    top: auto;
} 


.single .main-contain img {
    width: 100%;
    display: block;
    height: auto;
}

/* CONTACT */

.contact {
    position: relative;
    width: 100%;
    min-height: 700px;
}
.contact .wpcf7-recaptcha {
    margin-top: 5px;
    margin-left: 8px;
}
.contact .form-box {
    width: 56%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    background: url('images/contact-bg-min.png') no-repeat;
    overflow: visible;
    z-index: 10;
    background-position-x: 100%;
}
.contact .map-box {
    position: absolute;
    width: 57%;
    z-index: 5;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
}

.contact #hide-map {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin:auto;
    width: 100%;
    height: 100%;
    background: transparent;
}
.contact .map-box .wpgmp_map_container {
    border: 0;
    box-shadow: none;
    top: -1px;
}
.contact-form {
    display: inline-block;
    float: right;
    margin-right: 18%;
    width: 50%;
}
.contact-form .title {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    font-size: 30px;
    width: 310px;
    height: 60px;
    line-height: 60px;
    border: none;
    -o-text-overflow: clip;
    text-overflow: clip;
    background: #282828;
    -webkit-transform: skewX(20deg);
    transform: skewX(20deg);
    color: #fff;
    text-align: center;
    margin-bottom: 35px;
}
.contact-form .title h2 {
    -webkit-transform: skewX(-20deg);
    transform: skewX(-20deg);
}
.contact-form input,
.contact-form textarea {
    background: none;
    border: none;
    border-bottom: 1px solid #fff;
    color: #fff;
    outline: 0;
    appearance: none;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    padding: 10px 0;
    color: #fff;
    height: 35px;
    overflow: hidden;
    width: 100%;
    font-size: 18px;
    line-height: 18px;
}



.contact-form textarea {
    margin-top: 30px;
    overflow: auto;
    height: auto;

}

.contact-form textarea.filled {
    border: 1px solid #fff;
}
.contact-form input:focus {
    background: transparent;
}
.contact-form label {
    color: #fff;
    background: transparent;
}
.contact-form input[type="submit"] {
    background: #fff;
    text-transform: uppercase;
    text-align: center;
    width: 190px;
    height: 50px;
    line-height: 50px;
    color: #d5171f;
    font-size: 16px;
    padding: 0;
    margin-left: 9px;
}
.section-label fieldset {
    position: relative;
    border: 0;
    margin: 0;
    margin-bottom: 15px;
}
.section-label label {
    position: absolute;
    top: 10px;
    left: 8px;
    color: #fff;
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-transition: all 0.2s ease-in-out;
    transform: translate3d(0, 0, 0);
    transition: all 0.2s ease-in-out;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 3px;
    z-index: -1;
}
.section-label input:focus,
.section-label textarea:focus,
.section-label input.filled,
.section-label textarea.filled {
}
.section-label input:focus,
.section-label textarea:focus {
    outline: 0;
    background: transparent;
}
.section-label input:focus + label,
.section-label textarea:focus + label,
.section-label input.filled + label,
.section-label textarea.filled + label {
    font-weight: 700;
    font-size: 15px;
    -webkit-transform: translate3d(0, -20px, 0);
    transform: translate3d(0, -20px, 0);
}
.section-label .subject,
.section-label .message {
    margin-top: 10px;
}
.contact-form input[type="submit"] {
    padding: 0 !important;
    color: #d5171f;
    background: #fff;
}
div.wpcf7-response-output {
    border: 2px solid #fff;
    color: #fff;
}
.fbx-dark .fbx-close {
    color: #fff !important;
}

.lapsed .contact-form input[type="text"],.lapsed .contact-form input[type="email"],.lapsed .contact-form input[type="tel"], .lapsed .contact-form textarea, .lapsed header .text-box h1, .lapsed header .content a, .lapsed .section-label label {
    color: #000;
    border-color: #000;
}

.lapsed .contact-form input[type="submit"] {
    color: #fff;
    background: #ed2872;
    border-bottom: 0;
}
/* FOOTER */

footer {
    background: #2f2e2e;
    color: #fff;
    padding: 30px 0;
    position: relative;
    z-index: 20;
    text-align: center;
    font-size: 20px;
}
footer img {
    margin: 0 auto;
    margin-bottom: 20px;
}
footer ul {
    padding: 0;
    margin: 0;
    text-align: center;
}
footer ul li {
    display: block;
    padding-right: 20px;
    list-style: none;

}
footer ul li:last-child {
    padding-right: 0;
}
footer .copy {
    display: inline-block;
    margin-top: 20px;
}
footer i {
    position: relative;
    top: 3px;
    right: 5px;
    font-size: 20px !important;
}
footer a {
    color: #fff;
}

header .mobile {
    display: none;
}

.schedule {
    display: none;
}

.time-link {
    color: #fff;
    margin-bottom: 20px;
    display: inline-block;
    font-weight: bold;
}

footer .time-link {
    border: 2px solid #fff;
    padding: 5px 20px;
}

.schedule-content {
    padding: 30px;
}

/* CHILDREN */

.traffic, .gaming, .games, .rctrack, .rally, .rallysim {
    display: inline-block;
    position: relative;
    font-style: normal;
}

.rallysim:before, .rallysim:after {
    content: '';
    width: 80px;
    height: 80px;
    position: absolute;
    z-index: 1;
    background-size: contain;
}
.rallysim:before {
    left: -90px;
    background-image: url('images/gallery.png');
     -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);
}

.rallysim:after {
    right: -90px;
    background-image: url('images/gallery.png');
}

.games:before, .games:after {
    content: '';
    width: 80px;
    height: 80px;
    position: absolute;
    z-index: 1;
    background-size: contain;
}
.games:before {
    left: -90px;
    background-image: url('images/party.png');
}

.games:after {
    right: -90px;
    background-image: url('images/party_2.png');
}

.rctrack:before, .rctrack:after {
    content: '';
    width: 100px;
    height: 100px;
    position: absolute;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
}
.rctrack:before {
    left: -90px;
    background-image: url('images/track.png');
}

.rctrack:after {
    right: -90px;
    background-image: url('images/track_2.png');
}


.traffic:before, .traffic:after {
    content: '';
    background-image: url('images/traffic.png');
    width: 44px;
    height: 64px;
    position: absolute;
    z-index: 1;
    background-repeat: no-repeat;
}
.traffic:before {
    left: -70px;
}

.traffic:after {
    right: -70px;
}

.gaming:before, .gaming:after {
    content: '';
    background-image: url('images/gaming.png');
    width: 105px;
    height: 59px;
    position: absolute;
    z-index: 1;
    top: 10px;
}
.gaming:before {
    left: -130px;
}

.gaming:after {
    right: -130px;
}

/* PRELOADER */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

#loader-wrapper #logo {
    display: block;
    position: relative;
    left: 0;
    right: 0;
    top:31%;
    width: 100%;
    height: 150px;
    margin: 0 auto;
    z-index: 1001;
    text-align: center;
}

#loader-wrapper #logo img {
  max-width: 300px;
  margin: 0 auto;
}
#loader-wrapper #loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 250px;
    height: 250px;
    margin: -125px 0 0 -125px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: transparent;
 
    z-index: 1001;
}
#loader-wrapper #loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: transparent;

}
#loader-wrapper #loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: transparent;

}
@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);} 
            40% {-webkit-transform: translateY(-30px);} 
            60% {-webkit-transform: translateY(-15px);} 
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);} 
            40% {-webkit-transform: translateY(-30px);} 
            60% {-webkit-transform: translateY(-15px);} 
}
#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    background-image: url('images/loading.jpg');
    background-size: cover;
}
#loader-wrapper .loader-section.section-left {
    left: 0;
    right: 0;
   
    background: #e41e26;
}

/* Loaded */

.loaded #loader-wrapper .loader-section.section-left {
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000)
    -webkit-transition-delay: 500ms;
    transition-delay: 500ms;
}
.loaded #loader-wrapper .loader-section.section-right {
    -webkit-transform: translateX(100%);
    -ms-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000)
    -webkit-transition-delay: 500ms;
    transition-delay: 500ms;
}
.loaded #loader,
.loaded #loading-bar {
    opacity: 0;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out
}
.loaded #loader-wrapper {
    visibility: hidden;
    -webkit-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-transition: all 0.3s 1s ease-out;
    transition: all 0.3s 1s ease-out
}
/* JavaScript Turned Off */


.loader-section img {
    display: block
}

.gallery .ui-tabs-active a {
    color: #fff;
}

.gallery-all {
    display: block;
    float: none;
    text-align: center;
    color: #fff;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 50px;
    margin-top: 30px;
}

.single-albumid {
    padding-top: 0;
}

#Retro_x5F_bmw_x5F_element .st0, #Retro_x5F_usa_x5F_element .st0 {
    fill:#a8652e;
}

/* NEW POPUP CONTENT */



.non-modal.single-sisu {
    overflow: auto;
}

.modal-window .contact, .modal-window footer {
    display: none;
}

.modal-window header {
    display: none;
} 

.modal-window #loader-wrapper {
    display: none !important;
}

.modal-container {
    padding:0;
    text-align: left;
}

.col-content {
    padding: 40px 40px;
    width: 100%;
    text-align: center;
}

.col-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 30px; 
    max-width: 1170px;
    margin: 0 auto;
}

.col-gallery h2 {
    min-height: 60px;
    line-height: 60px;
    text-align: center;
    color: #fff;
    background: #181818;
    margin: 0;
    padding: 0 10px;
}

.col-gallery img {
}


.fbx-close:before {
    content: none !important;
}

.fbx-close {
    background-image: url(images/close-btn.png) !important;
    background-repeat: no-repeat;
    width: 30px !important;
    height: 30px !important;
    position: absolute;
    top: 26px !important;
    right: 18px !important;
    cursor: pointer;
    border-radius: 0 !important;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.modal-container h1 {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #fff;
    height: 80px;
    line-height: 80px;
    font-size: 30px;
    //-webkit-transform: skewX(-28deg);
    //transform: skewX(-28deg);
    -webkit-box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    -moz-box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    box-shadow: -3px 1px 2px -2px rgba(0,0,0,0.75);
    border-bottom: 5px solid #af0000;
    margin: 0 auto;
}

.non-modal .modal-container h1 {
    display: none;
}

.non-modal .close-modal-window {
    display: none;
}

.modal-container h1 span {
    display: inline-block;
    //-webkit-transform: skewX(28deg);
    //transform: skewX(28deg);
    //margin-right: 4%;
}

.modal-foobox {
    background-image: url(images/background.jpg);
    overflow: hidden;
}

.modal-footer {
    min-height: 67px;
    width: 100%;
    background: #161616;
    position: relative;
    margin-top: 30px;
}

.modal-footer:after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 7px;
    height: 4px;
    background: #b8111b;
}

.gallery-bottom {
    content: '';
    background-image: url(images/pop-bottom.png);
    width: 100%;
    background-size: cover;
    min-height: 46px;
    display: block;
    position: relative;
    top: -2px;
    z-index: -1;
}

.col-gallery .slide {
    position: relative;
    /*min-height: 725px;*/
    background-size: cover;
    background-position: 50%;
}

.col-gallery .car_slider .slide {
    border-bottom: 30px solid #161616;
}

.col-gallery span.caption {
    position: absolute;
    bottom: -28px;
    color: #fff;
    z-index: 2;
    left: 0;
    right: 0;
    height: 20px;
    font-size: 20px;
    text-align: center;
}

.fbx-play {
    display: none !important;
}

.post_slider, .car_slider {
    overflow: hidden;
}   

.post_slider .slick-prev, .track_slider .slick-prev, .car_slider .slick-prev, .post-slider .prev-post, .fbx-prev {
    left: -85px;
    background-image: url('images/arrow-trans-left.png');
}


.post_slider .slick-next, .track_slider .slick-next, .car_slider .slick-next, .post-slider .next-post, .fbx-next {
    right: -85px;
    background-image: url('images/arrow-trans-right.png');
}

.single-albumid .col-gallery .prev-post, .single-albumid .col-gallery .next-post {
    display: none;
}

.fbx-prev, .fbx-next {
    top: 50% !important;
    bottom: auto !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    width: 69px !important;
    height: 91px !important;
    margin-top: -45px !important;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    border: none !important;
    display: none;
}

.modal-foobox .fbx-prev, .modal-foobox .fbx-next {
    display: block;
}

.fbx-prev:hover, .fbx-next:hover {
    border: none !important;
}

.fbx-prev:before, .fbx-next:before {
    display: none !important;
}
.fbx-next {
    right: 0 !important;
    left: auto !important
}

.fbx-prev {
    left: 0 !important;
    right: auto !important;
}

.fbx-inner:first-child .fbx-prev {
    display: none !important;
}


.col-gallery .slick-slider .slick-prev, .col-gallery .slick-slider .slick-next  {
    -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}

.result_hover .post_slider .slick-prev, .result_hover .car_slider .slick-prev, .result_hover .slick-prev, .result_hover .prev-post {
    left: 0;
}

.result_hover .post_slider .slick-next, .result_hover .car_slider .slick-next, .result_hover .slick-next, .result_hover .next-post {
    right: 0;
}

.car_slider_content .slick-slide {
    text-align: center;
}


.post_slider .slick-prev, .post_slider .slick-next, .track_slider .slick-prev, .track_slider .slick-next, .car_slider .slick-next, .car_slider .slick-prev  {
    background-repeat: no-repeat;
    width: 69px;
    height: 91px;
    bottom: 20px;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    top: auto;
} 

.post_slider .slick-prev:before, .post_slider .slick-next:before {
    display: none;
    content: none;
}

.file-slider .slick-track {
    background: #181818;
}
.file-slider ul {
    text-align: center;
    color: #fff;
    padding:0;
    margin-top: 50px;
}

.file-slider ul li {
    color: #fff;
    list-style: none;
    font-size: 20px;
    line-height: 50px;
}

.file-slider ul li a {
    color: #b8111b;
}

.file-slider ul li a:hover {
    color: #fff;
}

.file-slider .slick-dots li button:before, .track_slider_content .slick-dots li button:before,  .model-slider > .slick-dots li button:before  {
    content: none !important;
}

.file-slider .slick-dots, .model-slider > .slick-dots {
    bottom: auto;
    top: 60px;
    height: 40px;
    line-height: 45px;
    max-width: 225px;
    margin: 0 auto;
    left: 0;
    right: 0;
    background: #f2f2f2;
}
.model-slider {
    margin-bottom: 0 !important;
}
.model-slider > .slick-dots {
    max-width: 300px;
}

.model-slider h2 {
    padding-bottom: 50px;
}

.file-slider .slick-dots li, .track_slider_content .slick-dots li,  .model-slider .slick-dots li {
    top: 0px;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    border-radius: 0;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}


.file-slider .slick-dots li button, .track_slider_content .slick-dots li button, .model-slider .slick-dots li button {
    font-size: 20px;
    color: #434343;
    padding: 0;
    width: auto;
}

.file-slider .slick-dots li.slick-active button, .track_slider_content .slick-dots li.slick-active button, .model-slider .slick-dots li.slick-active button {
    color: #b8111b;
}

.file-slider .slick-dots li button:after, .track_slider_content .slick-dots li button:after, .model-slider .slick-dots li button:after {
    content: '|';
    color: #fff;
    padding: 0 5px;
}

.model-slider .slick-dots li button:after {
    color: #ccc;
}

.file-slider .slick-dots li:last-child button:after, .track_slider_content .slick-dots li:last-child  button:after, .model-slider .slick-dots li:last-child  button:after {
    display: none;
}


.file-slider .slick-prev, .track_slider_content .slick-prev, .model-slider > .slick-prev {
    top: 20px;
    left: -250px;
    right: 0;
    margin: 0 auto;
}

.model-slider > .slick-prev {
    left: -330px;
}


.file-slider .slick-prev:after, .track_slider_content .slick-prev:after, .file-slider .slick-next:after, .track_slider_content .slick-next:after, .model-slider > .slick-next:after, .model-slider > .slick-prev:after {
    font-family: 'fontawesome';
    font-size: 35px;
    position: relative;
    color: #fff;
    line-height: normal;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.file-slider .slick-prev:after, .track_slider_content .slick-prev:after, .model-slider > .slick-prev:after {
    display: none;
}

.file-slider .slick-next:after, .track_slider_content .slick-next:after, .model-slider > .slick-next:after {
    display: none;
}   

.file-slider .slick-next, .track_slider_content .slick-next, .model-slider > .slick-next {
    top: 20px;
    right: -250px;
    left: 0;
    margin: 0 auto;
}

.model-slider > .slick-next {
    right: -330px;
}

.file-slider .slick-prev, .file-slider .slick-next, .track_slider_content .slick-prev, .track_slider_content .slick-next, .model-slider > .slick-next, .model-slider > .slick-prev {
    height: 40px;
    top: 80px;
    width: 52px !important;
    z-index: 1;
}


.file-nav .slick-slide {
    text-align: center;
    color: #fff;
    font-size: 15px;
}

.file-nav .slick-slide h3 {
    margin: 0;
    font-size: 15px;
    height: 67px;
    line-height: 60px;
}

.file-nav .slick-current h3 {
    color: #b8111b;
}


.track_slider_content {
    margin: 30px 0;
}

.track_slider_content .slick-dots {
    width: 50%;
    right: 0;
    left: 0;
    bottom: 0px;
    height: 40px;
    line-height: 45px;
    max-width: 225px;
    margin: 0 auto;
    background: #000;
}

.track_slider_content .slick-dots li button {
    color: #fff;
}

.track_slider_content .slick-prev, .track_slider_content .slick-next {
    left: auto;
    right: 0;
    bottom: 0px;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    top: auto;
}

.track_slider_content .slick-prev {
    right: 200px;
    left: 0;
}

.track_slider_content .slick-next {
    left: 200px;
    right: 0;
}

.slick-prev:before, .slick-next:before {
    display: none;
    content: '';
}

.thumb_nav {
  	width: 100%;
  	background-color: #000;
}

.thumb_nav .thumb {
    padding: 5px;
    cursor: pointer;
}

.thumb_nav .thumb.slick-current,
.thumb_nav .thumb:hover {
    /*background-color: rgba(238, 238, 238, 0.8);*/
}

.cars {
    padding: 0;
    margin: 0;
    padding-top: 10px;
    padding-bottom: 25px;
    text-align: center;
    overflow: hidden;
}

.icon-block.cars {
    overflow: auto;
    margin: auto;
    margin-right: -4px;
    padding:15px;
}

.cars li {
    display: inline-block;
    width: 24%;
    list-style: none;
    color: #fff;
    float: none;
    text-align: center;
    line-height: 20px;
    font-size: 15px;
}

.cars li a {
    color: #fff;
}

.type-albumid .col-gallery {
    margin-top: 30px;
}

.type-albumid .col-gallery .post-slider {
    margin-top: 15px;
}

.modal-container article {
    /* min-height: 78vh; */
}

.unic-pdf {
    text-align: center;
    color: #505050;
    font-size: 22px;
    font-weight: bold;
    font-style: italic;
    display: block;
    margin-top: 20px;
}

.car-desc {
    display: table-cell;
    float: none;
    text-align: right;
    padding: 0 50px;
}

.car-desc:last-child {
    text-align: left;
}

.unic-data-container {
    text-align: center;
}
.unic-data-container h3 {
    margin-top: 20px;
    color: #5a5a5a;
    font-weight: bold;
}

.unic-data-container h3:after {
    content: '';
    background-image: url('images/slice.svg');
    width: 267px;
    height: 9px;
    display: block;
    margin: 0 auto;
    margin-top: 15px;
}

.unic-data-container p {
    margin: 0;
}

.a-left, .a-left:hover {
    background-image: url('images/back.svg');
}

.a-right, .a-right:hover {
    background-image: url('images/next.svg');
}

#hide-map {
    background-image: url('images/map-min.jpg') !important;
    background-size: cover !important;
    background-position: 50% !important;
}

.sponsor-block .row {
    margin-top: 30px;
    margin-bottom: 30px;
}

.sponsor-block:nth-child(2n+1) {
    clear: both;
}

.sponsor-block {
    text-align: center;
}

.sponsor-block img {
    width: auto !important;
    display: inline-block !important;
    max-height: 150px;
}

.sponsor-block .text-block {
    font-size: 18px;
}

.dev {
    cursor: default;
}

.events {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.events h2 {
    text-align: left;
    background: none;
    color: #2f2e2e;
    display: block;
    width: auto;
    font-weight: bold;
    font-size: 35px;
}

.events .title {
    position: relative;
    right: 0;
    display: inline-block;
    width: 90%;
}

.events h3 {
    background: #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    padding-left: 60px;
    border-bottom: 5px solid #eb1c24;
    position: relative;
    margin: 0;
    z-index: 1;
    height: 59px;
    line-height: 59px;
}

.events h3:after {
    content: '';
    width: 62px;
    height: 100%;
    position: absolute;
    background: #000;
    transform: skewX(-30deg);
    -webkit-transform: skewX(-30deg);
    right: -35px;
    top: 0;
    margin: auto;
    border-bottom: 5px solid #eb1c24;
    height: 59px;
}

.events ul {
    padding: 0 30px 0 0;
}

.events ul li {
    list-style: none;
    width: 100%;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    position: relative;
    font-size: 18px;
}

.events ul li .date {
    text-align: right;
    display: inline-block;
    padding-right: 60px;
    font-weight: bold;
    font-size: 30px;
    padding-left: 60px;
}

/* custom css */
.center-thumb.slick-slider .slick-track {
    margin: 0 auto!important;
    transform: none!important;
}

.ui-tabs-panel h2#load-more {
    clear: both;
    display: block;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    cursor: pointer;
}

.nav-bar+div {
    margin-top: 60px;
}

.pinned .nav-bar {
    position: fixed;
    top: 60px;
    height: 35px;
    line-height: 35px;
    z-index: 11;
}

.pinned .nav-bar+div {
    margin-top: 35px;
}

.nav-bar,
.nav-bar+div {
    -webkit-transition: 300ms all ease;
    -moz-transition: 300ms all ease;
    transition: 300ms all ease;
}

/* loading */
#loading-bar {
    width:180px;
    height:22px;
    top: 55%;
    left: 52%;
    position: absolute;
    margin: 90px 0 0 -90px;
    z-index: 1001;
}

#loading-bar .bar {
    position:absolute;
    top:0;
    background-color:rgb(255,255,255);
    width:22px;
    height:22px;
    -webkit-transform:scale(.3);
    -moz-transform:scale(.3);
    transform:scale(.3);
    -webkit-animation: bounce_bar 0.845s infinite;
    -moz-animation: bounce_bar 0.845s infinite;
    animation: bounce_bar 0.845s infinite;
}

#loading-bar #bar_1 {
    left:0;
    -webkit-animation-delay:0.336s;
    -moz-animation-delay:0.336s;
    animation-delay:0.336s;
}

#loading-bar #bar_2 {
    left:22px;
    -webkit-animation-delay:0.4225s;
    -moz-animation-delay:0.4225s;
    animation-delay:0.4225s;
}

#loading-bar #bar_3 {
    left:45px;
    -webkit-animation-delay:0.509s;
    -moz-animation-delay:0.509s;
    animation-delay:0.509s;
}

#loading-bar #bar_4 {
    left:67px;
    -webkit-animation-delay:0.5955s;
    -moz-animation-delay:0.5955s;
    animation-delay:0.5955s;
}

#loading-bar #bar_5 {
    left:90px;
    -webkit-animation-delay:0.672s;
    -moz-animation-delay:0.672s;
    animation-delay:0.672s;
}

#loading-bar #bar_6 {
    left:112px;
    -webkit-animation-delay:0.7585s;
    -moz-animation-delay:0.7585s;
    animation-delay:0.7585s;
}

#loading-bar #bar_7 {
    left:135px;
    -webkit-animation-delay:0.845s;
    -moz-animation-delay:0.845s;
    animation-delay:0.845s;
}

#loading-bar #bar_8 {
    left:157px;
    -webkit-animation-delay:0.9315s;
    -moz-animation-delay:0.9315s;
    animation-delay:0.9315s;
}


.mesi {
    visibility: hidden;
}

.col-centered {
    vertical-align: top;
}
.back_link {
    position: absolute;
    left: 20px;
    font-size: 16px;
}

@-webkit-keyframes bounce_bar{
    0%{
        -webkit-transform:scale(1);
        background-color:rgba(255,255,255,0.98);
    }

    100%{
        -webkit-transform:scale(.3);
        background-color:rgba(255,255,255,0.38);
    }
}

@-moz-keyframes bounce_bar{
    0%{
        -moz-transform:scale(1);
        background-color:rgba(255,255,255,0.98);
    }

    100%{
        -moz-transform:scale(.3);
        background-color:rgba(255,255,255,0.38);
    }
}

@keyframes bounce_bar{
    0%{
        transform:scale(1);
        background-color:rgba(255,255,255,0.98);
    }

    100%{
        transform:scale(.3);
        background-color:rgba(255,255,255,0.38);
    }
}


/* CUSTOM FACEBOOK FEED */

.cff-wrapper {
    margin: 30px 0;
}

#cff .cff-posts-wrap, #cff .cff-masonry-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#cff .cff-item {
    float: none;
    width: 49%;
    margin: 0;
    background: #f9f9f9;
    padding: 30px;
    margin-bottom: 20px;
}

#cff .cff-item:first-child {
    padding: 30px;
}

#cff .cff-load-more {
    line-height: 30px;
}

.news_children {
    padding-top: 30px;
}

.news_children #cff .cff-load-more {
    background: rgb(60, 171, 228);
    color: #fff;
}

#cff.cff-thumb-layout .cff-photo, #cff.cff-thumb-layout .cff-iframe-wrap, #cff.cff-thumb-layout .cff-html5-video, #cff.cff-thumb-layout .cff-vidLink, #cff.cff-thumb-layout .cff-event-thumb {
    width: 30%;
}
#cff.cff-thumb-layout .cff-text-wrapper {
    width: 68%;
}


/* VEEBIPOOD */

.woocommerce {
    margin-top: 30px;
}

.woocommerce .col-content {
    padding: 0;
}

.woocommerce .col-content {
    text-align: unset;
    font-size: 18px;
}

.single-product .minimum-price, .single-product .price, .single-product .product_meta, .single-product .quantity {
    display: none;
}

.woocommerce-product-details__short-description p:first-child {
    margin-top: 0;
}

.single-product .woocommerce div.product form.cart {
    display: flex;
    
}

.woocommerce .button {
    background-color: #e41e26 !important;
    color: #fff !important;
}

.woocommerce ul.products li.product .button {
    color: #fff;
}

.single-product .cart .gcp {
    width: 40%;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-right: 5px;
}

.single-product .cart .gcp label {
    display: block;
    width: 100%;
}

.single-product .cart .gcp input {
    width: 100%;
    padding: 10px;
    font-size: 24px;
    height: auto !important;
    margin-bottom: 0;
    align-self: flex-end;
    border-radius: 0;
}

.single-product .cart .single_add_to_cart_button {
    width: 40%;
    font-size: 24px;
    padding: 10px;
    height: 50px;
    margin-top: 21px;
    margin-left: 20px;
}

.single-product .product_meta {
    display: none;
}

.woocommerce table.shop_table {
    margin-top: 30px;
}

.woocommerce-pagination {
    margin-bottom: 30px;
}

.woocommerce-terms-and-conditions-checkbox-text a {
    text-decoration: underline;
}

.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    padding: 0 25px;
}




/* REGISTEERI */

.template-page.content h1 {
    font-size: 65px;
    text-align: center;
}

input.register_btn {
    width: 30%;
    height: 40px;
    border: none;
    background-color: #e41d26;
    color: #fff;
}

input.register_btn:disabled {
    background-color: #e41d2645;
    cursor: not-allowed;
}

.tbl-tbl {
    overflow-x: auto;
    display: flex;
    justify-content: center;
    padding: 50px;
}

table#course_tbl {
    width: 100%;
}

table#course_tbl tbody tr:nth-child(1) {
    height: 40px;
    color: #fff;
    background-color: #e41d26;
}

table#course_tbl tbody tr th {
    width: 14.2%;
}

table#course_tbl tbody tr.reg-btn td {
    text-align: center;
    border-bottom: 1px solid #e41c2659;
}

table#course_tbl tbody tr.reg-toggle th {
    border-bottom: 1px solid #e41c2659;
}

table#course_tbl tbody tr.reg-toggle {
    display: none;
}

table#course_tbl tbody tr.reg-toggle.show {
    display: table-row;
}

table#course_tbl tbody tr.reg-toggle th form {
    margin: 40px 0px;
}

table#course_tbl tbody tr.reg-toggle th form p input {
    width: 50%;
    height: 30px;
    border-color: #e41d26;
}

table#course_tbl tbody tr.reg-btn {
    height: 34px;
}

table#course_tbl tbody tr.reg-btn button {
    border: none;
    background-color: #e41d26;
    height: 23px;
    width: 75px;
    color: #fff;
}

.mobile__cart {
    display: none;
}
.m-book-btn {
    display: none;
}

/* RESPONSIVE */
@media only screen and (max-width: 1500px) {

}


@media only screen and (max-width: 1400px) {
    .col-gallery {
        max-width: 1170px;
        margin: 0 auto;
        padding: 0 30px;
    }
    header .text-box h2 {
        font-size: 20px;
    }

    body {
        font-size: 12px;
    }
    header .logo {
        padding-top: 5%;
    }
    header .uudised .slick-dots {
        bottom: -20px;
    }
    .mobile .uudised .slick-dots {
        bottom: 0px;
     }
    .container {
        max-width: 1170px;
        padding-left: 30px;
        padding-right: 30px;
    }
    .partners h1,.about h1,.subsection h1, .gallery h1 {
        font-size: 65px;
    }
    .about h3 {
        font-size: 28px;
    }
    .partners p,.about p,.about a,.subsection p,.subsection span {
        font-size: 25px;
    }
    .partners span {
        font-size: 25px;
    }
    header .navigation {
        font-size: 14px;
    }
    .dark-title-bg h3,.contact-form .title h2 {
        font-size: 22px;
    }
    #tabs .tab-content .main-post h3,.tab-nav li,header .content a {
        font-size: 17px;
    }
    header .text-box h1 {
        font-size: 25px;
    }
    .popup-nav {
        top: 0;
    }
    header .main-nav {
        margin-left: 0;
    }
    header .navigation ul li a {
        padding: 0 15px;
    }
    
}

@media only screen and (max-width: 1200px) {
    header .navigation li:hover:before {
    left: -15px;
    }
    header .navigation li:hover:after {
        right: -15px;
    }
    header .search {
        min-width: 260px;
    }
    header .text-box h1 {
    font-size: 18px;
    }
    header .navigation ul li a {
        padding: 10px;
    }

}


@media only screen and (max-width: 990px) {
    body {
        padding-top: 80px;
    }
    #gallery-tabs {
        margin-top: 25px;
    }
    header .mobile-main {
        right: 20px;
    }
    header .desktop {
        display: none;
    }
    header .mobile {
        display: block;
    }
    header .mobile .top-nav {
        height: 80px;
        background: #2f2e2e;
        display: block;
        width: 100%;
        position: fixed;
        top: 0;
        z-index: 12;
    }
    .mobile .logo img {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        max-width: 180px;
    }
    header .logo {
        width: 100%;
        height: 100%;
        display: block;
        max-width: 100%;
    }
    .mobile .slider {
        background: url('images/contact-bg.png') no-repeat;
        overflow: hidden;
        padding: 50px 30px;
        min-height: 300px;
    }
    .mobile .slider h1 {
        text-align: center;
        color: #fff;
        font-size: 20px;
        font-weight: bold;
    }
    .mobile .slider p {
        font-size: 18px;
        text-align: center;
        color: #fff;
    }
    .contact-form .title {
        position: relative;
        left: -10px;
    }
    .service-name {
        font-size: 18px;
    }
    .polygons .item {
        float: none;
    }
    header .uudised {
        text-align: center;
    }
    .nav-bar .language,
    .nav-bar .social {
        display: none;
    }
    .tab-nav {
        position: relative;
    }
    #tabs .tab-content ul li .content p {
        display: none;
    }
    .polygons .item {
        width: 33%;
    }
    .brown .contact-form .title h2 {
        font-size: 40px;
    }
}


@media only screen and (max-width: 768px) {
    #prices-content {
        margin: 0;
        width: 100%;
        height: 100%;
        padding-right: 10px;
    }
    #prices-content h3 {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        font-size: 18px;
    }
    #prices-content ul {
        font-size: 16px;
        padding-left: 20px;
    }
    #prices-content ul li {
        display: table;
    }
    #prices-content .name {
        display: table-cell;
    }
    #prices-content .amount {
        display: table-cell;
    }
    .popup-nav {
        top: 0 !important;
    }
    #prices-content ul li {
        display: inline-block;
    }
    #prices-content {
        max-height: 100%;
    }
    .contact-form {
        margin-right: 20%;
    }

    /* fix mobile modal scrolling */
    .modal-foobox,.single-sisu {
        overflow: auto;
    }
    .mobile__cart, .m-book-btn {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background-color: #e41f27;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        z-index: 25;
    }

    .m-book-btn {
        left: 20px;
        right: auto;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 0 0 2px #fdfdfd;
    }
    
    .m-book-btn a {
        color: #fff;
        font-weight: bold;
    text-transform: uppercase;
    font-size: 10px;
    }
    .m-book-btn:before {
        content: "\f073";
        font-family: FontAwesome;
        position: relative;
    top: -5px;
    font-size: 15px;

    }

    .mobile__cart a {
        margin-right: 0;
    }
    .woocommerce {
        margin-top: 0;
    }
    .woocommerce .woocommerce-breadcrumb {
    padding-top: 30px;
    }
}
@media only screen and (max-width: 767px) {
    #cff .cff-item {
        width: 100%;
    }
    #prices-content, #packages-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        position: relative;
    }
    .popup-nav {
        position: relative;
        overflow: hidden;
        height: auto;
    }
    .popup-nav ul {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        transform: none;
        height: auto;
    }
    .popup-nav ul li {
        width: 49% !important;
        padding: 5px 0 !important;
        transform: none;
    }
    #prices-content .title, #packages-content .title {
        width: 100%;
        max-width: 100%;
    }
    #prices-content .title, #packages-content .title:after {
        display: none;
    }
    .popup-nav {
        width: 100%;
        max-width: 100%;
    }
    .popup-nav ul {
        width: 100%;
        max-width: 100%;
    }
    .icon-block {
        padding: 50px;
    }
    .lapsed .container {
    overflow: hidden;
    } 
    .partners h1, .about h1, .subsection h1, .gallery h1 {
        font-size: 40px;
    }
    #tabs {
        margin-top: 20px;
    }
    .tab-nav li {
        width: 33%;
        padding: 0;
        font-size: 10px;
        line-height: 16px;
        float: left;
    }
    .tab-nav {
        line-height: normal;
        height: auto;
        margin-bottom: 20px !important;
    }
    .nav-bar {
        display: none;
    }
    footer ul li {
        display: table;
    }
    footer ul li i {
        display: table-cell;
        min-width: 35px;
    }
    footer ul li span {
        display: table-cell;
    }
    header .logo {
        width: 100%;
        height: 100%;
        display: block;
        max-width: 100%;
    }
    .services h2 {
        font-size: 40px;
    }
    .services p {
        font-size: 20px;
    }
    .polygons .item {
        max-width: 171px;
        float: none;
        margin: 4px;
    }
    .polygons .text-down .foot,
    .polygons .item .foot {
        top: -50px;
    }
    .contact .form-box {
        width: 100%;
        position: relative;
        overflow: hidden;
        background-position: 0;
    }
    .contact-form {
        width: 100%;
        margin: 0;
    }
    .section-label label {
        left: 0;
        right: 0;
    }
    .section-label {
        text-align: center;
    }
    .contact .map-box {
        width: 100%;
        position: relative;
    }
    .wpgmp_map {
        height: 300px !important;
    }
    header .uudised {
        padding: 0 15px;
        min-height: 175px;
    }
    header .uudised .slick-dots {
        bottom: -20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        left: 0;
        padding: 0 20px;
        margin: 0 auto;
        right: 0;
        top: 10px;
    }
    header .uudised .slick-prev,
    header .uudised .slick-next {
        bottom: -63px;
    }
    header .uudised .slick-dots li {
        margin: 0 10px;
    }
    header .uudised .slick-next {
        right: 13px;
    }
    header .uudised .slick-prev {
        left: 13px;
    }
    header .uudised .slick-slide {
        text-align: center;
    }
    .mobile .slider h1 {
        margin-top: 0;
    }
    .mobile .slider {
        padding: 50px 10px;
    }
    .polygons .item {
        width: 45%;
    }
    .nav-bar+div {
        margin-top: 0;
    }
    .contact {
        background: url(images/contact-bg-min.png) no-repeat;
    }
    .time-link {
        margin: 30px 0;
    }
    #prices-content ul, #packages-content ul {
        padding: 0 20px;
    }
}
@media only screen and (max-width: 480px) {
    .back_link {
        display: none;
    }
    .close-modal-window {
        position: fixed;
        z-index: 10;
        display: none;
    }
    .col-gallery .slide {
        //min-height: 350px;
    }
    .gallery-bottom {
        min-height: 18px;
    }
    .modal-container h1 {
        position: relative;
        width: 100%;
        -webkit-transform: none;
        transform: none;
        font-size: 20px;
        z-index: 8;
    }
    .modal-container h1 span {
        margin: 0;
        -webkit-transform: none;
        transform: none;
    }
    footer ul li span {
        text-align: left;
    }
    .fbx-close {
        left: auto !important;
    }
    .expo .container {
        overflow: hidden;
    }
    .partners h1, .about h1, .subsection h1, .gallery h1 {
        font-size: 35px;
    }
    .polygons .item {
        
        margin: 0;
    }

    .icon-block {
        max-width: 100%;
    }

    .polygons .item.text-down .text {
        bottom: 38px;
    }
    .polygons .item .text {
        top: 38px;
    }

    .polygons .item .text {
        font-size: 12px;
    }
    .polygons .cats.up, .polygons .cats.down {
        font-size: 12px;
        line-height: 15px;
    }
    .popup-nav {
        height: auto;
    }
    .popup-nav ul {
        margin: 0;
        padding: 20px 20px;
        line-height: 20px;
        max-width: 100%;
        font-size: 15px;
    }
    .popup-nav ul li {
       font-size: 15px;
    }
    #tabs .tab-content .main-post {
        width: 100%;
        padding: 0;
    }
    #tabs .tab-content ul {
        width: 100%;
    }
    #tabs .tab-content ul li {
        margin-top: 30px;
    }
    #tabs .tab-content ul li .small-image-container {
        width: 100%;
        min-height: 200px;
        max-width: 100%;
    }
    #tabs .tab-content ul li .content {
        width: 100%;
        padding: 0;
    }
    #tabs .tab-content ul li .content p {
        display: none;
    }
    .dark-title-bg {
        margin: 0;
        height: auto;
        line-height: normal;
        text-align: left;
        padding-left: 40px;
        left: -50px;
        position: relative;
    }
    .dark-title-bg h3 {
        padding: 13px 0;
        font-size: 25px;
    }
    .tab-nav {
        position: relative;
    }
    .about .content {
        padding: 0 15px;
    }
    .about {
        padding: 50px 0;
    }
    .about h1 {
        font-size: 40px;
    }
    .about p {
        font-size: 20px;
    }
    .partners h1 {
        font-size: 40px;
    }
    .partners .col-centered {
        margin-bottom: 20px;
    }
    .video-container {
        min-height: 200px;
    }
    #video-thumbnails li a i {
        font-size: 40px;
    }
    #video-thumbnails li a {
        left: -10px;
        top: -6px;
    }
    .polygons .text-down .foot,
    .polygons .item .foot {
        top: -60px;
    }
    .contact-form .title {
        font-size: 25px;
        text-align: left;
    }
    .contact-form .title h2 {
        padding-left: 20px;
        font-weight: 400;
    }
}
@media only screen and (max-width: 340px) {
    .polygons .item {
        max-width: 150px;
    }
}



