@import "https://fonts.googleapis.com/css?family=Fauna+One|Montserrat|Great+Vibes";

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

  
body {
    height: 100vh;
    background-color: #c5d9dd;
    text-align: center;
}

h1 {
  font-family: "Great Vibes", cursive;
  color: white;
  font-size: 60px;
  font-weight: lighter;
  padding-top: 20px;
  
}

h2 {
  font-family: "Montserrat", sans-serif;
  color: white;
  font-size: 20px;
  font-weight: lighter;
}

h3 {
  font-family: "Great Vibes", cursive;
  color: #99bfc6;
  font-size: 40px;
  font-weight: lighter;
  margin-bottom: 15px;
  margin-top: 10px;
}

p {
  font-family: "Montserrat", sans-serif;
  color: grey;
}


.container {
  display: flex;
  flex-direction: column;
  justify-self: center;
  align-items: center;
  background-image: url(../images/background.jpg);
  background-size: cover;
  width: 500px;
  height: 650px;
  border: 2px solid white;
  border-radius: 20px;
}

#popupBox {
  width: 350px;
  padding: 10px;
  background-color: white;
  color: grey;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 210px;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  border-radius: 10px;
}
  
#popupBox.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

hr {
  margin: 10px 20px 0;
}

#teacher {
  margin: 30px 10px 20px;
}

#teacher p {
  color: white;
}

.container-passwd {
  background-color: white;
  padding: 20px;
  border-radius: 20px;
  width: 400px;
  margin: 0px auto;
  text-align: center;
}

.container-passwd p {
  padding-bottom: 10px;
}
  

.container-inner {
  width: 400px;
  margin: 0 auto;
  text-align: center;
}

img {
  margin: 20px auto 10px auto;
  display: block;
  width: 304px;
  height: 304px;
  border: 2px solid white;
  border-radius: 20px;
}

#input, #password {
  width: 200px;
  height: 42px;
  background-color: #c5d9dd;
  border: 2px solid white;
  border-radius: 10px;
  color: white;
  font-family: "Montserrat", sans-serif;
  padding: 10px 15px;
  font-size: 16px;
}


#output {
  margin-top: 20px;
  margin-bottom: 10px;
  height: 91px;
  background-color: white;
  border-radius: 10px;
  padding: 8px;
}

  #itemtosee {
    margin-bottom: 10px;
    background-color: white;
    border-radius: 10px;
    padding: 8px;
    height: 54px;
  }

  #backpack {
    margin-bottom: 10px;
    background-color: white;
    border-radius: 10px;
    padding: 8px;
    height: 54px;
  }

#winningbox {
  margin-top: 20px;
  margin-bottom: 10px;
  height: 219px;
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  display: none;
}

#winningbox p {
  padding-bottom: 10px;
}


button {
  background-color: #99bfc6;
  border: 2px solid white;
  border-radius: 10px;
  color: white;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}

#openBox, #closeBox {
  margin: 10px 0;
  font-size: 14px;
  padding: 8px 10px;
}

  #refresh {
    display: none;
    margin: 0 auto;
  }

  button:hover {
    background-color: #a3c3c9;
  }

  

#runthrough-box {
  background-color: white;
  text-align: left;
  padding: 20px;
  border-radius: 20px;
  width: 400px;
  display: none;
}

  ol {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    padding-top: 10px;
    list-style-position: inside;
    color: grey;
  }

  a{
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: white;
  }

  a:hover {
    color: #99bfc6;
  }

/* Responsiivisuus */

@media only screen and (max-width: 1599px) {
  #kuvaus {
    display: none;
  }
  h1 {
    font-size: 50px;
  }

  .container {
    height: 620px;
  }

  .container-inner {
    width: 380px;
  }

  p {
    font-size: 14px;
  }

  #openBox {
    margin: 5px;
  }

  img {
    width: 280px;
    height: 280px;
  }

}

@media only screen and (max-width: 600px) {
  h1 {
    font-size: 40px;
  }

  h3 {
    font-size: 30px;
  }
  button, #openBox, #closeBox {
  font-size: 12px;
  padding: 5px 8px;
  }

  #popupBox {
    width: 300px;
    top: 180px;
  }

  .container {
    width: 340px;
    height: 530px;
  }

  .container-inner {
    width: 300px;
  }

  .container-passwd {
    width: 300px;
  }

  #teacher {
    margin: 20px 5px 10px;
  }
  
  #teacher p {
    color: white;
    font-size: 12px;
  }

  #runthrough-box {
    width: 300px;
  }

  img {
    width: 230px;
    height: 230px;
  }

  #input, #password {
    height: 28px;
    width: 150px;
    background-color: #c5d9dd;
    border: 2px solid white;
    border-radius: 10px;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
  }

  p {
    font-size: 13px;
  }

  #output {
    height: 77px;
  }

  #winningbox {
    height: 205px;
    display: none;
  }

}