body {
  font-family: sans-serif;
  height:100%;
  margin:-1px;
  overflow-x: hidden !important;
}

#instructions {
  position:relative;
  background-color: white;
  color:black;
  padding: 15px;
  font-family:sans-serif;
  border: 10px black solid;
  display:block;
  opacity:0.8;
}

#graingernarrative {
  height:100%;
  background-color: #FFF;
  color:black;
  padding:15px;
  font-family:sans-serif;
  border: 10px black solid;
  margin-top:0.2%;
  opacity:0.8;
}
/* grainger studio */

#picforgoogle {
  display:none;
}

#grainger-studio {
  background: url("images/spotlight.jpg");
  background-size:100% 100%;
  height:100%;
  margin-top:0.2%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.piano {
  width: 305px;
  height: 190px;
  background-color: #000;
  display:none;
  cursor:pointer;
  padding:55% 0 8% 0%;
  margin-right:2%;
  flex-wrap:nowrap;
}

.key {
  width: 30px;
  height: 180px;
  display: inline-block;
  border: solid #141c3a 2px;
  box-shadow: 4px 5px;
  background-color: white;
  color: #000;
}

.black-key {
  width: 25px;
  height: 100px;
  display: inline-block;
  background-color: #141c3a;
  color: white;
  position: absolute;
  margin-left: -12px;
  padding: 0px;
}

.keynote {
  width: 20px;
  height: 20px;
  text-align: center;
  display: block;
  margin: 0 auto;
  margin-top: 155px;
  color: #141c3a;
}
.black-keynote {
  width: 20px;
  height: 20px;
  text-align: center;
  display: block;
  margin: 0 auto;
  margin-top: 80px;
}

#back {
  width:7%;
  background-color:#DDD;
  text-align:center;
  padding:6px 2px;
  border: 2px solid black;
  cursor:pointer;
  display:none;
  margin-top:90%;
  margin-bottom:2%;
  margin-right:2%;
  font-size:2vw;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 1px 1px;
}

#back:hover {
  background-color:#CCC;
}

#grandpiano {
  cursor:pointer;
  margin-left:65%;
  margin-top:50%;
  width:35%;
  margin-bottom:20%;
  position:relative;
}

#reward {
  color:white;
  display:none;
  position:absolute;
  font-size:2.3vw;
  margin-left:2%;
}

#leftticket {
  position:absolute;
  display:none;
  margin-top:10%;
  width:30%;
  margin-left:2%;
}

/*library*/

#librarynarrative {
  height:100%;
  background-color: #FFF;
  color:black;
  padding:15px;
  font-family:sans-serif;
  border: 10px black solid;
  margin-top:0.2%;
  opacity:0.8;
}

#library {
  height:100%;
  width:100%;
  background-color:#E0E0E0;
  margin-top:0.2%;
}

#bookscolored {
  padding-top:10%;
  width:54%;
  margin-left:2%;
}

#corkboard {
  width:36%;
  display:inline;
  float:right;
  position:relative;
  margin-top:4%;
  margin-right:4%;
}

#corkboardanswers {
  width:36%;
  display:none;
  float:right;
  position:relative;
  margin-top:4%;
  margin-right:4%;
}

#cdshelf {
  position:relative;
  float:right;
  margin-top:-8%;
  margin-right:6%;
  display:inline;
  width:35%;
  cursor:pointer;
}

#largecd {
  width:95%;
  position:absolute;
  display:none;
  margin-left:2%;
}

#back3 {
  display:none;
  width:8%;
  background-color:#BBB;
  text-align:center;
  padding:5px 2px;
  border: 2px solid black;
  cursor:pointer;
  margin-left:80%;
  margin-top:-15%;
  position:absolute;
  font-size:2vw;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 1px 1px;
}

#back3:hover {
  background-color:#CCC;
}

#desk {
  width:63%;
  margin-left:20%;
  position:relative;
}

#desksuccess {
display:none;
width:63%;
margin-left:20%;
position:relative;
z-index:0;
}

#enterkey {
  display:inline-block;
  position:absolute;
  margin-top:16%;
  margin-left:-40%;
  width:0.3px;
  border:none;
}

#computerpassword {
  width:115%;
  height:60%;
  position:absolute;
}

.cursor {
  display:inline;
  position:absolute;
  margin-left:-38.5%;
  margin-top:10.5%;
  z-index:20;
  width:6%;
  height:3%;
  background-color: #474644;
}

.cursor i {
  position: absolute;
  width: 1px;
  height:50%;
  background-color: gray;
  left:10%;
  top:25%;
  animation-name: blink;
  animation-duration: 800ms;
  animation-iteration-count: infinite;
  opacity: 1;
}

.cursor input:focus + i {
  display: none;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0; }
}

#yellowbook {
  position:absolute;
  z-index:10;
  margin-left:-20.4%;
  margin-top:12.4%;
  display:inline;
  width:11%;
  cursor:pointer;
}

#paper {
  position:absolute;
  margin-left:-51.9%;
  margin-top:16.1%;
  display:inline;
  width:8.3%;
  cursor:pointer;
  z-index:100;
}
  
#sibelius2 {
  position:relative;
  display:none;
  width:45%;
  margin-left:23%;
  margin-bottom:4%;
}

#largepaper {
  position:relative; 
  display:none;
  width:45%;
  margin-left:23%;
  margin-bottom:4%;
}

#back1 {
  width:7%;
  background-color:#CCC;
  text-align:center;
  padding:6px 0px;
  border: 1px solid #888;
  cursor:pointer;
  position:relative;
  margin-right:20%;
  margin-top:52.5%;
  float:right;
  display:none;
  font-size:2vw;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 1px 1px;
}

#back1:hover {
    background-color:#BBB;
  }

#libraryhintbutton {
    position:absolute;
    margin-left:3%;
    margin-top:-8%;
    width:7%;
    background-color:#CCC;
    text-align:center;
    padding:6px 0px;
    border: 1px solid #888;
    cursor:pointer;
    font-size:2vw;
    box-shadow: 1px 1px;
  }
  
#libraryhintbutton:hover {
    background-color: #BBB;
  }

#libraryhintcontent {
 position:absolute;
 margin-top:-19%;
 margin-left:2%;
 display:none;
 width:38%;
}

.librarymodalcontent{
  background-color: #CCC;
  margin: 3% 3% 3% 3%;
  padding: 12px;
  border: 1px solid #888;
  width: 88%; 
  font-size:2vw;
}

/*office*/

#officenarrative {
  height:100%;
  background-color: #FFF;
  color:black;
  padding:15px;
  font-family:sans-serif;
  border: 10px black solid;
  display:block;
  opacity:0.8;
}

#office {
  display:flex;
  align-items:center;
}

#instruments {
  display:block;
  width:100%;
  position:relative;
}

#officehintbutton {
  position:absolute;
  margin-bottom:2%;
  margin-left:3%;
  width:7%;
  background-color:#DDD;
  text-align:center;
  padding:6px 0px;
  border: 1px solid #888;
  cursor:pointer;
  font-size:2vw;
  box-shadow: 1px 1px;
  align-self:flex-end;
  margin-top:-2%;
}

#officehintbutton:hover {
  background-color: #CCC;
}

.modal {
  display: none;
  position: absolute; 
  z-index: 1; 
  width: 38%;
  align-self:flex-end;
  margin-left:2%;
  margin-top:-2%;
  margin-bottom:2%;
}

/*boxoffice*/

#boxofficenarrative {
  height:100%;
  background-color: #FFF;
  color:black;
  padding:15px;
  font-family:sans-serif;
  border: 10px black solid;
  opacity:0.8;
}

#boxoffice {
  display:block;
}

#boxofficehintbutton {
  position:absolute;
  margin-left:3%;
  margin-top:-6%;
  width:7%;
  background-color:#DDD;
  text-align:center;
  padding:6px 0px;
  border: 1px solid #888;
  cursor:pointer;
  font-size:2vw;
  box-shadow: 1px 1px;
}

#boxofficehintbutton:hover {
  background-color: #CCC;
}

#boxofficehintcontent {
  width:38%;
  display:none;
  margin-left:2%;
  position:absolute;
  margin-top:-14%;
}

#townhall {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

#rightticket {
  position:relative;
  margin-bottom:2%;
  margin-left:65%;
  width:18%;
}

#foyernarrative {
  height:100%;
  background-color: #FFF;
  color:black;
  padding:15px;
  font-family:sans-serif;
  border: 10px black solid;
  margin-top:5px;
  opacity:0.8;
}

#tuner {
  width:25%;
  display:inline;
  margin-top:6%;
  margin-left:10%;
}

#bassooncrook {
  width:10%;
  margin-left:10%;
  margin-right:10%;
  margin-top:4%;
}

#ringcycle {
  width:22%;
  margin-top:-5%;
}

#form {
  height:300px;
  font-family:sans-serif;
  display:block;
  padding-right:26%;
  padding-top:5%;
}

#input {
  list-style-type:none;
  margin:auto;
  padding-bottom:30px;
  text-align:right;
  padding-right:15%;
}

.list {
  padding:20px;
  border-radius:10px;
}

input:valid {
  border: 2px solid green;
  background-image: url('images/tick.png');
  background-repeat: no-repeat;
  background-position: right;
  outline:none;
}

input:focus:invalid {
  border: 2px solid red;
  background-image:url('images/cross.png');
  background-repeat:no-repeat;
  background-position:right;
  outline:none;
}

#computerpassword:valid {
  border: 2px solid black;
  background:white;
}

#computerpassword:focus:invalid {
  border:1px solid red;
  background:white;
}

label {
font-size:2vw;
}

#errormessage {
  margin-left:2%;
}

#finished {
  margin-left:78%;
  margin-bottom:5%;
  box-shadow: 1px 1px;
}

#flowers {
  display:block;
  margin:auto;
  width:60%;
  padding-left:20%;
  display:none;
}

#endmessage {
  text-align:center;
  padding-left:20%;
  font-weight:600;
  display:none;
}

#thanks {
  font-weight:700;
  text-align:center;
  padding-bottom:20px;
  padding-left:15%;
}


/* Modal Content/Box */
.modal-content {
  background-color: #DDD;
  padding: 2%;
  border: 1px solid #888;
  width: 88%;
  font-size:2vw;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 3vw;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color:#777;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width:420px) {
  .piano {
    width: 220px;
    height: 127px;
  }
  .key {
    width: 20px;
    height: 120px;
    border: solid #141c3a 1px;
  }
  .black-key {
    width: 17px;
    height: 66px;
  }
  .keynote {
    width: 13px;
    height: 13px;
    font-size:3.5vw;
    margin-top: 100px;
  }

  .black-keynote {
    width: 20px;
    height: 13px;
    font-size:3vw;
    margin-top: 46px;
  }
  .cursor {
    height:2%;
    width:4%;
  }

  .cursor i {
    top:45%;
  }
}