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

html,
body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(86, 8, 8, 0.67);
}

.box {
    background-color: #fffffff6;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.477) inset,
        5px 5px 20px 5px rgba(0, 0, 0, 0.778);
    width: 560px;
}

h1 {
    margin: 15px 0;
    font-size: 40px;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
}

.allBtns {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 40px 0;
}

.allBtns button {
    font-size: 90px;
    width: 130px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0px 0px 20px 3px #00000005;
    border: 5px solid rgb(159, 32, 32);
    transition: all .3s ease-out;
    cursor: pointer;
}
.allBtns button:hover{
    border: 5px solid rgb(0, 0, 0);
}
.allBtns button:active{
    scale: .9;
}
h3 {
    text-align: center;
    margin: 20px 0;
    font-size: 30px;
    font-family: 'Courier New', Courier, monospace;
    color: rgb(41, 5, 5);
}

h3 span {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 28px;
}

.score {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 30px 0;
    font-size: 25px;
    color: rgb(110, 17, 17);
}

.score h4 span {
    font-weight: 800;
}

.resultBtns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.resultBtns button:nth-child(1) {
    width: 80%;
    font-size: 30px;
    font-weight: 700;
    background-color: rgba(165, 42, 42, 0.96);
    color: white;
    border: none;
    height: 60px;
    border-radius: 10px 0 10px 0px;
}

.resultBtns button:nth-child(2) {
    font-size: 20px;
    height: 60px;
    width: 20%;
    border-radius: 10px;
    border: none;
    background-color: rgb(101, 94, 94);
    font-weight: 700;
    margin-left: 10px;
    color: white;
    cursor: pointer;
    transition: background-color .4s ease-in;
}
.resultBtns button:nth-child(2):active{
    scale: .9;
}
.resultBtns button:nth-child(2):hover{
    background-color: #1d1c1c;
}

@media screen and (max-width: 550px) {
    .box{
        padding: 20px;
        width: 90%;
    }
     h1{
        font-size: 30px;
     }
     .resultBtns button:nth-child(1) {
   font-size: 25px;
   height: 50px;
     }
     .resultBtns button:nth-child(2) {
   font-size: 18px;
   height: 50px;
     }
}

@media screen and (max-width: 550px) {
  .allBtns button{
    font-size: 60px;
    width: 100px;
    aspect-ratio: 1;
  }
  h3{
    font-size: 25px;
    margin: 10px 0;
  }
  h3 span{
    font-weight: 700;
  }
  h4{
    font-size: 20px;
  }
}

@media screen and (max-width: 450px) {
    .resultBtns button:nth-child(2) {
        font-size: 16px;
        height: 50px;
        width: 120px;
          }
          h1{
            font-size: 25px;
            margin-top: 10px;
          }
          h3{
            font-size: 20px;
          }
          h3 span{
            font-size: 23px;
          }
}

@media screen and (max-width: 400px) {
.resultBtns{
    flex-direction: column;
    width: 100%;
}
.resultBtns button:nth-child(1){
    width: 100%;
    border-radius: 0;
    margin: 10px 0;
}
.resultBtns button:nth-child(2){
    width: 100%;
    border-radius: 8px;
    margin: 0;
    font-size: 20px;
}
h4{
    font-size: 16px;
}
.allBtns button{
    margin: 0 5px;
}
}