*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --main-color: rgb(255, 0, 106);
    --white: rgb(13, 17, 78);
    --bodybg1: rgb(24, 39, 104);
    --bodybg2: rgb(223, 17, 113);
}
body{
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, 
     var(--bodybg1) 0%,
     var(--bodybg1) 50%,
     var(--bodybg2) 50%,
     var(--bodybg2) 100%
    )
}
button:active{
    transform: scale(0.97);
    outline: 0;
    border: 0;
}
.pd{
    padding: 10px;
}

main{
    display: flex;
    gap: 20px;
}
.result{
    padding: 20px;
    width: 300px;
    color: #fff;
    box-shadow: inset 0px 0px 10px 4px rgb(84, 153, 218);

}
.result h2{
    font-size: 40px;
    text-transform: uppercase;
    margin-top: 30px;
    color: var(--main-color);
}
.result span{
    display: block;
    margin-top: 20px;
    font-size: 30px;
}
.result p{
    margin-top: 100px;
    font-size: 30px;
    text-transform: capitalize;
}


section{
    background: var(--white);
    /* padding: 10px; */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header{
    display: flex;
    justify-content: space-between;
    width: 350px;
    background-color: var(--white);
    box-shadow: 0px 0px 10px 1px rgb(84, 153, 218);
}
.header p{
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
}
.header i{
    color: gray;
    font-weight: bold;
    font-size: 20px;
}
.hero{
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 30px;
}
.age{
    padding: 20px;
    background: var(--white);
    text-transform: capitalize;
    text-align: center;
    box-shadow: 0px 0px 10px 1px rgb(84, 153, 218);
    border-radius: 10px;
}
.age p{
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}
.age span{
    display: block;
    margin-bottom: 20px;
    font-size: 50px;
    color: #fff;
    font-weight: bold;
}
.age .inn{
    display: flex;
    justify-content: space-between;
}
.age button{
    width: 30px;
    height: 30px;
    font-size: 20px;
    border-radius: 50%;
    border: 0;
    background-color: rgb(241, 236, 236);
    color: var(--main-color)
}
.height,
.gender{
    box-shadow: 0px 7px 10px -4px rgb(84, 153, 218);
    width: 330px;
    margin: 0 auto;
    text-align: center;
    border-radius: 10px;
    margin-top: 20px;
}
.height h3,
.gender h3{
    font-size: 15px;
    font-weight: bold;
    text-transform: capitalize;
    color: #fff;
}
.height p{
    font-size: 50px;
    margin: 10px 0;
    color: #fff;
}
input.range{
    display: inline-block;
    vertical-align: middle;
    font-size: 1em;
    font-family: Arial, sans-serif;
}

input.range[type="range"] {
    -webkit-appearance: none;
    margin-right: 0;
    width: 200px;
    height: 2px;
    background: rgba(211, 145, 145, 0.6);
    border-radius: 5px;
    background-image: linear-gradient(#e6dcd9, #e6dbd8);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
input.range[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--main-color);;
    cursor: ew-resize;
    box-shadow: 0 0 2px 0 #555;
    transition: background .3s ease-in-out;
  }

.gender .gender-btm{
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}
.gender-btm p{
    font-size: 40px;
    font-weight: bold;
    color: #fff;
}
.gender-btm .btm{
    width: 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btm .btm-sp{
    font-weight: bold;
    color: #fff;
}

/* toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 15px;
  }
  
  .switch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--main-color);;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: -5px;
    bottom: -3px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: red;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--main-color);;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  #calc{
    padding: 10px 30px;
    margin: 20px 0;
    font-size: 20px;
    text-transform: uppercase;
    border: 0;
    border-radius: 50px;
    color: var(--white);
    background: var(--main-color);

}








