@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500');
*{
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}
body {
    height: 100vh;
    margin:0;
    font-family: 'Montserrat', sans-serif;
    background-size: cover;        
    background-repeat: no-repeat;  
    background-position: center;   
    background-color: #ffffff;
}
.sidebar {
  position: absolute;
  left: -300px;
  width: 300px;
  height: 100%;
  background: #6d6d6d;
  transition: all .5s ease;
  z-index: 940;
  top: 0px;
}
.sidebar header {
  font-size: 22px;
  color: rgb(255, 255, 255);
  line-height: 70px;
  text-align: center;
  background:#6d6d6d;
  user-select: none;
  z-index: 1000;
}
.sidebar ul a{
  display: block;
  height: 100%;
  width: 100%;
  line-height: 65px;
  font-size: 20px;
  color: rgb(255, 255, 255);
  padding-left: 40px;
  box-sizing: border-box;
  border-bottom: 1px solid black;
  border-top: 1px solid rgba(255,255,255,.1);
  transition: .4s;
}
ul li:hover a{
  padding-left: 50px;
}
.sidebar ul a i{
  margin-right: 16px;
}
#check{
  display: none;
}
label #btn,label #cancel{
  position: absolute;
  background: #ffffff;
  border-radius: 3px;
  cursor: pointer;
}
label #btn{
  left: 40px;
  top: 25px;
  font-size: 35px;
  color: black;
  padding: 6px 12px;
  transition: all .5s;
  z-index: 950;
  
}
label #cancel{
  z-index: 1000;
  left: -210px;
  top: 17px;
  font-size: 30px;
  color: black;
  padding: 4px 9px;
  transition: all .5s ease;
  position: fixed;
}
#check:checked ~ .sidebar{
  left: 0;
}
#check:checked ~ label #btn{
  left: 250px;
  opacity: 0;
  pointer-events: none;
}
#check:checked ~ label #cancel{
  left: 210px;
}
#check:checked ~ section{
  margin-left: 250px;
}
section{
  background: url(bg.jpeg) no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
  transition: all .5s;
}
svg{
  width: 50px;
}
.huvud header{
  display: absolute;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  z-index: 10;
  background-color:#6d6d6d;
}
img{
  height: 65px;
  width: 65px;
  right: 20px;
  top: 5px;
  position: absolute;
}
h1{
  text-align: center;
  color: #ffffff;
}
footer{
  position: absolute;
  left: 0px;
  bottom: -500px;
  width: 100%;
  max-width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  color: rgb(255, 255, 255);
  text-align: center;
  height: 30px;
  font-size: large;
}
.bakgrund img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
svg{
  position: relative;
  top: 4px;
  right: 10px;
}
.overlay{
  position: absolute;
  top: 57%;
  left: 25%;
  transform: translate(-50%, -50%);
  color: white;
  background: #6d6d6d4f;
  padding: 20px;
  border: 10px;
  border-radius: 10px;
  max-width: 100vh;
  max-height: 75vh;
  min-height: 50vh;
}
.overlay h2{
  font-size:xx-large;
  margin-bottom:10%;
}
.overlay2{
  position: absolute;
  top: 57%;
  right: -300px;
  transform: translate(-50%, -50%);
  color: white;
  background: #6d6d6d4f;
  padding: 20px;
  border: 10px;
  border-radius: 10px;
  max-width: 100vh;
  min-height: 75vh;
}
.overlay2 h2{
  font-size:xx-large;
  margin-bottom:10%;
}
/* Responsiv design */
@media screen and (max-width: 768px) {

  .huvud {
    padding: 0px;
    position: relative;
  }

  .huvud img {
    width: 60px;
    position: static;
  }

  .title {
    display: none;
  }

  .cart {
    position: absolute;
    right: 45px;
    top: 50px;
  }

  /* Menyknappar */
  label #btn {
    left: 15px;
    top: 15px;
    font-size: 25px;
  }

  label #cancel {
    left: -165px;
    top: 10px;
    font-size: 25px;
  }
  

  /* Kundvagn */
  .cart-sidebar {
    width: 90%;
  }

  /* Footer */
  footer {
    font-size: 14px;
    padding: 15px 0;
    position: absolute;
    top: 3500px;
  }
  .sidebar{
    position: fixed;
    top: 0px;
  }
}
