/* General Body and Fonts */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right top, #ffafbd, #ffc3a0); /* Soft love gradient */
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Dancing Script', cursive; /* Elegant, flowing font for titles */
    color: #a3003e; /* Deep rose color */
    text-align: center;
    margin-bottom: 15px;
}

/* Header Styling */
header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 3.5em;
    color: #e91e63; /* Brighter pink */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    margin-top: -10px;
}

/* Main Content Area */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Calculator Section Emphasis */
.calculator-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 3px solid #ff69b4; /* Hot pink border for emphasis */
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.calculator-section::before {
    content: '❤️';
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 4em;
    opacity: 0.1;
    transform: rotate(-20deg);
}

.calculator-section::after {
    content: '💕';
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 4em;
    opacity: 0.1;
    transform: rotate(20deg);
}

.calculator-section h2 {
    color: #c2185b; /* Darker pink */
    font-size: 2.2em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.love-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.love-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1.1em;
}

.love-form input[type="text"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 2px solid #ffafbd; /* Soft pink border */
    border-radius: 8px;
    font-size: 1.1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.love-form input[type="text"]:focus {
    border-color: #e91e63; /* Brighter pink on focus */
    outline: none;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

.calculate-button {
    background: linear-gradient(to right, #ff69b4, #ff1493); /* Vibrant pink gradient */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.4em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
}

.calculate-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.6);
}

/* About Section */
.about-section {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin-top: 20px;
}

.about-section h3 {
    color: #880e4f;
    font-size: 1.8em;
}

.about-section p {
    line-height: 1.6;
    color: #444;
}

/* Flash messages */
.flashes {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.flashes li {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.flashes .error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Results Page Styling */
.results-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 600px;
    border: 4px dashed #ffafbd; /* Playful dashed border */
}

.results-section h2 {
    color: #c2185b;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.love-percentage-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    width: 180px;
    height: 180px;
    background: linear-gradient(45deg, #ffafbd, #ffc3a0);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.7);
    animation: pulse 2s infinite alternate;
}

.percentage-number {
    font-family: 'Dancing Script', cursive;
    font-size: 4em;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.percentage-label {
    font-size: 1.2em;
    color: white;
    font-weight: 600;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.love-message {
    font-size: 1.3em;
    color: #444;
    margin-top: 25px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.back-button {
    background: linear-gradient(to right, #6a11cb, #2575fc); /* A calming blue/purple gradient */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

/* Footer Styling with Social Media */
footer {
    background-color: #c2185b; /* Deep pink footer */
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: auto; /* Pushes footer to the bottom */
}

.social-media {
    margin-bottom: 15px;
}

.social-media p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.social-media a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.1);
}

.social-media img {
    width: 35px; /* Adjust size of social icons */
    height: 35px;
    filter: brightness(0) invert(1); /* Makes icons white */
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    .calculator-section {
        padding: 30px;
    }

    .love-form input[type="text"], .calculate-button {
        font-size: 1em;
    }

    .love-percentage-display {
        width: 150px;
        height: 150px;
    }

    .percentage-number {
        font-size: 3em;
    }

    .love-message {
        font-size: 1em;
    }

    .social-media img {
        width: 30px;
        height: 30px;
    }
}
