.hidden {
    display: none;
}


* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    margin: auto;
    color: rgb(50, 50, 50);
}

h1 {
    font-size: 40px;
}

#big-screen-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: solid rgb(50, 50, 50);
    border-width: 2px;
}

#small-screen-navigation {
    display: none;
}

nav a {
    text-decoration: none;
    color: rgb(50, 50, 50);
    margin: 16px;
    display: inline-block;
    width: max-content;
    text-align: center;
    border-bottom: solid white;
    transition: 0.25s;
}

nav a:hover {
    border-bottom: solid #cca86c;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;

}

.home-news-background {
    background-image: url('../img/news-background.jpg');
    background-position: center;
    background-size: cover;
    position: relative;
}

.home-news-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.home-news,
.blog-welcome {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    padding: 64px 24px;
    color: white;
}

.home-news h2 {
    margin: 16px 0;
    font-style: italic;
    text-transform: uppercase;
    font-size: 56px;
    font-weight: normal;
}

.basic-heading {
    font-size: 40px;
}

.paragraph-on-background {
    font-size: 20px;
    max-width: 520px;
    font-style: italic;
    margin: 40px 0;
}

.button {
    border: none;
    background-color: #cca86c;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    padding: 16px 24px;
    transition: 0.5s;
}

.button:hover {
    background-color: #8e754a;
}

.button i {
    padding-left: 8px;
}

.motto {
    text-align: center;
    margin-top: 40px;
    font-weight: bold;
}

.motto h2 {
    text-transform: uppercase;
    padding: 0;
    font-size: 48px;
    margin-bottom: 0;
}

.main-section {
    margin-top: 160px;
}

.calendar-columns {
    display: flex;
    justify-content: space-evenly;
    gap: 24px;
    margin-bottom: 24px;
}

.calendar-column,
.blog-column {
    width: calc(100%/3);
}

.calendar-column img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.blog-column {
    position: relative; /* To position the image within its parent */
    overflow: hidden; /* Hide any overflow from the zoomed image */
}

.blog-column img {
    width: 100%; /* Make images responsive */
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease; /* Smooth transition for the transform property */
}

.blog-column:hover img {
    transform: scale(1.1); /* Zoom in by 10% */
}



.calendar-column h3 {
    font-size: 32px;
}

.blog-columns {
    display: flex;
    justify-content: space-evenly;
    gap: 64px;
    margin: 40px 0;
}

.blog-column a {
    text-decoration: none;
    color: rgb(50, 50, 50);
}

.blog-column h3 {
    min-height: 47px;
}

.home-contact-background {
    background-image: url('../img/carl-spitzweg.jpg');
    background-position: center;
    background-size: cover;
    position: relative;
    margin-top: 160px;
}

.home-contact-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.home-contact {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    padding: 64px 24px;
    color: white;
}

.home-contact h2 {
    margin: 16px 0;
    font-style: italic;
    text-transform: uppercase;
    font-size: 64px;
    font-weight: normal;
}

.home-contact a {
    border: solid #cca86c;
    background-color: white;
    color: #cca86c;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    padding: 16px 24px;
}

.home-contact a:hover {
    background-color: rgb(230, 230, 230);
}

footer {
    display: flex;
    align-items: center;
    padding: 0 24px;
    background-color: #cca86c;
    margin-top: auto;
}

footer div {
    width: calc(100%/3);
}

.copyright,
.e-mail {
    color: white;
}

.e-mail {
    text-align: center;
}

.socials {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.socials a {
    text-decoration: none;
    color: white;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.socials a::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.5s ease;
    z-index: 0;
}

.socials a i {
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
}

.socials a:hover::before {
    transform: scale(0.8);
}

.socials a:hover i {
    color: #cca86c;
}



/* Stránka produkty */

.product-card {
    display: flex;
    flex-direction: column;
    width: calc(100%/3);
    text-align: center;
    margin: 24px 0;
    padding-bottom: 16px;
    text-decoration: none;
    color: rgb(50, 50, 50);
    transition: 0.5s;
}

.product-card:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.product-name {
    margin-top: 20px;
    font-weight: bold;
    font-size: 16px;
    font-style: italic;
}

.product-price {
    font-weight: bold;
    font-size: 20px;
    margin: 0;
}

.delivery-price {
    margin: 0;
}

/* Stránka kalendář */

.calendar-block {
    display: flex;
    justify-content: space-evenly;
    gap: 24px;
    margin: 80px 0;
}

.calendar-photo,
.calendar-info {
    width: calc(100%/2);
}

.calendar-info a {
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: 5px 5px 5px #000;
}

.calendar-info a:hover {
    box-shadow: 10px 10px 10px #000;
}

.calendar-info h3 {
    font-size: 14px;
}

.calendar-info ul li {
    font-size: 12px;
}

.calendar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calendar-photos {
    width: calc(100%/3);
}

.calendar-photos img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.calendar-info .overal-price {
    margin-bottom: 32px;
}

.delivery-time {
    font-weight: bold;
    margin-top: 32px;
}

/* Stránka blog */

.blog-welcome-background {
    background-image: url('../img/benes.jpg');
    background-position: 50% 35%;
    background-size: cover;
    position: relative;
}

.blog-welcome-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.blog-welcome h2 {
    margin: 16px 0;
    font-style: italic;
    text-transform: uppercase;
    font-size: 56px;
    font-weight: normal;
}

/* Formulář objednávky */

#order-form,
#additional-inputs {
    display: flex;
    flex-direction: column;
}

#order-form {
    padding: 0 16px;
    padding-bottom: 32px;
}

#order-form .button {
    margin-top: 16px;
}

#additional-inputs {
    padding-top: 12px;
    border-top: 1px solid #8e754a;
}

#form-header-background {
    background-image: url('../img/knihovna.jpg');
    background-position: center;
    background-size: cover;
    position: relative;
    margin-top: 0;
}

#form-header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#form-header {
    position: relative;
    z-index: 2;
    margin: auto;
    padding: 40px 16px;
    color: white;
}

#form-text {
    padding: 0 16px;
}

.form-input {
    height: 40px;
}

.form-text-area {
    resize: none;
}

.form-input,
.form-text-area {
    margin-bottom: 16px;
    border-color: rgb(50, 50, 50);
    border-radius: 5px;
    border-width: 1px;
    background-color: whitesmoke;
    font-size: 16px;
    padding: 8px;
}

#order-form label span {
    color: red;
}

/* Formulář kontakt */

#contact-page {
    display: flex;
    gap: 80px;
}

#contact-form-container {
    width: 70%;
    display: flex;
    flex-direction: column;

}

#contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

#contact-info {
    width: 30%;
    display: flex;
    flex-direction: column;
}

#contact-info span {
    margin-bottom: 40px;
}

#contact-socials {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

#contact-socials a {
    text-decoration: none;
    color: rgb(50, 50, 50);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

#contact-socials a::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(50, 50, 50);
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.5s ease;
    z-index: 0;
}

#contact-socials a i {
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
}

#contact-socials a:hover::before {
    transform: scale(0.8);
}

#contact-socials a:hover i {
    color: white;
}

#contact-form label span {
    color: red;
}


/* O nás */

.about-us-row,
.about-us-row-rev {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    align-items: center;
}

.about-us-row img,
.about-us-row-rev img {
    width: 50%;
    height: 600px;
    object-fit: cover;
}

.about-us-row-rev {
    flex-direction: row-reverse;
}

.about-us-text {
    width: 50%;
}

.about-us-text h2,
#about-us-contact h2 {
    font-size: 40px;
}

#about-us-contact {
    text-align: center;
}

#about-us-contact div {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}


/* Base styles (as provided) */

/* Responsive adjustments */
@media (max-width: 768px) {

    main {
        width: 100%;
    }

    #big-screen-navigation {
        display: none;
    }
    
    #small-screen-navigation {
        border-bottom: solid rgb(50, 50, 50);
        border-width: 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }

    nav a {
        width: 25%;
        margin: 8px 0;
    }

    .calendar-columns, .blog-columns {
        flex-direction: column;
        align-items: center;
    }

    .calendar-column, .blog-column {
        width: 100%; /* Full width on smaller screens */
        margin-bottom: 24px;
    }

    .home-news h2 {
        font-size: 36px; /* Smaller font size */
    }

    .paragraph-on-background {
        font-size: 16px;
    }

    .button {
        display: block;
        text-align: center;
        font-size: 18px;
        padding: 12px 16px;
        width: 100%;
    }

    footer {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding-top: 16px;
    }

    footer div {
        width: 100%;
    }

    .socials {
        justify-content: center;
    }

    .motto h2 {
        font-size: 32px;
    }

    .main-section {
        margin-top: 80px;
        padding: 0 16px;
    }

    .blog-columns {
        gap: 24px;
    }

    .home-contact h2 {
        font-size: 48px;
    }

    .product-card {
        width: 100%;
        margin: 0 0 24px;
        margin-top: 24px;
    }

    .calendar-block {
        flex-direction: column;
        margin: 24px 0;
    }

    .calendar-info,
    .calendar-photo,
    .calendar-photos {
        width: 100%;
    }

    .calendar-photos img {
        height: auto;
    }

    .blog-post h1 {
        font-size: 24px;
    }

    .blog-post h2 {
        font-size: 18px;
    }

    .blog-post p {
        font-size: 14px;
    }

    .about-us-row,
    .about-us-row-rev {
        flex-direction: column;
    }

    .about-us-row img,
    .about-us-row-rev img {
        width: 100%;
        height: auto;
    }

    .about-us-text {
        width: 100%;
    }

    #about-us-contact div {
        flex-direction: column;
    }

    #contact-page {
        flex-direction: column-reverse;
    }

    #contact-form-container,
    #contact-info {
        width: 100%;
    }

    #contact-info {
        text-align: center;
    }

    #contact-socials {
        justify-content: center;
    }


}

@media (max-width: 480px) {
    .home-news h2 {
        font-size: 28px;
    }

    .button {
        font-size: 16px;
        padding: 10px 14px;
    }

    .motto p {
        font-size: 14px;
    }

    footer {
        font-size: 14px;
    }

    #form-header {
        font-size: 32px;
    }
}
