html, body {
    background-color: lightblue;
    height: 80dvh;
    width: 99vw;
}

.lobster-regular {
  font-family: "Lobster", sans-serif;
  font-weight: 400;
  font-style: normal;
}


#gamescreen {
    justify-self: center;
    display: grid;
    justify-items: center;   
    grid-template-rows: auto 1fr;
    width: 1300px;
    height: 700px;
    gap: 10px;
}

#topRow {
    height: 80px;
    width: 1300px;
    display: grid;
    grid-template-columns: 25% 50% 25%;
    align-items: center;   
    background-color: teal;
    border-radius: 8px; 
    border-style: solid; 
    border-color: black;
    border-width: 3px; 
    margin-top: 15px;
    padding: 0 16px;
}

#buttons {
    display: flex;
    justify-self: start;
    gap: 15px;
}

#randomGame {
     border-radius: 8px;
     cursor: pointer;
     background-color: white;
     color: green;  
     width: 140px;
     height: 32px;
     margin-top: 10px;    
}

#themedGame {
     border-radius: 8px;
     cursor: pointer;
     background-color: white;  
     color: green;  
     width: 140px;
     height: 32px;
     margin-top: 10px;     
}

#gameTitle {  
    justify-self: center; 
    text-align: center;  
    color: yellow;
    font-size: 2rem;
    font-family: "Lobster", sans-serif;
    font-weight: 400;  
    font-style:normal;
}

#exitGame {
    justify-self: end;
     border-radius: 8px;
     cursor: pointer;
     background-color: white;
     color: green;
     font-weight: bold;  
     width: 140px;
     height: 32px;
     margin-top: 10px;     
}

#mainScreen {
    display: grid;    
    max-height:800px; 
    width: 1300px;
    grid-template-columns: 25% 50% 25%;   
    background-color: teal;
    border-radius: 9px;
    border-style: solid; 
    border-color: black;
    border-width: 3px; 
    gap: 10px;
}

#instruction-box {
    display: flex;
    flex-direction: column; 
    align-items: center;   
    height: 98%;
    width: 98%;
    background-color: teal;   
}

.blocks {
    margin-top: 10px;
}
#instruction-header {
    color:yellow;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
}

#actual-instructions {
    background-color: white;
    height: 91%;
    width: 95%;  
    border-radius: 9px;
    border-style: solid; 
    border-color: darkgreen;
    border-width: 3px;
    margin-left:15px; 
}

#textlines1, #textlines2 {
    line-height: 1.2;
    margin-left: 4px;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

#textlines2 {
    color: blue;
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

#scoring-algorithm {
    font-size: 0.7rem;
    color: black;
    line-height: 1;
    margin-left: 4px;
    margin-top: 12px;
}

#tape-worder-screen {
   background-color: teal;  
   display:flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}

#gameBoard {
    width:97%;
    height: 95%;
    display:grid;
    grid-template-columns: 20% 60% 20%;
    justify-items: center;
    background-color: lightseagreen;
    border-style:ridge;
    border-color: white;
    border-width: 3px;    
    border-radius: 10px;
}

#mainBoard {
    border-style:double;
    border-width: 4px;
    border-color:#3171b0;
    border-radius: 9px;
    display: grid;
    grid-template-rows: 10% 80% 10%;;
}

.arrows-line {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: center;  
    background-color: lightskyblue;     
}

.button {
    width:35px;
    height:35px;
    margin-left: 22px;
    display: flex;
    align-items: center;
    justify-content: center;    
}

#submitBtn {
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    width: 130px;
    height: 35px;
    background-color: blue;
    border-radius: 6px;
    color: white;
    border-style:ridge;
    border-color: darkgreen;
    border-width: 2px;    
}

#letterBoard {   
    display: grid;
    grid-template-columns: repeat(4, 70px);
    grid-auto-rows: 30px;   
    gap: 8px;
    justify-items: center;  
    align-content: center;
    background-color: lightskyblue;   
}

.cell {
    display: flex;
    flex-direction: column;  /* stack vertically */   
    align-items: center;
    background: white;
    color: blue;
    border-radius: 4px;
    padding: 4px;
    font-family: Georgia, serif;
    width: 30px;
    height: 30px;
}

#word-lists {
    display:grid;
    grid-template-rows:  3% 69% 25%;
    width: 90%;
    height: 95%;
    gap: 8px;
    justify-content: center;
    background-color: cornflowerblue;
    border-style: solid;
    border-color: white;
    border-width: 3px; 
    margin-top: 5px;
    margin-right: 5px;
    border-radius: 10px;
    margin-top: 16px;
}

#recovered-words {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    margin-top: 20px;  
    gap: 10px;
}

#recovered-word-title {
    color: yellow;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 8px;
}

#word-column-one, #word-column-two {
    display: flex;
    flex-direction: column;
    width: 124px;   
    background-color: white;
    border-style: solid;
    border-color: black;
    border-width: 2px; 
    border-radius: 6px;
    padding: 3px;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: bold;
    color: blue;
}

#score-panel {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    height: 100%;
    background-color:rgb(253, 253, 152);
    width: 100%;
    height: 97%;
    border-style: solid;
    border-color: black;
    border-width: 2px;
    border-radius: 6px;
    margin-bottom: 6px;
    gap: 10px;
} 

#timer-icons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#stopWatch {
    margin-top: 10px;
    margin-right: 20px;
}

#tapeMeasure {
    margin-bottom: 10px;
    margin-right: 20px;
}

#version-gameUpdate-row {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    margin-left: 25px;
}

#game-version-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 180px;
    width: 140px;
    background-color: white;
    border-style: solid;
    border-color: darkgreen;
    border-width: 3px;
    border-radius: 8px;
    font-size: 0.8rem;
}

#game-version-title {
    font-weight: bold;
    margin-top: 5px;
}

#theme-name {
    width:60px;
    height: 20px;
    font-size: 0.6rem;
    color: red;
}

#theme-words-found {
    width: 25px;
    height: 20px;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 5px;
}

#words-found-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.8;
    height: 180px;
    width: 140px;
    background-color: white;
    border-style: solid;
    border-color: darkgreen;
    border-width: 3px;
    border-radius: 8px;
    font-size: 0.8rem;
}

#words-found-title {
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 5px;
}

#words-found-value {
    width: 40px;
    height: 30px;
    margin-bottom: 10px;
    text-align:center;
}

#timeRemaining {    
    align-content: center;
    margin-bottom: 5px;
    margin-top: 15px;
}

#time-remaining-value {
    width: 50px;
    height: 30px;
    text-align: center;
    margin-top: 5px;   
}

#current-points-lbl {
    font-size: 1.1rem;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: blue;
}

#current-points-value, #random-score-value, #theme-score-value {
    width: 50px;
    height: 26px;
    text-align: center;
}
#theme-score-value {
    margin-left:11px; 
    
}

#random-score-value {
    margin-bottom: 5px;
}

#okButton {   
     border-radius: 8px;
     cursor: pointer;
     background-color: white;
     color: blue;
     font-weight: bold;  
     width: 60px;
     height: 30px;
     margin-top: 6px;     
}

#okThemeButton {
     border-radius: 8px;
     cursor: pointer;
     background-color: white;
     color: blue;
     font-weight: bold;  
     width: 60px;
     height: 30px;
     margin-top: 6px;   
}

#gameOverDialog {
  height: 150px;
  width: 300px;
  padding: 20px;
  background-color: rgb(23, 131, 203); 
  color:white;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.1rem; 
  border-radius: 10px; 
  box-shadow: 0 4px 20px rgba(6, 2, 61, 0.3); 
  margin: auto; 
}

#duplicateDialog {  
  height: 140px;
  width: 230px;
  padding: 20px;
  background-color: rgb(23, 131, 203); 
  color:white;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.1rem; 
  border-radius: 10px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);  
  margin: auto;  
}

#themeCompleteDialog {
  height: 140px;
  width: 230px;
  padding: 20px;
  background-color: rgb(23, 131, 203); 
  color:white;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 1.1rem; 
  border-radius: 10px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);  
  margin: auto; 
}

#exitGameButton {
    border-radius: 8px;
    cursor: pointer;
    background-color: white;
    color: teal;
    font-weight: bold;  
    width: 60px;
    height: 30px;
    margin-top: 6px;   
}

#playAgainButton {
    border-radius: 8px;
    cursor: pointer;
    background-color: white;
    color: teal;
    font-weight: bold;  
    width: 120px;
    height: 30px;
    margin-top: 6px; 
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}