html {
    font-size: 62.5%;
    /*1rem = 10px*/
}

body {
    background-image: linear-gradient(#332FD0, #3F0071) ;
    color: white;
    font-size: 1.6rem;
}

.menu {
    font-size: 4rem;
    font-family: 'Fredoka One', cursive;
}

nav lu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    list-style: none;
    border-bottom: solid 5px white;
}

nav li {
    padding-left: 1rem;
    padding-right: 1rem;
    color: white;

}

nav li:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transition: 400ms ease-in-out;
    cursor: pointer;
}

nav a {
    text-decoration: none;
    color: white;
}

.main {
    margin: 12rem;
}

#naam {
    text-align: center;
    font-size: 4rem;
    font-family: 'Fredoka One', cursive;
    border-top: solid 5px white;
    padding-top: 2rem;
}

.mainPage {
    display: flex;

}

.mainPage__figure {
    justify-content: center;
    width: 25%;

}

#mijnHooft{
    border: 3px solid white;
    border-radius: 10px;
}

.mainPage__figure img {
    width: 100%;
}

.mainPage__section {
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: 'Inconsolata', monospace;
    font-size: 20px;
    text-align: left;
    width: 75%;
}

.skillcardWrapper{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skillCard{
    display: flex;
    border: 3px solid white;
    border-radius: 10px;
    width: 25rem;
    height: 10rem;
    padding: 1rem;
    gap: 1rem;
}

.skillCard__text{
    padding: 0;
}

.skillCard__text--h1{
    margin: 0;
}

.projectpreview__img {
    border: 3px solid white;
    border-radius: 10px;
}

@media screen and (max-width: 40rem) {
    .mainPage {
        flex-wrap: wrap;
    }

    .mainPage__figure {
        width: 100%;
    }

    .mainPage__section {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }

    main {
        margin: 20px;
    }

    .skillcardWrapper{
        justify-content: center;
    }

    .modal-body {
        flex-wrap: wrap;
    }

    #projectPreview {
        width: 100%;
    }

    #projectPreviewItem {
        width: 100%;
    }

    
    .projectKnop {
        position: relative;
        text-align: center;
    }

    .projectKnop__text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-shadow: 1px 1px black;
        font-size: 150%;
        font-family: 'Inconsolata', monospace;
    }

    #projectInfo {
        width: 100%;
        
    }

    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: 200ms ease-in-out;
        border: 3px solid white;
        border-radius: 10px;
        z-index: 10;
        background-color: #142E84;
        width: 150rem;
        max-width: 95%;
        height: 95%;
    }

    .modal.active {
        transform: translate(-50%, -50%) scale(1);
    }

    .modal-header {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 3px solid white;
        height: 8%;
    }

    .modal-header .title {
        font-size: 3rem;
        font-family: 'Fredoka One', cursive;
        overflow-x: hidden;
    }

    .modal-header .close-button {
        cursor: pointer;
        border: none;
        outline: none;
        background: none;
        color: white;
        font-size: 3rem;
    }

    .modal-body {
        padding: 0.5rem 1rem;
        font-family: 'Inconsolata', monospace;
        display: flex;
        height: inherit;
        overflow-y: scroll;
        height: 87%;
    }



    #overlay {
        position: fixed;
        opacity: 0;
        transition: 200ms ease-in-out;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        pointer-events: none;
    }

    #overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}


@media screen and (min-width: 40rem) {
    #projectPreview {
        width: 100%;
    }

    #projectPreviewItem {
        width: 50%;
    }

    #projectInfo {
        width: 50%;
    }

    #projectsDiplay:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

    #projectsDiplay:hover .projectKnop__text {
        opacity: 1;
    }

    .projectKnop {
        position: relative;
        text-align: center;
    }

    .projectKnop__text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-shadow: 1px 1px black;
        font-size: 150%;
        font-family: 'Inconsolata', monospace;
        opacity: 0;
    }

    .modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: 200ms ease-in-out;
        border: 3px solid white;
        border-radius: 10px;
        z-index: 10;
        background-color: #142E84;
        width: 150rem;
        max-width: 80%;
    }

    .modal.active {
        transform: translate(-50%, -50%) scale(1);
    }

    .modal-header {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 3px solid white;
    }

    .modal-header .title {
        font-size: 5rem;
        font-family: 'Fredoka One', cursive;
    }

    .modal-header .close-button {
        cursor: pointer;
        border: none;
        outline: none;
        background: none;
        color: white;
        font-size: 5rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
        font-family: 'Inconsolata', monospace;
        display: flex;
        gap: 1.5rem;
    }



    #overlay {
        position: fixed;
        opacity: 0;
        transition: 200ms ease-in-out;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        pointer-events: none;
    }

    #overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}


a{
    color: white;
}

a:visited{
    color: white;
}

#projecten {
    margin-top: 2rem;
    border-collapse: collapse;
    width: 99%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    transition: 0.4s;
}

#projectsDiplay {
    transition: 0.4s;

}


#contact {
    padding-left: 20%;
    padding-right: 20%;
    font-family: 'Inconsolata', monospace;
    font-size: 2rem;
    text-align: center;
    padding-bottom: 5rem;
}

#contact a {
    color: white;
}

.contact__github {
    padding-right: 2rem;
}



.projectKnop {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}