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

body {
   

    font-family: Arial, sans-serif;
  
  padding: 10px;
  background-image: url(https://images.rawpixel.com/image_800/cHJpdmF0ZS9sci9pbWFnZXMvd2Vic2l0ZS8yMDIyLTA1L3AtNDQ4LXBhaS02ODMtam9iNTcwLTIuanBn.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
h1 {
color: #1b1002;
font-size: 45px;
margin-top: 0px;
display: flex;
justify-content: center;
align-items: center; 
}

.subtitle {
    color: #000000;
margin-bottom: 10px;
    font-size: 20px;
display: flex;
justify-content: center;
align-items: center;

}


.calculator {
    width: 75%;
    height:280px;
    text-align: center;
    background: #d1cfcf;
    background:#f8f3ff;
    border-radius: 25px;
    border: 2px solid #b6a9b4;
    box-shadow: 0 15px 40px rgba(126, 87, 194, 0.15);
    display: flex;
justify-content: center;
    align-items: center;
    flex-direction: column;
margin: 0 auto;



}

.icon {

    font-size: 45px;
    color: #df288c;
   
}




label {
    display: block;
    text-align: left;
    color: #6d5291;
    font-size: 14px;
    margin-bottom: 10px;
}

input {
    width: 70%;
    padding: 14px;
    border: 1px solid #afacb4;
    border-radius: 12px;
    font-size: 18px;
    color: #000000;
   
    outline: 1px solid #ccc;
    background: #ffffff;
}

input:focus {
    border-color: #3518a9;
    box-shadow: 0 0 0 3px #eee5ff;
}
input:hover{
     transition: 0.3s;
     background:  #fbfbfb;
     border:2px solid #ddd0f5 ;
    font-size: 16px;
    font-weight: bold;
}

button {
    width: 75%;
    padding: 10px 15px;
    margin-top: 20px;
    border: none;
    border-radius: 12px;
    background:  #cd93b2;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px #82556d;
     
}

.result {
   
    padding: 20px;
    border-radius: 15px;
    background: #f8f3ff;
    color:#b62b9f;

    font-weight: bold;
    line-height: 1.6;
    margin-top: 15px;
}

.result h2 {
    color: #df288c;
    font-size: 22px;
    margin-bottom: 10px;
}

.age-details {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.age-box {
    flex: 1;
    padding: 12px 5px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(126, 87, 194, 0.08);
}

.age-box span {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #df288c;
}

.age-box small {
    color: #9b8aaf;
    font-size: 12px;
}
.reset{
   height:auto;
   width: 30%;
   background-color: #82556d;
}

/* Tablet */
@media (max-width: 768px) {

    .calculator {
        width: 90%;
        height: auto;
        padding: 30px 20px;
    }

    h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 17px;
    }

    input {
        width: 85%;
    }

    .reset{
        width: 100%;
        height:auto;
    }
}


/* Mobile */
@media (max-width: 480px) {

    body {
        padding: 15px;
        background-position: center;
        background-size: cover;
    }

    h1 {
        font-size: 28px;
        text-align: center;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .calculator {
        width: 100%;
        height: auto;
        padding: 25px 15px;
        border-radius: 20px;
    }

    .icon {
        font-size: 35px;
    }

    input {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    button {
        width: 100%;
        font-size: 14px;
        padding: 12px;
        margin-top: 15px;
    }

    .reset {
        width: 100%;
        height: auto;
    }

    .result {
        padding: 15px 10px;
    }

    .age-details {
        gap: 6px;
    }

    .age-box {
        padding: 10px 4px;
    }

    .age-box span {
        font-size: 20px;
    }

    .age-box small {
        font-size: 11px;
    }
}


/* Small Mobile */
@media (max-width: 350px) {

    h1 {
        font-size: 24px;
    }

    .calculator {
        padding: 20px 12px;
    }

    .age-box span {
        font-size: 17px;
    }
}

