
/*-------------------------------------
  BASE STYLES
-------------------------------------*/

* {
  box-sizing: border-box;
}

body {
  font-size: 18px;
  font-family: "Red Hat Display", sans-serif;
  background-color: #FFFAF0;
}

a {
  text-decoration: none;
}


/*-------------------------------------
  UTILITY CLASSES
-------------------------------------*/

.hideme {
  display: none;
}

.showme {
  display: block;
}

.flexme {
  display: flex;
}

.squeezeme {
  animation: squeeze 0.5s ease forwards;
}

.deactiveme {
  pointer-events: none;
  opacity: 0.5;
}  

.inlineme {
  display: inline-block;
}  

.onhover:hover {
cursor: pointer;
background-color: #efefef;
}

.buttonactive {
background-color: #efefef;
}

.winnermessage {
	font-weight: bold;
	animation: winMe 0.9s ease-out forwards;
	display: inline-block;
	text-align: balance;
}

.acemessage {
	color: darkblue; 
	font-weight: bold; 
	animation: aceMe 1.4s ease-out forwards;
	display: inline-block;
	text-wrap: balance;
}

.aceemoji {font-size: 26px;}

/*-------------------------------------
  PAGE STRUCTURE
-------------------------------------*/

#GameOuter {

  margin: auto;
 margin-top: 50px;
}

#GameBoard {
  background-color: #ffffff;
  margin: auto;
  border: 1px solid black;
  border-radius: 3px;
  width: 80%;
  max-width: 1000px;
  display: flex;
}

#GameBoard > div {
  padding: 30px;
}

.GameQuestion {
  width: 50%;
}

.GameAnswer {
  width: 50%;
}

.PageTitle {
  font-size: 26px;
    font-weight: bold;
  margin: auto;
  text-align: center;
margin-bottom: 20px;
}


/*-------------------------------------
  GAME INTERFACE
-------------------------------------*/

#BorderCount {
  display: inline;
  font-weight: bold;
}

#StateAnnounce {
  font-weight: bold;
  display: block;
color: darkblue;
padding: 10px 20px;
border: 1px solid darkblue;
font-size: 1.5em;
text-align: center;
margin-bottom: 10px;
}

.statename {
  display: inline;
}

.borderdirection {
  padding-left: 10px;
}

#gamestatus {
  margin-top: 20px;
  border: 1px solid #333;
  text-align: center;
  padding: 30px;
}

#gamestatus > div:first-child {
  font-weight: bold;
}

#GameGuessBox {
  display: flex;
}

#BorderGuess {
  width: 300px;
}

#GuessButton {
  background-color: darkblue;
  color: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  margin-left: 10px;
}


.BordersListShell {
  display: flex;
  margin-top: 20px;
}

#BordersListNums {
  margin-right: 7px;
}

.borderrownum {margin-bottom: 1px;}

#BordersHints {
  font-size: 26px;
  margin-top: 30px;
}

.hintbox {
  margin-right: 10px;
  border: 1px solid gray;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cantpick {
  color: #999;
  pointer-events: none;
  text-decoration: line-through;
}

.StateCorrect {
  color: green;
  font-weight: bold;
  animation: popIn 0.6s ease;
}

.StateMissed{
margin-top: 1px;
}

.StateIncorrect {
  font-weight: bold;
  animation: popOut 0.3s;
  color: red;
}

#StrikesHolder{margin-top: 20px;}

#HideShowHints {
  margin-top: 20px;
font-size: .8em;
border: 1px solid #999;
padding: 7px 16px;
}

.righttogo {
border-top: 1px solid #999;
padding-top: 6px;
}

.responseanswer {
padding-bottom: 6px;
}

#regionChooser {
  display: none;
  text-align: center;
  margin-top: 50px;
}

.regionshell {
display: flex;
justify-content: center;
}

.regionshell > div {
width: 300px;
border: 1px solid #ccc;
background-color: #fff;
padding: 30px;
margin: 20px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
}


#GiveUpButton {
  margin-top: 20px;
font-size: .8em;
border: 1px solid #999;
padding: 7px 16px;
}

#GiveUpConfirm, #NewGameConfirm {
  margin-top: 20px;
font-size: .8em;
align-items: center;
}

#GiveUpYes, #GiveUpNo, #NewGameYes, #NewGameNo
{
  margin-left: 10px;

border: 1px solid #999;
padding: 5px 10px;
}

#PlayAgain {margin-top: 10px; border: 2px solid darkblue; color: darkblue;
padding: 5px 10px;}


#NewGameButton {
  margin-top: 20px;
font-size: .8em;
border: 1px solid #999;
padding: 7px 16px;
}



/*-------------------------------------
  AUTOCOMPLETE
-------------------------------------*/

#StateSuggestions {
  border: 1px solid #ccc;
  width: 300px;
  position: absolute;
  background: white;
  z-index: 1000;
  border-top: 0px;
  margin-top: 0px;
}

#StateSuggestions div {
  padding: 5px;
  cursor: pointer;
}

#StateSuggestions div:hover {
  background-color: #eee;
}


/*-------------------------------------
  ANIMATIONS
-------------------------------------*/

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s ease;
}

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  80%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes popOut {
  0%   { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes squeeze {
  0%   { width: 30px; opacity: 1; }
  100% { width: 0px; opacity: 0; display: none; margin: 0px; padding: 0px; border: 0px;}
}




@keyframes winMe {
  0% {
    transform: rotate(0deg) scale(0);
    opacity: 0;
  }
  40% {
    transform: rotate(-10deg) scale(1.2);
    opacity: 1;
    color: crimson;
  }
  70% {
    transform: rotate(5deg) scale(0.95);
    color: orange;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    color: darkblue;
  }
}

@keyframes aceMe {
  0% {
    transform: rotate(0deg) scale(0);
    opacity: 0;
  }
  30% {
    transform: rotate(-15deg) scale(1.5);
    opacity: 1;
    color: crimson;
  }
  50% {
    transform: rotate(10deg) scale(1.2);
    color: gold;
  }
  70% {
    transform: rotate(-5deg) scale(1.05);
    color: limegreen;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
    color: darkblue;
  }
}
















/*-------------------------------------
  RESPONSIVE
-------------------------------------*/

@media only screen and (max-width: 600px) {
  #GameBoard {
    padding: 0px;
    width: 90%;
flex-direction: column;
  }

#GameOuter {
margin-top: 20px;
}

#gamestatus {
margin-top: 20px;
padding: 20px;
margin-bottom: 10px;
}

.GameAnswer{
margin-top: -40px;
}


.GameQuestion, .GameAnswer {
  width: 100%;
}


#StateSuggestions {
width: auto;
}


#HideShowHints, #GiveUpButton, #NewGameButton {
display: block;
text-align: center;
margin: auto;
width: 100%;
max-width: 300px;
}

#HideShowHints, #GiveUpHolder, #NewGameHolder {
display: block;
margin-bottom: 10px;
}

#StrikesHolder {
margin-bottom: 20px;
}


  body {
    font-size: 16px;
  }

}
