/*
Theme Name: Mezasu
Theme URI: https://mezasu.com
Author: Damjan Brkic
Description: Mezasu blog theme
Version: 1.1
Text Domain: mezasu-theme
*/

body,
html,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span,
div,
blockquote,
cite,
code,
small,
strong,
em,
table,
th,
td,
ul,
ol,
header,
footer,
nav,
section,
article,
aside {
    font-family: 'Nunito', sans-serif !important;
}

.desktop-only {
    display: block !important;
}

.mobile-only,
.mobile-only.flex {
    display: none !important;
}

@media screen and (max-width: 979px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    .mobile-only.flex {
        display: flex !important;
    }
}

:root {
    --wp--preset--spacing--tiny: 3px;
    --wp--preset--spacing--very-small: 5px;
    --wp--preset--spacing--smallest: 7px;
    --wp--preset--spacing--smaller: 8px;
    --wp--preset--spacing--small: 10px;
    --wp--preset--spacing--reduced-twice: 12px;
    --wp--preset--spacing--reduced: 15px;
    --wp--preset--spacing--default: 15px;
    --wp--preset--spacing--normal: 20px;
    --wp--preset--spacing--plus: 25px;
    --wp--preset--spacing--increased: 30px;
    --wp--preset--spacing--double: 40px;
    --wp--preset--spacing--triple: 60px;
}

body {
    margin: 0;
    font-size: 18px;
    color: #333333;
    background: #ededed;
}

body.blog,
body.single-post,
body.wp-singular.page-template-default,
body.page-template-template-dictionary,
body.page-template-template-audio {
    background: #ffffff;
}

.body-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.wp-singular.page-template-default .body-wrapper,
body.page-template-template-dictionary .body-wrapper,
body.blog .body-wrapper,
body.single-post .body-wrapper {
    height: auto;
    display: block;
}

:where(.is-layout-flex) {
    gap: 15px;
}

 :where(.is-layout-grid) {
    gap: 15px;
}

.wrapper,
.footer-widgets {
    width: 100%;
    max-width: 768px;
    min-width: 320px;
    margin: 0 auto;
    /*overflow-x: hidden;*/
}

.wrapper.wide {
    max-width: 884px;
}

.wrapper.audio {
    height: calc(100% - 90px);
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    container-type: inline-size;
    gap: 15px;
}

.header-wrapper {
    position: fixed;
    width: 100%;
    z-index: 100;
}

.header-footer-gap {
    height: 56px;
}

.header,
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header {
    padding: 0px;
    justify-content: space-between;
    gap: 15px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 5px 5px 5px 0px #0000000D;
}

.header .menu a,
.header .logo a,
.footer .logo a {
    display: block;
    height: 30px;
}

@media screen and (max-width: 979px) {
    .header {
        padding: 10px 0;
    }
}

.header-right {
    display: flex;
    gap: 0;
    align-items: center;
}

a.language-code,
.page-code {
    display: block;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    width: 30px;
    text-align: center;
}

a.language-code {
    background: url(img/selected-language-bg.svg);
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    display: block;
    line-height: 30px;
}

.language-selector-wrap {
    background: #fff;
    border-radius: 15px;
    color: #333333;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    font-weight: 400;
    color: #333;
    justify-content: center;
}

.in-the-body a.language-code {
    width: auto;
    background: transparent;
    color: #0091FF;
    font-size: 22px;
    font-weight: 900;
}

.page-code a {
    color: #333333;
    text-decoration: none;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0 8px 8px -2px rgba( 0, 0, 0, 0.12)
}

.featured-image img {
    width: 100%;
    height: auto;
}

.content {
    padding: 15px;
}

h1 {
    font-size: 22px;
}

p {
    line-height: 175%;
}

a {
    color: #0091FF;
}


/* Table of contents */

body .content #ez-toc-container {
    background: transparent;
    border: 2px solid #d9d9d9;
    border-radius: 20px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

body .content div#ez-toc-container .ez-toc-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin: 15px 0;
    display: block;
}

.ez-toc-title-container .ez-toc-title-toggle {
    display: none;
}

.footer {
    display: flex;
    width: 100%;
    align-items: center;
    height: 56px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.footer-top {
    width: 100%;
    background: #0091FF;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.footer-signup-button {
    display: inline-block;
    padding: 15px;
    border-radius: 15px;
    text-decoration: none;
    color: #0091FF !important;
    background: #ffffff;
    font-size: 24px !important;
}

.footer-link,
.header-tab {
    height: 100%;
    display: block;
    background: #f5f5f5;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    line-height: 56px;
    color: #333333;
}

.footer-link.active {
    background: #fff !important;
}

.footer.mobile-only {
    display: flex;
    width: 100%;
    align-items: center;
    height: 56px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.mobile-only .footer-link {
    width: 100%;
    height: 100%;
    display: block;
    background: #f5f5f5;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    line-height: 56px;
    color: #333333;
}

.header-tab {
    flex-shrink: 0;
    padding: 0 15px;
}

.header-tab.blue {
    background: #0091FF;
    color: #ffffff;
}

.footer .logo {
    text-align: center;
    padding: 0 15px;
}

.mezasu-footer {
    background: #000000;
    color: #ffffff;
}

.mezasu-footer h2 {
    font-size: 18px;
}

.mezasu-footer a {
    color: #ffffff;
    font-size: 14px;
}

.mezasu-footer p {
    line-height: normal;
}

.footer-widget .wp-block-columns {
    margin-bottom: 0
}

.mezasu-footer .copyright {
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    padding-bottom: 30px;
}

.wp-block-social-links a {
    font-size: 24px;
}

.breadcrumbs span span a {
    text-transform: capitalize;
    color: #333333;
    text-decoration: none;
}

.breadcrumbs span span {
    display: inline-block;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 14px;
}

.breadcrumbs span span.breadcrumb_last {
    display: none;
}

.breadcrumbs span .breadcrumb-separator {
    background: none;
    display: inline;
    padding: 0;
    color: #999999;
}

.breadcrumbs>span>.breadcrumb-separator:last-of-type {
    display: none;
}

.menu-panel {
    display: none;
    position: absolute;
    top: 60px;
    left: 0px;
    z-index: 100;
    padding: 20px;
    background: rgb(65, 65, 65);
    width: 100%;
    max-width: 400px;
    height: 100vh;
    box-sizing: border-box;
}

.language-selector,
.page-selector {
    position: relative;
}

.language-dropdown,
.page-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 100;
    width: 200px;
    top: 45px;
    max-height: 300px;
    overflow: auto;
}

.language-dropdown li,
.page-dropdown li {
    cursor: pointer;
    display: block;
    border-bottom: 1px solid rgb(204, 204, 204);
    width: 100%;
    text-align: left;
    padding: 7px 15px;
    font-size: 14px;
    font-family: Nunito, sans-serif;
    box-sizing: border-box;
}

.language-dropdown .code,
.page-dropdown .code {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    font-family: Poppins;
    line-height: 26px;
    color: #0091FF;
    font-weight: bold;
}

.language-dropdown li:hover,
.page-dropdown li:hover {
    background-color: #f0f0f0;
}

.page-dropdown {
    right: auto;
}

.page-code {
    width: auto;
    padding: 0 0 0 10px;
    background: #f5f5f5;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.page-dropdown .code {
    color: #333333;
    text-transform: none;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.show {
    display: block !important;
}

.icons-wrapper {
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px 5px;
    max-width: 381px;
    margin: 0 auto;
}

.app-icon {
    height: 100% !important;
    max-width: 117px !important;
    aspect-ratio: 1 / 1;
    background-color: #4f4f4f;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    margin: 0 5px;
    display: flex !important;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.app-icon .icon-wrap {
    width: 35px;
    height: 35px;
}

.app-icon path,
.app-icon rect {
    fill: #ededed;
}

.app-title {
    color: #fff;
    font-size: 18px;
}


/* Video and post card */

.mezasu-video-preview,
.mezasu-post-preview {
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid #ffffff;
    box-shadow: rgba(0, 0, 0, 0.01) 5px 5px 5px 0px;
    position: relative;
}

.thumbnail-wrapper {
    position: absolute;
    top: -2px;
    /* pulls image over the top border */
    left: -2px;
    right: -2px;
    /* adjust as needed */
    z-index: 1;
}

.media-thumbnail img,
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.media-details,
.post-details {
    position: relative;
    z-index: 2;
    margin-top: 56.7%;
    /* to push it below the image */
    padding: 15px;
    font-size: 18px;
    background: white;
    border-radius: 20px;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.placeholder .media-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    justify-content: center;
    height: 100%;
}

.media-title {
    min-height: 50px;
}

.media-title h3 {
    font-size: 24px;
    color: #333333;
}

.media-title a,
.post-title a {
    color: #000000;
    text-decoration: none;
}

.post-title a {
    font-size: 20px;
    font-weight: 600;
}

.post-description {
    font-size: 16px;
    margin: 5px 0;
}

.media-meta,
.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.post-meta {
    font-size: 12px;
    font-weight: 700;
}

.media-meta .channel {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    float: left;
}

.media-meta .icons,
.media-meta .channel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-meta .icons img {
    width: 24px;
}

.media-meta .views {
    display: flex;
}

.wp-block-image.size-full img {
    border-radius: 20px;
}

.wrapper.media {
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #ededed;
    /* margin-top: 235px;*/
}

@media screen and (min-width: 980px) {
    .wrapper.media {
        max-width: 100%;
        display: grid;
        /*        grid-template-columns: repeat(3, 1fr);*/
        grid-template-columns: repeat(3, minmax(200px, 1fr));
        height: auto !important;
    }
}

@media screen and (min-width: 1320px) {
    .wrapper.media {
        /*        grid-template-columns: repeat(4, 1fr);*/
        grid-template-columns: repeat(4, minmax(200px, 1fr));
    }
}

.header-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    background: #f5f5f5;
    /*  position: fixed; */
    width: 100%;
    z-index: 3;
    padding: 20px 15px 15px 15px;
    box-sizing: border-box;
    box-shadow: 5px 5px 5px 0px #00000003;
}

.header-widget.relative {
    position: relative;
    border-bottom: 5px solid #ededed;
}

.header-widget-inner {
    max-width: 768px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-widget h2 {
    margin: 0;
    padding: 0;
    font-size: 32px;
    line-height: 32px;
    color: #333333;
    font-weight: 700;
    text-align: center;
}

.header-widget .select2-container--default .select2-selection--single {
    height: auto;
    border-radius: 10px;
    border: none;
    background: #ffffff;
    padding: 4px 10px;
    position: relative;
    color: #333333;
    font-size: 16px;
}

.header-widget .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    text-align: center;
}

.header-widget .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    right: 8px;
    top: 50% !important;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    pointer-events: none;
    background-image: url('img/drop-icon-gray.svg');
}

.header-widget .select2-container--default:last-child .select2-selection--single .select2-selection__arrow {
    background-image: url('img/autocomplete.svg');
}

.header-widget .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.autocomplete-wrap {
    width: 100%;
    max-width: 450px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-widget .select2-container--default {
    min-width: 120px;
}

.tool-block {
    box-shadow: 5px 5px 5px 0px #00000003;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.tool-block .top {
    line-height: 0;
}

.tool-block .top img {
    object-fit: cover;
    width: 100%;
}

.tool-block .bottom {
    background: #ffffff;
    padding: 15px;
}

.tool-block .bottom .buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

.tool-block .bottom .buttons a {
    width: 100%;
}

a.tool-title-link {
    display: block;
    text-decoration: none;
    text-align: center;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
}

a.tool-block-button {
    background: #f5f5f5;
    display: block;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #333333;
    text-align: center;
    padding: 10px 15px;
    line-height: 18px;
}

a.tool-block-button.blue {
    background: #0091FF;
    color: #ffffff;
}

.tool-description {
    padding: 0 10px;
    font-size: 16px;
    color: #333333;
    margin-top: 10px;
}


/* Dictionary */

.search-input-wrap {
    width: 100%;
}

.search-input-wrap input {
    width: 100%;
    border-radius: 15px;
    border: none;
    font-size: 18px;
    color: #333333;
    font-weight: 400;
    padding: 9px 15px;
    line-height: 18px;
    box-sizing: border-box;
}

.audio-counter {
    background: #f5f5f5;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 10px;
    box-sizing: border-box;
}

.word-of-the-day-title {
    background: #0091FF;
    color: #ffffff;
    font-size: 14px;
    line-height: 14px;
    padding: 7px 10px;
    width: 100%;
    box-sizing: border-box;
}

.word-widget {
    width: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.word-widget .term {
    font-size: 24px;
    position: relative;
}

.word-widget .speaker-button {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.word-widget .translation {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 10px 15px;
    position: relative;
}

.word-widget .translation img {
    position: absolute;
    left: 15px;
}

.wrapper.examples {
    /* margin-top: 400px;*/
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    box-sizing: border-box;
}

.examples-title {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px 10px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 145%;
    text-align: center;
}

.audio-card {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-card .sentence {
    position: relative;
    padding-right: 45px;
}

.audio-card .sentence .highlight {
    background: #FFFC9B;
}

.audio-card .sentence .plus-button {
    position: absolute;
    right: 0;
}

.audio-card .translation {
    font-size: 14px;
}

.audio-card .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wavesurfer-wrapper {
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
}

.wavesurfer-wrapper.audio {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
}

.wavesurfer-audio {
    width: 100%;
}

.audio-clip .sentence {
    margin: 15px 0;
    font-size: 18px;
    color: #333333;
    text-align: center;
}

.audio-clip .translation {
    font-size: 14px;
    text-align: center;
}

.highlight {
    display: inline-block;
    border-radius: 7px;
    padding-top: 2px;
    padding-right: 7px;
    padding-bottom: 2px;
    padding-left: 7px;
    background: #B3D1FF;
}

.play-button-audio-page {
    width: 100%;
    background: #f5f5f5;
    text-align: center;
    border-radius: 15px;
    display: block;
    padding: 8px 12px;
}

.audio .buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio .buttons a {
    line-height: 1px;
}


/* Keep this at the bottom */

html body .body-wrapper .wrapper .alignfull {
    max-width: calc(100vw) !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative !important;
    box-sizing: border-box !important;
}

html body .body-wrapper .wrapper .wp-block-group.is-layout-constrained {
    max-width: 738px !important;
    margin: 0 auto !important;
}