*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body
{
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(#1d1d1d,#1a1a1a,#000000) fixed;
    height: 100vh;
}

main
{
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    gap: 50px;
    width: 90%;
}

form
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px;
    width: 15%;
    min-width: 300px;
    min-height: 400px;
    border: 2px outset lime;
    background-color: black;
    color: lime;
    border-radius: 15px;
}

form input
{
    height: 25px;
    width: 100%;
    background-color: black;
    border: 1px solid lime;
    color: lime;
    padding: 5px;
}
form input:disabled
{
    filter: brightness(0.1);
}

#startGame, #acceptGameOver
{
    
    margin-top: 15px;
    height: 35px;
    width: 100%;
    background-color: lime;
    border-color: rgb(0, 141, 0);
    border-radius: 5px;
    cursor: pointer;   
}


#game
{
    min-width: 300px;
    min-height: 400px;
    border: 2px outset lime;
    background-color: black;
    color: lime;
    border-radius: 15px;
}

#game > table
{
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}
.info
{
    border-bottom: 2px outset lime;
    font-size: 25px;
}
#game th
{
    width: 50%;

}
#gameArea
{
    width: 100%;
}

#saperArea
{
    width: fit-content;
    height: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    
}

#saperArea td
{
    width: 25px;
    height: 25px;
    text-align: center;
}

#saperArea .mini
{
    width: 12.5px;
    height: 12.5px;
    font-size: 5px;
    text-align: center;
}

#saperArea td.hidden
{

    background: lime;
    border: 1px solid black;
    cursor: pointer;
}

#saperArea td.reveald
{
    background: black;
    border: 1px solid lime;
}

#saperArea img
{
    display: block;
    margin: 0 auto;
    width: 18px;
    height: 18px;
}

#gameOver
{
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: calc(50vh - 150px);
    left: calc(50vw - 150px);
    width: 300px;
    height: 250px;
    padding: 25px;
    color: lime;
    text-align: center;
    background-color: black;
    border: 2px outset lime;
    border-radius: 15px;
}

#gameOver h2
{
    font-size: 50px;
    margin: 10px;
}

#gameOver p
{
    font-size: 25px;
}

#records
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    min-height: 400px;
    max-width: 400px;
    border: 2px outset lime;
    background-color: black;
    color: lime;
    border-radius: 15px;
    padding: 5px;
}

#records table
{
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}
#records th:nth-child(1),#records td:nth-child(1)
{
    width: 70%;
}
#records th:nth-child(2),#records td:nth-child(2)
{
    width: 30%;
}
#records th, #records td
{

    text-align: center;
    border: 1px solid lime;
    padding: 1px;
}
