html, body {
    margin:0;
    padding:0;
    height:100%; 
 } 

.flex-container {
    display: flex;
    height:100%; 
    width:100%;
    position: absolute;
}


.navigation {
    width: 10%;
    height: auto;
    background-color: rgb(121, 99, 78);
    padding-top: 20px;
    
}

.navigation a {
    text-decoration: none;
}

.navigation-link {
    background-color: antiquewhite;
    text-decoration: none;
    border: solid #5c2c11;
    font-size: 1.5vw;
    display: flex;
    justify-content: center;
    font-display:initial;
    text-align: center;
    color: black;
    display: grid;
}

.navigation-link:hover {
    color: #9b3333;
}


.content {
    width: 90%;
    height: 100vh;
    background-image: url("background.jpg");
    display:flex;
    justify-content: center;
}

.main2 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.flex-container-pametnik-1 {
    width: 80%;
    height: 99%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

.pametnik { 
    width: 24.5%;
    height: auto;
    margin: 2px;
    max-width: 150px; 
    max-height: 150px;
    border: solid white
}

@media (max-width: 800px) {
    .flex-container {
        flex-direction: column;
    }
    .navigation {
        width: 100%;
        padding-bottom: 20px;
    }
    .content {
        padding-top: 20px;
        width: 100%;
    }
    .popup-background {
        padding-top: 20px;
        width: 100%;
    }
    .flex-container-pametnik-1 {
        flex-wrap: wrap;
    }
    .pametnik {
        width: 32.3%;
    }
}

.flex-container-1 {
    width: 400px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.flex-container-2 {
    width: 400px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Image popups */

.image-popup{
    cursor: pointer;
    transition: opacity 200ms linear;
}

.image-popup:hover{
    opacity: 0.8;
}

.popup-background{
    width: 100%;
    height: 100vh;
    background-image: url("background.jpg");
}

.popup-content{
    margin: auto;
    border: solid white;
    border-radius: var(--image-border-radius);
    width: 96%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 400ms;
}

.popup-image {
    margin: auto;
    display: block;
    width: 100%;
}

@keyframes zoom{
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.popup-close{
    position: fixed;
    top: 14px;
    right: 35px;
    color: #bbb;
    font-size: 40px;
    font-weight: bold;
    transition: all 200ms linear;
}

.popup-close:hover,
.popup-close:focus{
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}