

body {
 background-color: #fbfdfe;
 /*width: 100%;*/
 width: 550px;
}

h1 {
  color: #0a283d;
  font-family: Helvetica;
  font-style: normal;
  font-weight: 700;
  font-size:39px;
  line-height: 45px;
  margin: 0;

}

#header {
  text-align: center;
  padding: 40px 0;
}



.tangentrad {

  display: flex;
  font-family: Roboto,sans-serif;
  font-weight: bold;



  width: 550px;
    margin: auto;
}



.normaltangent {
  color: #1b70a9;
  user-select: none;
  background-color: #e4e7eb;
  width: 40px;
  height: 60px;
  border-radius:5px;
  display: grid;
  place-items: center;
  margin: 5px;

}

.normaltangent:hover {
  opacity:0.6;
}

.stortangent {
  color: #1b70a9;
  user-select: none;
  background-color: #e4e7eb;
  width: 80px;
  height: 60px;
  border-radius:5px;
  display: grid;
  place-items: center;
  margin: 5px;
}
.stortangent:hover {
  opacity:0.6;
}



.material-icons {
  font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -moz-font-feature-settings: 'liga';
}

.stortangent1 {
  color: #1b70a9;
  user-select: none;
  background-color: #e4e7eb;
  width: 80px;
  height: 60px;
  border-radius:5px;
  display: grid;
  place-items: center;
  margin: 5px;
  margin-left: 15px;

}

.bokstavsruta {
  user-select: none;
  width: 60px;
  height: 60px;
  border: 1px solid #1b70a9;
  color: #1b70a9;
  font-size: 2rem;
  display: grid;
  place-items: center;
  margin: 5px;
  font-family: Helvetica;
}

@keyframes rutskak {
  0% {
    width: 60px;
    height: 60px;
    margin: 5px;
  }
  50% {
    width: 65px;
    height: 65px;
    margin: 2.5px;
  }
  100% {
    width: 60px;
    height: 60px;
    margin: 5px;
  }
}

.rutskakklass {
  animation-name: rutskak;
  animation-duration: 0.1s;
}


@keyframes snurr {
  0% {
    height: 60px;
    margin: 5px;
    font-size: 2rem;
  }
  50% {
    height: 1px;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 0.1rem;
  }
  100% {
    height: 60px;
    margin: 5px;
    font-size: 2rem;
  }
}

.snurrklass0 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0s;
}

.snurrklass1 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.1s;
}

.snurrklass2 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.2s;
}

.snurrklass3 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.3s;
}

.snurrklass4 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.4s;
}

.snurrklass5 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.5s;
}

.snurrklass6 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.6s;
}

.snurrklass7 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.7s;
}

.snurrklass8 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.8s;
}

.snurrklass9 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 0.9s;
}

.snurrklass10 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 1s;
}

.snurrklass11 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 1.1s;
}

.snurrklass12 {
  animation-name: snurr;
  animation-duration: 0.5s;
  animation-delay: 1.2s;
}







.bokstavsrad{
  display: flex;
}

#bokstavsplan {

    margin: auto;
}
#tangentbordsplan {
  margin:auto;
}




.halvrätt {
  background-color: #f8e895;
}


.heltRätt {
  background-color: #90d18c;
}

.flerStällen {
  background-image: url("flerStällen.jpg");
}

.heltFel {
  background-color: #b9babb;
}




.halvrätt-tan {
  background-color: #f8e895;
}


.heltRätt-tan {
  background-color: #90d18c;
}


.heltFel-tan {
  background-color: #b9babb;
}






#klaratOrd {
  display: none;
  text-align: center;
}


#förlorat {
  display: none;
  text-align: center;
}


/*för att skala ner så att tangentbordet får plats på i-phonar*/
@supports (-webkit-touch-callout: none) {
  #tangentbordsplan {
    scale: 0.83;
    margin-left:-25px;
    
  }
}

/*
@media screen and (max-width: 1080px) {
  #tangentbordsplan {
    scale: 0.8;
    left:-100px;
    margin-top: -30px;


  }
}
*/
