/*
Theme Name: SEUL.fi versio 2.0
Theme URI: http://www.seul.fi/
Author: Ossi Pesonen
Version: 1.0
*/
@import url('//fonts.googleapis.com/css?family=Mukta:600,800%7CNoto+Sans:400,400i,700,700i');

/** Reset **/

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block
}

body {
    line-height: 1
}

ol, ul {
    list-style: none
}

blockquote, q {
    quotes: none
}

blockquote:after, blockquote:before, q:after, q:before {
    content: none
}

/** Globals **/

body {
    background: #FFF;
    font: 400 0.85em 'Noto sans', sans-serif, arial, verdana;
    color: #000000;
    margin-top: 80px;
}

a,
a:visited {
    word-wrap: break-word;
    transition: .2s ease-in-out;
    text-decoration: none;
    color: #65B32E;
    outline: 0;
}


/*#post .content,
#page .post-content {
    overflow: hidden;
}*/

#page .content a:not(.embedded),
#post .content a:not(.embedded) {
    background-color: transparent;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: left bottom 0%;
    background-origin: padding-box;
    text-shadow: 3px 0 #fff, 2px 0 #fff, 1px 0 #fff, -1px 0 #fff, -2px 0 #fff, -3px 0 #fff;
}

#page .post-content a:hover,
#post .content a:hover {
    background-size: 0 1px;
}

#page .post-published-date {
    padding: 20px 20px 20px 92px;
    margin-top: 20px;
    border: 1px solid #DDDDDD;
    background-color: #fff;
    box-shadow: 0 2px 8px rgb(0 0 0 / 7%);
    position: relative;
}

#page .post-published-date .seul-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-image: url('images/seulstar.png');
    background-size: contain;
    background-repeat: no-repeat;
}

a:hover {
    color: #8697A5;
}

::-moz-selection {
    color: #FFF;
    background: #65B32E;
    text-shadow: none;
    background-position: initial;
}

::selection {
    color: #FFF;
    background: #65B32E;
    text-shadow: none;
    background-position: initial;
}

h1, h2, h3, h4, h5 {
    font-family: "Mukta", sans-serif, arial, verdana;
    font-weight: 800;
    color: #192028;
    margin-bottom: 16px;
}

h1 {
    font-size: 2.2em;
    margin-bottom: 22px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 17px;
}

h4 {
    font-size: 1.2em;
}

h5 {
    font-size: 1.0em;
}

p {
    padding-bottom: 32px;
    line-height: 1.6em;
}

p:last-child {
    padding-bottom: 0;
}

strong, b {
    font-weight: bold;
}

i, em {
    font-style: italic;
}

hr {
    margin: 18px 0;
    height: 1px;
    border: 0;
    background: #e8e8e8;
    width: 100%;
    display: block;
}

table {
    width: 100%;
    max-width: 100%;
    border: 0;
    display: table;
    table-layout: fixed;
    margin-bottom: 24px;
    border-collapse: collapse;
}

table tr {
    border: 0;
    margin: 0;
}

table th {
    border-bottom: 2px solid #e8e8e8;
    margin: 0;
    vertical-align: top;
}

table td {
    border-right: 1px dashed #e8e8e8;
    line-height: 1.5;
    vertical-align: top;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
}

table td a {
	text-shadow: none !important;
}

table td:last-child {
    border-right: 0;
}

table tr:nth-child(even) td {
    background: #f6f6f6;
}

img {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

iframe {
    width: 100%;
}

blockquote {
    display: block;
    margin: 20px 0 20px 15px;
    background: #fff;
    padding: 20px;
    border: 1px solid #f0f0f1;
    border-left: 7px solid #0089d0;
    font-family: 'PT Serif', serif, 'Times New Roman';
    font-style: italic;
}

select,
textarea,
input:not([type=radio]):not([type=checkbox]) {
    display: block;
    max-width: 280px;
    background: #FFF;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 12px;
    font: 400 1em "Lato", sans-serif, arial, verdana;
    line-height: 1.0;
    margin: 3px 0 8px;
    width: 100%;
    transition: border .2s ease-in-out;
}

input:not([type=radio]):focus {
    border-color: #0080C9
}

input[type=submit] {
    cursor: pointer;
    outline: 0;
    padding: 13px 20px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
    font: 700 0.9em "Noto Sans", sans-serif, arial, verdana;
    color: #65b32e;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    transition: .2s ease-in-out;
}

input[type=submit]:hover {
    color: #8697A5;
    background: #eee;
}

.content ol,
.content ul {
    padding-left: 0;
    margin-bottom: 16px;
}

.content ol {
    padding-left: 15px;
}

.content ul li > ul,
.content ol li > ul {
    margin: 5px 0;
    padding-left: 15px;
}

.content ol {
    list-style: decimal;
}

.content ol li {
    padding: 3px 0;
}

.content ul li {
    position: relative;
    padding: 3px 0 3px 15px;
}

.content ul li:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro", sans-serif;
    font-weight: 700;
    color: #0089d0;
    position: absolute;
    top: 4px;
    left: 0;
}

/** Buttons **/

.button {
    display: inline-block;
    background: #FFF;
    border-radius: 5px;
    cursor: pointer;
    outline: 0;
    padding: 15px 20px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
    font: 700 0.9em "Noto Sans", sans-serif, arial, verdana;
    color: #65b32e;
    transition: .2s ease-in-out;
    border: 1px solid #ddd;
    margin: 8px 0;
}

.button:hover {
    color: #8697A5;
    background: #F4F9FD;
}

/** Helper classes **/

i.fa {
    font-weight: 400;
}

.wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

.floatleft {
    float: left;
    margin: 0 12px 12px 0;
}

.clearfix:after {
    display: block;
    clear: both;
    content: ".";
    font-size: 0;
    visibility: hidden;
}

/** Page wrap **/

#page-wrap {
    padding: 20px 0;
    transition: opacity .2s ease-in-out;
    overflow: hidden;
}

body.home #page-wrap {
    padding: 0;
}

body.home #page-wrap > .wrapper {
    padding: 0;
}

.read-more i {
    transition: transform .2s ease-in-out;
}

.read-more:hover i {
    transform: translateX(10px);
}

h3.section-title i {
    font-weight: 700;
    margin: 24px 25px 36px 0;
    display: inline-block;
    color: #0080C9;
}

/** Navigation **/

#top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.07);
    height: 80px;
    background: #FFF;
    z-index: 95;
    transition: .2s ease-in-out;
}

#top .grid > * {
    padding-top: 0;
    padding-bottom: 0;
}

#upper-menu {
    background: #FFF;
    height: 80px;
    display: block;
}

#upper-menu .wrapper {
    position: relative;
}

#upper-menu .navigation-wrapper {
    display: none;
}

#upper-menu a.logo {
    width: 100%;
    padding-right: 60px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    height: 80px;
    line-height: 80px;
    max-width: 360px;
}

#logo {
    display: inline-block;
    vertical-align: middle;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#lower-menu {
    position: fixed;
    width: 100%;
    background: #FFF;
    right: -100%;
    max-width: 422px;
    top: 0;
    bottom: 0;
    overflow: auto;
    transition: .2s ease-in-out;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 98;
    height: 100%;
}

#lower-menu .wrapper {
    padding: 50px 35px;
}

body.show-menu #lower-menu {
    right: 0;
}

body.show-menu #lower-menu {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.07);
}

body {
    transition: background-color .2s ease-in-out;
}

body.show-menu {
    background: #eee;
}

body.show-menu #page-wrap {
    opacity: 0.2;
}


#toggle-menu {
    position: fixed;
    top: 0;
    right: 0;
    background: none;
    width: 65px;
    height: 80px;
    border: 0;
    color: #192028;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    z-index: 99;
    outline: 0;
}

#toggle-menu .inner {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    margin: auto;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.5s ease-in-out;
    -moz-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

#toggle-menu .inner span {
    display: block;
    position: absolute;
    height: 3px;
    width: 50%;
    background: #192028;
    opacity: 1;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: 0.25s ease-in-out;
    -moz-transition: 0.25s ease-in-out;
    -o-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
}

#toggle-menu:hover .inner span {
    background: #8697A5;
}

#toggle-menu .inner span:nth-child(even) {
    left: 50%;
    border-radius: 0 9px 9px 0;
}

#toggle-menu .inner span:nth-child(odd) {
    left: 0;
    border-radius: 9px 0 0 9px;
}

#toggle-menu .inner span:nth-child(1), #toggle-menu .inner span:nth-child(2) {
    top: 0;
}

#toggle-menu .inner span:nth-child(3), #toggle-menu .inner span:nth-child(4) {
    top: 10px;
}

#toggle-menu .inner span:nth-child(5), #toggle-menu .inner span:nth-child(6) {
    top: 20px;
}

body.show-menu #toggle-menu .inner span:nth-child(6), body.show-menu #toggle-menu .inner span:nth-child(1) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

body.show-menu #toggle-menu .inner span:nth-child(2), body.show-menu #toggle-menu .inner span:nth-child(5) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

body.show-menu #toggle-menu .inner span:nth-child(1) {
    left: 2px;
    top: 7px;
}

body.show-menu #toggle-menu .inner span:nth-child(2) {
    left: calc(50% - 2px);
    top: 7px;
}

body.show-menu #toggle-menu .inner span:nth-child(3) {
    left: -50%;
    opacity: 0;
}

body.show-menu #toggle-menu .inner span:nth-child(4) {
    left: 100%;
    opacity: 0;
}

body.show-menu #toggle-menu .inner span:nth-child(5) {
    left: 2px;
    top: 14px;
}

body.show-menu #toggle-menu .inner span:nth-child(6) {
    left: calc(50% - 2px);
    top: 14px;
}

.quick-links-menu li a,
.main-menu li a {
    display: block;
    padding: 12px 0;
    font: 800 1.3em "Mukta", sans-serif, arial, verdana;
    color: #192028;
}

.main-menu li > ul a {
    font-size: 1.1em;
}

.quick-links-menu li a:hover,
.main-menu li a:hover {
    color: #8697A5;
}

.main-menu li {
    position: relative;
}

.main-menu > li:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro", sans-serif, arial, verdana;
    font-weight: bold;
    color: #0080C9;
    position: absolute;
    left: -15px;
    top: 18px;
    font-size: 0.7em;
}

.main-menu ul li a {
    padding-left: 22px;
    position: relative;
    font-size: 0.9em;
}

.main-menu ul li a:before {
    content: "";
    height: 1px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 12px;
    background: #C0CBD4;
}

#top .social-media-menu {
    margin: 20px 0;
}

#top .social-media-menu li {
    position: relative;
    height: 32px;
    width: 32px;
    margin-right: 18px;
}

#top .social-media-menu li:before {
    font-size: 1.8em;
    color: #192028;
    transition: .2s ease-in-out;
}

#top .social-media-menu li:hover:before {
    color: #8697A5;
}

#top .social-media-menu a {
    display: block;
    font-size: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#lower-menu .search {
    margin: 18px 0;
    border-top: 1px solid #C0CBD4;
    border-bottom: 1px solid #C0CBD4;
    padding: 18px 0;
}

#lower-menu .search form > div {
    position: relative;
}

#lower-menu .search form > div > * {
    display: inline-block;
    margin-right: 12px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
}

#lower-menu .search form > div input[type=text] {
    width: 100%;
    margin: 0;
    max-width: 100%;
}

#lower-menu .search label {
    display: none !important;
}

#lower-menu .search button {
    cursor: pointer;
    font-size: 1.2em;
    background: none;
    border: 0;
    color: #8697A5;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 45px;
    width: 45px;
    text-align: center;
    margin: 0 !important;
}

#lower-menu .search button:hover {
    color: #192028;
}

#lower-menu .search button .fa {
    transition: .2s ease-in-out;
}

#lower-menu .search button:hover .fa {
    transform: translateX(5px);
    -webkit-transform: translateX(5px);
}

#lower-menu .quick-links-menu {
    margin: 18px 0;
    border-bottom: 1px solid #C0CBD4;
    padding: 18px 0;
}

/** Slider **/

#slider {
    background: #192028;
}

#slider .slide a {
    display: block;
}

#slider .slide .slide-image {
    background-position: 50%;
    background-size: cover;
    transition: opacity .3s ease-out;
    position: relative;
    padding-top: 33.3%;
}

#slider .slide .slide-image:before {
    content: "";
    height: 25%;
    background: -moz-linear-gradient(top, rgba(25, 32, 40, 0) 0%, rgba(25, 32, 40, 1) 100%);
    background: -webkit-linear-gradient(top, rgba(25, 32, 40, 0) 0%, rgba(25, 32, 40, 1) 100%);
    background: linear-gradient(to bottom, rgba(25, 32, 40, 0) 0%, rgba(25, 32, 40, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00192028', endColorstr='#192028', GradientType=0);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

#slider .slide .slide-image img {
    opacity: 0;
    display: none;
}

#slider .slide .content {
    display: block;
    text-align: center;
    padding: 12px;
    width: 100%;
    background: #192028;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
}

#slider .slide .content h2 {
    color: #FFF;
}

#slider .slide .post-content .post-meta {
    margin-top: 12px;
}

#slider .slide .post-content .post-meta .time {
    display: inline-block;
    margin-right: 24px;
    line-height: 0.8em;
}

#slider .slide .post-content .post-meta .time i {
    font-weight: 400;
    margin-right: 6px;
}

#slider .slide .post-content .post-meta .read-more {
    color: #65b32e;
    margin-left: 24px;
    line-height: 0.8em;
}

#slider .slide .post-content .post-meta .read-more:hover {
    color: #8697A5;
}

#slider .slide .post-content .post-meta .read-more i {
    margin-left: 12px;
}

#slider .slick-dots {
    text-align: center;
    padding: 0 0 24px;
    background: #192028;
    z-index: 20;
}

#slider .slick-dots li {
    display: inline-block;
}

#slider .slick-dots button {
    background: #FFF;
    font-size: 0;
    height: 8px;
    width: 25px;
    border-radius: 5px;
    margin: 0 6px;
    border: 0;
    cursor: pointer;
    transition: .2s ease-in-out;
}

#slider .slick-dots button:hover {
    background: #8697A5;
}

#slider .slick-dots li.slick-active button {
    background: #65b32e;
}

/** Stream **/

#frontpage-stream {
    padding: 24px 0;
    background: #F4F9FD;
}

#frontpage-stream .wrapper {
    max-width: 768px;
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 35px;
    height: 0;
    overflow: hidden;
}

#frontpage-stream iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/** Articles **/

#articles {
    margin: 12px 0;
}

.posts-grid {
    margin-bottom: 20px;
}

.posts-grid article {
    border: 1px solid #DDDDDD;
    background: #FFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 0;
    margin: 0 0 12px 0;
}

.posts-grid article .post-thumbnail img {
    width: 100%;
}

article .post-content {
    overflow-wrap: break-word;
}

.posts-grid article .post-content {
    padding: 24px;
    color: #8697A5;
}

.posts-grid article .post-content header {
    margin-bottom: 24px;
}

.posts-grid article .post-content header h3 {
    transition: .2s ease-in-out;
    line-height: 1.5;
}

.posts-grid article .post-content header h3 a {
    color: #192028;
}

.posts-grid article .post-content header h3 a:hover {
    color: #8697A5;
}

.posts-grid article .post-content header h3:hover {
    color: #8697A5;
}

.posts-grid article .post-content .post-meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px dashed #ddd;
    font-size: 0.9em;
}

article .post-meta .time {
    min-width: 180px;
    display: inline-block;
}

article .post-meta .time i {
    font-weight: 400;
    color: #8697A5;
    display: inline-block;
    margin-right: 8px;
}

article .post-meta .read-more {
    color: #65b32e;
    transition: .2s ease-in-out;
}

article .post-meta .read-more:hover {
    color: #192028;
}

article .post-meta .read-more i {
    margin-left: 12px;
    display: inline-block;
}

#community-articles {
    background: #F4F9FD;
    padding: 20px 0;
}

#recent-posts {
    margin-top: 12px;
    padding-top: 12px;
}

#recent-posts:before {
    content: "";
    display: block;
    height: 2px;
    background: #eee;
    width: calc(100% - 40px);
    max-width: 768px;
    margin: 0 auto 24px;
}

#recent-posts .wrapper > h3 {
    text-align: center;
}

#author {
    margin-top: 24px;
    padding-top: 24px;
}

#author:before {
    content: "";
    display: block;
    height: 2px;
    background: #eee;
    width: 100%;
    max-width: 768px;
    margin: 0 auto 24px;
}

#author .image {
    text-align: right !important;
}

#author .image img {
    width: 125px;
    height: 125px;
    border-radius: 100%;
    overflow: hidden;
}

#author .author-meta {
    margin-top: 20px;
}

#author .author-meta .name {
    font-size: 1.4em;
    margin: 10px 0;
    color: #192028;
    font-weight: bold;
}

/** Sidebar **/

#sidebar {
    border-top: 2px solid #EEEEEE;
    margin-top: 12px;
    padding-top: 12px;
}

#sidebar h2 {
    border-bottom: 2px solid #EEEEEE;
    margin-bottom: 18px;
    padding-bottom: 18px;
}

#sidebar h2 i {
    margin-right: 15px;
    color: #0080C9;
    margin-bottom: 24px;
    font-weight: 700;
}

#quick-buttons {
    margin-top: 24px;
}

#quick-buttons a {
    border-radius: 5px;
    background: #0080C9;
    padding: 30px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#quick-buttons a:hover {
    background: #606D78 !important;
}

#quick-buttons a:hover i {
    transform: translateX(-10px);
}

#quick-buttons a.discord {
    background: #7289DA;
}

#quick-buttons .post-content,
#quick-buttons i {
    flex: 1;
}

#quick-buttons i {
    flex-basis: 50px;
}

#quick-buttons .post-content > * {
    margin-bottom: 0;
}

#quick-buttons .description,
#quick-buttons h3 {
    display: block;
    color: #FFF;
}

#quick-buttons .description {
    font-weight: bold;
}

#quick-buttons i {
    font-size: 48px;
    color: #FFF;
    flex: 0 0 54px;
    transition: transform .2s ease-in-out;
}

#events h5 {
    color: #8697A5;
    margin-bottom: 24px;
    font-size: 1.1em;
}

#events ul {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

#events li {
    margin: 0 0 -1px 0;
    padding: 0;
    border: 1px solid #ddd;
}

#events .event {
    padding: 18px 18px 18px 0;
    margin: 0;
    margin-bottom: -1px;
    align-items: center;
    justify-content: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    background: #FFF;
}

#events .event:hover {
    background: #F4F9FD;
}

#events .event > * {
    padding: 0;
}

#events .event .time {
    flex: 0 0 100px;
    text-align: center;
}

#events .event .day {
    font: 800 2.625em "Mukta", sans-serif, arial, verdana;
    color: #0080C9;
    vertical-align: middle;
}

#events .event .content {
    color: #8697A5;
    position: relative;
    padding-right: 32px;
}

#events .event .content:after {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    color: #65b32e;
    content: "\f138";
    font-weight: 700;
    font-family: "Font Awesome 5 Pro", sans-serif, arial, verdana;
    font-size: 1.4em;
    transition: .2s ease-in-out;
}

#events .event:hover .content:after {
    right: 0;
    color: #8697A5;
}

#events .event .content .title {
    font-size: 1.6em;
    margin-bottom: 0;
    transition: .2s ease-in-out;
}

#events .event:hover .content .title {
    color: #8697A5;
}

#events .event .content p {
    padding-bottom: 0;
}

#events > ul {
    margin-bottom: 24px;
}

#tweets .tweet {
    position: relative;
    border-radius: 7px;
}

#tweets .tweet:before {
    font-family: "Font Awesome 5 Brands", sans-serif, arial, verdana;
    content: "\f099";
    font-size: 24px;
    position: absolute;
    top: 18px;
    right: 18px;
    color: #0089d0;
}

#tweets .tweet img {
    height: 42px;
    width: 42px;
    border-radius: 100%;
}

#tweets .tweet h3 {
    font-size: 1.3em;
    margin-bottom: 0;
    padding-right: 25px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: normal;
}

#tweets .tweet .heading {
    margin-bottom: 35px;
}

#tweets .tweet h4 {
    font-size: 0.9em;
    color: #8697A5;
    margin-bottom: 0;
    position: absolute;
    left: 80px;
}

#tweets .tweet p {
    color: #8697A5;
    margin-top: 18px;
    padding-bottom: 18px;
}

#tweets .tweet p.time {
    margin-top: 0;
    padding-bottom: 0;
}

#tweets .tweet p.time i,
#tweets .tweet a {
    color: #0089d0;
}

#tweets .tweet a:hover {
    color: #192028;
}

#tweets .tweet a.read-more {
    float: right;
}

#sidebar > * {
    padding-bottom: 25px;
}

#rss-feed h4 {
    transition: .2s ease-in-out;
}

#rss-feed h4:hover {
    color: #8697A5;
}

#rss-feed article .icon {
    flex: 0 0 100px;
    text-align: center;
    padding: 24px 0;
    font-size: 0.8em;
    color: #8697A5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#rss-feed article .post-content {
    padding-left: 5px;
}

#rss-feed article footer > * {
    display: block;
    text-align: left;
    float: none;
}

#rss-feed article footer > span {
    margin-top: 8px;
}

.grid a article {
    transition: border-color .2s ease-in-out;
}

.grid a:hover article {
    border-color: #8697A5;
}

#rss-feed article .icon img {
    border-radius: 6px;
}

#rss-feed article footer {
    margin-top: 18px;
    font-size: 0.9em;
}

#rss-feed article footer .read-more {
    color: #65b32e;
}

#rss-feed article footer .read-more:hover {
    color: #192028;
}

/** Footer **/

#bottom {
    background: #181F27;
    padding: 25px 0;
    color: #8697A5;
}

#bottom > .wrapper {
    padding: 0;
    overflow: hidden;
}

#bottom .grid {
    margin: 0;
}

#bottom a {
    color: #8697A5;
}

#bottom a:hover {
    color: #FFF;
}

#bottom p {
    line-height: 2.0em;
}

#bottom h3 {
    color: #FFF;
    display: block;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font: 800 1.3em 'Mukta', sans-serif, arial, verdana;
    text-transform: uppercase;
}

#bottom h3:after {
    content: "";
    height: 3px;
    border-radius: 5px;
    width: 30px;
    display: block;
    margin-top: 15px;
    background: #0080C9;
}

#bottom .grid > * {
    padding-top: 25px;
    padding-bottom: 25px;
}

#bottom .fa {
    font-weight: 700;
    color: #0080C9;
    display: inline-block;
    width: 20px;
}

#bottom .social-media-menu li {
    position: relative;
    height: 24px;
    width: 24px;
    display: inline-block;
    margin-right: 24px;
}

#bottom .social-media-menu li:hover:before {
    color: #FFF;
}

#bottom .social-media-menu li:before {
    font-size: 1.8em;
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    transition: .2s ease-in-out;
}

#bottom .social-media-menu li a {
    font-size: 0;
    height: 24px;
    width: 24px;
    display: block;
    position: relative;
    z-index: 2;
}

/** Breadcrumb */

.breadcrumb {
    padding: 20px;
    font-size: 0.8em;
    max-width: 1440px;
    margin: 0 auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/** Article */

#post > .wrapper {
    padding: 35px 0 0;
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#post h1 {
    font-size: 1.7em;
    line-height: 1.6;
    margin-bottom: 1.2em;
}

#post .image {
    text-align: center;
}

#post .image img {
    margin: 0 auto;
}

#post .meta {
    font-size: 0.8em;
    padding-bottom: 1.2em;
}

#post .meta .time {
    display: block;
    margin-bottom: 12px;
}

#post .meta .time .fa {
    color: #0089d0;
}

#post .excerpt {
    font-weight: bold;
    padding: 1.2em 0 1.8em;
    color: #192028;
}

#post .excerpt p {
    line-height: 2.0em;
}

#post .content,
#post .content p {
    font-size: 0.97em;
    line-height: 2.0em;
}

/* Article infobox by: valdemart */

body.post-template-liittokirje-post-template-thing h2 {
    color: #0080c9;
    line-height: 1.5;
    font-size: 27px;
}

#backtotop_button {
    position: fixed;
    bottom: 70px;
    right: 100px;
    width: 64px;
    height: 64px;
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.11);
    cursor: pointer;
    border-radius: 50%;
    opacity: 1;
    z-index: 1000;
    transition: all 0.3s ease;
}

#backtotop_button.hidden {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#backtotop_button .offsettext {
    position: absolute;
    right: 80px;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #949494;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.11);
    transition: all 0.3s ease;
}

#backtotop_button .fa {
    width: 65px;
    height: 65px;
    text-align: center;
    line-height: 65px;
    vertical-align: middle;
    font-size: 30px;
    font-weight: 400;
    color: #949494;
}

#seul_letter_sidebar {
    width: 230px;
    right: 100px;
    top: 50%;
    opacity: 1;
    transform: translateY(-50%);
    position: fixed;
    z-index: 1000;
    transition: all 0.3s ease;
}

#seul_letter_sidebar.compressed {
    overflow: hidden;
}

#seul_letter_sidebar.compressed:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

#seul_letter_sidebar_parts {
    position: relative;
}

#seul_letter_sidebar.hidden {
    opacity: 0;
    right: 50px;
    pointer-events: none;
    transition: all 0.3s ease;
}

#seul_letter_sidebar_bar {
    height: calc(100% - 42px);
    top: 21px;
    left: 8.5px;
    position: absolute;
    width: 3px;
    background-color: #ddd;
}

#seul_letter_sidebar_bar_inner {
    top: 0;
    left: 0;
    width: 3px;
    position: absolute;
    background-color: #0080c9;
}

.seul_letter_sidebar_part {
    height: 42px;
    font-size: 12px;
    width: 200px;
    padding-left: 30px;
    position: relative;
}

.seul_letter_sidebar_part .sidebar-part-bubble {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #0080c9;
    opacity: 0;
    width: 0;
    height: 0;
    transition: all 0.3s ease;
}

.seul_letter_sidebar_part.current {
    color: #0080c9;
}

.seul_letter_sidebar_part.visible_ball .sidebar-part-bubble {
    opacity: 1;
    height: 10px;
    width: 10px;
    transition: all 0.3s ease;
}

.seul_letter_sidebar_part div {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.seul_letter_sidebar_part .seul_letter_part_text {
    opacity: 1;
    transition: all 0.3s ease;
}

.seul_letter_sidebar_part .seul_letter_part_text a {
    color: #000000;
}

@media only screen and (max-width: 1470px) {
    #backtotop_button .offsettext {
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    #backtotop_button {
        bottom: 40px;
        right: 40px;
    }
    
    #seul_letter_sidebar {
        width: 20px;
        right: 62.5px;
    }
    
    #seul_letter_sidebar.hidden {
        right: 30px;
    }
    
    .seul_letter_sidebar_part .seul_letter_part_text {
        opacity: 0;
        transition: all 0.3s ease;
    }
}


@media only screen and (max-width: 975px) {
    body.post-template-liittokirje-post-template-thing #post .image h1 {
        width: calc(100% - 60px);
        font-size: 30px !important;
    }
}

@media only screen and (max-width: 675px) {
    body.post-template-liittokirje-post-template-thing #post .image h1 {
        font-size: 20px !important;
    }
    
    body.post-template-liittokirje-post-template-thing #post .image img {
        height: 100%;
        width: auto;
        max-width: none;
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
    }
    
    body.post-template-liittokirje-post-template-thing #post .image {
        height: 300px;
        overflow: hidden;
    }
}

@media only screen and (max-width: 960px) {
    #seul_letter_sidebar {
        width: 20px;
        right: 5px;
    }
    
    #seul_letter_sidebar.hidden {
        right: 0px;
    }
    
    body.post-template-liittokirje-post-template-thing .wrapper {
        padding: 0px 35px 0px 20px;
    }
}

.seul-article-event-embed {
    flex: 1;
    display: flex;
    overflow: auto;
}

.seul-article-event-embed .seul-article-event-wrapper {
    position: relative;
    display: flex;
    min-height: 430px;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event:first-child {
    margin: 10px 5px 10px 10px;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event:last-child {
    margin: 10px 10px 10px 5px;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event {
    box-shadow: 0 1px 9px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    margin: 10px 5px;
    border-radius: 10px;
    min-height: 400px;
    width: 367px;
    background-color: white;
    border: 1px solid #ddd;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event .popup-container-img {
    width: 100%;
    height: 172px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event .popup-container-text {
    padding: 15px 20px;
    font-size: 14px;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event .popup-container-text h3 {
    color: #0080c9;
    font-size: 20px;
    margin-bottom: 5px;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event .popup-container-text p {
    padding-bottom: 15px;
    line-height: 1.7 !important;
}

.seul-article-event-embed .seul-article-event-wrapper .seul-article-event .popup-container-text .hideonembed {
    display: none;
}

.infobox {
    width: 300px;
    border: 1px solid #DDDDDD;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    margin: 0px 0px 24px 32px;
    padding-bottom: 24px;
    position: relative;
    float: right;
}

.infobox .esm-i {
    color: #0080c9;
    font-style: normal;
    font-size: 15px;
    bottom: 5px;
    left: 3px;
    position: relative;
}

.infobox h5 {
    color: #192028;
    margin: 24px 24px 16px 24px;
}

.infobox .infobox-container {
    padding: 0px 24px 32px 24px;
}

.infobox .infobox-container ul {
    padding-inline-start: 0px;
    margin-bottom: 0px;
}

.infobox .seul-icon {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    background-image: url('images/seulstar.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.infobox .infobox-container p {
	padding-bottom: 10px;
}

@media only screen and (max-width: 550px) {
    .infobox {
        width: 100% !important;
        float: none !important;
        margin: 0px 0px 32px 0px !important;
    }
    
    .infobox-tall {
        display: none !important;
    }

    .infobox h5 {
        font-size: 1.3em !important;
    }
}


.embedded-files .grid {
    box-sizing: border-box;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex: 0 1 auto;
    -webkit-box-flex: 0;
    flex: 0 1 auto;
    -ms-flex-direction: row;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -20px;
    margin-left: -20px;
}

.embedded-files .grid>* {
    flex: 0 0 16.666666666667%;
    box-sizing: border-box;
    -webkit-box-sizing: border-boxpadding-right:20px;
    box-sizing: border-box;
    -ms-flex: 0 0 auto;
    -webkit-box-flex: 0;
    padding: 10px 20px;
}

.embedded-files .posts-grid {
    margin-bottom: 0 !important;
}

.embedded-files br {
    display: none;
}

.embedded-files .file_attachments li {
    line-height: 1.4;
}


.seul-boxbtns-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.seul-boxbtns-wrapper .seul-boxbtns-button {
	width: 262px;
	height: 262px;
	margin: 11px;
	border-radius: 5px;
	background-color: darkgrey;
	position: relative;
	overflow: hidden;
}

.seul-boxbtns-wrapper .seul-boxbtns-button .seul-boxbtns-bg {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	filter: grayscale(1);
	transition: filter 0.3s ease-in-out;
}

.seul-boxbtns-wrapper .seul-boxbtns-button .seul-boxbtns-fade {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
}

.seul-boxbtns-wrapper .seul-boxbtns-button a {
	color: white;
	text-decoration: none;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 3;
	text-shadow: none !important;
	background: none !important;
}

.seul-boxbtns-wrapper .seul-boxbtns-button .seul-boxbtns-button-content {
	position: absolute;
	width: calc(100% - 40px);
	padding: 20px;
	bottom: -28px;
	transition: bottom 0.3s ease-in-out;
}

.seul-boxbtns-wrapper .seul-boxbtns-button .seul-boxbtns-button-content h5 {
	font-size: 22px;
	margin: 0;
	color: white;
}

.seul-boxbtns-wrapper .seul-boxbtns-button .seul-boxbtns-button-content .seul-boxbtns-readmore {
	font-size: 14px !important;
	margin: 0px;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.seul-boxbtns-wrapper .seul-boxbtns-button:hover .seul-boxbtns-bg {
	filter: grayscale(0);
	transition: filter 0.3s ease-in-out;
}

.seul-boxbtns-wrapper .seul-boxbtns-button:hover .seul-boxbtns-button-content {
	bottom: 0px;
	transition: bottom 0.3s ease-in-out;
}

.seul-boxbtns-wrapper .seul-boxbtns-button:hover .seul-boxbtns-button-content .seul-boxbtns-readmore {
	opacity: 1;
	transition: opacity 0.3s ease-in-out;
}

.seul-image-wrap {
    width: calc(100% - 40px);
    padding: 0px 20px 20px 20px;
    position: relative;
}

.seul-image-wrap.float-right {
    max-width: 360px;
    float: right;
    padding-left: 30px;
}

.seul-image-wrap.float-left {
    max-width: 500px;
    float: left;
    padding-right: 30px;
}

.seul-image-wrap img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

.seul-image-wrap p {
    padding: 0;
}

.seul-image-wrap .seul-image-text {
    font-size: 13px !important;
    text-align: center;
    padding: 5px 20px 0px 20px;
}

.seul-image-banner {
    width: 100%;
    min-height: 250px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border-radius: 5px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 40px;
    overflow: hidden;
}

.seul-image-banner h2 {
    color: white;
    margin: 0;
    padding: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    position: absolute;
    z-index: 2;
}

.seul-image-banner .seul-image-banner-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0,0,0,0.3);
    z-index: 1;
}

/* Match ottelut.info */

.seul-match-date {
    border: 1px solid #DDDDDD;
    border-bottom: 0;
    border-top: 0;
    font-weight: 600;
    color: black;
    padding: 10px 18px;
    background-color: white;
}

#matches ul:first-of-type .seul-match-date {
    border-top: 1px solid #DDDDDD;
}

.seul-match-grid article {
    border: 1px solid #DDDDDD !important;
    border-bottom: 0px !important;
    background: #FFF;
    padding: 0;
    margin: 0;
}

.seul-match-grid article .post-content {
    padding: 20px;
    color: #8697A5;
    position: relative;
    height: 17px;
}

.seul-match-grid:last-child article {
    border-bottom: 1px solid #DDDDDD !important;
}

#matches ul {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.seul-match-grid .match-time {
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    left: 50%;
}

.seul-match-grid .match-team-one {
    position: absolute;
    right: calc(50% + 25px);
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    font-weight: 700;
    color: black;
    font-size: 14px;
    max-width: 119px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.seul-match-grid .match-team-two {
    position: absolute;
    left: calc(50% + 25px);
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    font-weight: 700;
    color: black;
    font-size: 14px;
    max-width: 108px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.seul-match-grid .match-league {
    right: 10px;
    position: absolute;
    height: 33px;
    top: 50%;
    transform: translateY(-50%);
}

.seul-match-grid .match-league .match-image {
    height: 30px;
    width: 33px;
    float: right;
    position: relative;
    text-align: center;
}

.seul-match-grid .match-league img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    top: 50%;
    transform: translateY(-50%);
    position: relative;
}

.seul-match-grid .match-league .match-bo {
    float: left;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
}

.seul-match-grid .match-game {
    left: 10px;
    position: absolute;
    height: 38px;
    width: 38px;
    top: 50%;
    transform: translateY(-50%);
}

.seul-match-grid .match-game img {
    height: 100%;
    width: auto;
}

@media only screen and (max-width: 500px) {
    .seul-match-grid .match-league .match-image {
        display: none;
    }

    .seul-match-grid .match-team-one, .seul-match-grid .match-team-two {
        font-size: 12px;
        max-width: 96px;
    }
}

@media only screen and (max-width: 396px) {
    .seul-match-grid .match-game {
        width: 27px;
        height: 27px;
        left: 6px;
    }

    .seul-match-grid .match-league .match-bo {
        font-size: 10px;
        margin-right: 0px;
    }

    .seul-match-grid .match-time {
        font-size: 10px;
    }

    .seul-match-grid .match-team-one {
        right: calc(50% + 18px);
        font-size: 11px;
        max-width: 85px;
    }

    .seul-match-grid .match-team-two {
        left: calc(50% + 18px);
        font-size: 11px;
        max-width: 85px;
    }
}

#quick-buttons a.nontoxic:not(.fa) {
    background: #004d79;
}

.nontoxic .fa.nontoxic {
    background-image: url(/wp-content/themes/wp-seul-v2/images/non-tox-icon.png);
    background-size: 90% auto;
    background-repeat: no-repeat;
    background-position: left center;
}

.files_swaplook {
    height: 45px;
    width: 45px;
    background-color: #8697A5;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    margin: 5px 15px;
    vertical-align: middle;
    font-size: 29px;
    color: rgba(255,255,255,0.65) !important;
}

.files_swaplook:hover {
    color: rgba(0,0,0,0.2) !important;
}

.files-table-wrap {
    overflow-x: auto;
}

.files-table {
    font-size: 18px;
    overflow-wrap: break-word;
    min-width: 830px;
}

@media only screen and (max-width: 1370px) {
    .files-table {
        font-size: 13px;
    }
}

.files-table p {
    line-height: 1.5 !important;
}

.files-table tr {
    border-bottom: 1px solid rgb(217,217,217);
}

.files-table th {
    border-right: 1px solid rgb(217,217,217);
    line-height: 1.5;
    vertical-align: top;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 0;
    color: black;
    font-weight: 700;
    text-align: left;
    width: 16%;
    min-width: 80px;
}

.files-table th:first-of-type {
    width: 45%;
    min-width: unset;
    padding: 15px 20px 15px 96.375px;
}

.files-table th:last-of-type {
    width: calc(100% - 40px);
    min-width: unset;
    border-right: 0;
    text-align: center;
}

.files-table td:first-of-type {
    min-width: unset;
}

.files-table td:last-of-type {
    text-align: center;
    min-width: unset;
}

.files-table td {
    border-right: 1px solid rgb(217,217,217);
    color: black;
    border-bottom: 0;
    background: white !important;
    vertical-align: middle;
    min-width: 80px;
}

.files-table td .files_name_content p {
    padding: 0;
}

.files-table td .files-category {
    color: #192028;
}

.files-table td .files_name_content .file_title {
    color: #192028;
    font-weight: 700;
}

.files-table td .files_name_content .files_name_attachments {
    font-size: 14px;
    font-weight: 700;
}

.files-table td .files_name_content ul li {
    position: relative;
    padding: 3px 0 3px 15px;
    font-size: 14px;
}

.files-table td .files_name_content ul li:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro", sans-serif;
    font-weight: 700;
    color: #0089d0;
    position: absolute;
    top: 4px;
    left: 0;
}

.files-table td .files_name_wrap {
    display: flex;
    align-items: center;
}

.files-table td img {
    max-width: 56.38px;
    max-height: 80px;
    height: auto;
    width: auto;
    margin-right: 20px;
    float: left;
}

.files-table .post-table-attachment-counter {
    font-size: 14px;
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    text-align: center;
    margin: 0 auto;
    background-color: #65B32E;
    border-radius: 4em;
    color: white;
    font-weight: 700;
}

.files-table .file_attachments {
    height: auto;
    max-height: 250px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.files-table .file_attachments.attachments_hidden {
    max-height: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.posts-grid.files {
    justify-content: center;
    transition: all 0.3s ease;
}

.posts-grid.files .post-thumbnail {
    min-width: 300px;
    width: 100%;
    height: 300px;
}

.posts-grid.files .post-thumbnail img {
    max-height: 300px;
    max-width: 300px;
    width: auto;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    position: relative;
}

.posts-grid.files .post-divider {
    width: 100%;
    height: 1px;
    background-color: #DDDDDD;
    position: relative;
}

.posts-grid.files .post-divider .post-attachment-counter {
    font-size: 12px;
    padding: 5px 10px;
    background-color: #65B32E;
    border-radius: 3em;
    position: absolute;
    top: -50%;
    transform: translateY(-50%);
    right: 12px;
    color: white;
    font-weight: 700;
    line-height: 1.45;
}

.posts-grid.files .file_attachments {
    height: auto;
    max-height: 250px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.posts-grid.files .file_attachments.attachments_hidden {
    max-height: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.posts-grid.files .post-content header {
    margin-bottom: 5px;
}

.posts-grid.files .post-content h3 {
    margin-bottom: 5px;
    font-size: 1.7em;
}

.posts-grid.files article {
    position: relative;
}

.posts-grid.files .files-category {
    font-size: 12px;
    padding: 5px 10px;
    background-color: #8697A5;
    border-radius: 3em;
    position: absolute;
    top: -50%;
    transform: translateY(-50%);
    z-index: 2;
    left: 12px;
    color: white;
    font-weight: 700;
    line-height: 1.45;
}

.posts-grid.files .files-category:hover {
    background-color: #0089d0;
}

.files-terms {
    margin-bottom: 20px;
    padding: 0px 8px;
    position: relative;
    white-space: nowrap;
}

.files-term-button {
    color: white !important;
    padding: 10px 20px;
    background-color: #65B32E;
    border-radius: 3em;
    font-weight: 700;
    margin: 3px;
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out !important;
}

.files-term-button.active {
    opacity: 1;
}

.files-term-button.categ-hidden {
    visibility: hidden;
}

.files-extras-cont {
    width: 185px;
    background-color: white;
    padding: 7px 10px;
    z-index: 2;
    margin-top: 7px;
    top: 28px;
    left: 423px;
    position: absolute;
    border: 1px solid #ddd;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
    opacity: 0;
    visibility: hidden;
}

.files-extras-cont.visible {
    opacity: 1;
    visibility: visible;
}

.categ-extra {
    color: white !important;
    padding: 10px 20px;
    background-color: #65B32E;
    border-radius: 3em;
    font-weight: 700;
    margin: 3px;
    opacity: 0.5;
}

.categ-extra:hover {
    color: white;
    background-color: #508F24;
}

.files-term-button:hover {
    color: white;
    background-color: #508F24;
}

.files-search {
    height: 39px;
    max-width: 280px;
    position: absolute;
    border-radius: 3em;
    margin-right: 3px;
    right: 10px;
    top: -10px;
}

.files-search .files-search-field {
    height: 39px;
    width: 400px !important;
    margin: 0 !important;
    padding: 10px 30px 10px 20px !important;
    border-radius: 3em !important;
    font-size: 13px !important;
}

.files-search .files-search-fade {
    position: absolute;
    background: transparent;
    background: linear-gradient(270deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    width: 50px;
    pointer-events: none;
    height: 37px;
    right: 30px;
    top: 1px;
}

.files-search .files-search-field:focus, .files-search .files-search-field:hover {
    border-color: #0080C9;
    border-radius: 3em !important;
    outline: none;
}

.files-search a {
    position: absolute;
    top: 0;
    right: 0;
    width: 39px;
    height: 39px;
    text-align: center;
    line-height: 38px;
    vertical-align: middle;
}

/** Page **/

.single-page .grid > .page {
    order: 1;
    overflow: hidden;
}

body.error404 .wrapper.single header {
    margin-top: 40px;
}

.single-page .grid > .page-sidebar {
    border-top: 2px solid #eee;
    order: 2;
    margin-top: 24px;
    padding-top: 24px;
}


.subnav nav ul ul {
    padding-left: 15px;
    box-shadow: 0 0 0;
}

.subnav nav ul li {
    margin: 0;
    padding: 0;
}

.subnav nav a {
    color: #192028;
    font-weight: bold;
    position: relative;
    display: block;
    border: 1px solid #ddd;
    background: #FFF;
    margin-bottom: -1px;
    padding: 15px 20px;
}

.subnav nav ul li a.active,
.subnav nav ul li.active a,
.subnav nav a:hover {
    background: #F4F9FD;
    color: #8697A5;
}

.subnav nav a:hover:before {
    color: #8697A5;
}

.subnav nav a:before {
    content: "\f0da";
    font-family: "Font Awesome 5 Pro", sans-serif;
    color: #0089d0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}

.single-page .post-content,
.single-page .post-content p {
    line-height: 2.0em;
}

body.page-template-archive-post .posts-archive .recent-articles > *:first-child {
    flex: 0 0 100%;
}

.pagination:not(:empty) {
    margin: 0 0 24px;
}

.pagination > * {
    display: inline-block;
    height: 42px;
    min-width: 42px;
    text-align: center;
    margin: 3px;
    padding: 0 12px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 3px;
    font: 400 1.0em "Mukta", sans-serif, "Noto Sans", arial, verdana;
    color: #8697A5;
    line-height: 42px;
}

.pagination > a {
    background: #FFF;
    border: 1px solid #ddd;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
}

.pagination > a:hover {
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    background: #F4F9FD;
    color: #192028;
}

.tags {
    display: block;
    list-style: none;
    margin: 20px 0 10px;
}

.tags li {
    padding: 0;
    margin: 0 5px 5px 0;
    display: inline-block;
    line-height: 22px;
}

.tags li a {
    padding: 3px 10px;
    font-size: 0.9em;
    background: #8697A5;
    color: #FFF;
    border-radius: 10px;
}

.tags li a:hover {
    background: #0089d0;
}

body.page-template-archive-post #page-wrap > .wrapper {
    padding: 0 20px;
}

.events article .post-content header,
.events article .post-content header h3 {
    margin-bottom: 0;
}

.events article .post-content .dates {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 24px;
}

p.post-type {
    margin-bottom: 0;
    padding-bottom: 0;
    font-size: 0.9em;
}

.search-results p.post-type .fa {
    color: #0089d0;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.members {
    margin-top: 24px;
}

.members .member-group {
    margin: 0;
    border-top: 1px dashed #eee;
    border-left: 1px dashed #eee;
    margin-bottom: 24px;
}

.member-toggle-box .contact-information {
    margin-bottom: 24px;
}

.member-toggle-box .contact-information h2 {
    margin-bottom: 16px;
}

.member-toggle-box .contact-information h4 {
    margin-bottom: 5px;
    color: #0089d0;
}

.member-toggle-box .contact-information p {
    padding-bottom: 16px;
}

.members .member {
    border-right: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
    height: 225px;
    position: relative;
    text-align: center;
    transition: background-color .2s ease-in-out;
}

.members .member:hover {
    background: #F4F9FD;
    cursor: pointer;
}

.members .member img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

.members .member p {
    position: absolute;
    bottom: 12px;
    font-size: 0.9em;
    left: 0;
    right: 0;
}

.members-hidden {
    display: none;
}

.member-toggle-box {
    text-align: center;
}

.member-toggle-box .image {
    margin-bottom: 24px;
}

.modal-window {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.55);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.modal-window:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-window > div {
    width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    background: #ffffff;
    color: #333333;
}

.modal-window header {
    font-weight: bold;
}

.modal-window h1 {
    font-size: 150%;
    margin: 0 0 15px;
    color: #333333;
}

.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 80%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}

.modal-close:hover {
    color: #000;
}

.tingle-enabled #top,
.tingle-enabled #page-wrap {
    -webkit-filter: blur(8px);
    filter: blur(8px);
}

#organization {
    margin-top: 40px;
}

#organization .member .image {
    height: 124px;
    width: 124px;
    border-radius: 100%;
    overflow: hidden;
    background: #FFF;
    position: relative;
    margin: 0 auto 12px;
}

#organization .member .post-content strong {
    color: #192028;
}

#organization .member-group,
#organization .member-group .member {
    border: 0;
}

.organization.member-toggle-box .image {
    border-radius: 100%;
    height: 250px;
    width: 250px;
    background: #FFF;
    margin: 0 auto 24px;
    overflow: hidden;
}

.frm_ajax_loading {
    display: none;
}

.frm_forms input[type="submit"] {
    background: #65b32e;
    color: #FFF;
    border: 0;
    width: auto;
    display: inline-block;
}

.frm_forms label {
    font-size: 0.9em;
    margin: 10px 0;
}

.frm_forms input[type="submit"]:hover {
    background: #8697A5;
}

/** Sidebar matches */

article.match > * {
    font-size: 0.9em;
    text-align: center;
    background: url(images/background-arrow.svg) -450px 50% no-repeat #FFF;
    background-size: 120% auto;
}

article.match .contestants > * {
    text-align: left;
    padding: 0 20px;
    font-size: 1.3em;
    flex: 0 0 50%;
}

article.match .contestants > *:first-child {
    text-align: right;
    position: relative;
}

article.match .contestants > *:first-child:after {
    content: "\f71d";
    font-family: "Font Awesome 5 Pro", sans-serif;
    font-weight: bold;
    position: absolute;
    right: -7px;
    top: 3px;
    color: #8697A5;
}

article.match .contestant {
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #192028;
}

/** Partners slider **/

.partners-slider {
    padding: 50px 0;
}

body.home #page-wrap .partners-slider {
    border-top: 1px solid #ddd;
}

body:not(.home) .partners-slider {
    border-top: 1px solid #ddd;
}

.partners-slider .slick-dots {
    display: none;
}

.partners-slider li {
    text-align: center;
}

.partners-slider li a {
    display: block;
}

.partners-slider li img {
    margin: 0 auto;
}

#maintenance {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
    font-size: 18px;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    color: #8697A5;
}

h2 #maintenance p {
    font: 400 0.85em 'Noto sans', sans-serif, arial, verdana;
}

#maintenance img {
    margin-bottom: 60px;
}

.post-content #event-form #event-name {
    padding: 15px 12px;
}

#event-form p {
    padding-bottom: 0;
}

#event-form .time-range .field,
#event-form .date-range .field {
    display: inline-block;
    margin-right: 12px;
    vertical-align: top;
}

#ui-datepicker-div {
    background: #FFF;
    font-family: "Lato", sans-serif;
}

#ui-datepicker-div .ui-widget-header {
    background: #999;
    border: 0;
    color: #000;
}

#ui-datepicker-div .ui-widget-header a.ui-state-hover {
    background: none;
    border: 0;
    color: #65B32E;
}

#ui-datepicker-div .ui-widget-header select {
    padding: 8px 5px;
    font-size: 0.8em;
    display: inline-block;
    margin-right: 5px;
}

#ui-datepicker-div table.ui-datepicker-calendar thead th {
    color: #999;
}

#ui-datepicker-div table.ui-datepicker-calendar tbody td a {
    color: #000;
    background: none;
    border: 1px solid #eee;
    height: 24px;
    text-align: center;
    line-height: 24px;
}

#ui-datepicker-div table.ui-datepicker-calendar tbody td a:hover {
    background: #eee;
    color: #65B32E;
    border-color: #ccc;
}