* {
    margin: 0;
    padding: 0;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    scroll-padding: 100px;
}

html,
body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--background);
}

::selection {
    color: rgb(255, 255, 255);
    background: var(--secondary);
}

::-webkit-scrollbar {
    background-color: var(--background);
    width: 2vh;
}

::-webkit-scrollbar-thumb {
    background-color: #d0c5bf;
    border-radius: 4px;
}

:root {
    --main: #002B5B;
    --secondary: #FF7777;
    --text: #FAEEE7;
    --background: #FAEEE7;
    --transparent-background: rgba(250, 238, 231, 0.7);
    --black: black;
    --content-inline: 13%;
}

@media screen and (max-width: 600px) {
    :root {
        --content-inline: 16px;
    }
}

#main {
    color: var(--main);
}

#secondary {
    color: var(--secondary);
}

#black {
    color: var(--black);
}

/*-----------------------------Body----------------------------*/

/*----------------------------section1-------------------------*/

#section1 {
    height: auto;
    margin-bottom: 1.5rem;
}

#section1 .prispevky-text {
    background: url('/assets/images/perkins-duetone.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    height: 160px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

#section1 .prispevky-text h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--text);
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    padding: 0 16px;
}

@media screen and (max-width: 1100px) {
    #section1 .prispevky-text {
        margin-top: 20px;
    }
}

@media screen and (max-width: 500px) {
    #section1 .prispevky-text {
        margin-top: 65px;
        height: 120px;
    }
}


@media screen and (max-width: 350px) {
    #section1 .prispevky-text h1 {
        font-size: 40px;
    }
}

/*-------------------------kontakt-nav-------------------------*/

#navbar {
    z-index: 999;
}

.kontakt-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 45px;
    width: 100%;
    background: var(--background);
    justify-content: right;
    align-items: center;
}

.kontakt-nav .emial-kontakt-nav {
    margin-right: 2%;
}

.kontakt-nav #img-email {
    display: flex;
}

.kontakt-nav .tel-phone-kontakt-nav {
    margin-right: 5%;
}

.kontakt-nav p a {
    transition: 0.2s;
    width: max-content;
    text-decoration: none;
    color: var(--secondary);
}

.kontakt-nav p a:hover {
    transition: 0.2s;
    text-decoration: underline;
}

.kontakt-nav div img {
    width: 30px;
    margin-right: 2vh;
}

@media screen and (max-width: 500px) {
    .kontakt-nav {
        display: none;
    }
}

/* Hamburger menu */

.hamburger-menu {
    top: 0;
    display: none;
    z-index: 9999;
    background: var(--background);
    height: 65px;
    position: fixed;
    width: 100%;
    box-shadow:
        0px 0px 2.2px rgba(0, 0, 0, 0.006),
        0px 0px 5.3px rgba(0, 0, 0, 0.008),
        0px 0px 10px rgba(0, 0, 0, 0.01),
        0px 0px 17.9px rgba(0, 0, 0, 0.012),
        0px 0px 33.4px rgba(0, 0, 0, 0.014),
        0px 0px 80px rgba(0, 0, 0, 0.02);
    touch-action: none;
}

.hamburger-menu img {
    width: 50px;
    float: right;
    margin-top: 15px;
    margin-right: 3vh;
}

.mobile-logo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--main);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    gap: 1px;
    z-index: 1;
}

.mobile-logo .ko {
    color: var(--secondary);
}

#menu__toggle {
    opacity: 0;
}

#menu__toggle:checked+.menu__btn>span {
    transform: rotate(45deg);
}

#menu__toggle:checked+.menu__btn>span::before {
    top: 0;
    transform: rotate(0deg);
}

#menu__toggle:checked+.menu__btn>span::after {
    top: 0;
    transform: rotate(90deg);
}

#menu__toggle:checked~.menu__box {
    left: 0 !important;
}

.menu__btn {
    position: fixed;
    top: 0;
    left: 8px;
    width: 44px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.menu__btn>span,
.menu__btn>span::before,
.menu__btn>span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--main);
    border-radius: 1px;
    transition-duration: .25s;
}

.menu__btn>span {
    position: relative;
}

.menu__btn>span::before {
    content: '';
    top: -8px;
}

.menu__btn>span::after {
    content: '';
    top: 8px;
}

.menu__box {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 350px;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: var(--background);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .2);
    transition-duration: .25s;
}

.menu__box li a i {
    font-size: 18px;
}

.menu__item {
    display: block;
    padding: 2vh 24px;
    color: var(--main);
    font-size: 25px;
    font-weight: 400;
    text-decoration: none;
    transition-duration: .25s;
}

.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: 0;
    overflow: hidden;
}

.dropdown-content.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
}

.dropdown-content ul {
    padding: 0;
    margin: 0;
}

.dropdown-content ul li {
    list-style: none;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 2vh;
}

.dropdown-content ul li a {
    font-size: 20px;
}

.dropdown-content.show ul li {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateChevron {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

.dropbtn i {
    transition: transform 0.3s ease;
}

.dropbtn i.rotated {
    transform: rotate(180deg);
}

.dropbtn:hover i.rotated {
    animation: rotateChevron 0.3s forwards;
}

.menu__item:hover {
    background-color: var(--main);
    color: var(--background);
}

#active-link {
    background-color: #ededed;
    color: var(--secondary);
}

@media screen and (max-width: 1100px) {
    .hamburger-menu {
        display: block;
    }
}

/*---------------------------nav section-----------------------*/

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

header nav {
    width: 100%;
    height: 70px;
    background-color: var(--main);
    color: var(--text);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    z-index: 999;
}

header nav .left-nav {
    margin-left: 5%;
}

header nav .left-nav a {
    text-decoration: none;
    color: var(--background);
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

.logo-radek {
    font-size: 25px;
    line-height: 1;
}

.kotfald {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 25px;
    line-height: 1;
    margin: 0;
    transition: all .5s ease;
}

#texte {
    width: 82.66px;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

#texte::after {
    content: 'TFALD';
}

#texte:not(:hover)::after {
    transition: 0.5s;
    animation: textanimate2 0.5s linear;
}

#texte:hover::after {
    animation: textanimate 0.5s linear;
    content: 'SERVIS';
}

@keyframes textanimate {
    0% {
        content: 'S';
    }

    20% {
        content: 'SE';
    }

    40% {
        content: 'SER';
    }

    60% {
        content: 'SERV';
    }

    80% {
        content: 'SERVI';
    }

    100% {
        content: 'SERVIS';
    }
}

@keyframes textanimate2 {
    0% {
        content: 'T';
    }

    25% {
        content: 'TF';
    }

    50% {
        content: 'TFA';
    }

    75% {
        content: 'TFAL';
    }

    100% {
        content: 'TFALD';
    }
}

header nav .left-nav p {
    font-size: 25px;
}

header nav .right-nav {
    margin-right: 5%;
}

header nav .right-nav ul li {
    display: inline;
    margin-inline: 1.5vh;
    font-size: 17px;
}

header nav .right-nav ul li a {
    text-decoration: none;
    color: var(--text);
    transition: 0.2s;
}

header nav .right-nav ul li a:hover {
    color: var(--secondary);
    transition: 0.2s;
}

@media screen and (max-width: 1100px) {
    header nav {
        display: none;
    }
}

@-webkit-keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }

    15% {
        opacity: 1;
        top: 50%;
    }

    50% {
        opacity: 0;
        top: 50%;
    }

    100% {
        opacity: 0;
        top: 29%;
    }
}

@-moz-keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }

    15% {
        opacity: 1;
        top: 50%;
    }

    50% {
        opacity: 0;
        top: 50%;
    }

    100% {
        opacity: 0;
        top: 29%;
    }
}

@keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }

    15% {
        opacity: 1;
        top: 50%;
    }

    50% {
        opacity: 0;
        top: 50%;
    }

    100% {
        opacity: 0;
        top: 29%;
    }
}

/*-----------------section2-------------------*/

#section2 {
    margin: 0 var(--content-inline) 3rem;
}

.posts-lead {
    max-width: 42rem;
    margin: 0 0 1.5rem;
    color: var(--main);
    font-size: 1.05rem;
    line-height: 1.55;
}

.posts-lead a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.posts-lead a:hover {
    color: var(--main);
}

.home-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 43, 91, 0.12);
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--main);
}

.home-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.home-post-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 14px 14px 16px;
}

.home-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.home-post-date {
    font-size: 0.9rem;
    color: rgba(0, 43, 91, 0.7);
}

.home-post-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 0;
    background: var(--secondary);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.home-post:hover .home-post-cta {
    background: var(--main);
}

.posts-empty {
    margin: 0;
    font-size: 1.125rem;
}

@media screen and (max-width: 900px) {
    .home-posts {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .home-posts {
        grid-template-columns: 1fr;
    }

    .home-post img {
        height: 180px;
    }
}


@media screen and (max-width: 650px) {
    #section2 .obal-produktu .produkt {
        width: 80%;
        margin-top: 2vh auto;
        margin-bottom: 2vh auto;
    }

    #section2 .obal-produktu .produkt img {
        height: 30vh;
    }
}

@media screen and (max-width: 450px) {
    #section2 .obal-produktu {
        margin-top: -7.5vh;
    }

    #section2 .obal-produktu .produkt {
        width: 95%;
        margin-top: 2vh auto;
        margin-bottom: 2vh auto;
    }

    #section2 .obal-produktu .produkt img {
        height: 25vh;
    }
}

.empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh; /* Adjust this value to control the vertical positioning */
}

/* Add some padding to the empty message */
.empty-message {
    padding: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 5vh;
  }

  .pagination a {
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--background);
    border: 1px var(--main) solid;
    color: var(--main);
    text-decoration: none;
    border-radius: 0;
    margin-right: 6px;
  }

  .pagination a:hover {
    background-color: #ddd;
  }

  .pagination a.active {
    background-color: var(--main);
    color: var(--text);
  }
/*--------------------------footer----------------------------*/

footer {
    height: 110vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer li {
    display: flex;
    flex-direction: row;
    align-items: center;
}

footer .top {
    height: 50%;
    width: 100%;
}

footer .bottom {
    margin-top: 10vh;
    height: 50%;
    width: 100%;
    background: var(--transparent-background);
    display: flex;
    flex-direction: row;
}

footer .bottom .left-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radekkotfald2 {
    display: flex;
    flex-direction: row;
}

.kotfald2 {
    display: flex;
    flex-direction: row;
    transition: all .5s ease;
    margin-bottom: 2vh;
    margin-left: 1vh;
}

#texte {
    width: 82.66px;
    font-size: 25px;
    font-weight: 400;
}

#texte::after {
    content: 'TFALD';
}

#texte:not(:hover)::after {
    transition: 0.5s;
    animation: textanimate2 0.5s linear;
}

#texte:hover::after {
    animation: textanimate 0.5s linear;
    content: 'SERVIS';
}

@keyframes textanimate {
    0% {
        content: 'S';
    }

    20% {
        content: 'SE';
    }

    40% {
        content: 'SER';
    }

    60% {
        content: 'SERV';
    }

    80% {
        content: 'SERVI';
    }

    100% {
        content: 'SERVIS';
    }
}

@keyframes textanimate2 {
    0% {
        content: 'T';
    }

    25% {
        content: 'TF';
    }

    50% {
        content: 'TFA';
    }

    75% {
        content: 'TFAL';
    }

    100% {
        content: 'TFALD';
    }
}

footer .bottom .left-side ul {
    margin-top: 0vh;
    list-style: none;
    font-size: 25px;
}

footer .bottom .left-side ul li {
    margin-bottom: 0.5vh;
}

footer .bottom .left-side ul li hr {
    margin-bottom: 3vh;
    height: 2px;
    border-radius: 1px;
    border: none;
    background: rgba(0, 43, 91, 0.35);
    margin-left: 0;
    margin-right: 30%;
    width: 100%;
}

footer .bottom .right-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .bottom .right-side ul {
    list-style: none;
    margin-top: 0vh;
    font-size: 25px;
}

footer .bottom .right-side ul li {
    margin-bottom: 0.5vh;
}

footer .bottom .right-side ul li div img {
    margin-right: 1vh;
}

footer h2 {
    font-weight: 500;
    font-size: 35px;
    margin-bottom: 1.5vh;
}

footer p {
    margin-bottom: 2vh;
}

footer p a {
    text-decoration: none;
    color: var(--secondary);
    transition: 0.2s;
}

footer #phone-number p a:hover {
    text-decoration: underline;
    transition: 0.2s;
}

footer #email p a:hover {
    text-decoration: underline;
    transition: 0.2s;
}

@media screen and (max-width: 900px) {
    footer {
        height: auto;
    }

    footer .bottom {
        flex-direction: column;
        align-items: center;
    }

    footer .bottom .left-side {
        margin-left: -20vh;
        width: 100%;
    }

    footer .bottom .right-side {
        margin-top: 5vh;
        margin-bottom: 5vh;
        width: 100%;
    }
}

@media screen and (max-width: 430px) {
    footer .bottom .right-side p a {
        font-size: 17px;
    }

    footer .bottom .left-side {
        margin-left: -5vh;
    }

}