* {
    margin:0;
    padding:0;
}

html {
    height:100%;
}

body {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: center;
    justify-items: center;
    align-content: center;
    background-color: aliceblue;
    height: 100%;
}

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    padding: 1rem 0;
}

footer {
    margin-top: 20px;
}

p {
    text-align: center;
}

#field {
    display: grid;
    background-color: #E7E9EB;
}

#field.beginner {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width:192px;
    height:192px;
}

#field.intermediate {
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(16, 1fr);
    width:384px;
    height:384px;
}

#field.expert {
    grid-template-columns: repeat(30, 1fr);
    grid-template-rows: repeat(16, 1fr);
    width: 720px;
    height: 384px;
}

table, tr {
    border:5px solid;
    border-style: inset;
    background-color: #E7E9EB;
    color:#E7E9EB;
}

#outer-table {
    border:5px solid;
    border-style: outset;
    background-color: #E7E9EB;
}

#field-td {
    border-top: 5px solid;
    border-style: inset;
    background-color: #E7E9EB;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

#ui-td {
    border-bottom: 5px solid;
    border-style: inset;
    border-left: none;
    border-top: none;
    border-right: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

#reset-btn {
    border-style:outset;
    border:5px solid;
    background-color: #E7E9EB;
    border: 5px solid;
    border-style: outset;
    height: 34px;
    width: 34px;
    display: inline-flex;
    font-size: 20px;
    align-items: center;
    justify-content: center;
}

#field > div {
    display: grid;
    align-content: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

#mines-remaining, #timer {
    display: flex;
    border-style: inset;
}

.block.hidden, .block.flagged {
    background-color:#E7E9EB;
    border-style: outset;
}

.block.can-click {
    cursor: pointer;
}

.block.flagged {
   font-size: 10px;
}

.block.pressed {
    background-color:#FFFFFF;
    border-style: inset;
}

.block.pressed.flagged {
    background-color:#E7E9EB;
    border-style: outset !important;
}

.block.revealed {
    background-color: #eee;
}

.block.n1.revealed {
    color: blue;
}
.block.n2.revealed {
    color: green;
}
.block.n3.revealed {
    color: red;
}
.block.n4.revealed {
    color: purple;
}
.block.n5.revealed {
    color: brown;
}
.block.n6.revealed {
    color: teal;
}
.block.n7.revealed {
    color: black;
}
.block.n8.revealed {
    color: gray;
}

.block.hidden, .block.flagged {
    color:#E7E9EB;
}