* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: blueviolet;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.box {
    width: 500px;
    background-color: #fafafa;
    border-radius: 12px;
    text-align: center;
    box-shadow: 2px 2px 20px 5px rgba(0, 0, 0, 0.5);
}
h1 {
    /* color: rgba(0, 0, 0, 0.7); */
    color: blueviolet;
    font-size: 36px;
    font-weight: bold;
    padding: 30px 0;
}
.container .content {
    padding: 0 30px;
}
.content .input-age {
    background: #ffffff;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 0 95px -30px rgba(0, 0, 0, 0.15);
}
.input-age label {
    display: block;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}
.input-age .text-input {
    outline: none;
    border: none;
    border-bottom: 1px solid blueviolet;
    width: 50%;
    text-align: center;
    font-size: 20px;
}
.content .gender {
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    background-color: #ffffff;
    box-shadow: 0 0 95px -30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 20px 0;
    margin-bottom: 20px;
}
/* Start Style For Radio */
.gender .container {
    display: block;
    position: relative;
    padding-left: 35px;
    font-size: 22px;
    margin-top: 7px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Hide the browser's default radio button */
.gender .container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
/* Create a custom radio button */
.gender .container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #eee;
}
/* On mouse-hover, add a grey background color */
.gender .container:hover input ~ .checkmark {
    background-color: #ccc;
}
/* When the radio button is checked, add a blueviolet background */
.gender .container input:checked ~ .checkmark {
    background-color: blueviolet;
}
/* Create the indicator (the dot/circle - hidden when not checked) */
.gender .container .checkmark::after {
    content: "";
    position: absolute;
    display: none;
}
/* Show the indicator (dot/circle) when checked */
.gender .container input:checked ~ .checkmark::after {
    display: block;
}
/* Style the indicator (dot/circle) */
.gender .container .checkmark::after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}
/* End Style For Radio */
.content .containerHW {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.containerHW .input-height,
.containerHW .input-weight {
    background: #fff;
    box-shadow: 0 0 95px -30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 20px;
}
.containerHW .input-height {
    margin-right: 20px;
}
.input-height label,
.input-weight label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}
.input-height input,
.input-weight input {
    outline: none;
    border: none;
    border-bottom: 1px solid blueviolet;
    width: 50%;
    text-align: center;
    font-size: 28px;
}
.content .calculate {
    background: blueviolet;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 0;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.5s;
    letter-spacing: 0.8px;
}
.content .calculate:hover {
    background: rgb(71, 22, 117);
}
.box .result {
    padding: 10px 20px;
}
.result p {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}
.result #result {
    font-size: 36px;
    font-weight: 900;
    color: blueviolet;
    background: #eaeaea;
    display: inline-block;
    padding: 7px 20px;
    border-radius: 55px;
    margin-bottom: 25px;
}
#comment {
    color: blueviolet;
    font-weight: 800;
}
.result .comment {
    display: none;
    border: 1px dashed;
    border-radius: 7px;
    padding: 5px;
}

/* The Modal background */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 300px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}
/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
    border-radius: 10px;
    box-shadow: -1px 2px 2px 1px #67438a;
}
#modalText {
    padding-top: 8px;
    padding-right: 5px;
    font-size: 18px;
    color: rgb(24, 23, 23);
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.close:hover {
    color: #d41111;
}

@media (max-width: 700px){
    .container .box {
        width: 380px;
    }
    .input-age label {
        font-size: 18px;
    }
    .input-height label,
    .input-weight label {
        font-size: 14px;
    }
    .input-age .text-input,
    .input-height input,
    .input-weight input{
        font-size: 24px;
    }
    .modal-content {
        width: 380px;
    }
}