*{
    border: 0px solid red;
}
body{
    background-color: rgb(190, 190, 190);
    font-family: 'Kanit', sans-serif;
    margin: 0;
}
.browser{
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-content: center;
    min-width: 420px;
    height: 800px;
    width: 100%;
    min-height: 100vh;
}
h2, h3{
    text-align: center;
    font-size: 48px;
    margin: 20px;
}
h3{
    font-size: 30px;
}
.gameContainer, .optionContainer, .themesContainer{
    position: relative;
    height: 560px;
    width: 400px;
    margin: 0 auto;
    background-color: whitesmoke;
    border: 3px solid rgb(30, 30, 30);
    border-radius: 8px;
}
.gameContainer{
    display: block;
}
.optionContainer{
    display: none;
}
.themesContainer{
    display: none;
}
.dropdown{
    display: grid;
    justify-content: center;
    align-content: center;
}
#dropdown{
    text-align: center;
    font-family: 'Kanit', sans-serif;
    font-size: 30px;
    width: 180px;
    border: 1px solid rgb(100, 100, 100);
    border-radius: 6px;
}
.difficultyInfo{
    text-align: center;
    font-size: 24px;
    padding: 10px 0;
}
.highScores{
    text-align: center;
    font-size: 30px;
    padding: 10px 0;
}
.scores{
    display: grid;
    justify-content: center;
    align-content: center;
    border-collapse: collapse;
}
th, td{
    text-align: center;
    padding: 0 12px;
    height: 24px;
    border: 1px solid rgb(100, 100, 100);
}
th{
    background-color: rgb(200, 200, 200);
}
.gridContainer{
    display: grid;
    background-color: whitesmoke;
    grid-template-columns: repeat(9, 40px);
    grid-auto-rows: 40px;
    justify-content: center;
    align-content: center;
    width: 360px;
    height: 360px;
    margin-top: 18px;
    margin-left: 18px;
    margin-right: auto;
}
.controls{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    align-content: center;
}
.options, .return{
    display: grid;
    justify-content: center;
    align-content: center;
}
.options{
    grid-template-columns: 1fr 1fr 1fr;
}
#themes, #settings, #sound{
    display: grid;
    justify-content: center;
    align-content: center;
    margin: auto;
    background-color: whitesmoke;
}
.themes, .sound{
    margin-top: 24px;
}
.themes{
    margin-right: 36px;
    opacity: 1;
}
.themesContainer > div > h3{
    margin: 12px 0 0 0;
}
.themeGrid, .mineGrid, .flagGrid{
    display: grid;
    grid-auto-rows: 50px;
    justify-content: center;
    align-content: center;
    grid-gap: 8px;
}
.selected{
    margin: auto;
    background-color: skyblue;
    width: 50px;
    height: 50px;
    border-radius: 10px;
}
.themeGrid, .mineGrid, .flagGrid{
    padding: 8px 0;
    background-color:  rgb(160, 160, 160);
}
.themeGrid{
    grid-template-columns: repeat(1, 50px);
}
.mineGrid{
    grid-template-columns: repeat(2, 50px);
}
.flagGrid{
    grid-template-columns: repeat(2, 50px);
}
.themeStyle, .mineStyle, .flagStyle{
    margin: auto;
    margin-top: 3px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}
.mineStyle, .flagStyle{
    background-color: whitesmoke;
    border: 2px solid rgb(100, 100, 100);
}
.themeStyle > img, .mineStyle > img, .flagStyle > img{
    width: 35px;
    height: 35px;
    margin: 2px 0 0 2.5px;
}
#themeStyle1{
    background-color: rgb(200, 200, 200);
    border: 2px solid rgb(100, 100, 100);
}
#themeStyle2{
    background-color: rgb(80, 80, 80);
    border: 2px solid rgb(40, 40, 40);
}
.changeTheme{
    margin-top: 48px;
}
.sound{
    margin-left: 36px;
}
#sound > img{
    width: 50px;
    height: 50px;
}
#disabled{
    position: absolute;
}
#disabled > img{
    width: 50px;
    height: 50px;
    opacity: .65;
}
#settings{
    margin-top: 18px;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background-color: rgb(200, 200, 200);
    border: 0px;
}
.options > div > button > img{
    width: 50px;
    height: 50px;
}
#settings:hover, .returnButton:hover{
    background-color: skyblue;
}
#settings:active, .returnButton:active{
    background-color: rgb(200, 200, 200);
}
.returnButton{
    margin: 36px auto;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background-color: rgb(200, 200, 200);
    border: 0px;
}
.returnButton > img{
    margin-top: 8px;
    width: 50px;
    height: 50px;
}
.timer, .diffuser{
    margin: auto;
    margin-top: 24px;
    width: 100px;
    height: 50px;
    border: 0px;
    border-radius: 8px;
    background-color: rgb(100, 100, 100);
}
.timer > div, .diffuser > div{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: whitesmoke;
    text-align: center;
    font-size: 36px;
    margin-top: 4px;
}
.timer{
    margin-left: 36px;
}
.diffuser{
    margin-right: 36px;
}
.reset > button{
    display: grid;
    margin: auto;
    margin-top: 16px;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background-color: rgb(200, 200, 200);
    border: 0px;
}
.reset > button > img{
    margin: auto;
    margin-top: 6px;
    width: 50px;
    height: 50px;
}
.reset > button:hover{
    background-color: skyblue;
}
.reset > button:active{
    background-color: rgb(200, 200, 200);
}
.square{
    width: 40px;
    height: 40px;
    margin: -1px 1px;
    border: 1px solid rgb(30, 30, 30);
}
.finishMessage{
    font-size: 30px;
    text-align: center;
    position: relative;
    margin-top: 20px;
}
.hidden, .detonate{
    width: 38px;
    height: 38px;
    margin-left: 0px;
    margin-top: 0px;
    border: 1px solid rgb(30, 30, 30);
    background-color: rgb(190, 190, 190);
}
.detonate{
    background-color: rgb(255, 0, 0);
}
#mine{
    width: 35px;
    height: 35px;
    margin: 2px 2px 0 1px;
}
.numberOfMines{
    margin-top: -10px;
    text-align: center;
    font-size: 40px;
}
#flag > img{
    width: 35px;
    height: 35px;
    margin: 2px 2px;
}
#diffuse{
    position: absolute;
    margin: -41.5px 0 0 -13.5px;
}
#diffuse > span{
    font-family:'Courier New', Courier, monospace;
    font-size: 110px;
    opacity: 0.5;
    color: red;
}
#mines1{
    color:blue;
}
#mines2{
    color:green;
}
#mines3{
    color:crimson;
}
#mines4{
    color:darkmagenta;
}
#mines5{
    color:coral;
}
#mines6{
    color:slateblue;
}
#mines7{
    color:seagreen;
}
#mines8{
    color:palevioletred;
}
.x{
    font-size: 30px;
}