
body {
    font-family: sans-serif;
    background: url('../img/wood.jpg') repeat;
    background-size: 300px auto;
    background-attachment: fixed;
    margin: 0;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 800px;
    margin: auto;
    gap: 2rem;
}
.card {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/wood.jpg') repeat;
    background-size: 300px auto;
    opacity: 0.8;
    z-index: 0;
    transform: scale(1.08) rotateZ(2deg);
    filter: brightness(0.95) contrast(1.1) drop-shadow(4px 6px 10px rgba(0,0,0,0.2));
}
.card:nth-child(even)::before {
    background-position-y: 60px;
    transform: scale(1.08) rotateZ(-2.5deg);
}
.card img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}
.card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.015);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
}


.overlay-verh {
    position: fixed;
    top: 0;
    left: 0;
    width: 20vw;
    height: auto;
    max-height: 30vh;
    z-index: 1;
    pointer-events: none;
}
.overlay-niz {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 20vw;
    height: auto;
    max-height: 30vh;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .overlay-verh {
        display: none;
    }
    .overlay-niz {
        width: 50vw;
        max-height: none;
    }
}


.overlay-verh {
    position: fixed;
    top: 0;
    left: 0;
    width: 20vw;
    height: auto;
    max-height: 30vh;
    z-index: 1;
    pointer-events: none;
}
.overlay-niz {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 20vw;
    height: auto;
    max-height: 30vh;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .overlay-verh {
        display: none;
    }
    .overlay-niz {
        width: 50vw;
        max-height: none;
    }
}

.container {
    margin-top: 8vh;
    position: relative;
    z-index: 5;
}
.overlay-verh, .overlay-niz {
    z-index: 1;
}


@media (min-width: 769px) {
    .container {
        margin-top: 14vh !important;
    }
}


@media (min-width: 768px) {
  .df-book-container {
    margin-top: 6vh !important;
  }
}




.back-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #48aaff;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}


.footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.footer-logo img {
    max-width: 400px;
    width: 100%;
    opacity: 0.75;
    pointer-events: none;
}
@media (max-width: 768px) {
    .footer-logo {
        display: none;
    }
}
