/* Modern Mobile-First Friendship Theme - Light */
:root {
    --primary: #F59E0B;
    /* Warm Orange */
    --secondary: #10B981;
    /* Fresh Green */
    --accent: #EF4444;
    /* Vibrant Red */
    --dark: #1F2937;
    --light: #FFFFFF;
    --bg: #FEF3C7;
    --glass: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(249, 168, 37, 0.3);
    --shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.p20{
    padding: 0 20px;
}

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

body {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 50%, #FCD34D 100%);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 60px;
    /* Space for footer */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-family: 'Patrick Hand', cursive;
    font-size: 1.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

/* Input Card */
.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.title {
    font-family: 'Patrick Hand', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 15px;
    background: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

input:focus {
    border-color: var(--secondary);
    transform: scale(1.02);
}

.vs-badge {
    position: absolute;
    left: 50%;
    top: 120%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
}

.btn-main {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

/* Result View */
.result-view {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.percentage-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    border: 8px solid var(--primary);
    position: relative;
}

.percentage-circle::after {
    content: '%';
    font-size: 1.2rem;
    position: absolute;
    top: 40px;
    right: 20px;
    color: var(--dark);
    opacity: 0.5;
}

.result-message {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-desc {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 80%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Nav (Mobile App Style) */
.mobile-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 3px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    z-index: 200;
}

.mobile-nav a {
    font-size: 1.5rem;
    transition: transform 0.2s;
    opacity: 0.6;
    text-decoration: none;
}

.mobile-nav a.active {
    opacity: 1;
    transform: scale(1.2);
}

.mobile-nav a:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        margin-top: 5rem;
    }

    .btn-main {
        width: auto;
        min-width: 250px;
    }
}