@import url('https://fonts.googleapis.com/css?family=Domine&display=swap');

* {
  box-sizing: border-box;
  text-decoration: none;
  font-family: 'Domine', serif;
}

/* mobil */

main {
    width: 100%;
    margin: auto;
}

nav {
    display: flex;
    flex-direction: column;
    margin-top: 25px;
}

nav div {
    padding: 10px;
    height: calc(175px/4);
    border-bottom: 2px solid;
    text-align: center;
}

nav a {
    display: inline;
    height: 100%;
    width: 100%;
}

header {
    display: inline-block;
    margin-left: 25%;
    font-size: 30px;
}

#content {
    text-align: center;
}

#nav1 {
    display: none;
}

#nav2 {
    display: contents;
}

#nav2 div {
    padding: 0;
}

#nav2 a {
    padding: 10px;
    display: block;
}

#symbol {
    position: absolute;
    margin-top: 10px;
    height: 50px;
}

/* dator */

@media screen and (min-width: 600px) {
    #nav1 {
        display: contents;
    }
    
    #nav2 {
        display: none;
    }
    
    main {
        border-left: 3px solid;
        border-right: 3px solid;
        width: 90%;
        max-width: 800px;
    }

    body {
        
    }

    #top {
        height: 200px;
    }

    footer {
        
    }

    nav {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 110px;
        text-align: left;
    }

    nav div {
        padding: 10px;
        margin-top: 60px;
        height: 50px;
        width: 25%;
        text-align: left;
        border-left: 2px solid;
    }
    
    nav a {
        font-size: 18px;
        z-index: 1;
    }
    
    nav div a:first-child {
        font-size: 20px;
    }

    nav .open {
        height: 110px;
        margin-top: 0px;
    }

    header {
        display: inline-block;
        margin: 0;
        font-size: 30px;
    }
    
    #content {
        text-align: left;
    }
    
    .sublink {
        font-size: 15px;
    }
    
    .open .sublink {
        display: inline;
    }
    
    #symbol {
        position: absolute;
        margin-top: 10px;
        height: 60px;
    }
}

main {
    background-color: white;
    border-color: #595959;
    box-sizing: content-box;
}

body {
    background-color: #EFEFEF;
    background-image: linear-gradient(white, #003366);
}

#top {
    width: 100%;
    background-color: grey;
    border-color: #595959;
}

footer {
    width: 100%;
    height: 100px;
    padding: 10px;
    border-top: 5px solid;
    background-color: #262626;
    border-color: #595959;
    color: white;
}

footer p {
    display: inline-block;
    font-size: 15px;
    margin-top: 50px;
}

footer a {
    color: white;
}

.open {
    background-color: white;
}

nav {
    color: white;
}

nav div {
    background-color: #003366;
    border-color: black;
    text-decoration: none;
    cursor: pointer;
}

nav a {
    color: white;
    text-decoration: none;
}

.open a {
    color: black;
}

nav .sublink {
    display: none;
}

header {
    padding: 15px;
    color: white;
    text-align: center;
}

#content {
    padding: 10px;
    background-color: white;
    min-height: 600px;
}

#kort {
    margin: auto;
    margin-top: 40px;
    height: 300px;
}

#kort img {
    height: 50%;
    width: 50%;
}

.section img {
    position: static;
    float: right;
    max-height: 100px;
}

.section {
    padding: 5px;
    border: 2px solid #595959;
    border-radius: 5px;
    margin-bottom: 20px;
    width: 100%;
    min-height: 113px;
}

.section:nth-of-type(1) { 
    animation: test 0.5s 2 linear;
    animation-iteration-count: 1;
}
.section:nth-of-type(2) { 
    animation: test 1s 2 linear; 
    animation-iteration-count: 1;
}
.section:nth-of-type(3) { 
    animation: test 1.5s 2 linear; 
    animation-iteration-count: 1;
}
.section:nth-of-type(4) { 
    animation: test 2s 2 linear; 
    animation-iteration-count: 1;
}

#content p {
    display: inline-block;
    max-width: 75%;
}

.section .title {
    font-size: 30px;
}

input[type="text"] {
    color: white;
    padding: 5px;
    border: 2px solid black;
    background-color: grey;
}

textarea {
    color: white;
    padding: 5px;
    border: 2px solid black;
    background-color: grey;
}

button {
    color: white;
    padding: 5px;
    border: 2px solid black;
    background-color: grey;
}

@keyframes test {
    0% {
        opacity: 0;
    }
    
    100% {
        opacity: 1;
    }
}