/* version 1.0 */

@font-face {
    font-family: "DinNextW1G";
    src: url('/wp-content/themes/funsci/fonts/dinnextw1g_light.otf');
    font-weight: 400;
}

@font-face {
    font-family: "DinNextW1G";
    src: url('/wp-content/themes/funsci/fonts/dinnextw1g_ultralight.otf');
    font-weight: 200;
}

@font-face {
    font-family: "DinNextW1G";
    src: url('/wp-content/themes/funsci/fonts/dinnextw1g_bold.otf');
    font-weight: 700;
}

@font-face {
    font-family: "Minecraftia";
    src: url('/wp-content/themes/funsci/fonts/Minecraftia-Regular.ttf');
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    font-family: 'DinNextW1G';
    word-break: break-word;
}

input {
    font-family: 'DinNextW1G';
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

header {
    max-width: 980px;
    margin: 0 auto;
}

.home header {
    margin-bottom: 50px;
}

.header {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 30px 0 20px;
}

.header > div {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.language-switcher {
    border: 1px solid #000;
    padding: 15px;
    position: relative;
    width: 80px;
}

.current-language {
    display: flex;
    gap: 7px;
    align-items: center;
    text-transform: uppercase;
}

.language-switcher-item {
    display: none;
    gap: 7px;
    align-items: center;
    text-transform: uppercase;
    margin-top: 10px;
    position: absolute;
    left: -1px;
    top: 39px;
    border: 1px solid #000;
    padding: 7px;
    width: 80px;
    color: #000;
    text-decoration: none;
}

.language-switcher:hover .language-switcher-item {
    display: flex;
}

.logo {
    font-size: 50px;
    text-align: center;
}

.login-link a {
    text-decoration: none;
}

#searchform {
    display: flex;
    align-items: center;
    border: 1px solid #000;
    background: #ffffff;
    padding-left: 15px;
    width: 80%;
}

#searchform svg {
    width: 20px;
    height: 20px;
}

#searchform input {
    padding: 10px 15px;
    border: 0;
}

.header-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    width: 80%;
}

header nav {
    background: #e8e6e6;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

header nav ul li {
    flex: 1;
    text-align: center;
    padding: 5px 0;
}

header nav ul li:not(:last-child) {
    border-right: 1px solid #c7c7c7;
}

header nav ul li a {
    text-decoration: none;
    color: #000;
}

header nav ul li.current-menu-item {
    background: #c7c7c7;
}

header nav ul li:hover {
    background: #999;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
}

main {
    width: 980px;
    min-width: 980px;
    background: #fff;
    margin-top: 1px;
    padding: 20px;
}

.home main {
    background: transparent;
    padding: 0;
    margin-top: 0;
}

.page-template-template-chat main {
    background: transparent;
}

aside {
    width: 210px;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.home aside {
    margin-top: 0;
}

main p {
    margin-bottom: 15px;
}

main p a {
    text-decoration: none;
}

main ul,
main ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

main ul li,
main ol li {
    padding-left: 10px;
}

.widget-title,
.block-title {
    font-size: 23px;
    border: 1px solid #000;
    width: fit-content;
    padding: 5px 10px;
    text-align: center;
    margin: 0 auto 20px;
}

.home-top-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 50px;
}

.home-top-widgets > div {
    flex: 1;
}

.sidebar-widget:not(:last-child) {
    margin-bottom: 80px;
}

.custom_html-9 .textwidget,
.custom_html-13 .textwidget {
    background-image: url('/wp-content/themes/funsci/images/anime-radio.png');
    background-size: cover;
    border: 1px solid #000;
    padding: 5px;
}

#anison .anison_player_container .player_btn.start,
#anison .anison_player_container .jp-audio {
    height: 26px!important;
}

.home-recent-articles {
    margin-bottom: 150px;
}

.vk-widget {
    margin-bottom: 150px;
}

.fun-sci-club-presents {
    margin-bottom: 50px;
}

.fun-sci-club-presents img {
    margin: 0 auto;
}

.post-wrapper {
    border: 1px solid #edecec;
    padding: 50px 100px;
    font-size: 18px;
    line-height: 27px;
    font-weight: 200;
}

.video {
    position: relative;
    padding-bottom: 56.25%;/*пропорции видео 16:9 */
    padding-top: 25px;
    height: 0;
    margin-bottom: 15px;
}

.video iframe {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
}

footer {
    width: 980px;
    margin: 0 auto;
    background: #c7c7c7;
    text-align: center;
    padding: 15px;
}

.post-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    margin-bottom: 30px;
    font-weight: 200;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-author .avatar {
    border-radius: 50%;
}

.post-user-role {
    margin-left: -7px;
}

.post-date::before {
    content: "•";
    margin-right: 5px;
}

.post-date::after {
    content: "•";
    margin-left: 5px;
}

.post-date:lang(ru-RU) {
    text-transform: lowercase;
}

.post-wrapper h1 {
    font-weight: 400;
    font-size: 40px;
    margin-bottom: 20px;
    line-height: normal;
}

.post-wrapper h4 {
    font-size: 20px;
    font-weight: 400;
    margin: 30px 0;
}

.post-wrapper h3 {
    font-weight: 400;
    font-size: 22px;
}

.link-to-youtube {
    margin: 50px auto;
}

.aligncenter {
    margin: 0 auto;
}

.alignright {
    float: right;
    margin-left: 40px;
}

.post-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags a {
    font-size: 14px;
    border: 1px solid #c7c7c7;
    padding: 5px 10px;
    color: #000;
    text-decoration: none;
}

.post-tags a:hover {
    border: 1px solid #000;
}

.soc-sharing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
    font-size: 14px;
    margin-top: 30px;
    padding: 15px 0;
}

.soc-sharing a {
    text-decoration: none;
    color: #000;
}

.after-post-info {
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.after-post-info-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.single-post-preview img {
    width: 100%;
    height: 340px;

}

.single-post-preview {
    position: relative;
    display: block;
    height: 340px;
    background: #000;
}

.single-post-preview-inner {
    position: absolute;
    top: 0;
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.single-post-preview-inner .post-user-role {
    width: 18px;
    height: auto;
}

.single-post-preview-inner .post-date::before {
    content: "";
    margin: 0;
}

.single-post-preview-inner .post-date {
    margin-right: 10px;
}

.single-post-preview-top {
    font-size: 12px;
}

.single-post-preview-top .date-time {
    display: flex;
}

.single-post-preview-inner h2 {
    font-size: 26px;
    line-height: normal;
    font-weight: 400;
    margin-bottom: 15px;
}

.single-post-preview-inner .views-comments {
    border-top: 1px solid #fff;
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}

.single-post-preview-inner .post-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post-preview-inner .post-views::before {
    content: "";
    background: url('/wp-content/themes/funsci/icons/icon-post-views.svg') no-repeat;
    display: block;
    width: 19px;
    height: 19px;
}

.single-post-preview-inner .post-comments {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post-preview-inner .post-comments::before {
    content: "";
    background: url('/wp-content/themes/funsci/icons/icon-post-comments.svg') no-repeat;
    display: block;
    width: 19px;
    height: 19px;
}

.categories-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.categories-list a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 200;
}

.soc-share-icons {
    display: flex;
    gap:  30px;
}

.soc-share-icons img {
    width: 15px;
    height: 15px;
}

.pagination {
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
}

.page-numbers a {
    text-decoration: none;
    color: #000;
}

.page-numbers a:hover {
    text-decoration: underline;
}

.page-numbers .current {
    font-weight: 700;
}

blockquote {
    border-left: 2px solid #3b4fcd;
    padding-left: 20px;
    font-style: italic;
    font-size: 24px;
    line-height: 36px;
}

.home-recent-posts,
.single-recent-posts {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
}

.home-recent-posts > *,
.single-recent-posts > * {
    flex: 1;
}

.home-recent-posts .single-post-preview img {
    height: 220px;
}

.single-recent-posts .single-post-preview img {
    height: 180px;
}

.home-recent-posts .single-post-preview-inner,
.single-recent-posts .single-post-preview-inner {
    position: relative;
    background: none;
    color: #000;
    height: auto;
}

.home-recent-posts .single-post-preview,
.single-recent-posts .single-post-preview {
    background: #fff;
    border: 1px solid #e8e6e6;
    height: 400px;
    text-decoration: none;
}

.single-recent-posts .single-post-preview {
    height: 380px;
}

.home-recent-posts .single-post-preview-inner h2,
.single-recent-posts .single-post-preview-inner h2 {
    font-size: 18px;
    line-height: 25px;
}

.home-recent-posts .single-post-preview-inner .post-views::before,
.single-recent-posts .single-post-preview-inner .post-views::before {
    content: "";
    background: url('/wp-content/themes/funsci/icons/icon-views-black.svg') no-repeat;
    display: block;
    width: 19px;
    height: 19px;
}

.home-recent-posts  .single-post-preview-inner .post-comments::before,
.single-recent-posts  .single-post-preview-inner .post-comments::before {
    content: "";
    background: url('/wp-content/themes/funsci/icons/icon-comments-black.svg') no-repeat;
    display: block;
    width: 19px;
    height: 19px;
}

.home-recent-posts .single-post-preview-inner .views-comments,
.single-recent-posts .single-post-preview-inner .views-comments {
    border-top: 1px solid #e8e6e6;
}

.single-recent-articles .block-title {
    border: 0;
    font-size: 18px;
    text-align: left;
    margin-top: 50px;
}

.contacts-title {
    font-size: 25px;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #767676;
    padding-bottom: 20px;
}

.mobile-menu-button-main {
    display: none;
}

.category-archive-title {
    margin-bottom: 40px;
}

.contacts-content {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contacts-content .contacts-left-column {
    flex: 40%;
    text-align: center;
}

.contacts-content .contacts-right-column {
    max-width: 60%;
}

.contact-form-wrapper {
    display: flex;
    gap: 20px;
}

.contact-form-wrapper label:not(:last-child) {
    margin-bottom: 20px;
    display: block;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    padding: 10px;
    font-size: 16px;
    width: 100%;
}

.page-id-1353 main,
.page-id-1357 main {
    background: transparent;
    font-family: 'Minecraftia';
}

.page-id-1353 main img,
.page-id-1357 main img {
    margin: 0 auto;
}

.slider-header {
    font-size: 18px;
}

@media (max-width: 1520px) {
    .main-wrapper {
        display: grid;
        grid-template-areas: "a a"
                             "b c";
    }
    .main-wrapper main {
        grid-area: a;
        margin: 1px auto 0;
    }
    #left-sidebar {
        grid-area: b;
    }
    #right-sidebar {
        grid-area: c;
    }
    aside {
        margin: 50px auto;
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        display: flex;
        flex-wrap: wrap;
    }
    .main-wrapper main {
        order: 1;
    }
    #left-sidebar {
        order: 2;
    }
    #right-sidebar {
        order: 3;
    }
    .menu-opened {
        overflow: hidden;
    }
    header {
        width: 100%;
    }
    .header-right {
        margin-right: 20px;
    }
    header nav {
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        width: 320px;
        position: absolute;
        right: -320px;
        top: 0;
        padding: 248px 39px;
        height: 100%;
        z-index: 100;
    }

    header nav {
        background: #fff;
        font-size: 20px;
    }

    header nav.show {
        display: flex;
    }

    header nav ul {
        flex-direction: column;
        gap: 20px;
    }

    header nav ul li:not(:last-child) {
        border: 0;
    }

    .slide-in {
        animation: slide-in 0.7s forwards;
        -webkit-animation: slide-in 0.7s forwards;
    }

    .slide-out {
        animation: slide-out 0.5s forwards;
        -webkit-animation: slide-out 0.5s forwards;
    }

    @keyframes slide-in {
        100% { right: 0; }
    }

    @-webkit-keyframes slide-in {
        100% { right: 0; }
    }

    @keyframes slide-out {
        0% {right: 0; display: flex;}
        100% { right: -320px; display: none;}
    }

    @-webkit-keyframes slide-out {
        0% {right: 0; display: flex;}
        100% { right: -320px; display: none;}
    }

    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(41, 41, 41, 0.6);
        display: none;
    }

    #overlay.active {
        display: block;
        z-index: 10;
    }

    .bar1, .bar2, .bar3 {
        width: 30px;
        height: 2px;
    }

    .mobile-menu-button-main > div {
        background-color: #000;
    }

    .bar1, .bar2 {
        margin-bottom: 8px;
    }

    .mobile-menu-button-main {
        display: block;
        position: relative;
        z-index: 999;
        transition: transform 0.7s ease-in-out;
    }

    .mobile-menu-button-main.active {
        transform: rotate(90deg);
    }
    main {
        width: 100%;
        min-width: unset;
    }
    footer {
        width: 100%;
    }
    .single-recent-posts a:last-child{
        display: none;
    }
    .post-grid {
        grid-template-columns: 1fr;
    }
    .single-post-preview {
        width: 452px;
        margin: 0 auto;
    }
    .home-top-widgets {
        gap: 100px;
    }
}

@media (max-width: 780px) {
    .header {
        flex-direction: column;
    }
    .single-recent-posts a:last-child{
        display: block;
    }
    .single-recent-posts {
        flex-direction: column;
    }
    .post-wrapper {
        padding: 50px 20px;
    }
    .mobile-menu-button-main {
        position: absolute;
        right: 20px;
        top: 50px;
    }
    .single-post-preview,
    .single-post-preview img {
        width: 100%;
        height: auto;
    }
    .home-recent-posts,
    .single-recent-posts {
        flex-wrap: wrap;
    }
    .home-recent-posts .single-post-preview,
    .single-recent-posts .single-post-preview {
        width: 307px;
        flex: 0 0 auto;
    }
    .contact-form-wrapper {
        flex-direction: column;
    }
    .contacts-content {
        flex-direction: column;
    }
    .contacts-content .contacts-left-column {
        flex: 100%;
    }
    .contacts-content .contacts-right-column {
        max-width: 100%;
    }
}

@media (max-width: 425px) {
    .post-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 374px) {
    main {
        padding: 5px;
    }
}

@media (max-width: 320px) {
    .home-recent-posts {
        padding: 6px;
    }
    .single-recent-posts {
        padding: 0;
    }
}