body {
    background-image: url('bilder/bakgrunder/3.jpg');
    background-color: black;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    position: relative;
    max-width: 64em;
    margin: 0 auto;
    color: yellow;
        font-size: 1.6rem;
    font-family: 'Roboto', serif;
    line-height: 1.4;
}

h1 {
    font-size: 1em;
    flex: 1;
    white-space: nowrap;
    padding: 0 5vw .5em 0;
    margin-left: 20%;
    margin-top: 15%;
    text-align: center; 
}
@font-face {                  
font-family: 'bianzhidai nobg stitches';
src: url('bianzhidai-Stitches.woff') format('woff');
font-weight: normal;
font-style: normal;
} 
nav a:not(:last-of-type) {
    margin-right: 4vw;
}

nav {
    padding-right: 10%;
}
nav ul{
  list-style-type: none;
  text-align: right;
}
nav ul li{
  display: flex; 
   padding: 0 5vw .5em 0;
} 
h1:hover{
color: black; 
}

a {
    text-decoration: none;
    color: yellow;
}

a:hover {
    color: black;
    transition: color 0.3s ease;
}

img:hover {
   -webkit-filter: blur(5px);
   filter: blur(5px);
   }

.flex {
  display:flex;
}

.container {
  margin:0 auto;
  display: flex;
  justify-content: center;
  height:100%;
}

html, body{
  height: 98%;
}

.flex-container {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  margin-top: 15%; 
}

.flex-item-II {
  background: transparent;
  padding: 10px;
  width: 330px;
  height: auto;
  margin-top: 30px;
  line-height: 20px;
  color: white;
  font-weight: normal;
  font-style: normal;
  font-size: 15px;
  text-align: center;
  cursor: default;

}

.flex-item-II img {
  border: 1px solid #000;
  max-width: 100%
}

.flex-item-II a {
  color: yellow;
  font-weight: bold; 
  text-decoration: none;
  font-size: 18px;
  text-align: center;
  display: inline-block; 
  padding: 0 2px; 
}

.flex-item-II a:hover{
 color: black;
cursor: pointer;
transition: color 0.3s ease, background-color 0.3s ease;
background-color: yellow; 
}

.center {
  margin: auto;
  padding: 20px;
  width: 100%;
}

img {
    flex:0 0 auto;
    vertical-align: bottom;
    max-width: 100%;
    max-height: 100%;
}

.footer {
  top: 50px;
  padding: 15px;
  text-align: center;
  position: sticky;
  overflow: hidden;
  font-size: 12px;
}