* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #504040;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth; /* for smooth scrolling */
}

.video-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo {
    z-index: 1;
    width: 400px;
    height: 400px;
    position: relative;
}

.tekst {
    margin-top: 30px;
    z-index: 1;
    width: 400px;
    height: 225px;
    position: relative;
}

h1 {
    color: #DA1C5C;
    z-index: 1;
    font-size: 50px;
    padding-top: 60px;
    border-radius: 20px;
    text-align: center;
}

.above {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 100px;
    z-index: 1;
}

nav {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    flex-wrap: wrap;
    top: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    z-index: 10;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, font-size 0.3s;
}

nav a:hover {
    color: #DA1C5C;
    font-size: 20px;
    transition: 1s;
}

.info {
    color: #DA1C5C;
    z-index: 1;
    position: relative;
    padding: 50px;
    text-align: center;
    font-family: 'Franklin Gothic Medium', Arial, Helvetica, sans-serif;
    margin-top: 30px;
    margin-bottom: 100px;
}

main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
    width: 95%;
    background-color: black;
    opacity: 0.8;
    gap: 100px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 20px;
}

.raspored {
    grid-column: span 4;
    margin-top: 30px;
}

.vanjski, .podij, .skriven1 {
    grid-column: span 2;
    padding: 15px;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    font-size: 25px;
}

.skriven2 {
    display: none;
    padding: 15px;
    border-radius: 8px;
    color: #ffffff;
    text-align: center;
    font-size: 25px;
}

.koncert {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #DA1C5C;
    color: white;
    text-align: center;
}

p {
    color: #ffffff;
}

h2 {
    color: #DA1C5C;
}

img {
    width: 350px;
    height: 350px;
}

.bendovi {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 10px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    width: 95%;
}

.bend {
    text-align: center;
    padding-bottom: 20px;
    flex: 0 0 auto; /* Prevent flex items from shrinking */
}

.bend h3 {
    color: #DA1C5C;
    padding: 20px;
}

b {
    color: #DA1C5C;
}

.ulaznice {
    background-color: rgba(255, 255, 255, 0.1);
    border: 3px solid #DA1C5C;
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ulaznice p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.ulaznice h2 a {
    display: inline-block;
    background-color: #DA1C5C;
    color: white;
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.ulaznice h2 a:hover {
    background-color: #b8174d;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 50%;
}

article h2 {
    padding-bottom: 40px;
    font-size: 2rem;
}

article p {
    font-size: 1.2rem;
    word-spacing: 3px;
}

.lokacija {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.faq {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 100px;
    margin: 0 auto;
    width: 50%;
    gap: 10px;
}

.faq h2 {
    text-align: center;
    width: 700px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border: 1px solid #DA1C5C;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
}

.faq h2:hover {
    color: #007BFF;
}

.faq p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    margin-left: 20px;
    margin-bottom: 0;
    text-align: center;
}

.faq p.active {
    max-height: 500px;
    margin-bottom: 20px;
}

/* Media Queries */

@media only screen and (max-width: 768px) and (max-height: 1024px) {
    .logo {
        position: relative;
        width: 400px;
        height: 400px;
    }
    
    video {
        display: none;
    }
    main {
        width: 100%;
    }
    .grid-container {
        display: block;
    }
    .koncert {
        margin-top: 20px;
    }
    nav a {
        text-align: center;
        
    }
    .lokacija {
        flex-direction: column;
    }
    .skriven1 {
        display: none;
    }
    .skriven2 {
        display: block;
    }
    article {
        width: 90%;
    }
    article h2 {
        margin-top: 30px;
    }
    .faq {
        width: 100%;
        padding-bottom: 50px;
    }
    .faq h2 {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
    }
    .faq p {
        margin-left: 10px;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 360px) {
    nav{
        position: relative;
    }
    nav a {
        width: 100%;
        text-align: center;
        width: 100%;
        text-align: center;
    }
    .logo{
        position: relative;
        width: 80%;
        height: 80%;

    }
    .tekst{
        height: 70%;
        width: 80%;
    }
    .bendovi{
        width: 100%;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scroll-padding: 20px; /* optional for padding */
        touch-action: pan-x;
    }
    .bend img{
        width: 300px;
        height: 300px;
    }
    .bend{
        scroll-snap-align: start;
        flex: 0 0 auto;
        width: 300px;
    }
    video {
        display: none;
    }
    main {
        width: 100%;
    }
    .grid-container {
        display: block;
    }
    .faq {
        width: 90%;
        padding-bottom: 70px;
    }
    .faq h2 {
        width: 100%;
        font-size: 1.1rem;
        padding: 12px;
    }
    .faq p {
        margin-left: 15px;
        font-size: 1rem;
    }
    article{
        text-align: center;
    }
}
