html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  height: 100%;
  background-image: url(../img/topography.png);
  overflow-x: hidden;
  max-width: 100%;
}
/* section to hide things */

#characterInput {
  display: none;
}

#store {
  display: none;
}

#gameMainScreen {
  display: none;
  font-size: 12px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

#gameMainScreen .row {
  margin-left: 0;
  margin-right: 0;
}

#gameMainScreen .row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
  max-width: 100%;
}
#wagon-6,
#wagon-5,
#wagon-4,
#wagon-3,
#wagon-2 {
  display: none;
  margin-top: 36px;
  position: absolute;
  z-index: 1;
}

#wagon-1 {
  position: absolute;
  margin-top: 36px;
  z-index: 1;
}

#wheel-6,
#wheel-5,
#wheel-4,
#wheel-3,
#wheel-2,
#wheel-1 {
  display: none;
  position: absolute;
  margin-top: 85px;
  z-index: 100;
  height: 35px;
}

#wheel-6 {
  margin-left: 25px;
}

#jesus {
  display: none;
  z-index: 50;
  height: 90px;
  margin-top: 20px;
  margin-left: 20px;
  position: absolute;
}

#star {
  display: none;
  z-index: 101;
  position: absolute;
  height: 20px;
  margin-bottom: 105px;
  margin-left: 15px;
}

#wagon-images .col-md-2 {
  padding: 0px 5px;
}

/* page formatting */

.prettyColumn {
  background-color: #f2f2f2;
  border: 2px solid black;
  padding: 10px;
  min-height: 244px;
}

.prettyColumn label{
  font-size: 23px;
  padding: 1px;
}

#characterInput .prettyColumn {
  min-height: 298px;
}



.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 4px double black;
  padding: 30px;
  min-height: 665px;
  max-width: min(1140px, calc(100vw - 16px));
  box-sizing: border-box;
}

.store-titles {
  height: 53px;
}

.store-titles h2{
  float: left;
}

.store-titles h3 {
  float: right;
}

#wagon-images {
  background-image: url(../img/mountains.png);
  background-size: cover;
  background-position: bottom;
  padding: 5px 10px;
  border: 2px solid black;
  margin: 0;
  height: 151px;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.icon-animate {
  width: 64px;
  height: 64px;
  position: absolute;
  bottom: 50%;
  left: 5%;
  background-image: url(../img/beans.png);
  background-size: cover;
  animation: example 40s linear 0s infinite reverse;
  -moz-animation: 40s linear 0s reverse none infinite example;
  -webkit-animation: example 40s linear 0s infinite reverse;
  -0-animation: example 40s linear 0s infinite reverse;
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes example {
  0%   {left:5%; bottom:50%; transform:rotate(0deg); background-image: url(../img/beans.png);}
  10%  {left:90%; bottom:25%; transform:rotate(360deg); background-image: url(../img/beans.png);}
  20%  {left:5%; bottom:45%; transform:rotate(0deg); background-image: url(../img/boots.png);}
  30%  {left:90%; bottom:75%; transform:rotate(360deg); background-image: url(../img/boots.png);}
  40%  {left:5%; bottom:55%; transform:rotate(0deg); background-image: url(../img/gun.png);}
  50% {left:90%; bottom:25%; transform:rotate(360deg); background-image: url(../img/gun.png);}
  60%  {left:5%; bottom:45%; transform:rotate(0deg); background-image: url(../img/whisky.png);}
  70% {left:90%; bottom:65%; transform:rotate(360deg); background-image: url(../img/whisky.png);}
  80%  {left:5%; bottom:35%; transform:rotate(0deg); background-image: url(../img/ox.png);}
  90% {left:90%; bottom:25%; transform:rotate(360deg); background-image: url(../img/ox.png);}
  100%   {left:5%; bottom:50%; transform:rotate(0deg); background-image: url(../img/beans.png);}
}

/* Standard syntax */
@keyframes example {
  0%   {left:5%; bottom:50%; transform:rotate(0deg); background-image: url(../img/beans.png);}
  10%  {left:90%; bottom:25%; transform:rotate(360deg); background-image: url(../img/beans.png);}
  20%  {left:5%; bottom:45%; transform:rotate(0deg); background-image: url(../img/boots.png);}
  30%  {left:90%; bottom:75%; transform:rotate(360deg); background-image: url(../img/boots.png);}
  40%  {left:5%; bottom:55%; transform:rotate(0deg); background-image: url(../img/gun.png);}
  50% {left:90%; bottom:25%; transform:rotate(360deg); background-image: url(../img/gun.png);}
  60%  {left:5%; bottom:45%; transform:rotate(0deg); background-image: url(../img/whisky.png);}
  70% {left:90%; bottom:65%; transform:rotate(360deg); background-image: url(../img/whisky.png);}
  80%  {left:5%; bottom:35%; transform:rotate(0deg); background-image: url(../img/ox.png);}
  90% {left:90%; bottom:25%; transform:rotate(360deg); background-image: url(../img/ox.png);}
  100%   {left:5%; bottom:50%; transform:rotate(0deg); background-image: url(../img/beans.png);}
}

.icon-wagon {
  width: 120px;
  height: 103px;
  position: absolute;
  bottom: 24%;
  left: 5%;
  background-image: url(../img/wagon.png);
  background-size: cover;
  animation: wagonwheel 40s linear 0s infinite reverse;
  -moz-animation: 40s linear 0s reverse none infinite wagonwheel;
  -webkit-animation: wagonwheel 40s linear 0s infinite reverse;
}

#start {
  position: relative;
  text-align: center;
}

.start-leaderboard {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0.5rem 0.5rem 0 0;
  max-width: min(46vw, 300px);
  max-height: min(58vh, 380px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.55rem 0.7rem;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.start-leaderboard-title {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0.35rem;
}

.start-leaderboard-list {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.start-leaderboard-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.start-leaderboard-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.start-lb-rank {
  font-weight: 700;
  color: #155724;
  font-size: 0.9em;
}

.start-lb-name {
  width: 100%;
  word-break: break-word;
  white-space: normal;
}

.start-lb-score {
  font-size: 0.85em;
  color: #555;
}

.start-lb-date {
  font-size: 0.78em;
  color: #777;
  letter-spacing: -0.02em;
}

.start-lb-empty {
  color: #666;
  font-style: italic;
  display: block;
}

.start-leaderboard-list li.start-lb-empty {
  border-bottom: none;
  padding: 0.35rem 0;
}

#startBTN {
  margin-top: 3rem;
  width: 40%;
}

/* Safari 4.0 - 8.0 */
@-webkit-keyframes wagonwheel {
  0%   {left:5%;}
  50% {left:85%;}
  100% {left:5%;}
}

/* Standard syntax */
@keyframes wagonwheel {
  0%   {left:5%;}
  50% {left:85%;}
  100% {left:5%;}
}

.main-title {
  position: absolute;
  top: 21%;
  left: 50%;
  transform: translate(-50%, -50%);

}

.main-title h1 {
    font-size: 75px;
    animation: titleeffect 10s linear 0s 1 normal;
    -moz-animation: 10s linear 0s normal none 1 titleeffect;
    -webkit-animation: titleeffect 10s linear 0s 1 normal;
}


/* Safari 4.0 - 8.0 */
@-webkit-keyframes titleeffect {
  0%   {font-size: 1px}
  100% {font-size: 75px}
}

/* Standard syntax */
@keyframes titleeffect {
  0%   {font-size: 1px}
  100% {font-size: 75px}
}

#start img {
  width:100%;
  margin-bottom:10px;
}
.sky1 {
    background: #d5e4eb;
}
.sky2 {
  background: #bad1de;
}
.sky3 {
    background: #d5e4eb;
}
.sky4 {
  background: #bad1de;
}
.sky5 {
  background: #d5e4eb;
}
.sky6 {
  background: #bad1de;
}

img {
  max-width: 100%;
}

#characterBTN {
  margin-top: 23px;
  width: 108px;
}

#gameMainScreen .prettyColumn {
  margin-bottom: 2rem;
  padding: 5px 10px;
}

#gameMainScreen h1 {
  margin-bottom: 0px;
  font-size: calc(2.5rem - 4px);
}

#gameMainScreen h2 {
  font-size: calc(2rem - 4px);
}

#gameMainScreen .col-md-4 .btn {
  width: 100%;
  margin-bottom: 1rem;
  font-size: calc(1rem - 4px);
}

#characterInput .col-md-12 {
   text-align: left;
   margin-top: 20px;
 }

#charNameInput input {
  display: block;
  border: none;
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
  font-size: 23px;
}

#gameMainScreen ul{
  list-style: none;
  margin: 10px 0;
  padding-left: 0;
}

#ongoing-text-box {
  background: #f2f2f2;
  height: 340px;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 2rem;
  padding: 5px 10px;
  font-weight: 300;
  letter-spacing: 1px;
  font-size: calc(1rem - 4px);
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#ongoing-text-box p:before {
 content: "\2605";
}

#ongoing-text-box br {
  line-height: 200%;
}

#player-one-name,
#player-two-name,
#player-three-name,
#player-four-name,
#player-five-name,
.bold {
  font-weight: bold;
}

.current-date {
  font-weight: normal;
}

 #store {
  background-image: url(../img/merc.png);
  background-size: cover;
  background-position: center;
  height: 597px;
  position: relative;
 }

 #store .store-fields {
  background: white;
  padding: 25px;
  position: absolute;
  bottom: 0;
  width: 70%;
  right: 0;
  background-color: #f2f2f2;
  border: 2px solid black;
  border-bottom: 0;
  border-right: 0;
}

#upper-store-fields .col-md-3 {
  text-align: right;
}

#food-fields .col-md-3,
#bullet-fields .col-md-3 {
  border: 1px solid black;
  text-align: right;
  line-height: 41px;
  background: white;
  font-weight: 300;
}

#food-fields .col-md-3:first-of-type,
#bullet-fields .col-md-3:first-of-type {
  padding: 0px;
}

#store input {
  width: 100%;
  height: 41px;
  text-align: right;
  padding-right: 10px;
}

#store p {
  margin: 0px;
}

#storeBTN {
  margin: 10px 0;
}

#store .row  {
  margin-right: 0;
  margin-left: 0;
}

.store-total  {
  float: right;
  margin-right: 10px;
  font-size: 20px;
  margin-top: 10px;
}
/*Modal Popup*/



/* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 11%; /* Location of the box */
    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.7); /* Black w/ opacity */
}
.modal2 {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    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.7); /* Black w/ opacity */
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


#popup-text,
.button-child {
  background-color: white;
  padding: 20px;
  width: 50%;
  max-width: 673px;
  margin: 0 auto;
  font-size: 22px;
  text-align: center;
}

.modal-child,
.button-child {
  text-align: center;
}

.modal-child img{
  width: 50%;
  max-width: 673px;
  max-height: 50vh;
  height: auto;
}

.score-save-row {
  margin: 1rem 0;
  text-align: center;
}
.score-save-row label {
  display: block;
  font-size: 0.95em;
  margin-bottom: 0.35rem;
}
#score-player-name {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}
.save-score-message {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85em;
  min-height: 1.2em;
}
#profession input {
  margin-right: 10px;
}

#profession #radio1,
#profession #radio2,
#profession #radio3,
#profession #radio4,
#profession #radio5,
#profession #radio6 {
  position: relative;
}

#profession .tooltiptext {
  visibility: hidden;
  width: 190px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 0px 17px 17px 17px;
  padding: 16px;
  margin-left: 7px;
  margin-top: 15px;
  position: absolute;
  z-index: 1;
}

#faq .tooltiptext,
#sacrifice-button .tooltiptext {
  visibility: hidden;
  max-width: min(331px, calc(100vw - 48px));
  width: max-content;
  box-sizing: border-box;
  background-color: black;
  color: #fff;
  text-align: left;
  padding: 16px;
  position: absolute;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 1px;
  font-size: calc(1rem - 4px);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#faq .tooltiptext {
  border-radius: 0px 17px 17px 17px;
  margin-left: 35px;
  margin-top: 2px;
}

#sacrifice-button .tooltiptext {
  border-radius: 17px 0px 17px 17px;
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 8px;
  margin-top: 2px;
  font-size: calc(1rem - 6px);
}

#radio1:hover .tooltiptext {
  visibility: visible;
}

#radio2:hover .tooltiptext {
  visibility: visible;
}

#radio3:hover .tooltiptext {
  visibility: visible;
}

#radio4:hover .tooltiptext {
  visibility: visible;
}

#radio5:hover .tooltiptext {
  visibility: visible;
}

#radio6:hover .tooltiptext {
  visibility: visible;
}

#faq:hover .tooltiptext {
  visibility: visible;
}


#sacrifice-button:hover .tooltiptext {
  visibility: visible;
}

#sacrifice-button:hover {
  transform: scale(1.2);
}

#supplies {
  text-align: center;
  margin-top: 15px;
}

#supplies img{
  width: 50px;
}

#supplies span {
  font-size: 14px;
}

#supplies p {
  margin-bottom: 5px;
}

#status-panel li {
  margin-bottom: 3px;
}

#faq {
  position: absolute;
  right: 15px;
}

#faq img {
  width: 38px;
}

#sacrifice-button {
  position: absolute;
  right: 15px;
  transition: all .2s ease-in-out;
}

#sacrifice-button img {
  width: 38px;
}


.ui-widget-header {
    border: 1px solid #28a745;
    background: #28a745;
}

#progress-title {
  margin-bottom: 0px;
  margin-top: 15px;
  font-size: calc(1rem - 4px);
}

.ui-progressbar {
  height: 3em;
}

.health-bar {
  height: 9px;
  margin-bottom: 6px;
}

/*confetti*/

.confetti {
  background-image: url('../img/fireworks.gif');
  background-size: cover;
}


/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}
