body {
  margin: auto;
  width: 1600px;
  text-align: center;
  font-family: Comic Sans MS, Textile, Cursive;
  background-color: #aaa;
}

main {
  background-color: white;
  margin: auto;
}

#start-view, #game-view {
  margin: auto;
  margin-top: 60px;
  width: 1500px;
  height: 800px;
}

h1 {
  padding-top: 150px;
  font-size: 4.5em;
}

h2 {
  margin-top: 1.5em;
}

button {
  background-color: white;
  font-size: 12pt;
  font-family: Comic Sans MS, Textile, Cursive;
  width: 110px;
  padding: 8px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.start-btns {
  margin-top: 250px;
}

.start-btns button {
  margin-left: 40px;
}

.game {
  display: flex;
  justify-content: space-between;
}

.game-left {
  width: 70%;
}

#board {
  padding-top: 15px;
  height: 600px;
  position: relative;
  background: url('img/BOARD_DESIGN.png') no-repeat;
  background-size: 100% 100%;
  margin-top: 70px;
  margin-left: auto;
  margin-right: auto;
}

#man3 {
  position: absolute;
  display: block;
  overflow: hidden;
  width: 30px;
  height: 30px;
  transform: translate(100px, 50px);
  transition-duration: .6s;
  border-radius:50%;
  border-color: #00FFFF;
  border-width: 2px;
  border-style: solid;
}

/* Butons on the top right corner of the page (menu, information, rules) */
.prime-btn {
  margin-left: 170px;
}

.decision-window {
  border: 5px outset #777;
  border-radius: 6px;
  width: 500px;
  height: 600px;
  background-color: white;
}

#rolled-number {
  font-size: 28pt;
  margin: 0;
  display: block;
  width: 50px;
  height: 50px;
  margin: auto;
}

/* Insurance buy selection buttons from 1 to 4 */
#num-btns {
  display: flex;
  justify-content: center;
}

#selection-list {
  height: 250px;
  /* white-space: pre; */
}

#plan-btns {
  margin-top: 50px;
}

#plan-btns button {
  margin-top: auto;
  margin-bottom: 5px;
}

#ins-img img, #save-img img, #event-img img {
  height: 250px;
  width: 250px;
  margin: 10px;
}

/* Protection index bar */
.protection-index {
  /**border: 4px solid black;*/
  border: 4px inset goldenrod;
  border-radius: 20px;
}

.index-bar {
  width: 0%;
  background-color: gold;
  height: 20pt;
  /**border: 4px inset goldenrod;*/
  border-radius: 20px;
  /** Border box to get the 4px+4px of border to be included in the 100% width */
  box-sizing: border-box;
}

/* The Popup (background) */
.popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#exit-confirm button {
  margin: 20px;
}

/* Popup Content/Box */
.infoPopup, .rulePopup, .exitPopup {
  background-color: #fefefe;
  margin: 5% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 900px; /* Could be more or less, depending on screen size */
}

.endPopup {
  background-color: #fefefe;
  margin: 10% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  border-radius: 10px;
  width: 500px; /* Could be more or less, depending on screen size */
}

#rulePage {
  width: 100%;
}

#info-detail {
  display: flex;
  justify-content: space-around;
  border: 5px outset;
  margin-top: 40px;
  height: 650px;
}

#result-detail {
  border: 5px outset;
  margin-top: 20px;
  height: 300px;
}

#info-detail > div {
  margin: 15px;
}

#result-detail > div {
  margin: 25px;
}

.endPopup > p {
  font-size: 2em;
}

#result-detail p {
  margin-bottom: 10px;
}

.info-top {
  height: 100px;
  margin-top: 15px;
}

.info-mid {
  height: 300px;
}

.info-but {
  height: 200px;
}

p {
  margin: 0;
}

#info-left, #info-right {
  width: 50%;
}

.exitPopup {
  width: 400px;
  margin-top: 250px;
}

/* The Close Button */
.close, .resultClose {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

.hidden {
  display: none;
}

.alignleft {
  float: left;
}

.alignright {
  float: right;
}
