* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(74, 74, 74);
}

header {
  width: 100%;
}

nav {
  background-color: #e9e9e9;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

nav>div>ul>li {
  list-style-type: none;
}

.surfplatta-och-desktop {
  display: none;
}
/*Början av w3schools css*/
/* https://www.w3schools.com/howto/howto_js_dropdown.asp */
/* Dropdown Button */
nav>div>.dropbtn {
  background-color: #246c9c;
  color: white;
  padding: 16px;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  height: 75px;
  width: 75px;
}

/* Dropdown button on hover & focus */
nav>div>.dropbtn:hover,
nav>div>.dropbtn:focus {
  background-color: #2980B9;
}

/* The container <div> - needed to position the dropdown content */
nav>div {
  text-align: end;
}

/* Dropdown Content (Hidden by Default) */

nav>div>ul {
  position: absolute;
  right: 0;
}

nav>div>ul,
main>section>table {
  display: none;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
nav>div>ul a,
main>section>table a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
nav>div>ul a:hover,
main>section>table a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
nav>div>.show,
main>section>.show {
  display: flex;
  flex-direction: column;
}

/*Slut av w3schools css*/

main {
  justify-self: center;
  text-align: center;
  width: 100%;
}

h1 {
  font-size: 1.5rem;
  color: white;
}

h2 {
  font-size: 0.938rem;
  color: white;
}

h3 {
  font-size: 0.875rem;
  color: white;
}

h4 {
  font-size: 0.688rem;
  color: white;
}

.blacktext {
  color: black;
}

p {
  color: aliceblue;
  font-size: 0.813rem;
}

main>section>h2>button {
  background-color: #246c9c;
  color: white;
  padding: 16px;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
}

main>section>h2 {
  text-align: center;
}

main>section>ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
}

main>form>button {
  height: 40px;
  border-radius: 10px;
  padding: 0 10px;
}

main>section>ul>li {
  margin: 0px -1.25em;
}

main>form>fieldset {
  margin: auto;
}

main>form>fieldset {
  text-align: left;
  width: 300px;
}

main>form>fieldset>legend,
main>form>fieldset>label {
  color: white;
}

main>form>fieldset>label {
  overflow-y: scroll;
}

main>form>fieldset>textarea,
main>form>fieldset>#usermail,
main>form>fieldset>#userphone {
  width: 280px;
}

main>form>fieldset>h3>button {
  text-align: center;
}

footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  bottom: 0;
}

footer>h4,
footer>h3 {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

@media screen and (min-width: 600px) {

  nav {
    display: flex;
  }
  
  nav>div>.dropbtn {
  height: 100px;
  width: 100px;
}
  main>section>ul {
    display: unset;
  }

  main>section>ul>li {
    margin: 3.75em 0;
  }

  main>section>ul>li>figure {
    margin: 0 0.625em;
  }

  h1 {
    font-size: 1.75rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.25rem;
    max-width: 100%;

  }

  h3 {
    font-size: 1rem;
  }

  h4 {
    font-size: 0.875rem;
  }

  p {
    font-size: 1rem;
  }

  .mobil {
    display: none;
  }

  .surfplatta-och-desktop {
    display: flex;
  }
}

@media screen and (min-width: 1024px) {

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1rem;
  }

  p {
    font-size: 1.125rem;
  }

  main>section>ul>li>figure {
    margin: 0 1.25em;
  }
}

@media screen and (min-width: 2560px) {

  main>section>ul {
    display: unset;
  }

  main>section>ul>li {
    margin: 3.75em 0;
  }

  main>section>ul>li>figure {
    margin: 0 0.625em;
  }

  h1 {
    font-size: 1.75rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.25rem;
    max-width: 100%;

  }

  h3 {
    font-size: 1rem;
  }

  h4 {
    font-size: 0.875rem;
  }

  p {
    font-size: 1rem;
  }
}

@media screen and (min-width: 4000px) {
  nav>a>img {
    min-width: 240px;
  }

  h1 {
    font-size: 6.25rem;
  }

  h2 {
    font-size: 4rem;
  }

  h3 {
    font-size: 3rem;
  }

  h4 {
    font-size: 2.25rem;
  }

  p {
    font-size: 2.5rem;
  }
}