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

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    transition: 0.5s;
    animation: change 10s ease-in-out infinite;
    margin: 0;
}

.calculator {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 100%; /* Responsive width */
    max-width: 400px;
}

.button {
    width: 70px;
    height: 70px;
    font-size: 24px;
    margin: 5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    background-color: #fff235;
    color: #222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.button:hover {
    background-color: #c7bb0f;
    transform: scale(1.05);
}

.row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.row input {
    width: 100%;
    font-size: 28px;
    text-align: right;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
}

.equal {
    width: 306px;
    /* Add this to override the previous style */
}

/* Media Query for Android Screens */
@media only screen and (max-width: 600px) {
    .calculator {
        padding: 10px;
    }

    .button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .row {
        flex-wrap: wrap;
    }

    .row input {
        font-size: 22px;
    }
}

/* Custom styles for the new text */
.title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}
