body {
  margin-top: 56px;
  padding: 0;
}

.page-two .navbar-brand {
  grid-area: navbar;
  margin-left: 2ch;
  font-size: 1.75rem;
  font-weight: bold;
  color:white;
  font-family: 'Georgia', serif;
  height: 35px;
  margin-bottom: 10px;
}

#gameContainer {
    display:grid;    
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto; 
    grid-template-areas:
      "navbar"
      "actionBar"
      "rectangleRow"
      "footer";
    min-height:100%;    
    background-color:#56a6f7;
    /*overflow:hidden;*/
  }

#reset {
  margin-right: 10px;
}

.actionBar >* {
  flex-basis: 180px;
}

.actionBar {  
    grid-area: actionBar; 
    display: flex;    
    height: 54px;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color:#99ccff;
}

#alphabetListing {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  color: black;   
  font-family: 'Georgia', serif;
  font-size: 2.0rem;
  margin-top: 5px;
}

#game-settings {
  font-size: 1.2rem;
}

#instructions {
  font-size: 1.2rem;
}

#scoring {
  font-size: 1.2rem;
}

.playerOnePanel {
  grid-area: playerOne; 
  width: 100%;
  height: 95%;
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items:center;
 
}

.playing {
  color:#56a6f7;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.playerTwoPanel {
  grid-area: playerTwo;
  width: 100%;
  height: 95%;
  display: flex; 
  flex-direction: column;
  justify-content: center; 
  align-items:center;
}

.rectangleRow {
  grid-area: rectangleRow;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 10px;
  align-items:stretch; 
  justify-items:stretch;
  grid-template-areas: "playerOne rectangle3 playerTwo";
}

#rectangle3 {  
  grid-area: rectangle3;
  display: flex; 
  justify-content: center; 
  align-items:center; 
  gap: 5px;
  width: 100%;
  height: 70vh; 
  margin-top: 20px;
}

.rectangle1, .rectangle2 {
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 85%;
  text-align: center;  
  background-color: #99ccFF;   
  border-radius: 10px;
  border: 2px solid black;
  margin-bottom: 30px;
  margin-left: 30px;
  margin-right: 30px;
}

.rectangle1 > div:first-child, .rectangle2 > div:first-child {
  margin-bottom: auto;
}

.rectangle1 > div:last-child, .rectangle2 > div:last-child {
  margin-top: 20px;
}

.timer {
 color: blue;
 font-size: 2.0rem;
 font-weight: bold;
 margin-bottom: 50px;
 margin-top: 10px;
 font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.challenge-word {
  padding-top: 6px;
  padding-bottom: 6px;
}

.footer {
  grid-area: footer;
  position: sticky;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction:row;
  justify-content: space-between;  
  height: 50px;
  align-items: center;  
  text-align: center;
  gap:10px;
  width: 100%;
  background-color: #99ccFF;     
}

.roundsMarker {
  font-size: 1.5rem;
  color:blue;
  margin-left: 30px;
}

.roundsToPlay {
  font-size: 1.25rem;
  order:1;
  font-weight:bold;
  color:blue;
  margin-right: 30px;
}

#displayRound {
   font-family: Arial;
   color: red;
   margin-top: 5px;
   font-size: 1.25rem;
   width: 26px;
   height: 30px;
}

.guessLabel {
  font-family:Cambria, Georgia, Times, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight:bold;
  margin-right: 3px; 
}

#playerGuess {
    height: 32px;
    margin-top: 8px; 
    margin-right: 6px;  
    font-size: 1rem;
} 

#submitGuess {
     border-radius: 8px;
     cursor: pointer;
     background-color: blu7; 
     align-items: center;
     text-align: center;
     color: white;  
     margin-top: 7px;
     margin-left: 6px;
     height: 32px;
}

#submitGuess:disabled {
  pointer-events:none;
  background-color:white;
  color:black;
  opacity: 0.6;
  cursor: not allowed;
}

.letter-grid {
  display: grid; 
  grid-template-columns: repeat(5, 1fr); 
  gap: 0.5vmin;  
  width: min(70vmin, 90%);
  /* height: auto;
  width: 80%; 
  max-height: 100%;*/
  aspect-ratio: 1 / 1;
  background-color: #d3d3d3;
  border: 2px solid black;   
  border-radius: 4px; 
  margin: auto;
}

.letter-grid div {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: steelblue;
  color: white;
  font-weight: bold;
  font-size: clamp(14px, 2vmin, 22px);
  border-radius: 6px;
}

.square {
display: flex;
background-color: lightslategray;
/*width: 85%;*/
width: 100%;
aspect-ratio: 1 / 1;
justify-content: center;
align-items: center;
color: white;
border-radius: 4px;
font-size: calc(1vh + 0.5rem);
font-weight: bold;
font-family: Georgia, serif;
}

.start-button {
  background-color: blue; 
  margin-bottom: 8px;
  margin-left: 30px;
  height: 34px;
  color:white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;  
  transition: background-color 0.3s ease;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif  
}

.start-button:disabled {
  pointer-events:none;
  background-color:white;
  color:black;
  opacity: 0.6;
  cursor: not allowed;
}

.exit-button {
  background-color: blue; 
  margin-bottom: 8px;  
  margin-right: 30px;
  display: inline-block;
  height: 34px;
  color:white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}

.players {
 color: white;
 font-size: 2.5rem;
 font-weight: bold;
 font-family: Georgia, serif;
 margin-top: 10px;
}

.exit-button:hover {
  color: black;
  background-color: rgb(241,226,10);  
}

.score {
  color: white;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 1.75rem;
  padding-top: 22px;
}

#scoreInput1 {
  font-size: 2rem;
  color:red;
  height: 40px; 
  width: 100px;
}

#scoreInput2 {
  font-size: 2rem;
  color:red;
  height: 40px; 
  width: 100px;
}

dialog {
  border:none;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

dialog::backdrop {
  background: rgba(0,0,0,0.4);
}

button {
  margin-top: 10px;
  padding: 0.4rem 0.8rem;
  border: none;
  background: #007BFF;
  color:white;
  border-radius: 4px;
  cursor: pointer;
}

#challengerDialog {
  position: fixed;
  top: 50%;
  left: 50%;  
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 230px;
  width: 550px;
  margin: 0;
}

#startGameDialog {
  position: fixed;
  top: 50%;
  left: 50%;  
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 200px;
  width: 450px;
  margin: 0;
  background-color:#99ccff;
}

#instructionsDialog {
  position: fixed;
  top: 50%;
  left: 50%; 
  font-size: 1.25rem; 
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 530px;
  width: 650px;
  margin: 0;
}

#informationDialog {
  position: fixed;
  top: 50%;
  left: 50%; 
  font-size: 1.25rem; 
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 460px;
  width: 600px;
  margin: 0;
}

#notificationDialog {
  position: fixed;
  top: 30%;
  left: 50%; 
  font-size: 1.25rem; 
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 200px;
  width: 500px;
  margin: 0;
}

#notificationMessage {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  color:blue;
}


/*//////////////////////////   RANDOMIZER DIALOG //////////////////////////////////////  */

#randomizerDialog::backdrop {
  background: rgba(0,0,0,0.6);
}

#randomizerDialog {
  border: none;
  padding: 0;
  border-radius: 15px;  
}

.popUpContainer {
  display:grid;
  justify-self: center;
  grid-template-rows: auto auto auto auto;  
  text-align: center;
}

.heading {
  margin: 25px;
  font-family: 'Lobster', cursive;
  text-shadow: 5px 0 #232931;
  font-size: 4rem;
  color: #4ECCA3;
}

.dice  {
  display:flex;
 /* flex-direction: row;
  align-items: center;*/
  justify-content: center;
  gap: 70px;
}

.dice1 {
  text-align: center;
  padding-right: 20px; 
  padding-left: 30px;
}

.dice2 {  
  text-align: center; 
  padding-right: 30px; 
}

.players {
  font-size: 3rem;
  margin-top: 20px;
  color: blue;
}

#roll-button {
  height: 30px;
  width: 90px;
  background-color: blue;  
  color:white;
  font-size: 14px;
  border: none;
  border-radius: 6px;
}

#roll-button:disabled {
  pointer-events:none;
  background-color:white;
  color:black;
  opacity: 0.6;
  cursor: not allowed;
}

#clickBTN {
  margin-top: 30px;
  color: black;
  text-align: center;
  font-family: 'Indie Flower', cursive;
  font-size: 1.2rem; 
}

#winThree {
  font-size: 2rem;
  color: #4ECCA3;
  font-family: 'Indie Flower', cursive;
  padding-left: 15px;
  padding-right: 15px;
}


/* Shake animation */
@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;
  border: 2px solid red;
}


