*{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}
.container{
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg,#4203a9,#90bafc);
    color: #fff;
    padding: 10px;
}
.calculator{
    width: 100%;
    max-width: 600px;
    margin-left: 20%;
    margin-top: 10%;
}
.calculator h1{
    font-size: 60px;
}
.calculator h1 span{
    color: #ffff76;
}
.input-box{
    margin: 40px 0;
    padding: 35px;
    border-radius: 10px;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
}
.input-box input{
    flex: 1;
    margin-right: 20px;
    padding: 14px 20px;
    border: 0;
    outline: 0;
    font-size: 18px;
    border-radius: 5px;
    position: relative;
}
.input-box button{
    background: #ffff76;
    border: 0;
    outline: 0;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}
.input-box input::-webkit-calender-picker-indicator{
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    position: absolute;
    background-position: calc(100% - 10px);
    background-size: 30px;
    cursor: pointer;
}
#result{
    font-size: 20px;
}
#result span{
    color: #ffff76;
}


/* Media Queries */


/* Mobile view (up to 600px wide) */
@media (max-width: 600px) {
    .calculator {
        margin: 20% auto;   /* Center for small screens */
        padding: 10px;
        text-align: center;
    }

    .calculator h1 {
        font-size: 32px;   /* Smaller heading */
        line-height: 1.3;
    }

    .input-box {
        flex-direction: column; /* Stack input & button */
        padding: 20px;
        gap: 15px;  /* space between input & button */
    }

    .input-box input {
        width: 100%;      /* Full width on mobile */
        margin-right: 0;
        font-size: 16px;
        padding: 12px;
    }

    .input-box button {
        width: 100%;     /* Full width button */
        font-size: 16px;
        padding: 12px;
    }

    #result {
        font-size: 18px;  /* Slightly smaller result text */
    }
}

/* Tablet view (601px to 900px wide) */
@media (min-width: 601px) and (max-width: 900px) {
    .calculator h1 {
        font-size: 45px;
    }

    .input-box {
        padding: 25px;
    }

    .input-box input, 
    .input-box button {
        font-size: 17px;
    }
}
