@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: 120vh;
    margin:0;
    font-family: 'Montserrat', sans-serif;
    background-image: url("bbild/sydkorea.jpg");
    background-size: cover;        
    background-repeat: no-repeat;  
    background-position: center;   
    background-color: #9c18d4;
}
.sidebar {
  position: fixed;
  left: -300px;
  width: 300px;
  height: 150%;
  background: #9c18d4;
  transition: all .5s ease;
  z-index: 940;
  top: 0px;
  overflow-y: auto;
}
.sidebar header {
  font-size: 22px;
  color: rgb(255, 255, 255);
  line-height: 70px;
  text-align: center;
  background: #9c18d4;
  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: fixed;
  background: #ffffff;
  border-radius: 3px;
  cursor: pointer;
}
label #btn{
  position: fixed;
  left: 40px;
  top: 25px;
  font-size: 35px;
  color: black;
  padding: 6px 12px;
  transition: all .5s;
  z-index: 950;
  
}

label #cancel{
  position: fixed;
  z-index: 1000;
  left: -210px;
  top: 17px;
  font-size: 30px;
  color: black;
  padding: 4px 9px;
  transition: all .5s ease;
}

#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{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  display: absolute;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  z-index: 10;
  background-color:#9c18d4;
}
.huvud img{
    height: 65px;
    width: 65px;
    right: 20px;
    top: 5px;
    position: absolute;
}
h1{
  text-align: center;
  color: #ffffff;
}
.bakgrund img{
  width: 100%;
  height: 150vh;
  object-fit: cover;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
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;
  background-color:#9c18d4;
}
svg{
  position: relative;
  top: 4px;
  right: 10px;
}


  .transparent-box {
    position: relative;
    top: 50px;
    width: 80%; /* Bredden på rutan */
    max-width: 800px; /* Maximal bredd */
    margin: 50px auto; /* Centrerar rutan på sidan */
    padding: 20px; /* Inre marginal för texten */
    background-color: rgba(255, 255, 255, 0.7); /* Vit bakgrund med 70% opacitet */
    border-radius: 10px; /* Rundade hörn */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Lägger till en skugga */
    text-align: center; /* Centrerar texten */
    color: #333; /* Textfärg */
    font-family: 'Roboto', sans-serif; /* Modern font */
  }
/* Responsiv design */
@media screen and (max-width: 768px) {

  .huvud header{
    padding: 0px;
    padding-top: 0px;
    position: absolute;
    top: 0px;
    min-height: 80px;
  }
  .huvud h1{
    display: none;
  }
  .huvud img{
    position: absolute;
    justify-items: center;
  }
  .transparent-box{
    position: relative;
    top: 100px;
  }
  /* Menyknappar */
  label #btn {
    left: 15px;
    top: 15px;
    font-size: 25px;
  }

  label #cancel {
    left: -165px;
    top: 10px;
    font-size: 25px;
  }
  /* Footer */
  footer {
    font-size: 14px;
    padding: 15px 0;
    position: absolute;
    top: 00px;
  }
  .sidebar{
    position: fixed;
    top: 0px;
  }
}
