@charset "UTF-8";
/* CSS Document */
/* General reset and body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px 10px;
}

/* Heading */
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Calculator card */
.calculator {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
}

/* Input groups */
.input-group {
    width: 100%;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Calculate button */
button {
    width: 100%;
    padding: 15px;
    font-size: 20px;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #45a049;
}

/* Tip result */
#tip-result {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 400px) {
    .input-group input {
        font-size: 16px;
        padding: 10px;
    }

    button {
        font-size: 18px;
        padding: 12px;
    }

    #tip-result {
        font-size: 18px;
    }
}
