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

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

body {
    /* A smooth, romantic gradient background */
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculator-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

h1 {
    color: #ff4757;
    margin-bottom: 10px;
}

p {
    color: #57606f;
    margin-bottom: 20px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

input[type="text"] {
    padding: 12px;
    border: 2px solid #dfe4ea;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
}

input[type="text"]:focus {
    border-color: #ff4757;
}

.plus-icon {
    font-size: 24px;
    color: #ff4757;
    font-weight: bold;
}

button {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, background-color 0.3s;
}

button:hover {
    background-color: #ff6b81;
    transform: translateY(-2px); /* Little lift effect when hovering */
}

button:active {
    transform: translateY(0); /* Pushes down when clicked */
}

#result-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #dfe4ea;
}

#percentage {
    font-size: 48px;
    color: #ff4757;
    margin-bottom: 5px;
}

#message {
    font-size: 18px;
    font-weight: 600;
    color: #2f3542;
}

/* Utility class to hide the results until calculated */
.hidden {
    display: none !important;
}