body {
    background-image: url(https://images.hdqwalls.com/download/small-memory-8k-2a-1920x1080.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    overflow: auto;
}

#home {
    width: 2vw;
    height: 4vh;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
    position: fixed;
    top: 10px; 
    left: 10px; 
    z-index: 10;
}

#homeImg {
    width: 2vw;
    height: 4vh;
    color: #fff;
    display: block;
}

#home a {
    color: inherit;
    text-decoration: none;
}

#home:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin: auto;
}

#popis {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    flex: 2;
    margin-right: 20px;
    box-sizing: border-box;
    overflow: auto; 
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.box {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    text-align: center;
}

#nabidka ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#nabidka ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px;
    text-align: center;
}

#nabidka img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
}

#cenik {
    margin-bottom: 20px;
    text-align: center;
}

#cenik ul {
    list-style: none;
    padding: 0;
}

#cenik li {
    font-size: 1.25em;
    margin: 10px 0;
}

h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

p {
    margin: 10px 0;
    font-size: 1em;
    line-height: 1.5;
    text-align: justify;
}

.zoomable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zoomable:hover {
    transform: scale(1.1);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
}

#lightbox .lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
}

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #d9534f;
}

.prev, .next {
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    transition: color 0.3s ease;
    z-index: 10000;
}

@media (max-width: 1200px) {
    #home {
        width: 2vw;
        height: 3vh;
    }
    
    #homeImg {
        width: 2vw;
        height: 3vh;
    }

    #popis {
        flex: 1;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .right-column {
        flex: 1;
        margin-left: 20px;
    }

    h1 {
        font-size: 1.3em;
    }

    li {
        font-size: 1.1em;
    }

    p {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    #home {
        width: 4vw;
        height: 3vh;
    }
    
    #homeImg {
        width: 4vw;
        height: 3vh;
    }
    
    #wrapper {
        padding: 15px;
        flex-direction: column;
    }

    #popis {
        width: 100%;
        margin: 0;
    }

    .right-column {
        width: 100%;
        margin-top: 20px;
    }

    h1 {
        font-size: 1.2em;
    }

    li {
        font-size: 1em;
    }

    p {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    #home {
        width: 5vw;
        height: 3vh;
    }
    
    #homeImg {
        width: 5vw;
        height: 3vh;
    }

    #wrapper {
        padding: 6vw;
    }

    #popis {
        width: 100%;
        padding: 8vw;
    }

    .right-column {
        width: 100%;
        margin-left: 0;
    }

    .box:last-child {
        margin-bottom: 0;
    }

    h1 {
        font-size: 1em;
    }

    li {
        font-size: 0.9em;
    }

    p {
        font-size: 0.7em;
    }

    #nabidka img {
        width: 80px; 
        height: 80px;
    }
}
