body {
	overflow-x: hidden;
}


#main {
	min-height: 100vh;
	overflow: hidden;
}

.tryggvefunderar {
	position: absolute;
    left: 1vw;
    bottom: 0;
    width: 30vw;
    height: 40vw;
    z-index: 2;
    background: url(images/tryggvefunderar.png);
    background-size: auto 60%;
    background-repeat: no-repeat;
    background-position-y: bottom;
}


@media only screen and (max-width: 1024px) {
.tryggvefunderar {
 display: none;
}

}

@media only screen and (max-width: 800px) {

.tryggvefunderar {
 display: none;
}

.flip-container {
  width: 32% !important;
  margin-right: 1% !important;
  margin-left: 0 !important;
}

}

.ui-widget-content {
 border: none !important;
 background: none !important;
 color: #000 !important;
 }

.ui-widget-header {
 	border: none !important;
	background: none !important;
    color: #333;
    font-weight: bold;
}

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
	border: none !important;
    background: none !important;
    background: #FF5E5B;
    font-weight: normal;
    color: #000;
 }  
 
 .ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor, .ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor, .ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor {
  cursor: pointer !important;
  }

.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    padding: 5px 10px !important;
}

.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited {
    color: #FF5E5B !important;
    text-decoration: none;
}    

.ljud_box {
	display: none;
    background: #FFED66;
    box-shadow: 0 3px 0 #FF5E5B;
    position: absolute;
    right: 16px;
    top: 60px;
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
    z-index: 1010;
    border-radius: 10px 0 10px 10px;

 }

.ljud_box:after  {
	bottom: 100%;
	left: 93.5%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ljud_box:after {
	border-color: rgba(255, 237, 102, 0);
	border-bottom-color: #FFED66;
	border-width: 15px;
	margin-left: -15px;
}


.desc {
	margin-left: 30px;
    font-size: 20px;
    color: #000;
    margin-right: auto;
}

h1 {
    color: #FFED66 !important;
    text-transform: uppercase !important;
	padding-bottom: 23px;
    font-size: 60px !important;
    font-weight: 700 !important;
	text-shadow: -2px 3px 0 #000;
    margin-left: auto;
    margin-right: auto;
 }

.btn {
	z-index: 10;
}

.topplista {
	display: none;
    position: absolute;
    z-index: 2000 !important;
    width: 50vw;
    padding: 5px 25px 35px 35px;
    background: #FFED66;
    color: #fff;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 3px 0 #FF5E5B;
    border-radius: 100px 40px 110px 120px;
    z-index: 110;
    }
    
.topplista h2 {
	color: #000;
    text-align: center;
    margin-left: 15px;
    text-transform: uppercase;
}
 
.topplista .nuvarande {
	background-color: #FFF !important;
	color: #000 !important;
}

.topplista li .namn {
	float: left;
}

.topplista li .tid {
	float: right;
}

.topplista li {
    padding: 5px;
    min-height: 40px;
    margin-bottom: 10px;
    display: block;
    list-style: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 21px;
 }

.topplista li {
  visibility: hidden;
  -webkit-animation: rolldown .7s 1;
          animation: rolldown .7s 1;
  -webkit-transform-origin: 50% 0;
          transform-origin: 50% 0;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  background-color: #FFED66;
  color: #000;
}


.tryggve {
  position: absolute;
  left: 1vw;
  bottom: 23vh;
  z-index: 100;
 }

.tryggve img {
	width: 30vh;
	height: auto;
}

.memory {
	min-height: 90vh;
	margin-top: 12vh !important;
  position: relative;
  padding-bottom: 50px;
 }
 
 .memory-container {
 	min-height: 66vh;
    z-index: 101;
    padding-top: 50px;
}

.cards-container {
	width: 100%;
	text-align: center;
}
.flip-container {
  position: relative;
  width: 100%;
  display: inline-block;
  margin-bottom: 5px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-container .flipper {
  position: relative;
  -webkit-transform-style: preserve-3d;
  -webkit-transition: 0.5s;
  -moz-transform-style: preserve-3d;
  -moz-transition: 0.5s;
  -ms-transform-style: preserve-3d;
  -ms-transition: 0.5s;
  -o-transform-style: preserve-3d;
  -o-transition: 0.5s;
}
.flip-container.active .flipper {
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}


.back:before, .front:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    box-shadow: 5px 5px 20px 5px rgba(0,0,0,0.2);
	border-radius: 5px;

}

.memoryliten .flip-container {
 border-radius: 5px;
 width: 16.6%;
 margin-right: 4%;
 transition: ease 0.8s;
 }

 
 .memorymellan .flip-container {
 border-radius: 5px;
 width: 15%;
 margin-right: 1%; 
 transition: ease 0.8s;
 }

.memorymellan {
	margin-top: 40px;
}

.memorystor .flip-container {
 border-radius: 5px;
 width: 12%;
 margin-left: 0%;
 margin-right: 3%;
 transition: ease 0.8s;
 }
 

 
.flip-container:hover { 
   transform: rotate(0deg) !important;
   transform: scale(1.1) !important;
 }

.front {
  background-image: url('kort.png');
  background-size: contain;
  background-color: #ea6004;
  background-repeat:no-repeat;
  background-position: center center;

}

.front,
.back {
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 100%;
 }

.front {
  background-color: #ea6004;
  z-index: 2;
  -moz-transform: rotateY(0);
  -o-transform: rotateY(0);
  -ms-transform: rotateY(0);
  -webkit-transform: rotateY(0);
  transform: rotateY(0);
}
.front label {
  cursor: pointer;
  display: inline-block;
  font-size: 22px;
}

.back {
  background-image: url('framsida.png');
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center center;
  position: relative;
  color: #000;
  background-color: #fff;
  z-index: 2;
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.back span {
  padding-top: 40%;
  text-align: center;
  vertical-align: middle;
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 17px; 
  font-weight: 700;
  border-radius: 5px;
}

.memoryknappar {
  display: block;
  z-index: 1000;
  margin-top: 10px;
}

.tillbaka a {
	text-decoration: none;
	color: #000;
}

.tillbaka a:hover {
  color: #000;
}

.timemiddle {
	margin-left: -10px;
    margin-right: -10px;
}
.currenttime {
	padding-top: 5px;
	font-size: 50px;
	width: 100%;
	text-align: right;
}
/* Timer */
.timer {
  display: none;
  position: absolute;
  right: 30px;
  top: -35px;
  background-color: rgba(255,255,255,0.4);
  padding: 10px 10px 0px 10px;
  border-radius: 5px;
  color: #000;
}

.timer label#minutes,
.timer label#seconds {
  display: inline-block;
}
.timer .time {
  display: none;
  font-size: 15px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #FFED66;
  padding: 15px 30px;
  border: none;
  border-radius: 30px;
  font-family: "Hind", sans-serif;
  font-size: 20px;
  text-decoration: none;
  color: #000;
  box-shadow: 0 3px 0 #FF5E5B;
  cursor: pointer;
  transition: all 100ms linear;
}
.btn:hover {
  -moz-transform: translateY(-4px);
  -o-transform: translateY(-4px);
  -ms-transform: translateY(-4px);
  -webkit-transform: translateY(-4px);
  transform: translateY(-4px);
  box-shadow: 0 7px 0 #FF5E5B;
}
.btn:focus {
  outline: 0;
}

/* Helpers */
.align-center {
  text-align: center;
}

.hide {
  display: none !important;
}

.cursor-default {
  cursor: default !important;
}

/* Reponsive Rules */
/* Animations */
@keyframes wobble {
  from {
    transform: none;
  }
  15% {
    transform: translate3d(-10%, 0, 0) rotate3d(0, 0, 1, -5deg);
  }
  30% {
    transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 3deg);
  }
  45% {
    transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -3deg);
  }
  60% {
    transform: translate3d(5%, 0, 0) rotate3d(0, 0, 1, 2deg);
  }
  75% {
    transform: translate3d(-10%, 0, 0) rotate3d(0, 0, 1, -1deg);
  }
  to {
    transform: none;
  }
}
.wobble {
  animation: wobble 600ms ease-in-out;
}

@-webkit-keyframes rolldown {
  0% {
    visibility: visible;
    -webkit-transform: rotateX(180deg) perspective(500px);
            transform: rotateX(180deg) perspective(500px);
  }
  70% {
    visibility: visible;
    -webkit-transform: rotateX(-20deg);
            transform: rotateX(-20deg);
  }
  100% {
    visibility: visible;
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
}

@keyframes rolldown {
  0% {
    visibility: visible;
    -webkit-transform: rotateX(180deg) perspective(500px);
            transform: rotateX(180deg) perspective(500px);
  }
  70% {
    visibility: visible;
    -webkit-transform: rotateX(-20deg);
            transform: rotateX(-20deg);
  }
  100% {
    visibility: visible;
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
}



/* Memory dropdown */
.memorydropdown {
  position: absolute;
  top: 20px;
  right: 0;
  left: 0;
  margin: auto;
  outline: 0;
  width: 20%;
  min-width: 180px;
  display: block;
  background-color: #FFED66;
  border-radius: 771px 455px 200px 426px/217px 623px 173px 655px !important;
  box-shadow: 0 3px 0 #FF5E5B;
  transition: all .5s ease;
  font-size: 14px;
  color: #474747;
  height: 60px;
  text-align: left;
  font-family: "Hind", sans-serif;
  font-size: 20px;
  text-decoration: none;
  color: #000;
  text-align: center;
  z-index: 1000;
  cursor: pointer;
 }

.memorydropdown .select {
    display: block;
    padding: 15px;
    margin-left: 20px;
}

.memorydropdown .select > i {
    font-size: 13px;
    color: #888;
    float: right;
    line-height: 20px;
    padding-right: 30px;
    transition: all .6s;
}

.memorydropdown.active:hover,
.memorydropdown.active {
    border-radius: 5px 5px 0 0;
	background-color: #FFED66;
}
.memorydropdown.active .select > i {
    transform: rotate(-90deg)
}
.memorydropdown .memorydropdown-menu {
	  position: absolute;
    background-color: #FFED66;
    width: 75%;
    right: 25px;
    top: 60px;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    display: none;
    max-height: 144px;
    overflow-y: auto;
    z-index: 1009;
}
.memorydropdown .memorydropdown-menu li {
	padding: 10px;
    transition: all .6s;
    cursor: pointer;
    height: 47px;
 } 
    
.memorydropdown .memorydropdown-menu {
    padding: 0;
    list-style: none
}
.memorydropdown .memorydropdown-menu li:hover {
    background-color: #FF5E5B;
    color: #fff;
}
.memorydropdown .memorydropdown-menu li:active {
    background-color: #FF5E5B;
    color: #fff;
}

.memorydropdowntext {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: -20px;
}


.paper {
  transform: rotate(-3deg);
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  line-height: 1.5em;
  background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-image: -moz-linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-image: -ms-linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 100% 1.5em;
  background-position: 0 1.2em;
  background-origin: content-box;
  background-color: rgba(255, 255, 244, 0.8);
  font-size: 140%;
  padding: 1.3em;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.paper p {
	margin-bottom: 32px;
}

.stangtopplista {
    margin-left: 25%;
    width: 50%;
    border: 1px solid #000;
}

.star {
	background-image: url('star.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 36px;
    height: 30px;
    padding: 0 10px;
    margin: 0 3px;
    float: left;
}

.ui-state-active .ui-tabs-anchor {
	border-bottom: 2px solid #000;
}

@media screen and (max-width: 500px){

  .paper h1 {
    font-size: 28px !important;
    line-height: 15px !important;
  }
  
  .paper {
  transform: rotate(0deg);
  width: 100%;
  font-size: 16px;
  margin-top: 0 !important;
  }
  
  .btn {
  padding: 15px 20px !important;
  }
	
	.topplista {
	 width: 95vw !important;
	}
	
	.star {
		width: 26px !important;
	    height: 30px !important;
	}

  .tillbaka{
    font-size: 18px !important;
    margin-top: 50px;
  }

  .btntopplista {
    font-size: 18px !important;
  }

  #btn-start {
    font-size: 18px !important;
  }

  .memorydropdown{
    min-width: 200px;
    top: 50px;
    right: 5%;
    left: auto;
    border-radius: 971px 255px 200px 426px/217px 223px 173px 655px !important;
  }

  .memorydropdown .memorydropdown-menu {
    width: 80%;
    left: 27px;
  }
}