:root {
    --zwart: black;
    --blauw: #283544;
    --grijs: #B9C3CD;
    --wit: #F4FAFF;
    --roos: #EF798A;
    --lichtBlauw: #447fad;
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-block: contain;
}

body {
    opacity: 0;
    transition: opacity 0.5s;
    font-family: 'Prompt', sans-serif;
    color: var(--wit);
    cursor: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

body.fade-out {
    opacity: 0;
    transition: opacity 0.5s, background-position 0.5s linear;
}

.cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--wit);
    border-radius: 50% !important;
    position: fixed;
    top: -20px;
    left: -20px;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 0 10px 5px rgba(44, 44, 44, 0.863);
    transition: width 0.4s, height 0.4s, left 0.4s, top 0.4s;
    /*display: none;*/
        visibility: hidden;

}

.ruler {
    position: fixed;
    left: 50%;
    border: 0px solid red;
    height: 100vh;
}


@keyframes zoomIn {
  25% {
    transform: scale(1.2);
    opacity: 0.8;
    background-color: var(--wit);
  }
  100% {
    transform: scale(1);
  }
}

.hoverEffect {
    cursor: none;
}

.projectsContainer {
    backdrop-filter: invert(10%) contrast(0.8) brightness(0.3) blur(1px);
    width: auto;
}

.wit {
    color: var(--wit);
}

.title {
    font-size: 3em;
}

.op70 {
    opacity: 0.7;
}

.card {
    border: 2px solid red;
    width: 200px;
}

.card-img-top {
    height: 32vh;
    object-fit: cover;
    object-position: top;
    filter: brightness(0.93) grayscale(0.2);
}

.card a > img {
    transform: scale(1);
    opacity: 0.8;
    background-color: var(--wit);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.card a:hover {
    border-color: var(--lichtBlauw) !important;
}

.card a:hover > img {
    transform: scale(1.2);
    opacity: 1;
    background-color: initial;
}

.githubCover {
    font-weight: 400;
    transition: font-weight 0.5s;
    display: inline-block;
    position: relative;
}

.githubCover::before {
    position: absolute;
    content: "";
    width: 400px;
    min-height: 230px;
    left: -150px;
    top: -240px;
    z-index: 1;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s, transform 0.5s;
    background-image: url("../img/githubBG.png");
    background-size: 100%;
    background-position: center;
    border: 4px solid var(--wit);
    border-radius: 10px;
    box-shadow: 
    3px 3px 6px rgba(44, 44, 44, 0.863),
    -3px -3px 6px rgba(44, 44, 44, 0.863);
}

.githubCover::after {
    position: absolute;
    content: "";
    width: 20px;
    height: 14px;
    left: 50%;
    top: -14px;
    background-color: var(--wit);
    z-index: 2;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    box-shadow: 
    3px 3px 6px rgba(44, 44, 44, 0.863),
    -3px -3px 6px rgba(44, 44, 44, 0.863);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.5s, transform 0.5s;
    transform: translateY(-100px);
}

.githubCover:hover::before, .githubCover:hover::after {
    opacity: 1;
    transform: scale(1);
}

/*navbar*/
.offcanvas-transition {
    transition: transform 0.3s ease-in-out;
}

.navbar-nav .nav-link {
    cursor: none;
    color: var(--wit);
}

.navbar-nav .nav-link:hover {
    color: var(--grijs);
}

.navbar-nav .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-color: var(--grijs);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--wit);
    border: 1px solid var(--grijs);
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--zwart);
}

/* media */
@media only screen and (max-width: 991px) {
    .cursor {
        display: none !important;
    }
}

@media (max-width: 991px) {
    body {
        background-size: 1200% !important;
        background-attachment: scroll !important;
        background-position: center !important;
        background-color: #050603;
        min-height: 100vh;
    }

    html, body {
        overscroll-behavior-y: contain;
        margin: 0;
    }

    .big {
        font-size: 2em !important;
    }

    .thin {
        font-size: 1.3em !important;
    }

    h1 {
        font-size: 1.6em;
    }

    .card {
        max-width: 500px !important;
    }

    .cursor {
        display: none;
    }
}


@media (max-width: 768px) {

    .big {
        font-size: 1.6em !important;
    }

    .thin {
        font-size: 1.1em !important;
    }

    h1 {
        font-size: 1.5em;
    }

    .card-img-top {
    max-height: 200px;
}
}

@media (max-width: 991px) {
    .sidebar {
        background-color: #050603;
        backdrop-filter: blur(3px);
        align-items: flex-end !important;
        border-left: 1px solid var(--wit) !important;
        width: 40% !important;
    }
    
    .offcanvas-end .offcanvas-header .btn-close {
        order: 2;
    }

    .offcanvas-end .offcanvas-header .btn-close.ms-auto {
        order: 1;
    }

    .offcanvas-end .offcanvas-body .navbar-nav {
        text-align: right;
    }

    .titlebox {
        width: 100%;
        margin-left: 0px !important;
        margin-right: 0px !important;
        margin-top: 2vh !important;
        text-align: center;
    }

    .title {
        font-size: 2em;
    }

    .col-12 {
        text-align: center !important;
    }

    .projectsContainer {
        border: 0 !important;
        backdrop-filter: none !important;
    }
}
