body {
    background-color: #EEEEEE;
}

h1 {
    color: #141E61;
    font-family: 'Gamja Flower', cursive;
    font-size: 60px;
    text-align: center;
}

.ratTitle {
    font-size: 45px;
}

.minefield {
    align-items: center;
    display: flex;
    height: 566px;
    justify-content: center;
}

#gameoverMsg {
    animation: fadeIn 3s;
    backdrop-filter: blur(6px);
    color: #EEEEEE;
    display: none;
    font-family: 'Gaegu', cursive;
    font-size: 55px;
    font-weight: 600;
    height: 566px;
    line-height: 400px;
    text-align: center;
    vertical-align: middle;
    width: 566px;
}

@keyframes fadeIn {
    0% {backdrop-filter:blur(0);}
    100% {backdrop-filter:blur(6px);}
}

#tryagainbtn {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    color: #EEEEEE;
    display: none;
    font-family: 'Gaegu', cursive;
    font-size: 30px;
    font-weight: 600;
    height: 50px;
    line-height: 50px;
    position: absolute;
    text-align: center;
    vertical-align: middle;
    width: 180px;
}

#tryagainbtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 1px 4px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.1) inset;
    cursor:pointer;
}

.container {
    border: 3px solid #996633;
    display: flex;
    flex-wrap: wrap;
    height: 560px;
    margin: auto;
    position: absolute;
    width: 560px;
}

.container div {
    align-items: center;
    border: 3px outset #996633;
    display: flex;
    font-family: 'Gaegu', cursive;
    font-size: 28px;
    font-weight: 600;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.container div:hover {
    opacity: 0.5;
}

div[class*="clicked"] {
    background-color: #996633;
    background-image: url("mud.jpg");
    background-size: cover;
}

div[class*="exploded"] {
    background-color: #996633;
    background-image: url("explode.jpg");
    background-size: cover;
}

.void, .bomb {
    background-color: #8BB312;
    background-image: url("tile.jpg");
    background-size: cover;
}

/* for testing purposes */
/* .bomb {
    background-color: red;
}  */

div[totalbombsaround="1"] {
    color: #ffd3d1;
}

div[totalbombsaround="2"] {
    color: #eed2ff
}

div[totalbombsaround="3"] {
    color: #bcc1ff;
}

div[totalbombsaround="4"] {
    color: #ffb4b8;
}

div[totalbombsaround="5"] {
    color: rgb(255, 228, 177);
}

footer {
    bottom: 0;
    left: 0;
    position: fixed;
    width: 100%;
}

#audiobtn {
    align-items: center;
    background-color: rgb(219, 219, 219);
    border-radius: 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    color: #141E61;
    display: flex;
    font-family: 'Gaegu', cursive;
    font-size: 26px;
    height: 40px;
    justify-content: center;
    margin: 10px;
    width: 120px;
}


#audiobtn:hover {
    background-color: rgb(252, 252, 252);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    cursor:pointer;
}

#timer {
    align-items: center;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
    color: #141E61;
    display: flex;
    font-family: 'Gaegu', cursive;
    font-size: 35px;
    height: 50px;
    justify-content: center;
    margin: auto;
    margin-bottom: 35px;
    width: 200px;
}

.middle {
    align-items: center;
    display: flex;
    justify-content: center;
}

.scorerat {
    display: grid;
    grid-template-areas: 
    "rat highscore";
    grid-template-columns: 280px 280px;
    grid-template-rows: auto;
    margin-left: auto;
    margin-right: auto;
}

#highscore, .rat{
    color: #141E61;
    font-family: 'Gaegu', cursive;
    font-size: 30px;
}