:root {
    --primary-blue: #4facfe;
    --primary-azur: #00f2fe;
    --primary-yellow: #fddb92;
    --secondary-yellow: #d1fdff;
    --accent-orange: #ff9a9e;
    --accent-green: #a8edea;
    --text-dark: #2d3436;
    --text-light: #ffffff;
    --border-radius: 15px;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --font-heading: 'Fredoka One', cursive;
    /* Use a fun font */
    --font-body: 'Nunito', sans-serif;
}

body {
    background: linear-gradient(120deg, var(--primary-azur) 0%, var(--primary-blue) 100%);
    font-family: var(--font-body);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.title-text {
    font-size: 3rem;
    color: var(--text-light);
    text-shadow: 3px 3px 0px var(--text-dark);
    letter-spacing: 2px;
}

/* Buttons */
.btn-custom {
    background: linear-gradient(to right, #ff9966, #ff5e62);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 94, 98, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-custom:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 94, 98, 0.6);
    color: white;
}

.btn-secondary-custom {
    background: linear-gradient(to right, #56ab2f, #a8e063);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(86, 171, 47, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(86, 171, 47, 0.6);
    color: white;
}

/* Cards */
.card-custom {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
}

.card-header-custom {
    background: transparent;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

/* Inputs */
.form-control-lg {
    border-radius: 50px;
    border: 2px solid #ddd;
    padding: 1.5rem;
    font-size: 1.1rem;
    background: #f9f9f9;
}

.form-control-lg:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.25);
    border-color: var(--primary-blue);
    background: #fff;
}

/* Avatar Selection */
.avatar-option {
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
    transform: scale(1.1);
}

/* Progress Bar */
.progress-bar-custom {
    height: 25px;
    border-radius: 15px;
    background: #e9ecef;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #f12711, #f5af19);
    width: 0%;
    transition: width 1s linear;
    /* Smooth transition for timer */
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title-text {
        font-size: 2rem;
    }

    .btn-custom {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Add padding to body so content isn't hidden behind bottom nav */
    body {
        padding-bottom: 80px;
    }

    .bottom-nav {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 10px 0;
        z-index: 1050;
        /* Ensure it stays on top */
    }

    .bottom-nav .nav-link {
        color: #aaa;
        transition: color 0.3s ease;
    }

    .bottom-nav .nav-link:hover,
    .bottom-nav .nav-link.active {
        color: var(--primary-blue);
    }

    .bottom-nav .nav-link.text-danger:hover {
        color: #ff5e62 !important;
    }
}