html, body {
  margin: 0;
  height: 100%;
  width: 100%;
  overflow: scroll;
}

body {
  font-family: "Rubik", sans-serif;
  font-size: 15px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.flex {
  display: flex
}

header, footer {
  display: flex;
}

header {
  position: sticky;
  position: -webkit-sticky;
  align-self: flex-start;
  top: 0;
  flex-direction: row;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 0 2px 5px #444;
  background-color: #fefefe;
  border-bottom: 2px solid #e51919;
}

header > h1 {
  margin: 0;
  font-family: 'Pacifico', cursive;
  color: #e51919;
  font-size: 2.5em;
  margin-left: 30px;
}

header nav {
  display: flex;
  margin: 10px;
  text-transform: uppercase;
  font-size: 1.2em;
}

header nav div {
  display: flex;
  margin: auto 1em;
}

header a {
  text-decoration: none;
  color: inherit;
}

header a:hover {
  text-decoration: underline;
}

section.welcome {
  display: flex;
  padding: 20px 5%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

section.welcome div:first-child {
  margin-bottom: 20px;
}

section.welcome img {
  flex: 330px;
  max-height: 300px;
}

footer {
  background-color: #444;
  color: #fff;
  padding: 30px;
  height: 50px;
  flex: 1;
  box-shadow: inset 0 3px 4px #333;
}

@media screen and (max-width: 930px) {
  header {
    padding: 8px;
  }
  header nav div {
    margin: auto 0.5em;
  }
}

@media screen and (max-width: 750px) {
  body {
    font-size: 12px;
  }
  header {
    font-size: 12px;
  }
}

@media screen and (max-width: 620px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  header > h1 {
    margin: auto;
  }
}

@media screen and (max-width: 340px) {
  header {
    position: static;
    box-shadow: none;
    padding-bottom: 0;
  }
  header nav {
    flex-direction: column;
    align-items: center;
    width: 80%;
  }
  header nav div {
    width: 100%;
    border-top: 1px solid #000;
    padding: 10px;
    cursor: pointer;
  }
  header nav div:last-child {
    border-bottom: 1px solid #000;
  }

  header nav div:active {
    color: #fff;
    background-color: #333;
  }

  header nav div a {
    margin: auto;
  }
}