/*
Theme Name: fastpress2
Theme URI: 
Author: andyUA
Author URI: 
Description: Custom theme based on Milenia Luxury Hotel
Version: 1.0
License: MIT
License URI: https://mit-license.org/
Text Domain: fastpress
*/

/** reset **/
*, ::after, ::before {
    box-sizing: border-box
}

ol[class], ul[class] {
    padding: 0
}

blockquote, body, dd, dl, figcaption, figure, h1, h2, h3, h4, li, ol[class], p, ul[class] {
    margin: 0
}

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.5
}
body.noscroll{overflow:hidden !important}
ol[class], ul[class] {
    list-style: none
}

a:not([class]) {
    text-decoration-skip-ink: auto
}

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

article > * + * {
    margin-top: 1em
}

button, input, select, textarea {
    font: inherit
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important
    }
}

.pholder {
    width: 100%;
    height: auto;
    max-width: 375px;
    aspect-ratio: 375/552;
    background-size: cover;
    background-position: center;
    margin-bottom: 10px
}

#installBtn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.relesestamp {
    color: red;
    position: absolute;
    padding: 6px 10px;
    top: 6px;
    left: 0;
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    width: 80%;
    border-radius: 8px;
}

.post-password-form p {
    margin-bottom: 20px
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    margin: 0;
}

#overlay.hidden {
    display: none;
    z-index: -10;
}

.header__logo img {
    width: 160px;
    height: auto;
}

.topmenuandlogo {
    display: flex;
    justify-content: space-between
}

.header__navigation {
    display: flex;
    align-items: center
}

.header__navigation .nav.nav--header {
    display: flex;
    justify-content: flex-end;
    align-items: center
}

.header__navigation .nav.nav--header li {
    margin-left: 10px;
}

.header__navigation .nav.nav--header li a {
    color: #0F0C17;
    text-decoration: none;
    font-weight: 500
}

a, h1, h2, h3, h4 {
    color: #0F0C17;
    text-decoration: none;
}

body {
    font-family: 'Inter', sans-serif;
}

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

.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
}

.hometop {
    margin-bottom: 20px;
}

.hometop h2 {
    margin-bottom: 20px;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 200px; /* adjust as needed or use scrollHeight in JS for auto height */
    padding: 10px 10px 20px;
}

.faq-item.active .faq-content p {
    margin: 10px 0
}

.faq-item.active .faq-content strong {
    margin: 20px 0 10px;
}

.faq-header {
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    margin-bottom: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    position: relative;
}

.faq-header:after {
    content: "";
    position: absolute;
    right: 20px;
    top: calc(50% - 6px);
    border-right: 1px solid white;
    border-bottom: 1px solid white;
    width: 10px;
    height: 10px;
    transform: rotate(-315deg);
    transition: all 0.25s ease;
}

.faq-item.active .faq-header:after {
    transform: rotate(-135deg);
    border-right: 1px solid red;
    border-bottom: 1px solid red;
    top: calc(50% - 2px);
}

/* Base styles */
.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.search-form {
    width: 100%;
    max-width: 480px;
    display: flex;
}

.search-form .search-field {
    width: 100%;
    max-width: calc(100% - 80px);
    margin-right:2px;
}

.search-form input {
    height: 34px;
    border-radius: 6px;
    border: 1px solid gray;
    padding: 0 5px;
}

.search-form input[type="submit"] {
    background-color: #0F0C17;
    color: #ffff;
}

/* Mobile styles */
@media (max-width: 640px) {
    .menu-toggle {
        display: block;
    }

    .header__navigation {
        display: none;
        background: white;
        padding: 1rem;
    }

    .header__navigation.active {
        display: block;
    }

    .nav--header {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav--header a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }

    .header__navigation .nav.nav--header li {
        text-align: right;
        width: 100%;
    }
}

.grid-container {
    display: grid;
    gap: 10px; /* space between items */
    grid-template-columns: repeat(6, 1fr); /* default: 6 columns */
}

.grid-item {
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #d9d1d1;
    padding: 6px;
    position: relative
}

.grid-item img {
    margin-bottom: 10px;
}

.grid-item h3 {
    font-size: 14px;
    line-height: 120%;
    min-height: 35px;
    margin-bottom: 10px;
}

.grid-item .artmeta {
    font-size: 13px;
    line-height: 120%;
    color: #333;
}

@media (max-width: 810px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablets */
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for phones */
    }
    .grid-item {
        min-width: 100%;
    }
}

.footer__copyright {
    font-size: 13px;
    color: #333
}


#controls button {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 1em;
}


.pulse-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #ff2737;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1s infinite;
    font-size: 2.5em;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #fff;
}

.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}

.loader:after {
    color: #ff2737;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {
    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}

.single h1 {
    font-size: 23px;
}

.single .artmeta {
    font-size: 16px;
    color: #666;
    margin: 10px 0 20px
}

.single .post__header img {
    width: 100%;
    max-width: 375px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.flexart {
    display: flex;
    flex-wrap: wrap;
    justify-content: center
}

.syncblock {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 375px;
    margin-bottom: 20px;
    text-align: center
}

.syncblock h2 {
    margin-bottom: 20px
}

.syncblock #status {
    margin-bottom: 20px
}

.syncblock #recordBtn {
    margin-bottom: 20px;
    width: 100%;
    height: 44px;
    background-color: #ff2737;
    border: 0;
    border-radius: 8px;
    color: #fff;
    max-width: max-content;
    padding: 0 10px;
}
.syncblock #recordBtn.syncagain {
    background-color: #959595;
}
.syncblock #recordBtn.onhold {
pointer-events: none;
}
#player {
    width: 100%;
    border-radius: 0 0 8px 8px;
    margin-top: 20px;
}

#timecode, #subtitle, #controls {
    margin-top: 20px;
}

#controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px
}

.correction {
    font-size: 13px;
}

.pagination {
    height: 44px;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background-color: #e8eeee;
    margin: 6px auto;
    font-size: 13px;
    color: #0F0C17;
    width: max-content;
    position: relative;
    margin-top: 30px;
}

.pagination a {
    font-size: 13px;
    color: #0F0C17;
}

.pagination .page-numbers {
    border-radius: 100%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
}

.pagination .page-numbers.current {
    background-color: #ff2737;
    color: #fff
}

.pagination .next.page-numbers,
.pagination .prev.page-numbers {
    width: 20px;
    height: 20px;
    background: url(img/link_arrow.svg) no-repeat center/20px;
    position: absolute;
    right: 10px;
    margin: 0;
    z-index: 3
}

.pagination .prev.page-numbers {
    transform: rotate(180deg);
    right: unset;
    left: 10px;
}

.pagination:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: url(img/inactive_arrow.svg) no-repeat center/20px;
    left: 12px;
    z-index: 0
}

.pagination:after {
    transform: rotate(180deg);
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: url(img/inactive_arrow.svg) no-repeat center/20px;
    right: 12px;
    z-index: 0
}

@media (min-width: 790px) {
    .syncblock {
        margin-left: 20px;
    }

    .flexart {
        margin: 0 -10px
    }
}

@media (max-width: 789px) {
    .syncblock {
        margin-left: 0;
        order: 0
    }

    .post__header {
        order: 1
    }

    .single h1 {
        font-size: 21px;
    }
}

@media (max-width: 375px) {
    .single h1 {
        font-size: 18px;
    }

    #controls button {
        margin: 0;
        padding: 5px 6px;
    }

    .hometop h2 {
        font-size: 18px
    }
}

#subtitleplayer {
    background-color: black;
    color: white;
    margin-bottom: -20px;
    border-radius: 8px 8px 0 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    line-height: 130%;
}

.allplayers {
    position: relative
}

.allplayers.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
}

.allplayers.fullscreen #subtitleplayer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100vh - 40px);
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.allplayers.fullscreen #player {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%
}



.expex {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: url(img/expand.png) no-repeat center/20px;
}

.allplayers.fullscreen .expex {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: url(img/exit.png) no-repeat center/30px;
    z-index: 999
}

.nooverflow {
    overflow: hidden
}

/* Add some styles for the button */
#add-to-home-screen-ios,
#add-to-home-screen {
    display: none;
    position: relative;
    background-color: #ff2737;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width:100%;
    box-sizing: border-box;
    text-align: center;
}
#add-to-home-screen-ios {display: block;}

#instructions ul {padding-left:10px}
#instructions h3{font-size: 15px;padding-top:20px;}
#instructions {
    display: none;
    position: relative;
    box-sizing: border-box;
    background-color: #e8eeee;
    color: #0F0C17;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    margin:20px 0;
}
.spoiled{display: none}
.spoiled img{width:100%;height:auto;}

@media(max-width: 480px){
    .allplayers.fullscreen #player {
        position: absolute;
        left: 0;
        bottom: auto;
        top:0;
        width: 100%;
        height:calc(100vh - 60px);
    }
}
@media(max-width: 1000px) and (max-height:480px){
    .allplayers.fullscreen #player {
        position: absolute;
        left: 0;
        bottom: auto;
        top:0;
        width: calc(100vw - 60px);
        height:100%;
        margin-top:0;
    }
    .allplayers.fullscreen .expex {
        right: 70px;
    }
}