@import url('https://fonts.googleapis.com/css2?family=Comfortaa&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: comfortaa, sans-serif;
}


/*elements*/
body {
    background-color: #efefef;
    overscroll-behavior: contain;
}

section {
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-type: y mandatory;
    position: relative;
}

h1 {
    margin-left: 31vw;
    padding: 30px 0;
    font-size: 4em;
    font-weight: 900;
    color: white;
    width: 800px;
    height: 128px;
}

h2 {
    margin-left: 36vw;
    padding: 10px 0;
    font-size: 3em;
    font-weight: 900;
    width: 600px;
    height: 128px;
}

h3 {
    text-align: center;
}

a:hover {
    border-left: 10px solid #576e9a;
    padding-left: 15px;
}
a {
    display: inline-block;
    vertical-align: top;

    background-color: #263e54;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;

    padding: 10vh 25px;
    width: 50vw;
    height: 25vh;
    text-align: left;
    text-decoration: none;
    font-size: 2em;
    color: white;
}

p {
    padding-top: 15vh;
    text-align: center;
    font-size: 3em;
    line-height: 2em;
}

footer {
    margin-top: 20vh;
    text-align: center;
}

/*classes*/
.container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.hideScrollbar::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
.hideScrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.slide {
    vertical-align: top;
    scroll-snap-align: start;
    display: inline-block;
    height: 100vh;
    width: 100vw;
    text-align: center;
    line-height: 100vh;
}

.slide img {
    vertical-align: middle;
    max-height: 100vh;
    max-width: 100vw;
}

.btn {
    position: absolute;
    z-index: 10px;
    
    cursor: pointer;

    background: none;
    border: none;
    color: white;
    font-size: 5em;
}

.btn-prev {
    top: 25%;
    left: 0%;
    height: 50vh;
    width: 10vw;
}

.btn-next {
    top: 25%;
    right: 0%;
    height: 50vh;
    width: 10vw;
}

.btn-close {
    top: 0%;
    right: 0%;
    font-size: 2em;
    height: 10vh;
    width: 10vw;
}

.line {
    margin: 5px;
}

/*IDs*/
#landing {
    padding: 36.1vh 0;
    background-color: #576e9a;
    background-image: linear-gradient(to right, rgba(87,110,154,1) 0%,rgba(87,110,154,1) 25%,rgba(87,110,154,0.25) 100%), url("img/header_image.jpg");
    background-size: auto 120%;
    background-repeat: no-repeat;
    background-position: right bottom;
    text-align: center;
}

#logo {
    margin-left: 10vw;
    float: left;
    width: 256px;
}

#gridContainer {
    display: grid;
    grid-template-areas:
        'BI BV'
        'DB KE'
        'MI RD'
        'TR TH';
        width: 100vw;
}

#gallery {
    position: relative;
    background-color: #263e54;
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    white-space: nowrap;
    width: 100vw;
    text-align: center;
}

#contact {
    background-color: #efefef;
}

#BI {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/badkamerinrichting/BI1.jpg");
    grid-area: BI;
}
#BV {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/binnenschrijnwerk_vloeren_en_muren/BV1.jpg");
    grid-area: BV;
}
#DB {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/dakwerken_en_buitenschrijnwerk/DB1.jpg");
    grid-area: DB;
}
#KE {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/keukens/KE1.jpg");
    grid-area: KE;
}
#MI {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/meubels_en_inbouwkasten/MI1.jpg");
    grid-area: MI;
}
#RD {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/ramen_deuren_en_poorten/RD1.jpg");
    grid-area: RD;
}
#TR {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/trappen/TR1.jpg");
    grid-area: TR;
}
#TH {
    background-image: linear-gradient(to right, rgba(38,62,84,1) 0%,rgba(38,62,84,1) 60%,rgba(38,62,84,0) 100%), url("img/fotos/tuinhuizen/TH1.jpg");
    grid-area: TH;
}

#tswsubmit {
    margin-right: 5px;
}

/*computers*/
@media only screen and (min-width: 1280px) {
    /*elements*/
    a:hover {
        text-align: left;
    }
    /*classes*/
    /*IDs*/
    #BI:hover {
        background-image: url("img/fotos/badkamerinrichting/BI1.jpg");
    }
    #BV:hover {
        background-image: url("img/fotos/binnenschrijnwerk_vloeren_en_muren/BV1.jpg");
    }
    #DB:hover {
        background-image: url("img/fotos/dakwerken_en_buitenschrijnwerk/DB1.jpg");
    }
    #KE:hover {
        background-image: url("img/fotos/keukens/KE1.jpg");
    }
    #MI:hover {
        background-image: url("img/fotos/meubels_en_inbouwkasten/MI1.jpg");
    }
    #RD:hover {
        background-image: url("img/fotos/ramen_deuren_en_poorten/RD1.jpg");
    }
    #TR:hover {
        background-image: url("img/fotos/trappen/TR1.jpg");
    }
    #TH:hover {
        background-image: url("img/fotos/tuinhuizen/TH1.jpg");
    }
}

/*tablets*/
@media only screen and (max-width: 1280px) {
    h1 {
        margin-left: 30vw;
        padding: 20px 0;
        font-size: 3em;
        width: 600px;
        height: 96px;
    }
    
    h2 {
        margin-left: 30vw;
        padding: 32px 0;
        font-size: 2.5em;
        font-weight: 900;
        width: 600px;
        height: 160px;
    }

    p {
        padding-top: 25vh;
        font-size: 2em;
    }

    footer {
        margin-top: 30vh;
    }

    #logo {
        margin-left: 5vw;
    }
}

/*phones*/
@media only screen and (max-width: 864px), (orientation: portrait) {
    /*elements*/
    h1 {
        margin: 0 auto;
        padding: 32px 0;
        font-size: 3em;
        height: 128px;
        width: auto;
    }
    
    h2 {
        margin: 0 auto;
        padding: 20px 0;
        font-size: 2.5em;
        height: 128px;
        width: auto;
    }

    a {
        padding: 5vh 0;
        padding-left: 25px;
        width: 100vw;
        height: 12.5vh;
    }

    p {
        padding-top: 30vh;
        font-size: 1.5em;
    }

    footer {
        margin-top: 35vh;
    }

    /*classes*/
    .btn {
        font-size: 2.5em;
    }

    .btn-close {
        font-size: 1.5em;
    }

    /*IDs*/
    #landing {
        background-image: none;
    }

    #logo {
        display: none;
    }
    
    #gridContainer {
        grid-template-areas:
            'BI'
            'BV'
            'DB'
            'KE'
            'MI'
            'RD'
            'TR'
            'TH';
    }

    #BI {
        background-image: none;
    }
    #BV {
        background-image: none;
    }
    #DB {
        background-image: none;
    }
    #KE {
        background-image: none;
    }
    #MI {
        background-image: none;
    }
    #RD {
        background-image: none;
    }
    #TR {
        background-image: none;
    }
    #TH {
        background-image: none;
    }
}

/*CLEARFIX*/
.clearfix {
    overflow: auto;
}

.clearfix::before, .clearfix::after {
    content: "";
    clear: both;
    display: table;
}