* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

/*https://www.w3schools.com/howto/howto_js_responsive_navbar_dropdown.asp*/
nav.topnav {
  overflow: hidden;
  background-color: #053664;
}

nav.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

nav.topnav a.active {
  background-color: #AA0404;
  color: white;
}

nav.topnav a:not(:first-child) {
  display: none;
}

nav.topnav a.icon {
  float: right;
  display: block;
}

nav.topnav.responsive {
  position: relative;
}

nav.topnav.responsive .icon {
  position: absolute;
  right: 0;
  top: 0;
}

nav.topnav.responsive a {
  float: none;
  display: block;
  text-align: left;
}

main>img {
  max-width: 100%;
}

#titel {
  margin: 15px;
  text-align: center;
}





img{
  width:100%;
}


#matbilder {
  display: flex;
  flex-direction: column;
}

section.amat {
  border-style: solid;
  display: flex;
  flex-direction: row;
  margin:10px;
}

img.mat {
  width: 180px;
}





nav>ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

main>article.rad>section.formulär{
  margin:20px;
}

h1{
  text-align: center;
  font-size: 40px;
}

form {
  background-color: #053664;
  padding: 10px;
  margin: 20px;
}

label {
  color: white;
}

input[type=text] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0px;
  display: inline-block;
  border: 1px solid;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=date] {
  width: 25%;
  margin: 5px;
  border: 1px solid;
  border-radius: 4px;
  box-sizing: border-box;
}

#timeboka{
  color:white;
}

input[type=reset],
input[type=submit]{
  width: 100%;
  background-color: #AA0404;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  font-size: 15px;
}






nav>ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

nav>ul>li>a {
  color: white;
  display: block;
  border-style: solid;
  text-align: center;
  margin: 10px;
  padding: 10px;
  background-color: #AA0404;
  justify-content: space-between;
  justify-content: center;
}

main>#meny {
  padding: 10px;
}

main>#meny>table {
  border-collapse: collapse;
  width: 100%;
}

#meny>table,tr,th {
  border-style: solid;
  border: 1px solid;
}

th{
  text-align: left;
  padding: 10px;
}

article{
  display:flex;
  flex-direction: column;
  align-items: center;
  margin:10px;
}


footer {
  background-color: black;
  color: white;
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

@media screen and (min-width: 601px) {
  
  nav.topnav a:not(:first-child){
    display: block;
  }

  nav.topnav a.icon {
    display: none;
  }

  nav.topnav a:hover {
    background-color: #305374;
    color: black;
  }

  #matbilder{
    align-items: center;
    flex-direction: row;
    justify-content: center;
    margin:10px;
    }

  section.amat {
    border-style: none;
    flex-direction: column-reverse;
    height: auto;
    align-items: center;
    margin:auto;
  }
 
  h1{
    text-align: left;
    margin:10px;
  }

  main>article.rad {
    margin: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
  }

  main>article.rad>section.formulär {
    width: 400px;
  }

  nav>ul {
    flex-direction: row;
    justify-content: center;
  }

  nav>ul>li>a {
    border-radius: 8px;
    padding: 25px;
  }

  main>#meny {
    padding: 20px;
  }
  article{
    display:flex;
    flex-direction: column;
    align-items: center;
    margin:10px;
  }

  section{
    max-width: 600px;
  }

}

@media screen and (min-width: 1024) {

  main>#meny {
    padding: 50px;
  }

  main>img{
    width:500px;
  }


}