@font-face {
    font-family: "Intro Regular";
    src: url(fonts/Intro-Regular.otf);
}

@font-face {
    font-family: "Intro Bold";
    src: url(fonts/Intro-Bold.otf);
}

@font-face {
    font-family: "Intro Black";
    src: url(fonts/Intro-Black.otf)
}

html {
    scroll-behavior: smooth;
}

/* Zet een standaard margin, tekstkleur en achtergrondkleur
   door hele body */
body {
    min-height: 100%;
    margin: 0;
    background-color: #343434;
    color: white;
    font-family: 'Intro Regular';
}

header {
    width: 100%;
}

.bg-video-wrapper {
  color: #fff;
  background: #000;
  text-align: center;
  position: relative;
  height: 500px;
  overflow: hidden;
}

.bg-video-wrapper video {
    opacity: 0.8;
    background: #000;
    position: fixed;
    height: 500px;
    width: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    filter: blur(10px);
    transition: 0.5s;
}

/* Aparte CSS regel voor de text omdat
   de tekst wel mee moet scrollen */
.hero-text {
    mix-blend-mode: exclusion;
    position: relative;
    display: inline-block;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: white;
    font-family: "Intro Black";
    filter: drop-shadow(5px 5px 0px black);
    z-index: 1;
    transition: 0.5s;
}

.hero-text:hover {
    scale: 1.10;
    transition: ease-out 3.5s;
    letter-spacing: 12px;
}

.bg-video-wrapper:has(.hero-text:hover) video {
    opacity: 0.2;
    filter: blur(50px);
    transition: ease-out 1s;
}

.hero-text h1 {
    font-size: 500%;
}

.hero-text h1.smallHeader {
    font-size: 250%;
}

h2 {
    font-size: 500%;
    color: white;
    font-family: "Intro Bold";
    text-align: center;
}

/* Regels voor de navbar, z-index toegevoegd
   om er voor te zorgen dat het altijd boven alles ligt */
.navBar {
    overflow: hidden;
    background-color: #242424;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    filter: drop-shadow(0px 0px 5px #000);
    font-size: 16px;
  }

.navBar a {
    color: lightgrey;
    text-decoration: none;
    display: flex;
    padding: 24px 32px;
    border-radius: 40px;
    transition: 0.2s ease;
}

.navBar a:hover {
    background: lightgray;
    color: #242424;
    padding: 24px 64px;
    transition: 0.5s ease;
    border-radius: 8px;
    font-size: 24px;
    padding: 20px 64px;
}

/* Indelen van de navbar items met gelijke ruimte
   tussen elkaar */
.navBar ul {
    display: flex;
    justify-content: space-evenly;
    margin: 0 16%;
}

/* De navbar items verdelen door de tabel */
.navBar ul li {
    text-align: center;
    vertical-align: middle;
    font-family: "Intro Black";
}

.navBar ul li:nth-child(1) a:hover {
    background-color: #3fc7f1;
}

.navBar ul li:nth-child(2) a:hover {
    background-color: #1faa9e;
}

.navBar ul li:nth-child(3) a:hover {
    background-color: #f15a44;
}

.navBar ul li:nth-child(4) a:hover {
    background-color: #fcb247;
}

#B302 {
    font-family: "Intro Black";
}

.navBar img {
    display: none;
}

.content-container {
    width: 100%;
    z-index: 1;
    position: absolute;
    background-color: #343434;
}

main {
    text-align: center;
}

section {
    width: 80%;
    margin: 0 auto;
}

@media (max-width: 600px), (orientation: portrait) {
    .navBar ul {
        display: none;
    }

    .navBar img {
        display: initial;
        height: 48px;
        aspect-ratio: 1 / 1;
        margin: 6.5px;
    }

    .hero-text h1 {
        font-size: 250%;
    }

    .hero-text h1.smallHeader {
        font-size: 125%;
    }
}

/* Margin voor de headers van de aparte secties */
.sectionHeader {
    margin: 32px auto;
}

section h3 {
    margin: 6px;
    font-size: 32px;
}

section h3 a {
    color: white;
    transition: 0.2s;
}

section h3 a:hover{
    color: lightgray;
    transition: 0.2s;
}

/* Gridsysteem voor Portfolio sectie */
#Portfolio .container {
    display: grid;
    justify-content: center;
    text-align: center;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 32px;
}

#Portfolio .container .card {
    background-color: white;
    border-radius: 2vw;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    overflow: hidden;
}

/* Zet overlay image met Datapuntnummer op 0% bij eerste indruk */
#Portfolio .container .card img {
    opacity: 0%;
    width: 100%;
    height: 100% ;
    object-fit: cover;
    overflow: hidden;
    transition: 0.5s;
}

/* Laat de overlay met Datapuntnummer verschijnen bij hover */
#Portfolio .container .card a:hover img {
    opacity: 70%;
    transition: 0.5s;
}

/* Zet de cards op het gridsysteem en geeft een achtergrond
   voor het bijhorende Datapunt */
#Portfolio .container .card:nth-child(1) {
    grid-column: 1 / span 4;
    background-image: url(../images/datapunten_backgrounds//1A_Background.jpg);
    background-size: cover;
    z-index: 0;
}

#Portfolio .container .card:nth-child(2) {
    grid-column: 5 / span 4;
    background-image: url(../images/datapunten_backgrounds//1D_Background.jpg);
    background-size: cover;
    z-index: 0;
}

#Portfolio .container .card:nth-child(3) {
    grid-column: 9 / span 4;
    background-image: url(../images/datapunten_backgrounds//1E_Background.jpg);
    background-size: cover;
    z-index: 0;
}

/* Laat de cards groter worden bij hover */
#Portfolio .container .card:hover {
    transform: scale(1.05);
    filter: drop-shadow(5px 5px 5px #000);
    transition: 1.5s;
}

#Portfolio .container .card {
    transition: 0.5s;
}

/* Textdecoratie voor de alt text van de images in het geval dat
   de overlay images niet laden */
#Portfolio .container .card a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'FranklinCondensed';
    font-size: 250px;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
}

#Portfolio h3 {
    margin: 16px;
}

/* Gridsysteem voor About section */
#About .container {
    display: grid;
    justify-content: center;
    text-align: center;
    grid-template-columns: repeat(16, 1fr);
    grid-gap: 32px;
    align-items: center;
}

/* Houdt portret image binnen het gemaakte grid en
   rondt de hoeken af om het een circel te maken */
#About .container img {
    width: 100%;
    border-radius: 100%;
}

#About .container .card:nth-child(1) {
    grid-column: 2 / span 4;
}

#About .container .card:nth-child(2) {
    grid-column: 6 / span 10;
}

#About p {
    text-align: left;
    font-size: 20px;
    margin: 16px;
    line-height: 24px;
}

/* Portfolio Pagina */

/* Zet een gridsysteem op elke section met een Cursus class.
   Hierdoor hoef ik deze regels maar een keer te definieren
   en werken ze voor elke Cursus section */
.Cursus .container {
    margin-bottom: 32px ;
    display: grid;
    justify-content: center;
    text-align: center;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
    align-items: center;
}

.Cursus .container .card {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: rgb(38, 38, 38);
    align-items: center;
    border-radius: 20px;
}

/* Zet de achtergrondkleur voor de downloadknop */
.Cursus .container .card a{
    color: white;
    background-color: rgb(0, 0, 0);
    padding: 12px;
    border-radius: 10px;
    transition: 0.2s;
}

.Cursus .container .card a:hover{
    color: rgb(172, 172, 172);
    transform: scale(1.05);
    transition: 0.2s;
}


/* Veranderd de tekstkleur van de downloadknop */
.Cursus a {
    text-decoration: none;
    color: white;
}

#grayedOut {
    filter: opacity(0.33);
}

#grayedOut p{
    color: white;
    background-color: rgb(0, 0, 0);
    padding: 12px;
    border-radius: 10px;
    margin: 0;
}

/* Movie Page */

#moviesComplete {
    display: flex;
}

/* Movie grid */
.movieRow {
    margin-bottom: 32px ;
    display: grid;
    justify-content: center;
    text-align: center;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 16px;
    align-items: center;
}

.movieRow .poster {
    filter: drop-shadow(3px 3px 0px #272727);
    width: 100%;
    aspect-ratio: 2 / 3;
    transition: 0.5s;
}

/* Desaturate posters on hover, selected poster is
excluded in later rule */
.movieRow:has(.poster:hover) .poster{
    filter: drop-shadow(0px 0px 0px #000000);
    transition: 0.5s ease;
}

/* Prevent desaturating selected poster when hovering */
.movieRow:has(.poster:hover) .poster:hover {
    transform: scale(1.05);
    filter: drop-shadow(6px 6px 0px #000000)
            blur(0px)
            grayscale(0%)
            opacity(100%);
    transition: 0.5s;
} 

.movieRow .poster img {
    object-fit: fill;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    transition: 0.5s;
}

p {
    margin: 32px;
}

/* Letterboxd Embed inline-style Overrides */

/* Sets up grid system to align posters
horizontally */
#letterboxd-embed-tc {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    width: 1000px !important;
    margin: 0 auto !important;
}


/* Removes the dividers normally visible
in the default vertical sorting */
#letterboxd-embed-tc .letterboxd-embed-tc-divider{
    display: none !important;
}

#letterboxd-embed-tc .letterboxd-embed-tc-footer{
    display: none !important;
}

.letterboxd-embed-tc-year {
    color: rgb(144, 144, 144) !important;
}

.letterboxd-embed-tc-content {
    flex-direction: column !important;
    text-align: center !important;
}
 
.letterboxd-embed-tc-title {
    text-align: center !important;
}

.letterboxd-embed-tc-date {
    color: #a6a6a6 !important;
}

.letterboxd-embed-tc-rating {
    color: #10c400 !important;
}

/* Hide the review if present */
.letterboxd-embed-tc-review {
    display: none  !important;
}

.letterboxd-embed-tc-poster a img{
    transition: 0.2s;
}

.letterboxd-embed-tc-poster a:hover img {
    filter: brightness(75%);
    transform: scale(1.05);
    transition: 0.2s;
}

/* Aligns the "more on Letterboxd" link
alolong the bottom of the posters using the grid system */
.letterboxd-embed-tc-more{
    margin: 16px;
    grid-column: 1 / span 5;
}

.letterboxd-embed-tc-more {
  text-align: center !important;
  margin-top: 16px;
}

.letterboxd-embed-tc-more a {
    color: white;
    transition: 0.2s;
}

.letterboxd-embed-tc-more a:hover{
    color: lightgray;
    transition: 0.2s;
}

/* Movie Playing Page */

video {
    background-color: black;
    filter: drop-shadow(5px 5px 0px #202020);
}

#movieInfo {
    width: 1000px;
    text-align: left;
    margin-top: 32px;
    font-size: 24px;
    line-height: 32px;
}

b {
    font-weight: bold;
}

#synopsis {
    margin-top: 32px;
}

#movieInfo p {
    margin: 16px;
}

#videoPlaceholder{
    margin: 256px 0;
    font-size: 300%;
}

#ScratchEmbed {
    margin: 64px;
}

/* Footer styles */

footer {
    display: flex;
    background: #191919;
    width: 100%;
    margin-top: 64px;
    padding: 32px 0px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

footer .Row{
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

footer a {
    color: white;
    margin: 0 16px;
    transition: 0.2s;
}

footer a:hover {
    filter: brightness(0.75);
    margin: 0 16px;
}