/* nimetään alueet */

.main-head {
  grid-area: header;
  min-width: 100%;
}

.raskaLogo {
  grid-area: raskaLogo;
  padding: 10px;
  min-height: 80px;
  max-height: 150px;
  height: 10vw;
  width: auto;
}

.tekstiRASTI {
  grid-area: tekstiRASTI;
  text-align: right;
  font-size: 6vw;
  max-height: 150px;
}

.tekstiKARHUT {
  grid-area: tekstiKARHUT;
  font-size: 6vw;
  max-height: 150px;
}

.loginarea {
    grid-area: loginarea;
    text-align: center;
}

.profiili {
    grid-area: profiili;
    text-align: center;
    height: 40px;
}

.muokkausHead {
    grid-area: muokkausHead;
    text-align: center;
    height: 40px;
}

.luouusi {
    grid-area: luouusi;
    text-align: center;
    height: 40px;
}

.kirjaudu {
    grid-area: kirjaudu;
    text-align: center;
    height: 40px;
}

.headernappulat {
  grid-area: headernappulat;
  text-align: center;
  height: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas: "muokkausHead luouusi";
}

@media (min-width: 993px) {
.headernappulat {
  height: 40px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "muokkausHead luouusi";
}

}

.kirjaudualue {
    grid-area: kirjaudualue;
    max-height: 150px;
    display: grid;
    grid-template-rows: 40px 40px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "kirjaudu profiili"
                         "headernappulat headernappulat";
}

.rooli {
  grid-area: rooli;
  text-align: center;
}

.paddingtopbottom5 {
    padding-top: 5px;
    padding-bottom: 5px;
}

.main-head {
  display: grid;
  grid-template-areas: "raskaLogo tekstiRASTI tekstiKARHUT kirjaudualue";
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196F3;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 30px;
}

.slider.round:before {
  border-radius: 50%;
}
