:root{
    --c2: rgb(255, 104, 98);
    --tile-color: #272424;
    --reveal-color: #ddddddce;
}
body{
    background-color: rgb(42, 42, 42);
    min-width: 600px;
    margin: 0 auto;
    text-align: center;
    max-width: 1000px;
    padding: 5px;
}
h1, h2, h3,p{
    font-family: Sixtyfour Convergence, Arial, Helvetica, sans-serif; 
}
*{
    color: var(--c2);
    font-family: Sixtyfour Convergence; 
    /* outline: 1px solid blue; */
}
input, button{
  color: var(--c2);
}
main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
}
h1{
    font-size: 3rem;
}
h2{
    font-size: 3rem;
}
h3{
    font-size: 2.5rem;
}
h3:hover{
    background-color: lightgreen;
}
aside{
    padding: 10px;
    outline: 2px solid var(--c2) 
}
a{
    text-decoration:none
}
a:hover{
    background-color: var(--c2);
}
.container {
    max-width: 900vw;
    max-height: 90vw;
    overflow: auto;
    margin-bottom: 50px;
}
.flagControls{
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.controls{
    display: flex;
    align-items: center;
    justify-content: center;

}
.difficulty{
    background-color:rgba(0, 0, 0, 0);
    border: 1px solid var(--c2);
    color: var(--c2);
    height: 100%;
    width: 100%;
    padding: 5px;
}
.difficulty:hover{
    background-color: rgba(255, 103, 98, 0.355);
}
#grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 10), var(--tile-size,50px));
    gap: 0px;
    margin: 20px auto;
    width: fit-content;
    margin: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    border-radius: 4px;
}
#new-game, #toggle-flag{
    background-color:rgba(0, 0, 0, 0);
    border: 2px solid var(--c2);
    color: var(--c2);
    height: 100%;
    width: 100%;
    padding: 5px;
}
#toggle-flag{
    width: 50%;
    margin: 10px;
}
.diffChoice{
    display: flex;

}
#toggle-flag:hover{
    background-color: rgba(255, 103, 98, 0.355);
}
#new-game:hover{
    background-color: rgba(255, 103, 98, 0.11);
}
.input-block *{
    margin: 2px;
}
.input-block{
    margin: 15px;
}
.input-block input{
    background-color: rgba(0, 0, 0, 0);
    border: none;
    color: var(--c2);
    font-family: Sixtyfour Convergence, Arial, Helvetica, sans-serif; 
    border: 2px solid rgb(255, 104, 98);
    width: 100%;
    padding: 5px;
}
.tile {
    width: var(--tile-size,50px);
    height: var(--tile-size,50px);
    background: var(--tile-color);
    border: 1px solid rgb(143, 107, 107);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
}

.tile:hover {
    background: #ccc;
}
.tile:hover {
    border: 1px solid blue;
}


.revealed {
    background: var(--reveal-color);
    font-weight: 1000;
}

.flagged {
    background: rgba(255, 221, 221, 0.66);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin: 10px;
    padding: 10px;
    border: 2px solid var(--c2);
    color: var(--c2);
}

.game-stats span {
    font-family: 'Sixtyfour Convergence', monospace;
    padding: 5px 10px;
}

.mine {
    background: #f00;
}
.revealed[data-value="1"] { color: blue; }
.revealed[data-value="2"] { color: green; }
.revealed[data-value="3"] { color: red; }
.revealed[data-value="4"] { color: darkblue; }
.revealed[data-value="5"] { color: darkred; }
.revealed[data-value="6"] { color: teal; }
.revealed[data-value="7"] { color: black; }
.revealed[data-value="8"] { color: gray; }
