html {
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    color: #333;
}

body {
    margin: 0;
}

h1 {
    font-size: 3.5em;
    border-bottom: 2px solid #fff;
    padding-bottom: 15px;
    margin-bottom: 0;
}

h2 {
    font-size: 2em;
    margin-top: 15px;
}

h3 {
    font-size: 1.5em;
    font-weight: normal;
}

header {
    background-color: rgb(42, 42, 42);
    position: fixed;
    top: 0;
    width: 100%;
    font-size: 1.2em;
    z-index: 999;
}

#header-center {
    width: 900px;
    margin: 0 auto;
}

header a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    padding: 20px 0;
}

nav {
    margin: 0;
    width: 500px;
    float: right;
    text-align: center;
    color: #fff;
}

nav ol {
    list-style: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

nav ol li {
    display: block;
}

nav a {
    text-decoration: none;
    display: block;
}

nav a:hover {
    background-color: rgb(99, 99, 99);
}

#menu-burger{
    display: none;
}

#menu-burger{
    cursor: pointer;
}

main {
    background-color: #f7f2f2;
    width: 100%;
}

/* HOME */
#home {
    background-color: rgb(34, 48, 195);
    width: 100%;
    background: linear-gradient(45deg, #2771c7 0%, #39a6cf 100%);
    background-image: url(../img/background.jpg);
    background-size: cover;
    background-position: center;
    height: 800px;
}

#home-overlay {
    background-color: rgba(2, 4, 31, 0.6);
    width: 100%;
    height: 100%;
    position: relative;
}

#naam {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
}

#portfolio, #contact-content {
    width: 900px;
    margin: 0 auto;
}

#portfolio {
    padding-top: 60px;
}

#contact {
    margin-top: 60px;
}

#portfolioGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 30px;
    grid-column-gap: 30px;
}

/* PORTFOLIO */
.project {
    background-color: #fff;
    box-shadow: 0 0 7px rgba(26, 26, 26, 0.3);
    border-radius: 3px;
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.project:hover {
    cursor: pointer;
}

.project img {
    height: 100%;
    /*border-top-right-radius: 3px;*/
    /*border-top-left-radius: 3px;*/
}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 189, 224, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.2s ease;
}

.project:hover .overlay {
    opacity: 1;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.project .overlay h3 {
    color: #fff;
    font-size: 30px;
}

.project p{
    line-height: 2em;
}

/* MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    display: none;
    z-index: 1;
}

.modal .content {
    background-color: #fff;
    border-radius: 3px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 1000px;
    height: 400px;
    position: relative;
}

.modal .content .text {
    padding: 16px;
}

.modal .content .image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal .content img {
    /*height: 100%;*/
    max-height: 300px;
    box-shadow: 3px 3px 7px rgba(26, 26, 26, 0.3);
}

#InsBlauModal.content img {
    max-width: 470px;
}

.modal .content .close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 18px;
    color: #909090;
}

.modal .content .close:hover {
    cursor: pointer;
    color: #333;
}

.modal .content h3 {
    margin: 20px 0 15px 0;
}

.modal .content .tags span {
    border: 1px solid #39a6cf;
    border-radius: 3px;
    padding: 5px;
    font-size: 12px;
}

.modal .content p {
    margin: 35px 0;
}

.modal .content a {
    text-decoration: none;
    background-color: #39a6cf;
    padding: 7px;
    border-radius: 3px;
    color: #fff;
    /*margin-top: 15px;*/
    display: inline-block;
    box-shadow: 1px 1px 4px rgba(26, 26, 26, 0.3);
}

.modal .content a .link-icon {
    margin-left: 5px;
}

.modal .content a:hover {
    background-color: #307fa4;
}

#GitaarLeraarModal,
#MidiModal,
#InsBlauModal,
#VakkenvullenModal,
#TravelBuddyModal,
#PizzaBotModal {
    display: none;
}

/* CONTACT */
#contact {
    background-color: rgb(42, 42, 42);
    width: 100%;
    padding: 30px 0 50px 0;
    color: #fff;
}

.contact-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.contact-items a {
    color: #fff;
    text-decoration: none;
}

.contact-items a:hover {
    text-decoration: underline;
}

.contact-items p,
.contact-items a{
    margin: 16px 0;
}

.icon {
    margin-right: 10px;
}

/* IMAGE NO SELECT */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media only screen and (max-width: 1020px) {
    .modal .content {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 300px) 1fr;
        height: fit-content;
        max-height: 90%;
        width: 400px;
        margin: 0 15px;
        overflow: scroll;
    }

    .modal .content .image,
    #InsBlauModal.content img {
        margin: 16px;
        max-width: 100%;
        max-height: 300px;
        box-shadow: none;
    }

    /*#InsBlauModal.content img {*/
    /*    max-width: 470px;*/
    /*}*/

    .modal .content .close {
        color: #333;
        font-size: 16px;
        top: 0;
        right: 0;
        padding: 10px;
        margin: 16px;
        background-color: #fff;
        background-color: rgba(255, 255, 255, 0.7);
    }

    .modal .content h3 {
        margin-top: 0;
    }
}

@media (max-width: 950px){
    html{
        width: 100vw;
    }

    header{
        width: 100vw;
    }

    #header-center{
        width: 100%;
    }

    #header-naam{
        margin-left: 20px;
    }

    #portfolio, #contact-content{
        width: 450px;
    }

    #portfolioGrid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .contact-items {
        grid-template-columns: auto 1fr;
        grid-column-gap: 16px;
    }
}
@media only screen and (max-width: 720px) {
    .project .overlay {
        display: none;
        opacity: 0;
        transition: opacity 0s ease;
    }

    .project:hover .overlay {
        opacity: 0!important;
        transition: opacity 0s ease;
    }
}

@media only screen and (max-width: 650px){
    #menu-burger{
        float: right;
        color: #fff;
    }

    #menu-burger {
        display: block;
        margin: 11px 10px;
    }

    nav{
        width: 100%;
    }

    nav ol {
        height: 0;
        overflow: hidden;
        transition: height 0.7s;
        grid-template-columns: 1fr;
        padding: 0;
        width: 100%;
    }

    #menu-list a {
        border-top: 1px solid rgb(78, 78, 78);
    }

}

@media only screen and (max-width: 480px){
    #portfolioGrid, #contact-content {
        padding: 15px;
    }

    #portfolio{
        width: 100vw;
    }

    #portfolio h2{
        padding: 0 15px;
    }

    .project {
        height: unset;
    }

    .project img {
        height: unset;
        width: 100%;
    }

    #contact-content{
        width: calc(100% - 30px);
    }

    .contact-items {
        grid-template-columns: 1fr;
    }

}

@media only screen and (max-height: 800px){
    #home {
        max-height: 100vh;
    }
}

@media only screen and (max-height: 360px){
    #naam{
        top: 60%;
    }
}
