@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

#inputBox {
    color: white;
}

body{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, black, #3a4452);
    min-height: 100vh;
    min-width: 100vw;
    overflow-x: hidden;
}

.calculator {
   border: 1px solid #717377;
   padding: 20px;
   border-radius: 16px;
   background: transparent;
   box-shadow: 0px 3px 15px rgba(113, 115, 119, 0.5);
   width: 100%;
   max-width: 370px;
   min-width: 250px;
   box-sizing: border-box;
   display: flex;
   flex-direction: column;
   align-items: stretch;
}

input{
    width: 100%;
    border: none;
    padding: 24px 16px;
    margin: 10px 0;
    background: transparent;
    text-align: right;
    font-size: 2.5rem;
    cursor: pointer;
    box-sizing: border-box;
}

input::placeholder{
    color: white;
}

button{
    border: none;
    width: 60px;
    height: 60px;
    margin: 8px;
    border-radius: 50%;
    background: transparent;
    font-size: 1.5rem;
    color: white;
    box-shadow: -8px -8px 15px rgba(255, 255, 255, 0.1);
    transition: background 0.2s, color 0.2s;
}

.eql-btn{
    background: #fb7c14;
    color:white
}

.operator{
    color: #6dee0a;
}

@media (max-width: 600px) {
    html, body {
        height: 100%;
        min-height: 100vh;
        width: 100vw;
        min-width: 100vw;
        overflow-x: hidden;
    }
    body {
        min-height: 100vh;
        height: 100vh;
        width: 100vw;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: stretch;
        overflow-x: hidden;
    }
    .calculator {
        max-width: 100vw;
        min-width: 100vw;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        padding: 10px 0 10px 0;
        box-sizing: border-box;
        justify-content: flex-start;
        border-radius: 0;
    }
    input {
        font-size: 3rem;         
        padding: 28px 12px;      
        height: 16vh;      
        min-height: 80px;
        margin-bottom: 18px;
    }
    button {
        width: 20vw;
        height: 10vh;
        font-size: 1.1rem;
        margin: 2vw 1vw;
        min-width: 0;
        min-height: 0;
        max-width: 22vw;
        max-height: 12vh;
    }
    .calculator > div {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .calculator {
        padding: 5px;
    }
    input {
        font-size: 2rem;         /* Still larger than default for small screens */
        padding: 16px 6px;
        height: 12vh;
        min-height: 60px;
        margin-bottom: 10px;
    }
    button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin: 3px;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .footer {
        font-size: 0.8rem;
        padding: 8px;
    }
}
