@import url('https://fonts.googleapis.com/css?family=Inconsolata');

:root {
    --nice-blue: rgb(63, 107, 166);
}

#score {
    font-size:20px;
    text-align:center;
    padding:10px;
    margin-bottom:20px;
    background-color:var(--nice-blue);
    color:white;
    border-radius: 3px;
}

#game-text {
    font-size:20px;
    margin-top:5px;
    font-style:italic;
}

.game-bio {
    padding:10px;
    font-size:20px;
    width:50%;
    margin:auto;
    text-align:left;
    display:flex;
    justify-content:center;
    align-items:center;
}

#ending {
    font-size:20px;
    background-color:var(--nice-blue);
    padding:20px;
    margin:20px;
    border-radius:5px;
    color:white;
}

.g-button {
    display:none;
}

#options {
    display:none;
    margin:auto;
    margin-top:25px;
    margin-bottom:25px;
    width:50%;
    padding:50px;
    background:#EEEEEE;
}

.game-options {
    margin-top:10px;
    margin-bottom:25px;
}

.word-history {
    display: none;
    font-size:15px;
    color: var(--nice-blue);
}

.boggle-game {
    margin:auto;
    text-align:center;
    padding:10px;
    display:block;
    width:75%;
}

.boggle-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-template-rows: repeat(4,minmax(0,1fr));
    max-height:250px;
    max-width:250px;
    margin:auto;
    margin-top:20px;
    padding:20px;
}

.b-cell {
    background-color:var(--nice-blue);
    color:white;
    margin: 5px 5px 5px 5px;
    position: relative;
    font-family:'Inconsolata';
    font-size:300%;
    cursor: pointer;
    user-select:none;
}

.boggle-grid > .b-cell::before {
    content: "";
    padding-bottom: 100%;
    display: block;
  }

.b-cell > span {
    position: absolute;
    max-width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

.b-cell:hover {
    background-color: red;
}

#empty {
    background-color:black;
    color:black;
}

.enemy {
    text-align:center;
    justify-content:center;
    align-items:center;
    margin:auto;
    max-height:200px;
    display:block;
}

.c-cell {
    display: flex;
    max-width:50px;
    max-height:50px;
    min-width:50px;
    min-height:50px;
    aspect-ratio:1;
    background-color:var(--nice-blue);
    align-items:center;
    justify-content:center;
    font-size:300%;
    margin:2px;
}

.chosen-cells {
    display:flex;
    margin:auto;
    width:auto;
    height:50px;
    padding: 10px;
    background-color: #AAAAAA;
    font-family:'Inconsolata';
    justify-content: center;
    align-items: center;
}

.chosen {
    color:white;
    cursor: auto;
    background-color:white;
}

.chosen:hover{
    background-color: white;
}

.g {
    display: none;
}

.game-button {
    display:inline-block;
    margin:auto;
    margin-block:10px;
    margin-inline:3px;
    width:fit-content;
    font-family:'Inconsolata';
    font-size:24px;
    background-color:var(--nice-blue);
    color:white;
    border:none;
    border-radius:10px;
    padding:10px;
    cursor:pointer;
    transition:0.3s;
}

.game-button:hover {
    filter: hue-rotate(1rad);
}


.buttons {
    display: flex;
    width:fit-content;
    margin:auto;
    margin-block:20px;
}

.buttons .game-button {
    margin-inline:10px;
}

#quit {
    background-color: forestgreen
}

.letter-value {
    position:absolute;
    font-size:50%;
    width:75%;
    height:75%;
    text-align:right;
}

.word-info {
    font-weight:bold;
    font-size:20px;
    padding:5px;
    background-color:black;
    color:white;
    width:fit-content;
    margin:auto;
}

#submit {
    background-color: gray;
}

.game-complete-text {
    background-color: green;
    color:white;
    font-size:20px;
    padding:2%;
}

.game-complete {
    display:none;
    width:50%;
    margin:auto;
    text-align:center;
}

.how-to-play {
    margin:auto;
    width:80%;
}

.final-text {
    font-size:20px;
    background-color:black;
    color:white;
    padding:20px;
    margin-bottom:10px;
}

.extract {
    color:red;
}