body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    background-color: #222;
    color: white;
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

nav {
    background: black;
    padding: 15px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 20px;
}

.container {
    margin: 50px auto;
    max-width: 90%;
    text-align: center;
}

.title {
    font-size: 50px;
    transition: transform 0.5s;
}

.box {
    width: 100%;
    max-width: 1200px;
    background-color: rgb(68, 68, 68);
    display: flex;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Razmak između elemenata */
    padding: 20px;
    box-sizing: border-box;
}

.tekst p {
    font-size: 20px;
}

.tekst {
    padding-right: 10px;
    padding-left: 10px;
    max-width: 600px;
    text-align: left;
}

.title:hover {
    transform: scale(1.2);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery img {
    width: 400px;
    max-width: 100%;
    height: 280px;
    margin: 15px;
    transition: transform 0.5s;
    border-radius: 10px;
    object-fit: cover;
}

.gallery img:hover {
    transform: rotateY(180deg) scale(1.1);
}

.card {
    width: 400px;
    height: 200px;
    background: white;
    color: black;
    margin: 50px auto;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
}

.card:hover {
    transform: rotateY(180deg);
}

footer {
    height: 50px;
    background-color: black;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; 
}

iframe {
    width: 100%;
    max-width: 560px; 
    height: auto;
    aspect-ratio: 16 / 9; /* Omjer širine i visine videa */
}

/* Responzivni dizajn za manje ekrane */
@media (max-width: 1200px) {
    .box {
        height: auto;
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 30px auto;
    }
    
    .title {
        font-size: 40px;
    }
    
    .box {
        flex-direction: column;
        height: auto;
    }

    .tekst {
        text-align: center;
        max-width: 100%;
    }
    
    nav a {
        margin: 0 10px;
        font-size: 18px;
    }
    
    .gallery img {
        width: 80%;
        height: auto;
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 20px auto;
        max-width: 95%;
    }
    
    .title {
        font-size: 32px;
    }
    
    nav {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }
    
    nav a {
        margin: 5px 0;
        font-size: 16px;
    }
    
    .tekst p {
        font-size: 16px;
    }
    
    .box {
        padding: 15px;
    }
    
    .card {
        width: 200px;
        height: 100px;
    }
    
    .gallery img {
        margin: 10px;
    }
}