@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Birthstone&family=Montserrat&display=swap');

:root {
    --primary: #001D3D;
    --secondary: #003566;
    --tertiary: #FFC300;
    --accent: #FFC300;
    --gray: #474747;
    --lightgray: #777;
    --light: #f2f2f2;
    --white: #ffffff;
    --error: #c20024;
    --success: #06df39;
    --border: #474747;
    --font-title: 'Bebas Neue', cursive;
    --font-default: 'Montserrat', sans-serif;
}

body {
    background-color: #FFF;
    color: var(--lightgray);
    font-family: var(--font-default);
    font-size: 16px;
    line-height: 23px;
    margin: 0;
}

h1,h2,h3,h4,h5,h6 {
    letter-spacing: 0.1rem;
}

h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 600;
}

h2 {
    font-family: var(--font-title);
    font-size: 2.441rem;
    font-weight: 600;
}

h3 {
    font-family: var(--font-title);
    font-size: 1.953rem;
    font-weight: 600;
}

h4 {
    font-family: var(--font-title);
    font-size: 1.563rem;
    font-weight: 600;
}

h5 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.45rem;
    color: var(--primary);
}

/* Hide element based on screen size */
@media (max-width: 767px) {
    .hide-sm {
        display: none;
    }
}

@media (max-width: 991px) {
    .hide-md {
        display: none;
    }
}

.excerpt-no-overflow {
    max-height: 255px;
    overflow: hidden;
}

.post-date {
    margin-right: 10px;
    text-align: center;
}

.post-date .month {
    display: block;
    background: var(--tertiary);
    border-radius: 0 0 2px 2px;
    color: var(--primary);
    font-size: 0.8em;
    line-height: 1.8;
    padding: 1px 10px;
    text-transform: uppercase;
}

.post-date .day {
    background: var(--primary);
    border-radius: 2px 2px 0 0;
    color: var(--tertiary);
    display: block;
    font-size: 18px;
    font-weight: 900;
    padding: 10px;
}

.post-meta > span {
    display: inline-block;
    padding-right: 8px;
}

.float-left {
    float: left;
}

.blog-header-big {
    padding-top: 10rem;
    padding-bottom: 10rem;
}
.blog-img {
    max-width: 100%;
    display: inline-block;
    margin-bottom: 1rem;
}
@media (min-width: 992px) {
    .blog-img {
        max-width: 50%;
        margin-bottom: 0;
    }
}

.deelnemers-header-big {
    padding-top: 5rem;
    padding-bottom: 10rem;
}

.header-big {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Makes top menu clickable area bigger on mobile */
@media (max-width: 991px) {
    .nav-pills a {
        display: block;
        padding: 1.4rem 0 !important;
        width: 100%;
        height: 100%;
    }
}

.img-gallery {
    max-height: 500px;
    max-width: 400px;
}

.fp-top-logo {
    width: 55%;
}
.fp-bot-logo {
    width: 100%;
}

/* Medium */
@media (min-width: 768px) {
    .fp-top-logo {
        width: 35%;
    }
    .fp-bot-logo {
        width: 55%;
    }
}

.horizontal-scroll {
    display: -webkit-inline-box; 
    flex-wrap: nowrap; 
    overflow-x: scroll;

    /* scrollbar for non-webkit browsers */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--secondary);
}
.horizontal-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background: var(--primary);
}
.horizontal-scroll::-webkit-scrollbar-track {
    backgound: var(--primary);
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    backgound: var(--primary);
    border-radius: 20px;
    border: 4px solid var(--secondary);
}

.horizontal-scroll-inner {
    display: -webkit-inline-box;
    flex-wrap: nowrap;
    overflow-x: visible;
}


/* ------------------------------------ Cards ------------------------------------ */
@media (min-width: 426px) {
    .back-mobile {
        display: none!important;
    }
}
@media (max-width: 425px) {
    .flip-front {
        transform: none!important;
    }
    .flip-back {
        display: none!important;
    }
    .backmobile {
        display: block!important;
    }
}

@media (min-width: 1130px) {
    .card-position:nth-child(3) {
        transform: translateY(130px);
    }
    .card-position:nth-child(4) {
        transform: translateY(35px);
    }
    .card-position:nth-child(5) {
        transform: translateY(100px);
    }
    .card-position:nth-child(6) {
        transform: translate3d(100px, -280px, 10px);
        margin-left: auto;
    }
}
@media (min-width: 992px) and (max-width: 1129px) {
    .card-position {
        width: 25%!important;
    }
}
/* ------------------------------------------------------------------------------- */

/* ------------------------------------ Meet the Team ------------------------------------ */
.meet-the-team-overlay {
    width:100%;
    transform: translateY(-100%);
    display: none;
    transition: flex 0.8s ease;
    top: 100%;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    padding: 1rem;
}
.meet-the-team-overlay p:last-child {
    margin: 0;
}
.meet-the-team-overlay h3 {
    margin: 0;
}
.active .meet-the-team-overlay {
    width:100%;
    transform: translateY(-100%);
    display: block;
    transition: flex 0.8s ease;
    top: 100%;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    padding: 1rem;
}

@media (max-width: 425px) {
    .gallery-wrap .item {
        flex: 1;
        width: 100%;
        background-size: cover;
        background-repeat: none;
        transition: flex 0.8s ease, filter 0.5s ease;
        position: relative;
        filter: grayscale(0);
    }
    .gallery-wrap .item-top {
        background-position: 20% 20%;
    }
    .gallery-wrap .item-center {
        background-position: center;
    }
    .gallery-wrap .item-bottom {
        background-position: 80% 80%;
    }
    .gallery-wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 60vh;
    }
    .meet-the-team-overlay .team-member-desc {
        display: none;
    }
}
@media (min-width: 426px) {
    .gallery-wrap .item {
        flex: 1;
        height: 100%;
        background-position: center;
        background-size: cover;
        background-repeat: none;
        transition: flex 0.8s ease, filter 0.5s ease;
        position: relative;
        filter: grayscale(0);
    }
    .gallery-wrap {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 60vh;
    }
}

/* Specifically made so that:
    - .active is always coloured unless you hover over another member,
    -  rest of the members are always grey unless hovered over or when they become active */
.team-page-section:hover .item {
    filter: grayscale(100%);
}
/* Manually change flex based on amount of members. Something like members / 2. Change to in-page script */
.gallery-wrap .item:hover {
    flex: 4.5;
    filter: grayscale(0);
}
.section .gallery-wrap:hover .active {
    filter: grayscale(100%);
}
.section .gallery-wrap .active:hover {
    filter: grayscale(0);
}
.section .gallery-wrap .active {
    flex: 4.5;
    filter: grayscale(0);
}

.team-slider-widget .item:hover {
    flex: 6;
    filter: grayscale(0);
}
.item:hover .meet-the-team-overlay {
    display: block;
}
/* ------------------------------------------------------------------------------------ */


.supporter-image {
    height: 30px;
    width: 160px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* ------------------------------------ pre-loading spinner ------------------------------------ */
.loading {
    position: fixed;
    margin: auto;
    width: 100%;
    height: 100%;
    background: #F2F2F2;

}
.loading .loadingWrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.loading .loadingWrapper #loading {
    margin: auto;
    height: 100px;
    width: 100px;
    border: transparent;
    border-top: 3px solid #ffcb23;
    border-radius: 50%;
    -webkit-animation: round 2s linear infinite;
    animation: round 2s linear infinite;
}
.loading .loadingWrapper h1 {
    color: #555555;
    position: relative;
    margin: auto;
    top: 50%;
}

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

@keyframes round {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@-webkit-keyframes backGround {
    0% {
        background-color: #222222;
    }
    50% {
        background-color: #555555;
    }
    75% {
        background-color: #444444;
    }
    100% {
        background-color: #111111;
    }
}
@keyframes backGround {
    0% {
        background-color: #222222;
    }
    50% {
        background-color: #555555;
    }
    75% {
        background-color: #444444;
    }
    100% {
        background-color: #111111;
    }
}

.spinner {
    margin: auto;
    height: 250px;
    width: 250px;
    border-radius: 50%;
    background-color: transparent;
    border: 5px solid;
    border-color: #001D3D;
    border-bottom: none;
    border-left: none;
    animation: spin 4.5s infinite linear reverse;
}
.spinner2 {
    margin: 25px auto;
    height: 200px;
    width: 200px;
    animation: spin 2s infinite linear;
    border-color: #003566;
}

.spinner3 {
    margin: 25px auto;
    height: 150px;
    width: 150px;
    animation: spin 1s infinite linear reverse;
    border-color: #FFC300;
}


@keyframes spin{

    100% {
        transform: rotate(360deg);
    }
}

.preloader {
    height: 100px;
    width: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    margin: -50px 0 0 -50px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 25px;
}
.centerspinners {
    top:50%;
    right:50%;
    transform:translateY(100%)
}

/* ------------------------------------ footer ------------------------------------ */
footer .ribbonContent {
    position: absolute;
    bottom: 2px;
    width: 253.08px;
    background: var(--primary);
    padding: 1.3rem;
    z-index: 3;
}
footer a[aria-expanded=true] .fa-chevron-right {
    transition: .3s transform ease-in-out;
    transform: rotate(90deg);
}

footer a[aria-expanded=false] .fa-chevron-right {
    transition: .3s transform ease-in-out;
    transform: rotate(-90deg);
}
