* {
    box-sizing: border-box;
}

body {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: rgb(25, 1, 25);
    height: 50px;
    overflow: visible;
    margin: 0px 0px 50px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

header img  {
    height: 50px; 
    width: auto;
    margin: 0px 5px;
}

#H-catagorien {
    height: 50px;
    width: auto;
    margin: 0px 5px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.H-catagorie {
    padding: 0px;
    margin-right: 15%;
    height: inherit;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

h6 {
    color: white;
    font-size: medium;
    margin: 0;
}

#catagorien {
    /* background-color: blue; */
    height: 250px;
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.catagorie {
    position: relative;
    height: 100%;
    width: 20%;
    overflow: hidden;
    border-radius: 5%;
}

.catagorie a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5%;
    overflow: hidden;
}

.catagorie img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5%;
    background-color: rgba(0,0,0,0.5);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 1;
    visibility: visible;
}

.overlay:hover {
    background-color: rgb(0,0,0,0.1);
}

.catagorie:hover{
    transition: transform 0.15  s ease-in-out;
    transform: scale(1.1);
    border-radius: 5%;
    overflow: hidden;   
}

.catagorie:hover img{
    max-width: 260;
    border-radius: 5%;
}

.catagorie:hover a {
    border-radius: 5%;
}

#knopje {
    /* background-color: rgb(25, 1, 25); */
    box-sizing: border-box;
    height: 30px;
    width: inherit;
    margin-bottom: 20px;
    margin-right: 20px;
    display: flex;
    justify-content: end;
}

#knopje h1{
    background-color: rgb(25, 1, 25);
    border-width: 5px;
    border-color: white ;
    color: white;
    font-size: small;
    border-radius: 10%;
    margin-bottom: 20px;
}


#films {
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: Arial, sans-serif;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

#films img{
    height: 300px;
    width: auto;
    max-width: 100%;
    border-radius: 10%;
    object-fit: cover;
}

.film {
    flex: 0 1 18%;
    min-width: 180px;
    text-align: center;
}

.film:hover{
    transition: transform 0.3s ease-in-out;
    opacity: 0.8;
    transform: scale(1.2);
}

#films-k {
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: Arial, sans-serif;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}
    
#films-k img{
    height: 300px;
    width: auto;
    max-width: 100%;
    border-radius: 5%;
    object-fit: cover;
}

.film-k {
    flex: 0 1 18%;
    min-width: 180px;
    text-align: center;
}

.film-k:hover{
    transition: transform 0.3s ease-in-out;
    opacity: 0.8;
    transform: scale(1.2), rotate(360deg);
}

#films-f {
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: Arial, sans-serif;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

#films-f img{
    height: 300px;
    width: auto;
    max-width: 100%;
    border-radius: 5%;
    object-fit: cover;
}

.film-f {
    flex: 0 1 18%;
    min-width: 180px;
    text-align: center;
}

.film-f:hover{
    transition: transform 0.3s ease-in-out;
    opacity: 0.8;
    transform: scale(1.2), rotate(360deg);
}

#films-a {
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: Arial, sans-serif;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

#films-a img{
    height: 300px;
    width: auto;
    max-width: 100%;
    border-radius: 5%;
    object-fit: cover;
}

.film-a {
    flex: 0 1 18%;
    min-width: 180px;
    text-align: center;
}

.film-a:hover{
    transition: transform 0.3s ease-in-out;
    opacity: 0.8;
    transform: scale(1.2), rotate(360deg);
}



#sugesties {
    height: 90%;
    width: 100%;
    display: flex;
    flex-direction: row;
    font-family: Arial, sans-serif;
    justify-content: space-evenly;
    flex-wrap: nowrap;
    overflow: hidden;
}

#sugesties img{
    margin: 20px;
    height: 300px;
    border-radius: 5%;
    max-width: 200px;
    object-fit: cover;
}

#sugesties .film:hover {
    transition: transform 0.1  ease;
    opacity: 0.8;
    transform: scale(1.1);
}


@media (max-width: 768px) {
    #catagorien {
        position: absolute;
        visibility: hidden;
    }

    .overlay {
        position: absolute;
        visibility: hidden;
    }

    h6 {
        font-size: medium;
    }

    #knopje {
        justify-content: center;
    }

    #sugesties {
        flex-wrap: wrap;
        width: 100%;
    }

    #sugesties img {
        height: 250px;
        max-width: 180px;
        margin: 10px;
    }

    h1 {
        font-size: 35px;
        padding: 15px;
    }

    h2 {
        font-size: 18px;
    }

    #films, #films-k, #films-f, #films-a, #sugesties {
        width: 100%;
    }

    #films img, #films-k img, #films-f img, #films-a img {
        height: 250px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    header {
        height: 40px;
        margin-bottom: 30px;
    }

    h6 {
        font-size: x-large;
    }

    header img {
        height: 40px;
    }

    #H-catagorien {
        gap: 10px;
        margin: 0px 3px;
    }

    .H-catagorie h6 {
        font-size: 11px;
        margin: 0;
    }

    #catagorien {
        margin-bottom: 0px;
    }

    .catagorie {
        height: 150px;
        margin-bottom: 15px;
    }

    #knopje h1 {
        font-size: 12px;
        margin-bottom: 15px;
    }

    #sugesties img {
        height: 200px;
        max-width: 140px;
        margin: 5px;
    }

    h1 {
        font-size: 25px;
        padding: 10px;
    }

    h2 {
        font-size: 16px;
    }

    .film:hover, .film-k:hover, .film-f:hover, .film-a:hover, #sugesties .film:hover {
        transform: scale(1.1); /* Less scaling on mobile */
    }

    #films img, #films-k img, #films-f img, #films-a img {
        height: 200px;
        max-width: 140px;
    }
}