*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html, body{
    background-color: black;
    color: white;
}
body{
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 1vw 10% 1vw 5%;
    margin: auto;
}
h1{
    font-size: 3vw;
}
h2{
    font-size: 2.5vw;
}
#game{
    width: 38vw;
    height: 38vw;
    display: flex;
    justify-content:space-evenly;
    margin: 1vw;
}
#over{
    position: absolute;
    height: 38vw;
    width: 38vw;
    background-color: rgba(62, 62, 62, 0.849);
    flex-direction: column;
    display: none;
}
#over p{
    font-size: 4vw;
    color: rgb(80, 254, 0);
    font-weight: bold;
    margin: auto;
    margin-bottom: -5vw;
}
#over button{
    font-size: 2vw;
    padding: 0.2vw 1vw 0.2vw 1vw;
    border-radius: 15%;
    margin: auto;
}
#over button:hover{
    background-color: blue;
    color: white;
}
#choose{
    height: 100%;
    width: 100%;
    display: none;
    display: flex;
    flex-direction: column;
    padding: 3vw;
    display: none;
}
#choose main{
    display: flex;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 0.6vw;
}
#choose main div{
    background-color: rgb(0, 0, 0);
    border: solid 0.1vw rgb(60, 255, 1);
    height: 12vw;
    width: 12vw;
    font-size: 10vw;
    padding: auto;
    text-align: center;
}
#choose main div:hover{
    background-color: rgb(7, 137, 0);
}
h2{
    margin: 2vw;
}
#board{
    width: 100%;
    height: 100%;
    background-color: rgb(11, 64, 239);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 0.6vw;
    display: none;
}
#board div{
    background-color: rgb(24, 24, 24);
    border: solid 0.1vw rgb(60, 255, 1);
    height: 12vw;
    width: 12vw;
    font-size: 10vw;
    padding: auto;
    text-align: center;
}
#board div:hover{
    background-color: rgb(7, 137, 0);
}
#introduction button{
    font-size: 2vw;
    padding: 0.2vw 1vw 0.2vw 1vw;
    border-radius: 15%;
    margin-top: 15vw;
}
#introduction button:hover{
    background-color: blue;
    color: white;
}
#score{
    font-size: 2vw;
    display: none;
}

@media (max-width: 800px){
    *{
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    html, body{
        background-color: black;
        color: white;
    }
    body{
        width: 50%;
        display: flex;
        flex-direction: column;
        padding: 1vw 53% 1vw 0%;
        margin: auto;
    }
    h1{
        font-size: 4vw;
    }
    h2{
        font-size: 5vw;
    }
    #game{
        width: 50vw;
        height: 50vw;
        display: flex;
        justify-content:space-evenly;
        margin: 1vw;
    }
    #over{
        position: absolute;
        height: 50vw;
        width: 50vw;
        background-color: rgba(62, 62, 62, 0.849);
        flex-direction: column;
        display: none;
    }
    #over p{
        font-size: 5vw;
        color: rgb(80, 254, 0);
        font-weight: bold;
        margin: auto;
        margin-bottom: -5vw;
    }
    #over button{
        font-size: 4vw;
        padding: 0.2vw 1vw 0.2vw 1vw;
        border-radius: 15%;
        margin: auto;
    }
    #over button:hover{
        background-color: blue;
        color: white;
    }
    #choose{
        height: 100%;
        width: 100%;
        display: none;
        display: flex;
        flex-direction: column;
        padding: 3vw;
        display: none;
    }
    #choose main{
        display: flex;
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding-top: 1vw;
    }
    #choose main div{
        background-color: rgb(0, 0, 0);
        border: solid 0.1vw rgb(60, 255, 1);
        height: 12vw;
        width: 12vw;
        font-size: 10vw;
        padding: auto;
        text-align: center;
    }
    #choose main div:hover{
        background-color: rgb(7, 137, 0);
    }
    h2{
        margin: 2vw;
    }
    #board{
        width: 100%;
        height: 100%;
        background-color: rgb(11, 64, 239);
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding-top: 0.6vw;
        display: none;
    }
    #board div{
        background-color: rgb(24, 24, 24);
        border: solid 0.1vw rgb(60, 255, 1);
        height: 15.8vw;
        width: 15.8vw;
        font-size: 12vw;
        padding: auto;
        text-align: center;
    }
    #board div:hover{
        background-color: rgb(7, 137, 0);
    }
    #introduction button{
        font-size: 3vw;
        padding: 0.2vw 1vw 0.2vw 1vw;
        border-radius: 15%;
        margin-top: 15vw;
    }
    #introduction button:hover{
        background-color: blue;
        color: white;
    }
    #score{
        font-size: 4vw;
        display: none;
        width: 90vw;
    }
}

@media (max-width: 550px){
    *{
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    html, body{
        background-color: black;
        color: white;
    }
    body{
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 2vw;
        margin: auto;
    }
    h1{
        font-size: 7vw;
        margin-bottom: 2vw;
    }
    h2{
        font-size: 6vw;
    }
    #game{
        width: 90vw;
        height: 90vw;
        display: flex;
        justify-content:space-evenly;
        margin: 1vw;
    }
    #over{
        position: absolute;
        height: 90vw;
        width: 90vw;
        background-color: rgba(62, 62, 62, 0.849);
        flex-direction: column;
        display: none;
    }
    #over p{
        font-size: 6vw;
        color: rgb(80, 254, 0);
        font-weight: bold;
        margin: auto;
        margin-bottom: -9vw;
    }
    #over button{
        font-size: 6vw;
        padding: 0.2vw 1vw 0.2vw 1vw;
        border-radius: 15%;
        margin: auto;
    }
    #over button:hover{
        background-color: blue;
        color: white;
    }
    #choose{
        height: 100%;
        width: 100%;
        display: none;
        display: flex;
        flex-direction: column;
        padding: 3vw;
        display: none;
    }
    #choose main{
        display: flex;
        width: 100%;
        height: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding-top: 1vw;
    }
    #choose main div{
        background-color: rgb(0, 0, 0);
        border: solid 0.1vw rgb(60, 255, 1);
        height: 15vw;
        width: 15vw;
        font-size: 13vw;
        padding: auto;
        text-align: center;
    }
    #choose main div:hover{
        background-color: rgb(7, 137, 0);
    }
    h2{
        margin: 2vw;
    }
    #board{
        width: 100%;
        height: 100%;
        background-color: rgb(11, 64, 239);
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        padding-top: 0.6vw;
        display: none;
    }
    #board div{
        background-color: rgb(24, 24, 24);
        border: solid 0.1vw rgb(60, 255, 1);
        height: 29vw;
        width: 29vw;
        font-size: 23vw;
        padding: auto;
        text-align: center;
    }
    #board div:hover{
        background-color: rgb(7, 137, 0);
    }
    #introduction button{
        font-size: 6vw;
        padding: 0.2vw 1vw 0.2vw 1vw;
        border-radius: 15%;
        margin-top: 15vw;
    }
    #introduction button:hover{
        background-color: blue;
        color: white;
    }
    #score{
        font-size: 7vw;
        display: none;
        width: 90vw;
    }
}
