/* Reset defaults and ensure page fills window */
html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* prevents scrollbars */
  background-color:rgb(210, 222, 234);
}

.grid-container {
  justify-self: center; 
  margin-top: 3px;
  display: grid; 
  height: 95vh;
  width: 95vw;
  grid-template-rows: auto auto 3fr;
}

/* Row 1: Title bar */

.heading-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #3873af;
  color:white;
}

.title-box {
  display: flex;
  flex-direction: row; 
  align-items:center;
  justify-content:space-between;
  width: 98%;
  height:80%; 
  background-color: #FFB3B3; 
  border-radius: 8px;
}

.title-and-instructions {
    display: flex;
    align-items: center;
    gap: 40px;
}

#instructions-button {
    text-align: center;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size:small;
    border-radius: 5px;
    background-color: #3873af;
    height: 25px;
    width: 90px;
    color: yellow;
}

.exit-button {   
    border-radius: 8px;    
     cursor: pointer;
     text-align: center;    
     background-color: rgb(8, 0, 255);      
     color: white;    
     height: 33px;
     width: 120px;
     margin: 0 30px;
}

.game-header h2 {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.06em;
    word-spacing: 0.5em;
    text-transform: uppercase;
    color:blue;
    margin:0;
}

.category-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #B3D9FF;
  color: white;
}
.category-box {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    width: 100%;
    height: 90%;
    box-sizing: border-box;
    align-items: center;
    background-color:#3873af;
    background: linear-gradient(145deg, #3873af, #4995e1);
    box-shadow: inset 3px 3px 6px #4287cd, inset -3px -3px 6px #53a9ff;
    border-radius: 8px;
    padding: 4px;
}

.category-button {
    width: 90%;  /*fills grid cell */
    height: 60%;
    aspect-ratio: 2 / 1;
    border-style: solid;
    border-color: white;
    border-size: 1px;
    border-radius: 8px;
    background-color: blue;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    margin-bottom: 5px;
}
.category-button:hover {
    background-color:black;
}

.category-button.selected {
    background-color: gold;
    color:black;
    font-weight: bold;
}

.game-board {
  display: grid;
  grid-template-columns: 21% 58% 21%;
  align-items: top;
  background-color: #B3D9FF;
}

.game-play-field {
   display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    background-color:#B3D9FF;
    margin-left:0px;
    margin-top: 20px;
    gap: 5px;    
}

.question-answer-field {
  flex: 0 0 70%;
  background-color:#FFB3B3;
  border-color: #3873af;
  border-width: 6px;
  border-style: outset;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap:5px;
}


/* Each column can be styled separately if needed */
.player-one , .player-two {
    justify-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 90%;
    width: 75%;
    text-align: center;
    align-items: center;
    background-color:#3873af;   
    border-radius: 10px;
    border-color: #FFB3B3;
    border-width: 4px;
    border-style: outset;
}

.player-one {
    margin-left:0px;
    margin-top: 20px;
}

.player-two { 
    margin-left:0px;
    margin-top: 20px;    
}

#playerOne {
  color: yellow;
  font-weight:300;
  font-size: 2rem;
}

#playerTwo {
  color: yellow;
  font-weight:300;
  font-size: 2rem;  
}

#playerOne-score, #playerTwo-score {
  font-weight: 300;
  font-size: 1.5rem;
  color:#FFB3B3;
}

#playerOneScore, #playerTwoScore {
  font-weight: 300;
  font-size: 1.5rem;
  color:#53a9ff;  
  text-align: center;
  width: 50px;
  height: 40px;
}

#guidanceArea-1, #guidanceArea-2 {
  width: 200px;
  height: 70px; 
  border: 3px solid #FFB3B3;
  padding-top: 2px;
  padding-left: 2px;
  text-align: justify; 
  background-color: white;
  overflow-y: auto;
  color: black;
  font-size: 0.8rem;
}

#win-loss {
  color: yellow;
  font-weight: 300;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  margin-bottom: 5px;
}

#wins-1, #losses-1 {  
  width: 40px;
  height: 20px;
  margin-left: 5px;
  margin-top: 10px;
}

#wins-2, #losses-2 {
  width: 40px;
  height: 20px;
  margin-left: 5px;
  margin-top: 10px;
}

.question {
  flex: 0 0 30%;
  background-color: #ffcccc; /* optional */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  padding: 10px;
  text-align: center;
}

.category-line {
  flex: 0 0 20%;
  display: flex;
  flex-direction: row;
  justify-content:space-evenly;  
  margin-top: 20px;
}

#questions-remaining {
  color:#3873af;
  font-size: 1.1rem;
}

#questionsLeft {
  width: 40px;
  height: 30px;
  color: red;
  text-align: center;
}

.answer-field {
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: 70% 30%;  
  align-items:start;  
  gap: 5px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.timerLabel { 
  text-align: center;
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  color:#3873af;
  margin-top: 30px;
}

#display-category, #display-difficulty {
  font-size: 1.35rem;
  color: blue;
}

.radioButtons {
  margin-right: 3px;
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

#secondsTimer {
  font-weight: 300;
  font-size: 1.5rem;
  color:#3873af;
  width: 40px;
  height: 40px;
  align-items: center;
  text-align: center;
}

#answerA, #answerB, #answerC, #answerD {
  height: 27px;
  width: 430px;
  padding-left: 5px;
}

.start-game-section {
  align-items: center;
  background-color:#B3D9FF;
}

#startGame {
     border-radius: 8px;
     cursor: pointer;
     background-color: blue; 
     align-items: center;
     text-align: center;
     color: white;  
     width: 180px;
     height: 35px;
     margin-top: 6px;
}

#startUpButton {
  margin-left: 35px;
  width: 60px;
  height: 40px;
  border-radius: 5px;
  background-color: green;
 
}


.question {
  color:#3873af;  
}

#questionArea {
  width: 650px;
  height: 70px; 
  border: 2px solid #ccc;
  padding: 2px 8px 3px 6px;   /* top - right - bottom - left*/
  text-align: justify;
  background-color: white;
  overflow-y: auto;
}

.ring-in-screen {
  flex: 0 0 15%;
  background-color:#B3D9FF;
  border-style:dashed;
  border-color: black;
}

.buzzer-screen {
  display: flex;
  flex-direction: row;
  height: 90%;
  width: 99%;
  background-color: #B3D9FF;
  margin-left: 4px;
  margin-top: 4px;
  gap: 17px;
  align-items: flex-start;
}

#L5, #L4, #L3, #L2, #L1, #R1, #R2, #R3, #R4, #R5 {
  display: flex;
  flex-direction: row;
  margin-top: 16px; 
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background-color: white;
  border-width: 1px;
  border-color: black;
  border-style: dotted;
}

.red-button {
  margin-top: 6px;
}

.centerRing {
  margin-top: 23px;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: blue;
}

.information-bar {
flex: 0 0 10%;
background-color:#B3D9FF;
}

.playtime-information {
  display: flex;
  justify-self: center;
  height: 40px;
  width: 100%;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 200;
  font-size: 1.25rem;
  background-color: white;
  border-color: #4995e1;
  border-radius: 6px;
  margin-top: 3px;
  text-align: center;
  justify-content: center;
}


#informationDialog {
  position: fixed;
  top: 50%;
  left: 50%; 
  font-size: 0.8rem; 
  background-color: rgb(186, 195, 201);
  border-radius: 10px;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 260px;
  width: 3%;
  margin: 0;
}

#instructionsDialog {
  position: fixed;
  top: 50%;
  left: 50%;
   background-color: rgb(186, 195, 201); 
  font-size: 1.25rem; 
  border-radius: 10px;
  transform: translate(-40%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 620px;
  width: 850px;
  margin: 0;
}

#openingDialog {
  position: fixed;
  top: 50%;
  left: 50%;
   background-color: rgb(186, 195, 201); 
  font-size: 1.25rem; 
  border-radius: 10px;
  transform: translate(-40%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 550px;
  width: 800px;
  margin: 0;
}

#winnersDialog {
  position: fixed;
  top: 50%;
  left: 50%;
   background-color: rgb(186, 195, 201); 
  font-size: 1.25rem; 
  border-radius: 10px;
  transform: translate(-40%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  height: 420px;
  width: 450px;
  margin: 0;
} 

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);
}





