/*
Theme Name: Fssclub
Author: Fssclub
Version: 1.0
*/

@font-face {
    font-family: 'HeliosCondRegular';
    src: url('fonts/HeliosCondRegular.eot');
    src: url('fonts/HeliosCondRegular.eot?#iefix') format('embedded-opentype'),
    url('fonts/HeliosCondRegular.woff') format('woff'),
    url('fonts/HeliosCondRegular.ttf') format('truetype');
    font-style: normal;
    font-weight: normal
}

@font-face {
    font-family: 'HeliosCondBold';
    src: url('fonts/HeliosCondBold.eot');
    src: url('fonts/HeliosCondBold.eot?#iefix') format('embedded-opentype'),
    url('fonts/HeliosCondBold.woff') format('woff'),
    url('fonts/HeliosCondBold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal
}

* {font-family: 'HeliosCondRegular', sans-serif; margin: 0; padding: 0}

html, body {height: 100%}
body {background: #f2f4f7 url('images/top_bg.jpg') no-repeat 50% 0; background-size: contain}

#general {margin: 0 auto -300px; width: 100%; min-width: 1138px; min-height: 100%; background: url('images/bottom_bg.jpg') no-repeat 50% 100%; background-size: contain}
#general::after {content: ''; display: block; clear: both; height: 300px}
#footer {width: 1138px; height: 300px; margin: 0 auto}

h2 {margin-bottom: 20px; text-transform: uppercase; font-family: 'HeliosCondBold'; font-weight: normal; font-size: 20px; color: #222}
h3 {margin-bottom: 15px; font-weight: normal; font-size: 18px; color: #4e83c4}

p, ul, ol, table, label {font-size: 14px; margin-bottom: 10px; color: #666666}
li {margin: 0 0 10px 30px}

a:link, a:visited {text-decoration: underline; color: #007ac2}
a:hover, a:active {text-decoration: none; color: #007ac2}

img {border: none; vertical-align: bottom}
input, textarea {box-sizing: content-box; font-size: 14px}

/* textarea {resize: none} */
/* input, textarea {outline: none} /* KHTML */

/* Table */
table {border-collapse: collapse}
td, th {padding: 3px 5px; border: 1px solid #999}
th {background-color: #ccc}

hr {height: 1px; margin: 10px 0; border: none; background-color: #4e83c4}

/*** Wordpress ***/
.alignleft {display: inline; float: left; padding: 0 15px 10px 0}
.alignright {display: inline; float: right; padding: 0 0 10px 15px}
.aligncenter {display: block; margin-right: auto; margin-left: auto; padding: 0 0 10px 0}

.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {max-width: 100%; height: auto}

.edit_post_link {clear: both}
/*** /Wordpress ***/

.type_post {clear: both}
.entry_thumbnail {float: left; margin: 0 20px 20px 0}
.single_thumbnail {float: left; margin: 0 20px 20px 0}

/*** Top menu ***/
ul#top_menu {display: flex; justify-content: space-around; margin: 0}
ul#top_menu li {display: block; position: relative; margin: 0}
ul#top_menu li a {display: block}
/*** /Top menu ***/

/*** Top menu drop down ***/
ul#top_menu li ul {position: absolute; display: none; top: 100%; left: 0; z-index: 100}
ul#top_menu > li > ul {min-width: 100%}
ul#top_menu li:hover > ul {display: block}
ul#top_menu li ul li {position: relative; float: none; white-space: nowrap}
ul#top_menu li ul li ul {top: 0; left: 100%}
/*** /Top menu drop down ***/


/* Category nav */
.nav_pages {clear: left; margin-top: 30px}
.nav_current, .nav_link, .nav_prev, .nav_next {margin: 0 8px 0 8px; text-decoration: none !important}
.nav_link {padding: 7px 12px; color: #fff !important; background-color: #4e83c4}


/* Next/Prev posts nav */
.nav_posts::after {content: ''; display: block; clear: both}
.prev_link {float: left; width: 30%}
.next_link {float: right; width: 30%; text-align: right}


/*** Gallery ***/
div.gallery {text-align: left}
div.gallery figure {display: inline-block; margin: 0 12px 20px 0; vertical-align: top}
div.gallery figure:last-child {margin-right: 0}
div.gallery figcaption {width: 200px; margin: 10px 0}
/*** /Gallery ***/


/*** Contact Form ***/
#contact_form {font-size: 14px}
#contact_form sup {color: #a00}
#contact_form input {padding: 3px; border: 1px solid #4e83c4; width: 250px}
#contact_form textarea {border: 1px solid #4e83c4; width: 500px; height: 200px}
#contact_form input[type='submit'] {padding: 8px 3px; text-transform: uppercase; color: #fff; background-color: #4e83c4}
#contact_form .ftitle {clear: left; float: left; width: 100px; margin-bottom: 10px}
#contact_form .ffield {float: left; margin-bottom: 10px}
#contact_form .ftextarea {}
#contact_form .fsubmit {}
#contact_form .obligatory {clear: left}
.wpcf7-response-output {margin: 20px 0 20px 0 !important}
.wpcf7-validation-errors {}
.wpcf7-not-valid-tip {}
/*** /Contact Form ***/


/*** Design ***/
#header {width: 1138px; height: 180px; margin: 0 auto}
#header::after {content: ''; display: block; clear: both}
#header a.logo {display: block; float: left; width: 126px; height: 154px; margin-top: 15px; background: url('images/logo.png') no-repeat 0 0}
#header div.logos {float: right; width: 200px; margin-top: 43px; text-align: right}
#header div.logos a {display: inline-block; width: 91px; height: 91px}
#header div.logos a.logo_fsrussia {margin-right: 5px; background: url('images/logo_fsrussia.png') no-repeat 100% 50%}
#header div.logos a.logo_fskating {background: url('images/logo_fskating.png') no-repeat 100% 50%}
#header div.title {float: left; width: calc(100% - 126px - 200px - 75px); margin-top: 44px; margin-left: 75px}
#header h1 {width: 450px; margin: 0 auto; text-align: center; text-transform: uppercase; line-height: 1.14; font-family: 'HeliosCondBold'; font-weight: normal; font-size: 25px; color: #2a4772;
            background: url('images/h1_bg.jpg'); background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; -webkit-text-fill-color: transparent; -webkit-background-clip: text}
#header h1 span {font-family: 'HeliosCondBold'; font-size: 48px}

#top_nav {width: 1138px; height: 60px; margin: 0 auto; background-color: #4e83c4}
#top_nav a#adaptive_menu {display: none; padding: 10px; text-decoration: none; text-transform: uppercase; font-size: 16px; color: #fff; cursor: pointer}
#top_nav a#adaptive_menu::before {content: ''; display: inline-block; width: 16px; height: 16px; margin-right: 10px; background-image: linear-gradient(to bottom, #fff 0, #fff 20%, transparent 20%, transparent 40%, #fff 40%, #fff 60%, transparent 60%, transparent 80%, #fff 80%)}

/* Top menu override */
ul#top_menu li {}
ul#top_menu li:hover > a {color: #fff}
ul#top_menu li a {height: 60px; text-decoration: none; text-transform: uppercase; line-height: 60px; font-size: 15px; color: #abc7ea}
ul#top_menu li a::before {content: ''; display: inline-block; width: 16px; height: 18px; margin-right: 12px; vertical-align: middle}
ul#top_menu li:nth-child(1) a::before {background: url('images/menu_icons.png') no-repeat 0 0}
ul#top_menu li:nth-child(2) a::before {background: url('images/menu_icons.png') no-repeat -16px 0}
ul#top_menu li:nth-child(3) a::before {background: url('images/menu_icons.png') no-repeat -32px 0}
ul#top_menu li:nth-child(4) a::before {background: url('images/menu_icons.png') no-repeat -48px 0}
ul#top_menu li:nth-child(5) a::before {background: url('images/menu_icons.png') no-repeat -64px 0}
ul#top_menu li:nth-child(6) a::before {background: url('images/menu_icons.png') no-repeat -80px 0}
ul#top_menu li:nth-child(7) a::before {background: url('images/menu_icons.png') no-repeat -96px 0}
ul#top_menu li ul {padding: 10px 0; background-color: #4173b1}
ul#top_menu li ul::before {content: ''; display: block; position: absolute; width: 8px; height: 8px; top: -4px; left: 55px; background-color: #4173b1; transform: rotate(45deg)}
ul#top_menu li ul li {padding: 0 20px}
ul#top_menu li ul li:hover {background-color: #abc7ea}
ul#top_menu li ul li a {height: 30px; line-height: 30px; font-size: 14px}
ul#top_menu li ul li a::before {content: '- '; display: inline; width: auto; height: 30px; margin-right: 0; line-height: 30px; background: none !important; vertical-align: baseline}
ul#top_menu > li.current_page_item > a, ul#top_menu > li.current_page_ancestor > a {color: #fff}
ul#top_menu > li.current_page_item > a::before, ul#top_menu > li.current_page_ancestor > a::before, ul#top_menu > li:hover > a::before {background-image: url('images/menu_icons_a.png')}

div#main {width: 1138px; min-height: 350px; margin: 25px auto 0 auto}
div#main::after {content: ''; display: block; clear: both}
div#left {float: left; width: calc(((100% - 90px) / 4 * 3) + 60px)}
div#right {float: right; width: calc((100% - 90px) / 4)}

div#slider {width: 100%; height: 310px; margin: 5px 0 25px 0}

div.thumbnail {width: 100%; height: 200px; margin-bottom: 20px; background-repeat: no-repeat; background-position: 50% 50%; background-size: cover}

a.news_block {display: inline-block; width: calc((100% - 60px) / 3); margin: 0 30px 25px 0; text-decoration: none; font-size: 14px; vertical-align: top}
a.news_block:nth-of-type(3n) {margin-right: 0}
a.news_block:hover p {color: #007ac2}
a.news_block h3 {margin: 0 0 5px 0; font-size: 14px; font-weight: normal; color: #007ac2}
a.news_block div.date {margin-bottom: 16px; padding-left: 27px; color: #222; background: url('images/news_icon.png') no-repeat 0 0}
a.news_block span.more {display: block; height: 13px; background: url('images/more_line.png') no-repeat 100% 0}

a.news_block4 {width: calc((100% - 90px) / 4)}
a.news_block4:nth-of-type(3n) {margin-right: 30px}
a.news_block4:nth-of-type(4n) {margin-right: 0}

div#right a.news_block {width: 100%; margin-right: 0}

div.person::after {content: ''; display: block; clear: both}
div.person div.thumbnail {float: left; width: 262px; margin: 0 30px 30px 0}
div.person h3 {padding-top: 5px}
div.person h3.position {margin-bottom: 0; font-size: 20px; color: #222}
div.person div.info {margin-bottom: 20px; font-size: 14px; color: #666666}
div.person div.info div {display: inline-block; margin-right: 30px}
div.person div.info b {font-weight: normal; color: #222}

div.filter {margin-bottom: 20px}
div.filter p {color: #222}
div.filter p span::after {content: '|'; display: inline-block; margin: 0 10px}
div.filter p span:last-of-type::after {display: none}

table.calendar {width: calc(100% + 6px); margin: -3px; border-collapse: separate; border-spacing: 3px}
table.calendar th {height: 45px; padding: 0; border: none; text-transform: uppercase; line-height: 45px; color: #fff; background-color: #4e83c4}
table.calendar th a {text-decoration: none; color: #fff}
table.calendar th a:hover {opacity: 0.5}
table.calendar th a.arr_left {display: block; float: left; width: 40px; height: 100%; background: url('images/calendar_arrows.png') no-repeat 0 50%}
table.calendar th a.arr_right {display: block; float: right; width: 40px; height: 100%; background: url('images/calendar_arrows.png') no-repeat -40px 50%}
table.calendar td {width: 14.3%; height: 35px; padding: 0; border: none; text-align: center; font-family: 'HeliosCondBold'; color: #222; background-color: #fff}
table.calendar td.other {background-color: #abc7ea}
table.calendar td.mark {background-color: #dde9f7}
table.calendar td a {font-family: 'HeliosCondBold'}

p.all_events {margin-top: 20px; text-align: right}

div.category_photo_gallery {margin-bottom: 30px}
div.category_photo_gallery div.gallery {position: relative; overflow: hidden; white-space: nowrap}
div.category_photo_gallery div.gallery::after {content: ''; display: block; position: absolute; top: 0; right: 0; width: 20px; height: calc(100% - 20px); background-image: linear-gradient(to left, #f2f4f7 0, transparent 100%)}
div.category_photo_gallery a.more {display: block; height: 13px; background: url('images/more_line.png') no-repeat 100% 0}

#footer {background: url('images/skates.png') no-repeat top 65px right 15px}
#footer a.logo {display: block; float: left; width: 126px; height: 154px; margin-top: 85px; background: url('images/logo.png') no-repeat 1px 0}
#footer div.info {float: left; width: 500px; margin: 130px 0 0 180px; font-size: 14px; color: #222}

/*** /Design ***/

/*** MSIE ***/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
     #header h1 {color: transparent; background: url('images/h1.png') no-repeat 50% 0}
}
/*** /MSIE ***/

/*** Adaptive ***/
@media screen and (max-device-width: 1920px)
{
    body {background-size: auto}
    #general {background-size: auto}
}

@media screen and (max-device-width: 1138px)
{
    #general {min-width: 100%}
    #footer {width: auto}
    #header div.title {width: calc(100% - 326px); margin-left: 0}
 
    #header {width: auto}
    #top_nav {width: auto}
 
    div#main {width: auto; margin: 25px 10px 0 10px}
 
    #footer div.info {margin-left: 50px}
}

@media
    screen and (max-device-width: 900px) and (orientation: portrait),
    screen and (max-device-width: 760px)
{
    #header {height: auto; padding-bottom: 20px}
    #header a.logo {float: none; margin: 15px auto; background-position: 50% 50%}
    #header div.logos {float: none; width: 100%; text-align: center}
    #header div.title {float: none; width: 100%}
 
    #top_nav {height: auto}
    #top_nav a#adaptive_menu {display: block}
 
    ul#top_menu {display: none}
    ul#top_menu li a {height: 40px; padding-left: 20px; line-height: 40px}
    ul#top_menu li ul {position: static; display: block}
    ul#top_menu li ul::before {display: none}
 
    div#left {float: none; width: 100%}
    div#right {float: none; width: 100%}

    div#right a.news_block {width: calc((100% - 60px) / 3); margin: 0 30px 25px 0}
    div#right a.news_block:nth-of-type(3n) {margin-right: 0}
 
    table.calendar {width: 50%}
    p.all_events {margin-top: 20px; text-align: left}
 
    #footer div.info {width: auto}
}

@media screen and (max-device-width: 700px)
{
    a.news_block, div#right a.news_block {width: calc((100% - 30px) / 2); margin: 0 auto 25px 0}
    a.news_block:nth-of-type(2n - 1), div#right a.news_block:nth-of-type(2n - 1) {margin-right: 30px}
 
    #footer {background-size: 50%}
    #footer div.info {margin: 20px 0 0 50px}
}

@media screen and (max-device-width: 550px)
{
    #general {margin: 0 auto -350px}
    #general::after {height: 350px}
    #footer {height: 350px}

    #header div.title {width: 100%}
    #header h1 {width: 320px; font-size: 18px}
    #header h1 span {font-size: 34px}
 
    div#slider {width: 100%; height: 450px; margin: 5px 0 25px 0}
 
    a.news_block, div#right a.news_block {width: 100%; margin: 0 0 25px 0 !important}
 
    div.person div.thumbnail {float: none}
 
    table.calendar {width: 100%}
    
    #contact_form .ftextarea {width: 100%}
    #contact_form textarea {width: 100%}
}