body{
    margin: 0 0 -50px 0;
    padding: 0;
}

table, td {
    border: 2px solid black;
}

table{
    height: 10rem;
    width: 10rem;
    table-layout: fixed;
    text-align: center;
    margin: 3rem auto;
    background-color: red;
}

td {
    height: 2rem;
    width: 2rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: black;
}

header {
    background-color: black;
    margin: 0;
    height: 10rem;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

h1 {
    font-family: 'Press Start 2P', cursive;
    color: white;  
    font-size: 5rem;
}

.info{
    display: flex;
    justify-content: space-around;
    font-family: 'Press Start 2P', cursive;
    margin: 2rem;
}

.win-score, .loss-score, .mine-amount{
    text-align: center;
    padding: 10px;
}

audio {
    display: none;
}

img {
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    display: block;
}

.input {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem;
}

.flag{
    background-color: lightgray;
}
.flag:after {
    content: '🚩';
}

footer{
     border-top: 2px solid black;
     background-color: lightgrey;
     display: block;
     margin: 0;
     padding: 0;
}

h2 {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
}

p {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    padding: 0 2rem 2rem 2rem;
}

@media (min-width: 550px) and (max-width: 1000px) {
    body{
       font-size: 1rem;
       height: 5rem;
       justify-content: center;
    }
    header{
        height: 6rem;
        flex-grow: 2;
    }
    h1 {
        font-size: 3rem;
        display: block;
    }
    h2 {
        font-size: 2rem;
    }
}

@media (min-width: 400px) and (max-width: 549.99px) {
    body{
       height: 2rem;
       justify-content: center;
    }
    header{
        height: 5rem;
        flex-grow: 2;
    }
     h1 {
        font-size: 2rem;
        display: block;
    }
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 399.99px){
    body{
       height: 2rem;
       justify-content: center;
    }
    header{
        height: 3rem;
        flex-grow: 2;
    }
     h1 {
        font-size: 1.5rem;
        display: block;
    }
    h2 {
        font-size: 1rem;
    }
    p {
        font-size: .5rem;
    }
}
