html {
  font-family: 'ToyotaType Light', "ToyotaType", sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

@font-face {
  font-family: 'ToyotaType';
  src: url("../fonts/ToyotaType-Regular.woff2") format("woff2"), url("../fonts/ToyotaType-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ToyotaType Light";
  src: url("../fonts/ToyotaType-Light.woff2") format("woff2"); /* Modern Browsers */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ToyotaType Bold';
  src: url("../fonts/ToyotaType-Bold.woff2") format("woff2"), url("../fonts/ToyotaType-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal
}

@font-face {
  font-family: 'ToyotaType Book';
  src: url("../fonts/ToyotaType-Book.woff2") format("woff2"), url("../fonts/ToyotaType-Book.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "ToyotaType Black";
  src: url("../fonts/ToyotaType-Black.woff2") format("woff2"); /* Modern Browsers */
  font-weight: normal;
  font-style: normal;
}

body {
  width: 1900px;
  height: 1060px;
  /*background: url( '../img/art_v7_bknd_dark3.jpg') no-repeat;*/
  background-color: #43504A;
  font-face: ToyotaType, Helvetica, sans-serif;
}

h1 {
  position: absolute;
  color: #D9D9D9;
  font-family: ToyotaType Light;
  font-size: 60px;
  text-align: center;
  letter-spacing: 2.4px;
  font-weight: 100;
  top: 10px;
  left: 391px;
  width: 1140px;
  line-height: 65px;
  margin-left: auto;
  margin-right: auto;
}

#toyota_location {
  font-family: ToyotaType Black;
  font-size: 60px;
  font-weight: bold;
  letter-spacing: 2.4px;
}

#box_1, #box_2, #box_3, #box_4 {
  position: absolute;
  background: rgb(208, 208, 208, 0.5);
}

#box_1 {
  width: 60%;
  height: 200px;
  top: 50px;
  left: 20%;
}

#part1_1 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 91px;
}

#part1_2 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 356px;
}

#part1_3 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 621px;
}

#part1_4 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 886px;
}

#part1_5 {
  position: absolute;
  width: 280px;
  top: 165px;
  left: 30px;
  transform: rotate: (-1deg);
}

#part1_6 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 645px;
}

#box_2 {
  width: 350px;
  height: 468px;
  top: 309px;
  left: 410px;
}

#part2_1 {
  position: absolute;
  width: 80px;
  top: 20px;
  left: 55px;
}

#part2_2 {
  position: absolute;
  width: 50px;
  top: 12px;
  left: 150px;
}

#part2_3 {
  position: absolute;
  width: 100px;
  top: 25px;
  left: 225px;
}

#part2_4 {
  position: absolute;
  width: 90px;
  top: 130px;
  left: 50px;
}

#part2_5 {
  position: absolute;
  width: 270px;
  top: 120px;
  left: 40px;
}

#part2_6 {
  position: absolute;
  width: 250px;
  top: 255px;
  left: 65px;
}

#part2_7 {
  position: absolute;
  height: 380px;
  top: 40px;
  left: 15px;
}

#part2_8 {
  position: absolute;
  width: 100px;
  top: 365px;
  left: 75px;
}

#part2_9 {
  position: absolute;
  width: 100px;
  top: 380px;
  left: 210px;
}

#box_3 {
  width: 60%;
  height: 200px;
  bottom: 250px;
  left: 20%;
}

#part3_1 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 91px;
}

#part3_2 {
 position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 356px;
}

#part3_3 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 621px;
}

#part3_4 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 886px;
}

#part3_5 {
  position: absolute;
  width: 175px;
  height: 175px;
  top: 10px;
  left: 645px;
}

#box_4 {
  width: 350px;
  height: 434px;
  top: 309px;
  left: 1538px;
}

#part4_1 {
  position: absolute;
  width: 110px;
  top: 10px;
  left: 15px;
}

#part4_2 {
  position: absolute;
  width: 160px;
  top: 8px;
  left: 172px;
  transform: rotate(-0.5deg);
}

#part4_3 {
  position: absolute;
  width: 220px;
  top: 80px;
  left: 65px;
  transform: rotate(90deg);
}

#part4_4 {
  position: absolute;
  width: 150px;
  top: 350px;
  left: 140px;
  transform: rotate(180deg);
}

#part4_5 {
  position: absolute;
  height: 220px;
  top: 150px;
  left: 235px;
}


#agv h2, #piv h2, #neither h2 {
  display: none;
  /*position: absolute;
  width: 114px;
  height: 16px;
  /* UI Properties
  text-align: center;
  font-weight: normal;
  letter-spacing: 1.3px;
  color: #343232;
  background-color: #BABABA;
  opacity: 0.8;
  font-face: ToyotaType Book;
  font-size: 13px;
  text-align: center;
  padding: 5px;
  padding-bottom: 8px;*/
}

#agv {
  position: absolute;
  top: 300px;
  left: 20%;
  width: 315px;
  height: 208px;
  /* UI Properties */
  background: transparent url('../img/AGV_BUTTON.png') 0% 0% no-repeat padding-box;
  background-size: cover;
  opacity: 1;
}

#agv h2 {
  top: 0px;
  left: 15px;
}

#piv {
  position: absolute;
  top: 300px;
  right: 20%;
  width: 315px;
  height: 208px;
  /* UI Properties */
  background: transparent url('../img/PIV_BUTTON.png') 0% 0% no-repeat padding-box;
  background-size: cover;
  opacity: 1;
}



#piv h2 {
  top: 0px;
  left: 15px;
}

#neither {
  position: absolute;
  top: 300px;
  left: 42%;
  width: 315px;
  height: 208px;
  /* UI Properties */
  background: transparent url('../img/NEITHER_BUTTON.png') 0% 0% no-repeat padding-box;
  background-size: cover;
  opacity: 1;
}

#neither h2 {
  top: 0px;
  left: 15px;
}


#correct_box {
  position: absolute;
  top: 260px;
  left: 60px;
  width: 250px;
  height: 300px;
}

#incorrect_box {
  position: absolute;
  top: 260px;
  right: 10px;
  width: 250px;
  height: 300px;
}

#correct_number, #incorrect_number {
  position: absolute;
  top: 0;
  left: 9px;
  text-align: center;
  font-family: ToyotaType Light;
  font-size: 170px;
  letter-spacing: 0;
  color: #D9D9D9;
  opacity: 1;
}

#correct_button {
  position: absolute;
  top: 220px;
  left: 5px;
  background: rgb(39,152,52,0.46);
  border: 5px solid #2F2F2F;
  text-align: center;
  width: 190px;
  height: 64px;
}

#incorrect_button {
  position: absolute;
  top: 220px;
  left: 5px;
  background: rgb(255,0,0,0.46);
  border: 5px solid #2F2F2F;
  text-align: center;
  width: 190px;
  height: 64px;
}

#correct_button p, #incorrect_button p {
  color: #E3EFED;
  opacity: 0.8;
  font-family: ToyotaType Black;
  font-size: 28px;
  letter-spacing: 1.6px;
  line-height: 4px;
}

#control_box {
  position: absolute;
  width: 60%;
  height: 270px;
  top: 805px;
  left: 20%;
  text-align: center;
}

#control_box a {
  text-decoration: none;
}

#timer_box {
  position: absolute;
  width: 500px;
  height: 270px;
  top: 805px;
  left: 640px;
  text-align: center;
}

#timer {
  color: #DDE2E2;
  font-family: ToyotaType Book;
  font-size: 100px;
  letter-spacing: 5.2px;
  position: absolute;
  top: 50px;
  left: 138px;
}

#start_game {
  position: absolute;
  top: 90px;
  left: 160px;
  background: #40A34B;
  border: 5px solid #2F2F2F;
  text-align: center;
  width: 160px;
  height: 80px;
}

#start_game p {
  margin-top: 5px;
  color: #E3EFED;
  font-family: ToyotaType Black;
  font-size: 34px;
  letter-spacing: 1.8px;
  line-height: 34px;
}

#reset_game {
  position: absolute;
  top: 90px;
  left: 850px;
  background: rgb(255,0,0,0.46);
  border: 5px solid #2F2F2F;
  text-align: center;
  width: 160px;
  height: 80px;
}

#reset_game p {
  margin-top: 5px;
  color: #E3EFED;
  font-family: ToyotaType Black;
  font-size: 34px;
  letter-spacing: 1.8px;
  line-height: 34px;
}

#chapter3 {
  position: absolute;
  top: 625px;
  right: 55px;
  background: #469A63;
  border: 6px solid #F7C336;
  border-radius: 6px;
  text-align: center;
  width: 250px;
  height: 315px;
  text-decoration: none;
}

.ch3_line1 {
  margin-top: 15px;
  margin-bottom: 0px;
  color: #F7C336;
  font-family: "Toyota Type", Sans-serif;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
}

.ch3_line2 {
  margin-top: 0px;
  margin-bottom: 0px;
  color: #FFFFFF;
  font-family: "Toyota Type", Sans-serif;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
}

.ch3_line3 {
  margin-top: 15px;
  margin-bottom: 0px;
  color: #F7C336;
  font-family: "Toyota Type", Sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

#game-instruction {
  position: absolute;
  top: 515px;
  left: 420px;
  margin-top: 15px;
  margin-bottom: 0px;
  color: #F7C336;
  font-family: "Toyota Type", Sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}

#buttons {
  position: absolute;
  top: 190px;
  left: -8px;
  display: none;
}

#buttons ul {
  list-style: none;
  display: flex;
}

#buttons li {
  width: 124px;
  height: 26px;
  background-color: #D9D9D9;
  border: 1px solid #5D5D5D;
  font-size: 13px;
  font-family: ToyotaType Bold;
  letter-spacing: 1.3px;
  color: #7C7C7C;
  line-height: 13px;
}

#buttons li a {
  font-size: 13px;
  font-family: ToyotaType Bold;
  letter-spacing: 1.3px;
  color: #7C7C7C;
  line-height: 13px;
  text-decoration: none;
}

#buttons li a:hover {
  text-decoration: underline;
}

#buttons li p {
  margin-top: 7px;
  line-height: 13px;
}

li#middle {
  margin-left: 25px;
  margin-right: 25px;
}

.ui-widget-content, .ui-dialog-buttonpane {
  background: rgb( 87, 85, 85, 0.72);
  color: #E3EFED;
  font-family: ToyotaType Light;
}

.ui-widget-content p, .ui-widget-content h1, .ui-widget-content h2, .ui-widget-content h3 {
  opacity: 1;
}

.ui-widget-content h2 {
  text-align: center;
  font-family: ToyotaType;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 6px;
  color: #E80404;
  opacity: 1;
  margin-bottom: 0;
  margin-top: 5;
}

.ui-widget-content h4 {
  text-align: center;
  font-family: ToyotaType Light;
  font-size: 50px;
  letter-spacing: 0;
  color: #FFFFFF;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 5px;
}

.ui-widget-content h4 span {
  font-family: ToyotaType Bold;
  font-weight: bold;
}

.ui-widget-content h3 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-family: ToyotaType;
  font-size: 20px;
  letter-spacing: 2px;
  color: #555555;
  opacity: 1;
  margin-top: 35px;
  margin-bottom: 40px;
  background: #FFFFFF 0% 0% no-repeat padding-box;
  width: 310px;
  padding: 5px;
}

.ui-widget-content p {
  font-family: ToyotaType Light;
  font-size: 16px;
  letter-spacing: 0;
  color: #FFFFFF;
  text-align: left;
  margin-left: 10px;
  margin-right: 10px;
}

.ui-dialog {
  border: 2px solid #F20B0B;
}

.ui-dialog-buttonpane, .ui-dialog-buttonpane button, .ui-dialog .ui-dialog-buttonpane {
  border: 0;
  padding: 0;
}

.ui-dialog .ui-dialog-content {
  z-index: 1000;
}

.ui-dialog .ui-dialog-buttonpane {
  background: rgb( 87, 85, 85, 0.1);
}

.ui-dialog .ui-dialog-buttonpane button {
  margin: 30px; 30px; 0 0;
  background-color: transparent;
  background-image: url("../img/close_button.png");
  border: none;
}

.ui-dialog .ui-dialog-buttonpane button:focus {
  outline: 0;
}

.ui-widget.ui-widget-content {
  background: rgb( 87, 85, 85, 0.72);
  border: 2px solid #F20B0B;
}

.ui-widget-overlay {
  background-color: #B0B0B0;
  opacity:  .7;
}

.ui-widget button {
  width: 45px;
  height: 45px;
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: none;
  background-image: url("../img/close_button.png");
  background-repeat: no-repeat;
}

.ui-dialog table {
  width: 100%;
  margin-left: 10px;
  margin-right: 10px;
}

.ui-dialog table th {
  font-family: ToyotaType Light;
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  color: #FFFFFF;
  padding: 5px 20px 5px 5px;
}

.ui-dialog table tr td {
  text-align: right;
  margin-left: 20px;
  margin-right: 20px;
  font-family: ToyotaType Light;
  font-size: 20px;
  font-weight: normal;
  color: #FAFAFA;
  padding: 2px 20px 2px 5px;
  
}

.ui-dialog table tr td.names {
  text-align: center;
}

.start_box.ui-widget {
  font-family: ToyotaType Book, ToyotaType, sans-serif;
  margin: 0;
  padding: 0;
}

.start_box.ui-widget-content {
  background-color: transparent;
  color: #FFFFFF;
  font-family: ToyotaType Black;
  font-size: 75px;
  letter-spacing: 1.6px;
  line-height: 75px;
  border: none;
  padding: 0;
  margin: 0;
}

.start_box.ui-widget-content {
  background-color: transparent;
  border: none;
}

.start_box.ui-dialog {
  background-color: transparent;
  border: none;
  vertical-align: middle;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.start_box.ui-dialog-content {
  vertical-align: middle;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
  
}
.start_box.ui-widget.ui-widget-content {
  background-color: transparent;
  border: none;
}

.start_box.ui-widget-overlay {
  background-color: transparent;
  opacity:  .9;
}

#dialog_start {
  overflow: hidden;
  color: #5A5C5A;
  font-family: ToyotaType Light;
  font-size: 600px;
  line-height: 650px;
  max-width: 1880px;
  max-height: 100px;
  margin: 0;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

#dialog_rules, #dialog_rules h2, #dialog_rules h3, #dialog_rules h4, dialog_rules p {
  max-width: 1000px;
}

