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


h2 {
    color: #DBDCDE;
    padding-left: 8px;
}

body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
}

/* Nav bar */
header {
    position: absolute;
    z-index: 999;
}

nav {
    display: flex;
    flex-direction: row;
    gap: 3rem;

    padding: 2rem;
    
}

ul {
    display: flex;
    align-items: center;
    gap: 2rem;

    /* padding-top: 2rem;
    padding-left: 2rem; */
}

li {
    list-style: none;
}

li a {
    display: inline-block; 
    padding: 0.25rem 0; 

    font-family: "Gluten", cursive;
    text-decoration: none;
    color: #DBDCDE;
    font-weight: 500;

    transition: all 0.3s ease;
}

li a:hover {
    border-bottom: 2px solid #DBDCDE;
}


.logo {
    width: 5rem;
    filter: brightness(0) invert(1);filter: brightness(0) invert(1);
}

.logo:hover {
    cursor: pointer;
}


.backgroundImage {
    position: fixed;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    object-fit: cover;

    object-position: center top;
}

.imp {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    opacity: 0;
    background-color: #202020;
    transition: opacity .25s ease;
}

.holder {
    margin-top: 500px; 
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.movies {
    width: 100%;
    height: 333px;

    display: flex;
    
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.movie {
    width: 250px;
    /* height: 100%; */
    
    position: relative;
    
    margin: .5rem;

    flex: 0 0 auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden; 
}

.movieImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.3s ease; /* smooth zoom */
}

.movie:hover .movieImg {
    transform: scale(1.1); /* zoom ind */
}

.movie:hover {
    outline: 3px solid #DBDCDE;   /* kant udenpå */
    outline-offset: 4px;          /* afstand mellem billede og kant */
    border-radius: 1rem;
}



.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0); /* transparent by default */
    border-radius: 1rem;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.overlay:hover {
    background-color: rgba(20, 20, 20, 0.5); /* darken on hover */
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .movie {
        width: 150px;
    }
    .movies {
        height: 180px;
    }
}
