/* Import fonts from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Patua+One&family=Schoolbell&family=Poppins&display=swap");

/*** SUMMARY ***

0) Variables
1) Fonts, text en algemene zaken
2) Positionering, Size & Layout
3) Kleuren
4) Afbeeldingen
5) Responsive design
6) Animation

*** END SUMMARY ***/

/* 0) Variables */

:root {
    --tijdlijn-color: #004065;

    /* --content-background: linear-gradient(to top right, #ff7b00, #fe912b);
  --content-background: linear-gradient(to top right, #ff5722, #fe912b); */

    --content-background: #ffffff;
    --text-color: #0e0e0e;
    --footer-color: #0e0e0e;

    --footer-background: #004065;
    --page-background: #ffffff;
    --accent-color: #532918;
}

/* 1) Fonts, text en algemene zaken */

html,
body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    width: 100%;
    min-height: 100%;
    background: var(--page-background);
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Patua One", sans-serif;
}

/* Mooie links */
a {
    color: royalblue;
    text-decoration: none;
}

.vak a,
header#top a {
    color: inherit;
    font-weight: bolder;
}

.vak a:hover,
header#top a:hover {
    text-decoration: underline;
}

.vak-title {
    font-size: 33px;
}

.vak-text {
    font-size: 22px;
}

.filmlink:before {
    content: "▶️ ";
}

.button {
    border-radius: 5px;
    padding: 10px 14px;
    margin-top: 30px;
    background-color: #004065;
    font-size: 23px;
    color: white;
    border: 2px solid #002f4b;
    cursor: pointer;
    transition: background-color 80ms;
}

.button:hover {
    background-color: #005485;
}

/* 2) Positionering, Size & Layout */

html {
    box-sizing: border-box;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}

.wrapper {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: y;
    height: 100vh;
    overflow-y: auto;
    background: var(--content-background);
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: var(--text-color);
}

/* Schaal en plaats de plaatjes */

.vak-img,
.vak-img img,
.vak-video,
.vak-video video {
    width: 100%;
    height: 60vh;
    object-fit: contain;
    border-radius: 10px;
}

/* 2.1) Tijdlijn */

.vak article,
.pageheader-inner,
.menubar-inner,
.lesstof {
    position: relative;
    max-width: 1300px; /* 1600 */
    margin: 0 auto;
    width: 100%;
}

.tijdlijn-wrapper {
    /* min-height: 90vh; */
    align-items: center;
    margin-bottom: 20px;
}

.tijdlijn-buttons {
    width: 100%;
    left: 0;
    right: 0;
    pointer-events: none;
    position: absolute;
    bottom: 75px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
}

.tijdlijn-buttons button {
    height: 140px;
    width: 60px;
    border-radius: 0;
    color: var(--text-color);
    pointer-events: all;
    font-size: 30px;
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.tijdlijn-buttons button:hover {
    opacity: 60%;
}

.tijdlijn {
    display: flex;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}
.tijdlijn::-webkit-scrollbar {
    display: none;
}

.tijdlijn-item {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    list-style-position: inside;
    position: relative;
    list-style: none;
    overflow: hidden;
    scroll-snap-align: start;
}

.tijdlijn-item .jaartal {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 3px;
    color: white;
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1;
    z-index: 10;
    cursor: pointer;
}

.tijdlijn-item.selected .jaartal {
    cursor: default;
}

.tijdlijn-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Zoom effect voor items */
.tijdlijn-item img {
    transition: transform 0.2s;
    cursor: pointer;
}
.tijdlijn-item:hover img,
.tijdlijn-item.selected img {
    transform: scale(1.2);
}
.tijdlijn-item.selected img {
    cursor: initial;
}

/* Items op de tijdlijn */
.vak {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 50%;
    gap: 10px;
    flex-grow: 1;
    margin: 20px;
}
.vak article,
.pageheader {
    padding-inline-start: 40px;
}

/* Menu bar */

.menu {
    /* float: right; */
    border: none;
    border-radius: 0;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
    background: #f6b241;
    color: var(--footer-background);
}

.menubar {
    padding: 0.5px 16px;
    background: var(--footer-background);
    color: white;
}

.menubar-inner span {
    margin-right: 10px;
}

.menubar-inner a {
    color: white;
    margin-left: 30px;
    font-size: 18px;
    font-family: sans-serif;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
.sticky + .content {
    padding-top: 75px;
}

/* 2.3) Header en footer */
.pagefooter {
    width: 100%;
    text-align: center;
    padding-top: 0;
    padding-bottom: 6px;
    padding-top: 0;
    color: var(--footer-color);
}
.pagefooter a {
    color: var(--footer-color);
    text-decoration: underline;
}

/* 4) Afbeeldingen */

.pijltje {
    left: 37%;
    bottom: -7%;
    position: absolute;
    max-width: 10%;
    transform: rotate(11deg);
}

.icon {
    height: 27px;
}

.logos-wrapper {
    text-align: center;
}

.logo {
    display: inline;
    margin: 20px;
    max-width: 30%;
}

/* 5) Responsive design */

@media screen and (min-width: 900px) {
    .vak {
        display: grid;
        grid-template-columns: 50% 50%;
        margin: 0 90px;
        align-items: center;
    }

    .vak article {
        max-height: 60vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .tijdlijn {
        margin: 0 90px;
    }
}

@media screen and (max-width: 900px) {
    /* Kleiner marge op pageheader */
    .pageheader {
        padding: 30px;
    }

    /* Plaatje onderaan inplaatsvan bovenaan op kleine schermen */
    .vak {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 1300px) {
    .overview h1 {
        margin-left: 15px;
    }
}

@media screen and (max-width: 550px) {
    .pijltje {
        display: none;
    }

    .post-it {
        display: none;
    }
}

/* 6) Animation */

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes roll {
    from {
        -webkit-transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-moz-keyframes roll {
    from {
        -moz-transform: rotate(0deg);
    }
    to {
        -moz-transform: rotate(360deg);
    }
}

@keyframes roll {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Cool bg effect in header */
.furie-bg {
    width: 100%;
    height: 110%;
    position: absolute;
    top: 0;
    left: 0;
    background: url("../images/ui/furie.png");
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transform: scale(1);
    z-index: 1;
    transition: filter 1s ease-in;
}

.pageheader-inner {
    z-index: 2;
}

.pageheader {
    padding-top: 55px;
    overflow: hidden;
    position: relative;
}
