:root {
    --white: #ffffff;
    --black: #000;
    --green: #008B55;
    --lighter-grey: #BCBCBC;
    --font-size-bigger: 1.1rem;
}

@font-face {
    font-family: Clash Display Medium;
    src: url(../fonts/ClashDisplay-Medium.ttf);
}

@font-face {
    font-family: Clash Display Regular;
    src: url(../fonts/ClashDisplay-Regular.ttf);
}

/* ----------------------------------------GLOBAL---------------------------------------- */

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Clash Display Regular;
    overflow-x: hidden;
    letter-spacing: 0.05rem;

}

a {
    text-decoration: none !important;
    list-style-type: none !important;
    color: #000 !important;
}

p {
    font-size: 1.07rem;
}

hr {
    width: 100%;
    color: var(--white);
    opacity: 1;
    border-top:1px var(--white) solid; /*fixnutí rozdílné šířky */
}

.hr-black {
    width: 100%;
    color: var(--black);
    opacity: 1;
    border-top:1px var(--black) solid; /*fixnutí rozdílné šířky */
}

.font-medium {
    font-family: Clash Display Medium;
}

.text-black {
    color: var(--black);
}

.text-justify{
    text-align: justify;
}


.custom-button,
.custom-button-black {
    background-color: transparent;
    outline: none;
    border: 1px solid var(--white);
    font-size: 1rem;
    color: var(--white);
    font-family: Clash Display Medium;
    transform: scale(1);
    transition: transform 0.3s ease-in-out !important;
}

.custom-button-black {
    border: 1px solid var(--black);
    color: var(--black);
}

.grey-section {
    background-color: var(--lighter-grey);
}

.fixed-img-height {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.filter-img-button {
    min-width: 130px;
}

/* Smooth scroll nastavení */
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.scroll-header {
    background-color: rgba(136, 136, 136, 0.4);
    backdrop-filter: blur(2px);
    transition: 0.3s;
}

.white-background{
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    transition: 0.3s;
}

.styly-pro-odkaz {
    text-decoration: underline !important;
}

.background-icon-left,
.background-icon-right {
    position: relative;
}

.background-icon-left img {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    width: 11%;
    height: auto;
}

.background-icon-right img {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    width: 11%;
    height: auto;
}

.ikona-list-inflorita-bigger {
    width: 50px;
    height: 50px;
    margin-right: 2rem;
}

.icon-text-container {
    display: flex;
    align-items: center;
}

.ikona-list-inflorita {
    width: 40px;
    height: 40px;
    margin-right: 20px;
}

.small-img {
    width: 70%;
    height: auto;
}

button.active {
cursor: not-allowed;
color: #BCBCBC;
border: 1px solid #CDCDCD;
}



/* ----------------------------------------NAVBAR---------------------------------------- */
.inflorita-logo {
    padding-left: 20px;
    width: 40%;
}

.koupit-nyni-button {
    padding: 5px 25px;
}

.menu-icon {
    padding-right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--white);
    margin-left: 7rem;
}

.menu-icon-black{
    padding-right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--black);
    margin-left: 7rem;
}

.sidenav {
    height: 100vh;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: rgba(238, 238, 238, 0.9);
    backdrop-filter: blur(2px);
    overflow: hidden;
    transition: 0.5s;
}

.menu-kontakty {
    margin-top: 20%;
    margin-left: 10%;
    font-size: 15px;
}

.inflorita-razitko-menu{
    width: 55%;
    transition: 0.5s;
}

.sidenav p {
    color: var(--black);
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 45px;
    font-size: 45px;
    margin-left: 50px;
}

.sidenav .custom-border-top {
    padding: 8px 8px 8px 0px;
    font-size: 25px;
    color: var(--black);
    transition: 0.3s;
    opacity: 1;
}

.custom-border-top {
    position: relative;
}

.custom-border-top:after {
    content: '';
    height: 1px !important;
    width: 37%;
    position: absolute;
    left: 0px;
    top: 40px;
    background-color: var(--black);
}


/* ----------------------------------------HERO SECTION---------------------------------------- */
.hero-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#background-img-1 {
    background-image: url('../../assets/images/inFlorita-hero-1.webp');
    opacity: 1;
}

.background-style {
    background-color: rgba(136, 136, 136, 0.6);
    padding: 2rem;
    backdrop-filter: blur(3px);
}

.font-size-bigger {
    font-size: var(--font-size-bigger);
}

.prozkoumat-modely-button {
    padding: 5px 30px;
    font-size: 1rem;
}

.prozkoumat-modely-button-hero {
    padding: 5px 30px;
    font-size: 1.1rem;
}


/* ---------------------------------------- 3D MODEL SECTION---------------------------------------- */
.first-section {
    background-color: #A5A5A5;
}

.second-section {
    background-color: #CDCDCD;
}

.third-section {
    background-color: #D9D9D9;
}

/* CSS pro model-inspect a jeho obsah */
.model-inspect {
    transition: width 0.9s;
    overflow: hidden;
    width: 20%;
    height: 100vh;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.active {
    width: 60%;
    align-items: center;
    cursor: auto;
}

.model-img {
    width: 50%;
    margin: 0 auto;
}

/* Skryje obsah a zobrazí nadpis h2 při zavřené sekci */
.inactive .model-img,
.inactive .model-text,
.inactive .model-button {
    display: none;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.inactive h2 {
    display: block;
    opacity: 1;
    transform: rotate(-90deg);
    transition: opacity 0.000001s ease-in-out; /* fix probliknutí textu */
}

.icon-wrapper {
    margin-top: 30px;
    position: relative;
    top: -4rem;
}

.model-inspect h2 {
    margin-bottom: 0px; /* Zajišťuje správné umístění ikony blízko nadpisu */
}

.inactive .click-icon {
    display: block;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.active .click-icon {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}


.active h2 {
    display: block;
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.000001s ease-in-out; /* fix probliknutí textu */
}

/* CSS pro zobrazení obsahu po dokončení animace */
.active .model-img,
.active .model-text,
.active .model-button,
.active h2 {
    display: block;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.9s;
}

/* Aktivace animace a zobrazení obsahu po dokončení animace */
.active .model-text,
.active .model-button,
.active .inactive h2 {
    animation-delay: 1.1s;
    animation-name: fadeIn;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }

    100% {
        opacity: 1;
        visibility: visible;
    }
}


/* ----------------------------------------VÝJIMEČNÉ BAREVNÉ SPEKTRUM SECTION---------------------------------------- */

.smaller-img {
    width: 80%;
    height: auto;
    display: none;
}

/* Animace fade-in pro aktivní obrázek */
.smaller-img.active {
    display: block;
    opacity: 1;
}


/* ---------------------------------------- SWIPER ---------------------------------------- */

.swiper-slide {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
}

.swiper-pagination-bullet,
.swiper-pagination-bullet-active {
    background: var(--mainColor) !important;
}

/* ----------------------------------------FOOTER---------------------------------------- */

.footer-hr {
    width: 100%;
}

.footer-logo {
    width: 60%;
}


/* ----------------------------------------REFERENCE---------------------------------------- */
.tz-gallery-reference {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.tz-gallery-reference.loaded {
    opacity: 1;
}

.reference-margin-top{
    margin-top: 10rem;
}

.buttons-wrapper {
    flex-wrap: wrap;
}

.filter-button.activated {
    color: #BCBCBC;
    border: 1px solid #CDCDCD;
}

.thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* ---------------------------------------- MODELY KVĚTINÁČŮ---------------------------------------- */
.zpet-na-hlavni-stranku {
    position: absolute;
    left: 50%;
    bottom: 3rem;
    transform: translateX(-50%);
    cursor: pointer;
}

.modely-kvetinacu-logo{
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: 30%;
    height: auto;
}

.change-model-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 230px;
    text-align: center;
    text-transform: uppercase;
    margin: 5px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s;
    z-index: 20;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: rgba(250, 250, 250, 0.6);
    border-radius: 0px;
    backdrop-filter: blur(2.1px);
    -webkit-backdrop-filter: blur(2.1px);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 70%;
    max-width: 500px;
}

.close-btn {
    cursor: pointer;
    color: black;
    font-size: 3rem;
    position: absolute;
    top: 10px;
    right: 20px;
}

.custom-button-black {
    margin: 5px;
}

.model-color-button {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    border: 0;
    margin: 0.8rem;
}

.antracit {
    background-color: rgb(84, 84, 84);
}

.white {
    background-color: white;
}

.grey {
    background-color: rgb(175, 175, 175);
}

.color-active {
    border: 2px solid #000;
}

.save-btn {
    margin-top: 20px;
}


/* ----------------------------------------RESPONZIVITA---------------------------------------- */
@media screen and (max-width: 767px) {

    .header-container {
        display: flex;
        flex-direction: column;
        gap: 45px;
    }

    .button-position {
        position: absolute;
        top: 87%;
        left: 0;
    }

    /* Custom padding pro container */
    .container-custom-padding {
        padding-left: 20px;
        padding-right: 20px;
    }

 /*3D model sekce optimalizace pro telefony*/
 .model-inspect {
    width: 100%;
    height: auto;
    text-align: center;
}

.model-img {
    width: 80%;
    margin: 0 auto;
}

.model-text {
    display: none;
}

.inactive h2{
    font-size: 1.8rem;
}

.model-text {
    font-size: 20px;
}

.prozkoumat-modely-button,
.prozkoumat-modely-button-hero {
    padding: 7px 30px;
}

.inactive h2,
.first-inactive {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    transform: rotate(0deg);
}

/* zmenšení img v sekcích */
.mobile-parameters {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.ikona-list-inflorita-bigger {
    margin-right: 0rem;
}

.custom-button,
.custom-button-black{
    font-size: 0.85rem;
}

    /* Nastavení responzivity pro tlačítka v modely-kvetinacu */
    .zpet-na-hlavni-stranku {
        left: 50%;
        bottom: 1rem;
        transform: translateX(-50%);
        cursor: pointer;
        width: 300px;
        text-align: center;
    }

    .koupit-nyni-button {
        padding: 7px 35px;
    }

    .zmenit-model-btn-position {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 4rem;
        z-index: 2;
    }

    .modal-content {
        height: 80% !important;
    }
    .modely-kvetinacu-logo{
        width: 23%;
    }


    /* REFERENCE */
    .reference-margin-top{
        margin-top: 9rem;
    }

    .buttons-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .buttons-wrapper .custom-button-black {
        width: calc(50% - 10px); /* Polovina šířky, minus mezera */
        margin-bottom: 10px; /* Mezera mezi řádky */
    }

    .buttons-wrapper .custom-button-black:nth-child(odd) {
        margin-right: 10px; /* Mezera mezi sloupci pro tlačítka v levém sloupci */
    }

    .buttons-wrapper .custom-button-black:nth-child(even) {
        margin-left: 10px; /* Mezera mezi sloupci pro tlačítka v pravém sloupci */
    }
}

@media screen and (min-width: 768px) {
    .inflorita-logo {
        width: 25%;
    }

    .button-position {
        position: absolute;
        bottom: 3rem;
        left: 0;
    }

    .icon-wrapper {
        top: 3rem;
    }

    .footer-logo {
        width: 100%;
    }

    .modely-kvetinacu-logo{
        width: 15%;
    }

    .zpet-na-hlavni-stranku {
        bottom: 1rem;
    }

    .thumb {
        max-width: 455px;
        max-height: 300px;
    }

    .zmenit-model-btn-position{
        position: absolute;
        right: 5rem;
        bottom: 3.2rem;
        z-index: 2;
    }
}

@media screen and (min-width: 992px) {
    .inflorita-logo {
        width: 20%;
    }

    .footer-logo {
        width: 70%;
    }
    .modely-kvetinacu-logo{
        position: absolute;
        top: 3rem;
        left: 3rem;
        width: 15%;
        height: auto;
    }
    .zpet-na-hlavni-stranku {
        bottom: 3rem;
    }

    .icon-wrapper {
        top: 5rem;
    }
}

@media screen and (min-width: 1200px) {
    .inflorita-logo {
        width: 15%;
    }

    .custom-button:hover,
    .custom-button-black:hover {
    transform: scale(1.05, 1.05);
    }

    .footer-logo {
        width: 60%;
    }

    .modely-kvetinacu-logo{
        position: absolute;
        top: 3rem;
        left: 3rem;
        width: 12%;
        height: auto;
    }

    .icon-wrapper {
        top: 6rem;
    }
}

@media screen and (min-width: 1400px) {
    .icon-wrapper {
        top: 8rem;
    }
}

@media screen and (min-width: 1600px) {
    .icon-wrapper {
        top: 10rem;
    }
}
