*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(112, 5, 5);
    position: relative;
}
body::before{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(185, 10, 10, 0.161);
    z-index: -1;
    animation: move 5s linear infinite alternate;
}
body::after{
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(185, 10, 10, 0.17);
    z-index: -1;
    animation: move 5s linear infinite alternate-reverse;
}
@keyframes move {
    100%{
        transform: translateX(-100%);
    }
}
h1{
    font-size: 50px;
    color: white;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}
.box{
    background-color: white;
    padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.864);
}
#value{
    font-size: 25px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background-color: rgba(220, 220, 220, 0.983);
    margin: 20px;
}
.units{
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.units label{
    font-size: 25px;
    font-weight: 600;
}
.unit1, .unit2{
    margin: 15px;
}
input[type="radio"]{
  transform: scale(2);
  margin: 0 10px;
  accent-color: red;
}
h4{
    text-align: center;
    margin: 10px;
    font-size: 23px;
    font-weight: 700;

}
#btn{
  text-align: center;
  margin-top: 30px;
}
button{
    font-size: 23px;
    padding: 0 10px;
    border-radius: 5px;
    border: none;
    background-color: rgb(201, 18, 18);
    color: white;
    font-weight: 600;
    height: 40px;
    cursor: pointer;
}
button:active{
    scale: .9;
}
@media screen and (max-width: 500px) {
    h1{
        font-size: 40px;
    }
    .box{
        padding: 20px 10px;
        width: 95%;
    }
    #value{
        font-size: 15px;
        width: 90%;
    }
    .units label{
        font-size: 18px;
    }
    input[type="radio"]{
        transform: scale(1.3);
        margin: 5px;
    }
    button{
        font-size: 16px;
    }
    h4{
        font-size: 16px;
    }
}