
body {
background: slateblue;
font-family: sans-serif;
background-size: cover;
background-image: url("../images/book1.jpeg")
}

.pagearea {
  position:absolute;
  left:20px;
  top:20px;
  right:20px;
  bottom:20px;
     user-select: none;
     -moz-user-select: none;
     -khtml-user-select: none;
     -webkit-user-select: none;
     -o-user-select: none;
}

.game {
  opacity: 1;
  width:820px;
  height:420px;
  -ms-transform-origin: top left;
  -webkit-transform-origin: top left;
  transform-origin: top left;
  -webkit-transition: all 500ms ease-in-out !important;
  transition: all 500ms ease-in-out !important;
  position: absolute;
    background-color: rgba(0,0,0,0.5);
    border-radius: 15px;

}

#Game_Area {
	z-index:1;
}

#gamearea{
    margin: 10px 13px;
}

#copyright {
  font-size: 0.7em;
  color: white;
  background-color: rgba(0,0,0,0.2);
  float: right;
    margin: 0px;
    padding: 3px;
    position: absolute;
    bottom: 0;
    right: 15px;
}

form {
  position:relative;
  width:100%;
}

.tb_list p {
	margin-block-start: 8px;
    margin-block-end: 8px;
}

.tb_list {
	top:0px;
    position: relative;
    float:right;
    padding: 4px 15px 2px 15px;
  	border-color: white;
  	border-radius: 15px;
  	border-width: 5px;
  	border-style: double;
    margin-bottom: 6px;
}

legend {
 	color:white;
    font-weight: bold;
}

select {
 	font-size:16px; 
    margin-bottom: 6px;
}

#topicbox{
    font-size: 1.57em;
    font-weight: bold;
    text-align: center;
    background-color: rgba(0,0,0,0);
    border: none;
    color: white;
    width: 430px;
}

.tb {
  	top:0px;
  	position:relative;
    float:left;
    border: 5px double white;
    border-radius: 15px;
  	background-color: rgba(0,0,0,0.3);
	color: white;
    padding: 0 15px 6px 15px;
  	width: fit-content;
    margin-bottom: 5px;
}

h1, h2, h3 {
    color: white;
    padding: 7px 20px;
    margin: 5px 0;
    text-align: center;
}



#quest {
    width:100%;
    box-sizing: border-box;
	height: 260px;
	font-size: 14px;
	background-color: rgba(255,255,255,0.7);
	border: 5px solid white;
	border-radius: 15px;
  	position:relative;
  	float:left;
  	margin-top:5px;
  	padding: 10px;
    overflow-y: scroll;
  
}

#newquest {
    width:100%;
    box-sizing: border-box;
	height: 150px;
	font-size: 1.2em;
	background-color: rgba(255,255,255,0.7);
	border: 5px solid white;
	border-radius: 15px;
  	position:relative;
  	float:left;
  	margin-top:10px;
  	padding: 10px;
    overflow-y: scroll;  
}

#newtextfield {
    width: 100%;
    border: none;
    padding: 0;
}


#newtextfield legend {
    margin: 0 0 -7;
}

.ta{
    height: 200px; 
}
.textarea,
[contenteditable] {
    -webkit-user-select: text;
    user-select: text;
}

.id {
 	width:25px;
    float:left; 	 
}

.text{
    margin: 0 20;
 	width:650px;
    float:right;
    display: block;
}

.text a{
    text-decoration: none;
    color: black;
}



.rows{
 	padding: 10px 0; 
    display:flex;
    border-bottom: dashed 1px gray;
}

.highlight {
	background-color: yellow;
}


#Instruction_Score {
	z-index:3;
}

.box{
    background: #eee;
    height: 65px;
    width: 75px;
    float: left;
    margin: 10px 10px;
    text-align: center;
    padding-top: 20px;
    font-size: 36pt;
    cursor: pointer;
}

.box:empty {
	background-color:rgba(240, 240, 240, 0.3);
}

.nonbox{
    background: #eee;
    height: 65px;
    width: 125px;
    float: left;
    margin: 10px 15px;
    text-align: center;
    padding-top: 20px;
    font-size: 36pt;
    cursor: pointer;
}


#question, #title{
	width: 320px;
	float: left;
  	background-color: rgba(0,0,0,0.1);
}

#feedback, #newfeedback {
    width: 380px;
    height: 35px;
    float: left;
    text-align:center;
    padding: 5px;
    border:5px double white;
    border-radius:15px;
    background-color: rgba(255,255,255,0.7);
    margin: 10px 0;
}

#newfeedback {
    height: 50px;
}

#quest img {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    float: right;
    margin-right: 5px;
}

#score_col{
    column-count: 2;  
    column-fill: balance;
}

h4 {
	margin-block-start: 2px;
    margin-block-end: 3px;
}

#instructions{
	margin: 80px;
}

#separator {
    clear: both;
    border-top: solid 1px #ccc;
}




#number1, #number2, #answer, #line, #start, #remainder {
	display:block;
	float:left;
}

#number1 {
	border-left: solid 3px black;
	border-top: solid 3px black;
}

#answer{
	margin-left: 193px;
}

#u4{
	float:right;
}

#remainder{
	font-size: 36pt;
}

#line{
	width:100%;
}

hr{
	border: 2px solid #e0e0e0;
	margin:0px;
}

#checkbutton, #listbutton {
    float:right;
    //width: 270px;
    margin: 10px 0 10px 20px;
    text-align:center;
}

#checkbutton h1, #listbutton h1 {
	padding: 5px 20px;
	margin: 2px auto;
	cursor: pointer;
    border: double white 5px;
    border-radius: 15px;
    background-color: rgba(0,0,0,0.3);
}

#checkSend{
 	display:none; 
    background-color: rgba(255,255,255,0.9);
    font-size:1.5em;
    position: absolute;
    top: 20;
    right: 20;
    bottom: 20;
    left: 20;  
    border-radius: 15px;
    padding: 30px;
    z-index:-1;
}

.greenlight {
	background-color: 88ff88;
}


.S_button {
    width: 200px;
    font-size: 1.5em;
    border: 4px solid black;
    border-radius: 15px;
    background-color: red;
    color: white;
    position: absolute;
    bottom:30px;
    float: right;
    text-align: center;
    padding: 5px;
    cursor: grab;
}

#okSend, #editSend {
	right: 30px;
    background-color: green; 
}

.send{
 	padding: 10px 30px;
  	background: white;
  
}

/* Tooltip text */
.tb .tooltiptext, .ta .tooltiptext, fieldset#newtextfield .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #ff9;
    color: #000;
    text-align: center;
    padding: 5px;
    border-radius: 6px;

  /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 80%;
    margin-left: -60px;
    
  /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
}

.ta {
	position: relative;
  	float: left;
    width: 100%;
    margin-bottom: 10px;
}

.ta .tooltiptext {
    /* Position the tooltip text */
    position: absolute;
    z-index: 1;
    top: -15%;
    left: 75%;
    margin-left: -60px;
    height:45px;
}


/* Tooltip arrow */
.tb .tooltiptext::after, .ta .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -3%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #ff9  transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tb:hover .tooltiptext, .ta:hover .tooltiptext, #newtextfield:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.opener {
    width: 150px;
    
}

.genre {
    width: 120px;
    
}
.options{
    margin: 5px 10px 3px 10px;
    height: 30px;
    text-align: center;
    width: 190px;
    float:left;
}

#optionsbox {
    display:inline-block;
    float:right;
}

#meaningbox {
    width: 270;
    padding: 5 0;
    margin: 5 0;
}


//Added for autocomplete

.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
}

/* extra input */

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
  margin: 8 20;
}
.autocomplete-items div {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #000;
  border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #333333;
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}

#SpagReturn {
    float: left;
    margin: -5;
}
