html, body, div, header, nav, main, section, article, aside, footer, ul, ol, h1, h2, h3, p {
	margin: 0;
    padding: 0;
}

header, nav, main, footer, section, article, aside {
	display: block;
}

html {
    font-family: 'Montserrat', sans-serif;
    background-size: cover;
    background-repeat: no-repeat;  
    color: #545454;

}

body {
    background-image: url(images/tools-bgr.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    z-index: -10;
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -10;
}

h1 {
    font-weight: 600;
    padding: 0 0 0.5em 0;
    font-size: 1.8em;
}

h2 {
    font-weight: 600;
    padding: 1em 0 0.2em 0;
    font-size: 1.2em;
}

h3 {
    font-weight: 600;
    padding: 1em 0 1em 0;
    font-size: 1em;
}

p {
    font-weight: 300;
    line-height: 1.4em;
    padding: 0 0 1em 0;
    font-size: 0.95em;
}


a:link, a:visited {
    color: white;
    text-decoration: none;
}

a:hover, a:active {
    color: #414141;
}

header {
    background-color: #D0661B;
    max-width: 400px;
    padding: 2em;
    margin: 80px auto 50px auto;
    box-shadow: 0 0 10px rgb(100, 100, 100);
}

header img {    
    max-width: 100%;
}

main {
    background-color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 1em auto 6em auto;
    padding: 3em;
}

#galleri {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

#galleri img {
    width: 31%;
    margin: 0 0 2em 0;
    cursor: pointer;
    height: 200px;
    object-fit: cover;
}

#galleri p {
    display: none;
  }
  
#myModal {
    display: none;
    position: fixed;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}
  
/* Modal Content */
#modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(41, 41, 41);
    margin: 0px auto;
    padding: 50px 0 100px 0;
    max-width: 800px;
}

#modal-content img {
    max-width: 85%;
}

#imgtext {
    text-align: center;
    margin-top: -80px;
    padding: 0 20px;
    color: #ffffff;
}
  

/* The Close Button */
#close {
    cursor: pointer;
    margin: 0px auto -60px auto;
    max-width: 800px;
    text-align: right;
}

#close img {
    width: 20px;
    padding: 20px;
}
  
/* Next & previous buttons */
#prev, #next {
    cursor: pointer;
    margin: 20px;  
    z-index: 1;
    color: #D0661B;
    font-weight: bold;
    font-size: 55px;
    transition: 0.6s ease;
    user-select: none;
    -webkit-user-select: none;
}
  
#next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
    
/* On hover, add a black background color with a little bit see-through */
#prev:hover, #next:hover {
    color: #fff;
}


footer {
    background-color: #D0661B;
    color: #ffffff;
    display: flex;
    justify-content: center;  
}

.s-flex {
    margin: 3px 40px;
    display: flex;
    align-items: center;
}

.s-flex p {
    padding-top: 10px;
}

.s-flex img, .s-flex p {
    margin: 10px;
    color: #fff;
}

#adress img {
    margin: 10px 5px 15px 10px;
}

/* Cookie Consent */
#myAlert {
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #8e8e8e;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
}

#myAlertText {
    padding: 0;
    margin: 0 10px;
    color: white;
    font-size: 0.8em;
    line-height: 1.3em;
}

#myAlertButton {
    background-color: #fda944;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    color: white;
}

#myAlertButton:link, #myAlertButton:visited {
    font-weight: 400;

}

#myAlertButton:hover, #myAlertButton:active {
    background-color: #fa8a00;
    font-weight: 700;
}

/* media queries */

@media screen and (max-width: 940px) {

    main {
        margin: 2em 2em 5em 2em;
        padding: 2em;
    }

}

@media screen and (max-width: 890px) {

    .s-flex {
        margin: 3px 20px;
    }
}

@media screen and (max-width: 770px) {

    footer {
        flex-direction: column;
        padding: 1em 1em;
    }

    .s-flex img {
        width: 1.5em;
        margin: 0 2em 0 1em;
    }

    #adress img {
        width: 1.3em;
        margin: 0 1.5em 0 1.1em;
    }

    header {
        margin: 50px auto 20px auto;
    }
}

@media screen and (max-width: 700px) {

    #galleri img {
        width: 47%;
    }

    #myVideo {
        display: none;
    }

    #modal-content img {
        max-width: 75%;
    }
}


@media screen and (max-width: 500px) {

    #galleri img {
        width: 100%;
    }

    p {
        color: black;
    }
}

@media screen and (max-width: 370px) {
    header {
        padding: 1em;
        margin-top: 40px;
    }

    #modal-content img {
        max-width: 70%;
    }
}

@media screen and (max-width: 315px) {

    main {
        margin: 2em 1em 3em 1em;
        padding: 1em;
    }
}