﻿body{
  overflow-y:scroll;
  overflow-x: hidden
}

.indexmainwrapper {
  width: 95vw;
  margin: 0 auto;
  position: relative;
}

.return {
  position: absolute;
  right: 10vw;
  top: 1.5vw;
  transition-duration: .2s
}

.return a {
  text-decoration: none;
  color: #3a57a7;
  font-size: 21px;
  line-height: 28px;
  height: 28px;
  font-weight: 100;
  white-space: nowrap;
}

/*  Slideshow  ------------------------------------*/

.slideshowwrap {
  width: 70vw;
  height: auto;
  max-width: 1000px;
  max-height: 450px;
  border-radius: 15px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition-duration: .1s;
}

.slidecont {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  top: 0;
  left: -0000px;
  animation: 25s slidecont infinite ease-in-out;
}

.slideshowwrap:hover{
  box-shadow: 0 0 7px #3a57a7;
  transition-duration: .2s;
}

.slideimg {
  display: flex;
  align-items: center;
  width: 70vw;
  height: auto;
  max-width: 1000px;
  max-height: 450px;
  position: relative;
}

.slideshowwrap img {
  max-width: 1000px;
  max-height: 450px;
  width: 70vw;
  height: auto;
  position: relative;
}


@keyframes slidecont {
  0% {
    left: 0;
  }

  22% {
    left: 0;
  }

  28% {
    left: -100%;
  }

  47% {
    left: -100%;
  }


  53% {
    left: -200%;
  }

  72% {
    left: -200%;
  }

  78% {
    left: -300%;
  }

  94%{
    left: -300%
  }

  100% {
    left: -400%;
  }

}


/*  Image viewer  ------------------------------------*/

.previewimages {
  display: flex;
  width: 70vw;
  margin: 47px auto 0 auto;
  justify-content: space-around;
  overflow: hidden;
  padding: 10px;
  flex-wrap:wrap;
  align-items: center;
}

.previewimage {
  width: 25vw;
  max-width: 300px;
  max-height:200px;
  cursor: default;
  display:flex;
  justify-content:center;
  margin: 10px 0;
  cursor:pointer

}

.previewimage img {
  width: 25vw;
  max-width: 300px;
  max-height:200px;
  height:13.2vw;
  border-radius: 15px;
  box-shadow: 0 0 2px #3a57a7;
  transition-duration: .1s;
}

.previewimage img:hover {
  box-shadow: 1px 1px 10px #3a57a7;
}

.space{
  height:0;
}

@media(max-width:1845px) {
  .previewimages{
	margin-bottom:20px
  }

  .previewimage{
	width:50%;
  }

  .previewimage img{
	width:35vw;
	height:23vw
  }
}

@media(max-width:1280px) {
  .previewimages {
    width: 90vw;
  }
}

@media(max-width:850px) {
  .return {
    position: absolute;
    right: 5vw;
    top: 5vw;
  }

  .return a {
    text-decoration: none;
    color: #3a57a7;
    font-size: 2.5vw;
    font-weight: 400;
    white-space: nowrap;
  }

  .indexmainwrapper {
    width: 100vw;
  }

  .previewimages {
    width: 95vw;
  }

  .slideshowwrap,
  .slideimg,
  .slideshowwrap img {
    width: 100vw;
    border-radius: 0;
  }



  .previewimages {
    flex-direction: column;
    margin: 20px auto 20px auto;
    padding: 0;
    border-top: 1px solid rgba(58, 87, 167, .2);
    background: linear-gradient(to right, white, rgba(58, 87, 167, .05), white);

  }

  .previewimage {
    width: 60vw;
    max-width: none;
    height: calc(60vw * 2 / 3);
    max-height: none;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    cursor: default;
  }

  .previewimage:nth-child(1) {
    padding: 20px 0 10px 0;
  }
  .previewimage img {
    width: 100%;
    height: 100%;
    cursor: pointer;
    max-height: none;
    max-width: none;
  }
}



/*  Sökruta  ------------------------------------*/

.newitem {
  width: 80vw;
  display: flex;
  margin: 25px auto 10px auto;
  max-width: 600px;
  justify-content: center;
  line-height: 25px;
  flex-direction: column;
}

.newitem form {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.newitem form input {
  padding: 5px 10px;
  margin: 10px 0;
  outline: none;
}

.newitem form input:focus {
  box-shadow: 0 0 3px #3a57a7;
}

#item {
  width: 100%;
  border: 1px solid #3a57a7;
  border-radius: 5px;
  outline-color: lightgrey;
  font-size: 16px;
  overflow: hidden
}

#additem {
  width: 20%;
  border: 1px solid #3a57a7;
  border-radius: 5px;
  background: #3a57a7;
  color: white;
  font-family: monospace;
  padding: 5px;
  margin: 10px 5px;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  outline: none;
  transition-duration: .2s;
  overflow: hidden
}

#additem:hover {
  font-size: 14px
}

.itemwrap {
  width: 80vw;
  max-width: 600px;
  margin: 0 auto 10px auto;
  overflow: hidden;
  text-align: center;
}

.items:nth-child(1) {
  border: 2px solid white;
}

.items {
  width: calc(100% - 2px);
  padding: 10px 0;
  border: 2px solid white;
  border-radius: 5px;
  border-top: none;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  background: rgba(58, 87, 167, .1);
  align-items: center;
  transition-duration: .2s;
  overflow: hidden;
  cursor: pointer;
}

.items p,
.del,
.check {
  margin: 0 15px;
}

.items p {
  width: 100%;
  overflow: hidden;
}

#mailform {
  display: none;
  flex-direction: column;
  width: 100%;
}

#mailform input {
  border: 1px solid #3a57a7;
  border-radius: 5px;
  outline-color: lightgrey;
  font-size: 16px;
  overflow: hidden
}

#mail {
  border: 1px solid #3a57a7;
  border-radius: 5px;
  background: #3a57a7;
  color: white;
  font-family: monospace;
  margin: 10px 5px;
  cursor: pointer;
  min-width: 80px;
  text-align: center;
  outline: none;
  transition-duration: .2s;
  overflow: hidden
}

.del {
  width: 25px;
  height: 25px;
  background: white;
  background-image: url("cross.png");
  background-size: 22px 22px;
  background-position: center;
  cursor: pointer;
  border: 1px solid grey;
}

.check {
  width: 23px;
  height: 23px;
  background: white;
  border: 1px solid grey;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

@media(max-width:400px) {
  .mainwrapper {
    width: 95vw;
  }

  .newitem {
    width: 95vw;
  }

  .itemwrap {
    width: 95vw;
  }
}


.popup {
  position: absolute;
  background: white;
  width: 400px;
  max-width: 88%;
  height: 150px;
  border: 1px solid #3a57a7;
  top: 40%;
  left: 50%;
  margin: -75px 0 0 -200px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border-radius: 15px;
}

.popup p {
  line-height: 20px
}

.popup a {
  margin: 0 auto;
  padding: 0 1px;
  text-align: center;
  position: relative;
  right: 0;
  bottom: 0;
  font-size: 20px;
  line-height: 22px;
  cursor: pointer;
  color: #3a57a7;
  text-decoration: none;
  border-bottom: 1px solid #3a57a7;
}
