/*
Theme Name: ТУФ
Text Domain: tuf
Theme URI: xxx
Author: TUF team
Author URI: http://ukrainians.fi/
Version: 0.0
Requires at least: 5.5
Tested up to: 5.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Description: TODO: rewrite it! Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/**
* https://en.bestfonts.pro/font/helvetica-neue
*/
@font-face {
    font-family: 'Helvetica Neue';
    src: url("assets/fonts/helvetica-neue.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/HelveticaNeueCyr-Light.woff") format("woff"),
    url("assets/fonts/HelveticaNeueCyr-Light.ttf") format("truetype"),
    url("assets/fonts/helvetica-neue.svg#da09f1f1-062a-45af-86e1-2bbdb3dd94f9") format("svg");
}

@font-face {
    font-family: "Helvetica Neue Thin";
    font-weight: 200;
    src: url("Fonts/56be84de-9d60-4089-8df0-0ea6ec786b84.eot?#iefix") format("embedded-opentype"),
    url("assets/fonts/HelveticaNeueCyr-Thin.woff") format("woff"),
    url("assets/fonts/HelveticaNeueCyr-Thin.ttf") format("truetype"),
    url("Fonts/2e309b1b-08b8-477f-bc9e-7067cf0af0b3.svg#2e309b1b-08b8-477f-bc9e-7067cf0af0b3") format("svg");
}

@font-face {
    font-family: "Helvetica Neue Medium";
    font-weight: bold;
    src: url("Fonts/07fe0fec-b63f-4963-8ee1-535528b67fdb.eot??#iefix") format("embedded-opentype"),
    url("assets/fonts/HelveticaNeueCyr-Medium.woff") format("woff"),
    url("assets/fonts/HelveticaNeueCyr-Medium.ttf") format("truetype"),
    url("Fonts/36c182c6-ef98-4021-9b0d-d63122c2bbf5.svg#36c182c6-ef98-4021-9b0d-d63122c2bbf5") format("svg");
}

body {
  font-family: 'Helvetica Neue';
  min-width: 940px;
  width: 100%;
  margin: 0;
}

h1, h2, h3 {
  font-family: 'Roboto';
  margin: 0;
}
h1 {
  font-size: 72px;
  line-height: 90px;
}
h2 {
  font-size: 40px;
  line-height: 60px;
  font-weight: 400;
  text-align: center;
}
h3 {
  font-size: 22px;
}

header#site-header {
  padding: 0 80px;
}

header#site-header .sidebar {
  display: flex;
  float: right;
  height: 109px;
  flex-direction: column;
}
header#site-header .sidebar .widget.widget_polylang {
  margin: auto 0 29px 0;
}
header#site-header .sidebar .widget.widget_polylang ul {
  list-style: none;
  margin: 0;
}
header#site-header .sidebar .widget.widget_polylang ul li {
  display: inline-block;
  margin-left: 7px;
  /* opacity: .5; */
  filter: grayscale(100%) brightness(1.2);
  transition: filter .4s ease;
}
header#site-header .sidebar .widget.widget_polylang ul li:hover {
  /* opacity: 1; */
  filter: grayscale(0%) brightness(1);
}
header#site-header .sidebar .widget.widget_polylang ul li a {
  text-decoration: none;
  /* color: #666666; */
  color: #000000;
  font-size: 11px;
  font-family: Roboto;
  transition: color .4s ease;
}
header#site-header .sidebar .widget.widget_polylang ul li a:hover {
  /* color: #000000; */
  color: rgba(7, 173, 236, 1);
}

header#site-header .header-titles {
  border-bottom: 1px solid rgba(0, 0, 0, .6);
  padding: 50px 0 18px 0;
}

header#site-header .header-titles a.site-title {
  text-decoration: none;
  height: 40px;
  color: #444444;
}
header#site-header .header-titles a.site-title:hover {
  color: #000000;
  transition: color .13s;
}
header#site-header .header-titles img.site-logo {
  max-height: 40px;
  display: inline-block;
  vertical-align: top;
}
header#site-header .header-titles span.site-name {
  font-family: Roboto;
  font-weight: bold;
  font-size: 22px;
  padding-left: 18px;
  line-height: 40px;
  vertical-align: top;
}

.header-inner.section-inner {
}

header#site-header .header-navigation-wrapper ul.primary-menu {
  list-style-type: none;
  padding: 0;
}

header#site-header .header-navigation-wrapper ul.primary-menu > li {
  display: inline-block;
  margin-right: 17px;
}

header#site-header .header-navigation-wrapper ul.primary-menu > li > a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  background-color: none;
}

header#site-header .header-navigation-wrapper ul.primary-menu > li > a:hover {
  color: #000000;
  background-color: #f8f8f8;
}

main#site-content spacer.page-title-replacement {
  display: block;
  height: 100px;
}

.main-page-info-block {
  box-sizing: border-box;
  /* filter: brightness(1.1); */
}
/* .main-page-info-block > * {
  filter: brightness(0.91);
} */
.main-page-info-block > .wp-block-cover__inner-container {
  width: 800px;
}

.wp-block-cover {
  box-sizing: border-box;
}

/*******************************************************************************
 * Buttons
 *******************************************************************************/
.wp-block-button {
  margin: 0;
}
.wp-block-button:before {
  -webkit-transition: opacity .4s ease-out;
  -moz-transition: opacity .4s ease-out;
  -o-transition: opacity .4s ease-out;
  transition: opacity .4s ease-out;
}
.wp-block-button__link {
  /* border-radius: 0; */

  -webkit-transition: color .4s ease-out;
  -moz-transition: color .4s ease-out;
  -o-transition: color .4s ease-out;
  transition: color .4s ease-out;
  /* -webkit-transition: background-color .4s ease-out,
                      border-color .4s ease-out,
                      color .4s ease-out;
  -moz-transition: background-color .4s ease-out,
                   border-color .4s ease-out,
                   color .4s ease-out;
  -o-transition: background-color .4s ease-out,
                 border-color .4s ease-out,
                 color .4s ease-out;
  transition: background-color .4s ease-out,
              border-color .4s ease-out,
              color .4s ease-out; */
}
.wp-block-button__link:focus {
  outline: none;
}

/*******************************************************************************
 * Latest posts shortcode common styles
 *******************************************************************************/
ul.wp-block-latest-posts.is-grid {
  /* padding: 0 80px; */

  display: block;
  box-sizing: border-box;
  padding: 0;
  /* border-top: 1px solid #e0e0e0; */
  margin-top: 90px;
  /* padding-top: 90px; */
  margin-bottom: 90px;
}
ul.wp-block-latest-posts.is-grid > li {
  /* margin-bottom: 0;
  height: 606px;
  overflow: hidden;
  position: relative; */

  box-sizing: border-box;
  display: inline-block;
  width: 33.333%;
  height: 200px;
  overflow: hidden;
  position: relative;
  margin-right: 0;
}
ul.wp-block-latest-posts.is-grid > li > a.overlay {
  z-index: 100;

  background-color: rgba(0, 0, 0, 0);
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
}
ul.wp-block-latest-posts.is-grid > li > div.wp-block-latest-posts__featured-image {
  /* height: 350px;
  overflow: hidden;
  display: flex;
  align-content: center;
  padding: 0; */

  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: grayscale(.3);
  transition: all 0.4s ease-in-out;
}
/* ul.wp-block-latest-posts.is-grid > li > div.wp-block-latest-posts__featured-image > img {
  width: 100%;
  height: auto;
} */
ul.wp-block-latest-posts.is-grid > li > div.wp-block-latest-posts__featured-image > .thumbnail {
  display: block;
  background-size: cover;
  width: 100%;
  height: 100%;
}
ul.wp-block-latest-posts.is-grid > li > a.wp-block-button__link {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 100;
}

/*******************************************************************************
 * Recent events
 *******************************************************************************/
ul.wp-block-latest-posts.is-grid.recent-events > li {
  min-height: 256px;
  height: 20vw;
}
/* ul.wp-block-latest-posts.is-grid.recent-events > li > * {
  position: relative;
  display: block;
} */

ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__featured-image {
  /* transition: all 0.4s ease-in-out; */

  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  /* filter: grayscale(.42); */
  transition-property: filter, left, top, width, height;
  transition: 0.3s ease-in-out;
}

ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__featured-image {
  /* margin-top: -210px; */
  /* margin-bottom: 15px;
  height: 250px; */
  /* padding-top: 20px; */
  /* padding-left: -20px; */

  /* filter: grayscale(.0); */
  width: 106%;
  height: 106%;
  top: -3%;
  left: -3%;
}

ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__featured-image > .thumbnail {
  /* height: 350px;
  width: 350px;
  margin: 0;
  transition: all 0.4s ease-in-out; */

  width: 100%;
  height: 100%;
  background-size: cover;

  filter: grayscale(.96) sepia(0) hue-rotate(0deg) contrast(1.2) brightness(1) blur(.4px);
  transition: filter 0.4s ease-in-out;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__featured-image > .thumbnail {
  filter: grayscale(0) sepia(0) hue-rotate(0deg) contrast(1) brightness(1) blur(0px);
}
ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__featured-image:after {
  content: "";
  display: block;
  position: absolute;
  background-color: rgba(255, 255, 255, .2);
  background-color: rgba(7, 173, 236, .12);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all 0.4s ease-in-out;
  opacity: .4;

  background: url(assets/images/gradient.blue-to-yellow.png);
  background-size: 100vw 100%;
  mix-blend-mode: multiply;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:nth-child(2) > div.wp-block-latest-posts__featured-image:after {
  background-position-x: 50%;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:nth-child(3) > div.wp-block-latest-posts__featured-image:after {
  background-position-x: 100%;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__featured-image:after {
  background-color: rgba(255, 255, 255, .0);
  background-color: rgba(7, 173, 236, .0);
  opacity: 0;
}
/* ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__featured-image > .thumbnail {
  height: 380px;
  width: 380px;
  margin: 0px 0 0 -15px;
  filter: brightness(1.15);
} */

ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content {
  /* overflow: hidden;
  height: 180px;
  transition: height 0.4s ease-in-out; */
}
/* ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 100%);
  transition: height 0.4s ease-in-out;
} */
ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__post-full-content {
  height: 270px;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__post-full-content:after {
  height: 100px;
}

ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > h3 {
  /* font-size: 28px;
  text-align: center; */

  margin: 2px 2px -2px 2px;
  padding: 0;
  padding-left: 5px;
  font-size: 30px;
  font-weight: 400;
  display: block;
  position: relative;
  /* font-size: 20px; */
}
ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > h3:before {
  content: '';
  position: absolute;
  left: 0;
  height: 100%;
  width: 5px;
  transition: all 0.4s ease-in-out;
  /* background-color: rgb(216, 211, 197, .83); */
  background-color: rgb(255, 255, 255, .88);
  display: inline;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__post-full-content > h3:before {
  background-color: rgb(255 212 0);
  background-color: rgba(255, 255, 255, 1);
}
ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > h3 > span {
  cursor: pointer;
  line-height: 1.2;
/*   padding: 0px 5px 1px 5px; */
  padding-right: 5px;
/*   margin: 0; */
/*   box-sizing: border-box; */
/*   padding: 5px 2px; */
  white-space: pre-wrap;
  color: #00053a;
  color: rgba(0, 0, 0, .8);
  /* background-color: rgb(216, 211, 197, .83); */
  background-color: rgb(255, 255, 255, .88);
  transition: all 0.4s ease-in-out;
}
ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > h4 > span:after {
  content: "";
  position: absolute;
  top: -0.25em;
  right: 100%;
  bottom: -0.25em;
  width: 0.25em;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__post-full-content > h3 > span {
  color: #713400;
  color: #000000;
  color: rgb(7, 173, 236);
  background-color: rgb(255 212 0);
  background-color: rgba(252, 212, 77, 1);
  background-color: rgba(255, 255, 255, 1);
}

ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > p,
ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > summary {
  /* display: block; */
  display: none;
}
/* ul.wp-block-latest-posts.is-grid > li > div.wp-block-latest-posts__post-full-content > *:not(summary) {
  display: none;
}
ul.wp-block-latest-posts.is-grid > li:hover > div.wp-block-latest-posts__post-full-content > summary {
  display: none;
}
ul.wp-block-latest-posts.is-grid > li:hover > div.wp-block-latest-posts__post-full-content > *:not(summary) {
  display: block;
} */

ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > .time-and-location {
  cursor: pointer;
  display: inline-block;
  position: absolute;
  padding: 3px 10px;
  color: #ffffffa8;
/*   margin: 134px 0 10px 10px; */
  background-color: #0072ff88;
  background-color: rgba(7, 173, 236, .86);
  border-radius: 2px;
  bottom: 2px;
  left: 2px;
  font-size: 20px;
  transition: all 0.4s ease-in-out;
}
ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > .time-and-location > date:after {
  content: '\A';
  white-space:pre;
}
ul.wp-block-latest-posts.is-grid.recent-events > li:hover > div.wp-block-latest-posts__post-full-content > .time-and-location {
  color: #ffffff;
  background-color: #0072ff;
  background-color: rgba(7, 173, 236, 1);
}
ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > .time-and-location > time > .day {
  margin-right: 5px;
}

ul.wp-block-latest-posts.is-grid.recent-events > li > div.wp-block-latest-posts__post-full-content > p.address {
  text-align: center;
  font-size: 18px;
  line-height: 27px;
}

/*******************************************************************************
 * Latest news
 *******************************************************************************/
ul.wp-block-latest-posts.is-grid.latest-news {
  color: #ffffff;
}
ul.wp-block-latest-posts.is-grid.latest-news > li > div.wp-block-latest-posts__featured-image {
  height: 260px;
  /* display: grid; */
  align-content: center;
}
ul.wp-block-latest-posts.is-grid.latest-news > li > div.wp-block-latest-posts__featured-image > img {
  height: 260px;
  width: auto;
}
ul.wp-block-latest-posts.is-grid.latest-news > li > div.wp-block-latest-posts__post-full-content {
  height: 280px;
  overflow: hidden;
  position: relative;
}
ul.wp-block-latest-posts.is-grid.latest-news > li > div.wp-block-latest-posts__post-full-content:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(7, 173, 236, 0), rgba(7, 173, 236, 1) 100%);
  transition: height 0.5s ease-in-out;
  /* background-color: #333333; */
}

/*******************************************************************************
 * Form elements
 *******************************************************************************/
input[type=text], input[type=email], textarea {
  /* background-color: rgba(255, 64, 64, 0.1);
  border-color: rgb(255, 64, 64); */
  background-color: rgba(0, 0, 0, 0);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 0px;
  color: rgb(0, 0, 0);
  font-family: "Helvetica Neue";
  font-size: 15px;
  font-weight: 600;
  line-height: 28px;
  display: block;
  width: 100%;
  height: 52px;
  padding: 3px 3px 3px 12px;
  box-sizing: border-box;
}
input::placeholder, textarea::placeholder {
  color: rgb(0, 0, 0);
}
input:focus, textarea:focus, button:focus {
  outline: none;
}
textarea {
  resize: none;
  height: 140px;
}
button {
  background-color: rgba(0, 0,0, 1);
  border-radius: 0;
  height: 55px;
  color: #ffffff;
  padding: 2px 35px;
  box-sizing: border-box;
  font-family: "Helvetica Neue";
  font-size: 15px;
  font-weight: 600;
  line-height: 28px;

  /* -webkit-transition: background-color .4s ease-out;
  -moz-transition: background-color .4s ease-out;
  -o-transition: background-color .4s ease-out;
  transition: background-color .4s ease-out; */
}

form.join.main-page {
  width: 800px;
  margin: 0 50%;
  transform: translate(-50%, 0);
}

form.join.main-page > input {
  margin-bottom: 10px;
}
form.join.main-page > button {
  position: absolute;
  margin-top: -27px;
  left: 50%;
  transform: translate(-50%, 0);
}

div.news.main-page .wp-block-button {
  display: block;
  position: relative;
  width: 100%;
}
div.news.main-page .wp-block-button__link {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translate(-50%, 0);
}

/*******************************************************************************
 * Footer
 *******************************************************************************/
footer#site-footer {
  padding-top: 20px;
}
footer#site-footer div.footer-social-medias {
  text-align: center;
}
footer#site-footer div.footer-social-medias > img {
  height: 20px;
  width: auto;
}
footer#site-footer div.footer-credits p.footer-copyright {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}
