﻿body {
  overflow-x: hidden;
}

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

.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: 100;
  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;
}

.paper {
  transform: rotate(-3deg);
  position: absolute;
  margin-top: auto;
  top: 20%;
  left: 20%;
  width: 60%;
  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);
  z-index: 100;
}

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

.ordjaktlogo {
  width: 100%;
  height: 50px;
  margin-bottom: 10px;
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
  background-image: url(images/ordjaktlogo.png);
}

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

.tillbaka {
  padding-left: 30px;
}

.tillbakaknappar{
  display: none;
  padding-bottom: 30px;
}

/* 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,
.btn:active {
  outline: 0;
}

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

.pussel {
  min-height: 98vh;
}

#klar {
  position: absolute;
  display: none;
  top: 30%;
  left: 20%;
  color: #000;
  font-size: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 100px 40px 110px 120px;
  width: 60%;
  z-index: 100;
}

#ordjakt {
  z-index: 50;
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
}

#rf-searchgamecontainer {
  float: left;
  margin-right: 50px;
}

/* Style for the div containing the word list */

#rf-wordcontainer {
  float: right;
}

/* Skriver över bootstrap för att fungera på iPads */
@media screen and (max-width: 780px) and (min-width: 767px) {
  .container {
    max-width: 720px !important;
  }
}

@media only screen and (max-width: 1024px) {
  .rf-tgrid {
    font-size: 21px !important;
    line-height: 20px !important;
    padding: 7px 10px !important;
  }
}
/* Style for grid cells */
.rf-tgrid {
  font-family: 'Cousine', monospace;
  font-weight: bold;
  font-size: 33px;
  line-height: 33px;
  margin: 1px;
  padding: 6px 13px;
  vertical-align: middle;
  text-align: center;
}

/* Style for the grid */
.rf-tablestyle {
  border: 2px solid;
  border-radius: 5px;
  border-color: #000;
  background-color: ghostwhite;
  cursor: pointer;
}

#rf-wordcontainer ul {
  font-family: 'Cousine', monospace;
  font-size: 25px;
  cursor: default;
  background-color: #ffed66;
  padding: 10px;
  border-radius: 771px 455px 200px 426px/217px 623px 173px 655px !important;
  box-shadow: 0 3px 0 #ff5e5b;
  margin: 3px;
}

#rf-wordcontainer h2 {
  font-size: 17px;
  padding-right: 10px;
  text-transform: uppercase;
  color: #000;
  margin: 3px;
  text-align: center;
  font-family: 'Cousine', monospace;
  font-weight: 800;
}

.rf-ptrue {
  list-style-type: none;
  padding: 5px 25px;
  margin: 3px;
  text-align: center;
}

.rf-foundword {
  text-decoration: line-through;
  background-color: transparent !important;
  opacity: 0.5;
}

#rf-tablegrid .rf-glowing {
  background: yellow;
}

#rf-tablegrid .rf-selected {
  background: #71fc01;
}

.rf-pfalse {
  display: none;
}

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

  .container {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .memory-container{
    padding: 0px !important;
  }

  .row {
    width: 100vw !important;
    min-width: 402px;
    margin-left: auto;
    margin-right: auto;
  }

  #rf-searchgamecontainer {
    float: none;
    margin-right: 0;
    width: 100%;
  }

  /* Style for the div containing the word list */

  #rf-wordcontainer {
    float: none;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 95%;
  }

  .rf-tablestyle {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .ordjaktlogo {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  #rf-wordcontainer ul {
    width: 100%;
    padding: 15px;
    border-radius: 771px 455px 200px 426px/217px 623px 173px 655px !important;
  }

  #rf-wordcontainer ul li {
    display: inline-block;
  }

  #rf-wordcontainer h2 {
    font-size: 20px;
  }

  .tillbaka {
    display: inline-block;
    width: 45%;
    text-align: center;
    box-sizing: border-box;
  }
}

@media only screen and (max-width: 550px) {
  .paper {
    transform: rotate(0deg);
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: auto;
    width: 90%;
    line-height: 1.5em;
    font-size: 140%;
    padding: 1em;
  }


  #rf-wordcontainer h2 {
    font-size: 18px;
  }

  #rf-wordcontainer ul {
    font-size: 18px;
  }

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


  .btn {
        font-size: 16px;

  }
  .tillbaka {
  }
}
