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

html,
body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #244858f1;
    font-family: Arial, Helvetica, sans-serif;
}

/* #1F3540   btn color */
/* #A8BEC9 gray color */
/* #102129 shadow color also for text color */
/* #31C4BE for x aqua color  */
/* #F2B237 for o yellow color */
.box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 10px;
    border: none;
    margin: 10px;
    background-color: #1F3540;
    box-shadow: 0px 8px #102129;
    color: white;
    font-size: 70px;
    font-weight: 700;
    transition: scale .3s;
    cursor: pointer;
}

button:active {
    box-shadow: none;
    scale: .9;
}

.header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: center;
}

.header h2 {
    background-color: #1F3540;
    width: 60%;
    padding: 15px 10px;
    color: #A8BEC9;
    font-size: 35px;
    border-radius: 10px;
    box-shadow: 0px 8px #102129;
}
.header i{
    color: #102129;
    background-color: #A8BEC9;
    width: 30%;
    padding: 15px 10px;
    font-size: 30px;
    border-radius: 10px;
    box-shadow: 0px 8px #102129;
    transition: .3s;
    cursor: pointer;
}
.header i:active{
    box-shadow: none;
    scale: .9;
}
.footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
.footer .score{
  font-size: 20px;
}
.footer .x{
    background-color: #31C4BE;
    padding: 10px;
    border-radius: 10px;
    color: #102129;
    width: 30%;
}
.footer .t{
    background-color: #A8BEC9;
    padding: 10px;
    border-radius: 10px;
    color: #102129;
    width: 30%;
}
.footer .o{
    background-color: #F2B237;
    padding: 10px;
    border-radius: 10px;
    color: #102129;
    width: 30%;
}
.result-page{
    color: #A8BEC9;
    background-color: #102129;
    width: 100%;
    text-align: center;
    font-size: 40px;
    position: absolute;
   padding: 30px 0;
   transition: .3s ease-in-out;
   top: 0;
   visibility: hidden;
}
.hide{
    visibility: hidden;
}
.show{
    top: 40%;
  visibility: visible;
}

@media screen and (max-width: 470px) {
    .box button{
        width: 100px;
        height: 100px;
    }
    h3{
        font-size: 16px;
    }
    .header h2{
        font-size: 25px;
        padding: 10px;
        width: 60%;
        margin-left: 10px;
    }
    .header i{
        font-size: 25px;
        padding: 10px;
        width: 25%;
        margin-right: 15px;
    }
    .footer{
        width: 90%;
    }
    .result-page h1{
        font-size: 35px;
    }
}