/* Base styling */
:root[data-bs-theme="dark"] {
    --bg-gradient-start: #1a1f3c;
    --bg-gradient-end: #2a2f6e;
    --card-bg: rgba(25, 33, 94, 0.95);
    --card-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-hover-bg: rgba(255, 255, 255, 0.15);
    --text-color: #fff;
    --navbar-bg: rgba(25, 33, 94, 0.95);
    --nav-link-hover: rgba(255, 255, 255, 0.1);
}

:root[data-bs-theme="light"] {
    --bg-gradient-start: #e8eaf6;
    --bg-gradient-end: #c5cae9;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(0, 0, 0, 0.05);
    --input-hover-bg: rgba(0, 0, 0, 0.08);
    --text-color: #333;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --nav-link-hover: rgba(0, 0, 0, 0.05);
}

/* Mobile menu and input fixes */
:root[data-bs-theme="light"] {
    --mobile-input-bg: rgba(0, 0, 0, 0.08);
    --mobile-input-color: #333;
    --mobile-input-placeholder: rgba(0, 0, 0, 0.5);
    --navbar-toggler-color: #333;
    --mobile-nav-bg: rgba(255, 255, 255, 0.95);
}

:root[data-bs-theme="dark"] {
    --mobile-input-bg: rgba(255, 255, 255, 0.1);
    --mobile-input-color: #fff;
    --mobile-input-placeholder: rgba(255, 255, 255, 0.5);
    --navbar-toggler-color: #fff;
    --mobile-nav-bg: rgba(25, 33, 94, 0.95);
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    color: var(--text-color);
}

/* Navbar and navigation styling */
.navbar {
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    position: relative;
    z-index: 1100;
}

.navbar-brand {
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 1.4rem;
}

.navbar-toggler {
    border-color: var(--card-border) !important;
    color: var(--navbar-toggler-color) !important;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
}

.navbar-toggler-icon::before {
    content: "☰";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--navbar-toggler-color);
    font-size: 1.5rem;
}

.nav-item {
    margin: 0 0.2rem;
}

.nav-link {
    color: var(--text-color) !important;
    opacity: 0.95;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.01rem;
}

.nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    font-size: 1.2rem;
    padding: 0.6rem;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:root[data-bs-theme="light"] .nav-link:hover {
    background: var(--nav-link-hover);
}

/* Social sharing section */
.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon.twitter {
    color: #1DA1F2;
    border-color: #1DA1F2;
}

.social-icon.twitter:hover {
    background: #1DA1F2;
    color: #fff;
}

.social-icon.facebook {
    color: #4267B2;
    border-color: #4267B2;
}

.social-icon.facebook:hover {
    background: #4267B2;
    color: #fff;
}

.social-icon.reddit {
    color: #FF4500;
    border-color: #FF4500;
}

.social-icon.reddit:hover {
    background: #FF4500;
    color: #fff;
}

.social-icon.email {
    color: #ffd700;
    border-color: #ffd700;
}

.social-icon.email:hover {
    background: #ffd700;
    color: #000;
}

/* Copy Link Button */
.copy-link-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.copy-link-container::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Light mode divider */
:root[data-bs-theme="light"] .copy-link-container::before {
    background: rgba(0, 0, 0, 0.1);
}

.copy-link-btn {
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copy-link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Light mode specific styling for copy link button */
:root[data-bs-theme="light"] .copy-link-btn {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
}

:root[data-bs-theme="light"] .copy-link-btn:hover {
    background: rgba(0, 0, 0, 0.25);
}

.copy-success-message {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
    animation: fadeOut 2s forwards;
    animation-delay: 1.5s;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Dark mode adjustments */
:root[data-bs-theme="dark"] .social-sharing {
    background: rgba(255, 255, 255, 0.05);
}

/* Light mode adjustments */
:root[data-bs-theme="light"] .social-sharing {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile responsiveness for social icons */
@media (max-width: 768px) {
    .social-sharing {
        padding: 1rem;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .social-icons {
        gap: 1rem;
    }
}

:root[data-bs-theme="dark"] .nav-link:hover {
    background: var(--nav-link-hover);
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    background: var(--navbar-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(10px);
    z-index: 1200 !important;
    position: absolute;
    margin-top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-color) !important;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--nav-link-hover) !important;
    color: var(--text-color) !important;
}

.card {
    background: var(--card-bg) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--card-border) !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    padding: 1.5rem !important;
    position: relative;
    overflow: hidden;
}

/* Light mode specific header styling */
:root[data-bs-theme="light"] .card-header {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(56, 142, 60, 0.95)) !important;
    position: relative;
}

:root[data-bs-theme="light"] .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(76, 175, 80, 0.3),
        rgba(129, 199, 132, 0.3)
    );
    animation: gradientMove 3s ease infinite;
    z-index: 1;
}

:root[data-bs-theme="light"] .card-header h2,
:root[data-bs-theme="light"] .card-header h5 {
    color: #fff !important;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Dark mode specific header styling */
:root[data-bs-theme="dark"] .card-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid var(--card-border) !important;
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    padding: 1.5rem !important;
}

/* Update input styling */
#guess-input {
    background: var(--input-bg);
    border: 1px solid var(--card-border) !important;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 10px !important;
    text-align: center;
    transition: all 0.3s ease;
}

#guess-input:focus {
    background: var(--input-hover-bg);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.25);
    border-color: rgba(74, 144, 226, 0.5) !important;
}

/* Light mode specific input styling */
:root[data-bs-theme="light"] #guess-input {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

:root[data-bs-theme="light"] #guess-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Dark mode specific input styling */
:root[data-bs-theme="dark"] #guess-input {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

:root[data-bs-theme="dark"] #guess-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.game-status {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
}

.input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

#guess-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffa000);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    color: #000; /* Dark text for better contrast */
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #000; /* Maintain dark text on hover */
}

.alert {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color) !important;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.alert-info {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(5px);
    padding: 1.2rem;
}

.alert-info .btn-outline-primary,
.alert-info .btn-outline-success {
    background: transparent;
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.alert-info .btn-outline-primary:hover,
.alert-info .btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

:root[data-bs-theme="dark"] .alert-info {
    color: #fff !important;
}

:root[data-bs-theme="light"] .alert-info {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #333 !important;
}

.alert-info a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    background: rgba(74, 144, 226, 0.1);
    margin: 0 0.3rem;
    transition: all 0.3s ease;
}

.alert-info a:hover {
    background: rgba(74, 144, 226, 0.2);
    color: #fff;
}

/* Mobile responsiveness for login/register prompt */
@media (max-width: 768px) {
    .alert-info {
        padding: 1rem;
        text-align: center;
    }

    .alert-info .btn-outline-primary,
    .alert-info .btn-outline-success {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .alert-info .text-muted {
        display: block;
        margin: 0.5rem 0;
    }
}

#game-over {
    padding: 2rem;
}

/* Game status icons and text */
.game-status h5 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.game-status .emoji {
    font-size: 1.4rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }

    .game-status {
        padding: 1rem;
    }

    .game-status .col-md-4 {
        margin-bottom: 1rem;
    }

    .input-group {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        background: transparent;
    }

    /* Keep existing mobile styles */
    #guess-input {
        background: var(--mobile-input-bg) !important;
        color: var(--mobile-input-color) !important;
        border: 1px solid var(--card-border) !important;
        width: 100%;
        border-radius: 15px !important;
        margin-bottom: 0;
        height: 60px;
        font-size: 1.4rem;
        text-align: center;
        padding: 1rem;
    }

    #guess-input::placeholder {
        color: var(--mobile-input-placeholder) !important;
    }

    #submit-guess {
        width: 100%;
        height: 60px;
        border-radius: 15px !important;
        font-size: 1.2rem;
        margin-top: 0.5rem;
        background: linear-gradient(135deg, #ffd700, #ffa000) !important; /* Changed to match desktop yellow gradient */
        color: #000 !important; /* Ensuring text remains dark for contrast */
        font-weight: 600;
    }

    #submit-guess:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }

    .btn {
        width: 100%;
        border-radius: 10px !important;
    }
    .game-status {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .game-status .col-12 {
        margin-bottom: 1rem;
    }

    .game-status .col-12:last-child {
        margin-bottom: 0;
    }

    .alert {
        margin: 1.5rem 0;
        padding: 1.2rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    /* Add mobile-optimized styles for game summary */
    #game-over {
        padding: 1rem;
    }

    #final-message {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    /* Game summary styling */
    .game-summary-card {
        background: rgba(255, 255, 255, 0.07);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-width: 600px;
        margin: 0 auto;
    }

    #final-message {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .summary-divider {
        border: 0;
        height: 1px;
        background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
        margin: 1.5rem 0;
    }

    .summary-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 1.5rem;
    }

    #numbers-summary {
        padding: 1.5rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        margin: 1.5rem auto;
        max-width: 550px;
    }

    .summary-content {
        padding: 0.5rem;
    }

    #target-numbers-display {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        font-size: 1.1rem !important;
    }

    #target-numbers-display p {
        margin: 0;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: transform 0.2s ease;
    }

    #target-numbers-display p:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.12);
    }

    #target-numbers-display .badge {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 10px;
        margin-left: 0.5rem;
    }

    .summary-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .fortune-btn, .try-again-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 30px;
        min-width: 180px;
    }

    .share-hint {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }

    /* Responsive adjustments for mobile */
    @media (max-width: 576px) {
        .game-summary-card {
            padding: 1.5rem;
        }

        .summary-actions {
            flex-direction: column;
            gap: 0.8rem;
        }

        .fortune-btn, .try-again-btn {
            width: 100%;
            margin: 0.4rem 0;
        }
    }

    .navbar-collapse {
        background: var(--mobile-nav-bg);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 0.5rem;
        border: 1px solid var(--card-border);
        backdrop-filter: blur(10px);
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.2rem 0;
        border-radius: 8px;
    }

    .theme-toggle {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
    }
}

/* Animation keyframes */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes celebrate {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2) rotate(5deg);
    }
    50% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.15) rotate(3deg);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.celebrate {
    animation: celebrate 0.8s ease-in-out;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50px) scale(1);
        opacity: 0;
    }
}

.floating-points {
    position: fixed;
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.5rem;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

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

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Celebration particles */
.particle {
    position: fixed;
    pointer-events: none;
    background: radial-gradient(circle, #4a90e2 10%, transparent 70%);
    border-radius: 50%;
    width: 8px;
    height: 8px;
}

@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Responsive celebration effects */
@media (max-width: 768px) {
    .floating-points {
        font-size: 1.2rem;
    }

    .particle {
        width: 6px;
        height: 6px;
    }
}

.emoji {
    font-size: 1.2em;
    margin-right: 0.2em;
    display: inline-block;
    vertical-align: middle;
}

.btn-outline-primary,
.btn-outline-success {
    border-width: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.theme-round-1 {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-2 {
    background: linear-gradient(135deg, #004d40, #00695c);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-3 {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-4 {
    background: linear-gradient(135deg, #311b92, #4527a0);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-5 {
    background: linear-gradient(135deg, #006064, #00838f);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-6 {
    background: linear-gradient(135deg, #e65100, #ef6c00);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-7 {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-8 {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-9 {
    background: linear-gradient(135deg, #827717, #9e9d24);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.theme-round-10 {
    background: linear-gradient(135deg, #880e4f, #ad1457);
    color: var(--text-color);
    transition: background 0.5s ease-in-out;
}

.game-container {
    transition: background-color 0.5s ease;
}

/* Input focus states for better mobile interaction */
#guess-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.5);
    background: var(--input-hover-bg);
}

/* Touch-friendly button states */
.btn:active {
    transform: scale(0.98);
}

/* Remove unnecessary navigation tab styles */
.nav-tabs {
    display: none;
    /* Hide the tab styles since we're not using them anymore */
}

/* Add these styles after your existing theme variables */

/* Authentication form styling */
.auth-input {
    background: var(--input-bg) !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}

.auth-input:focus {
    background: var(--input-hover-bg) !important;
    border-color: rgba(74, 144, 226, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.25) !important;
}

.auth-input::placeholder {
    color: var(--mobile-input-placeholder) !important;
}

/* Form label visibility */
.form-label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Links in auth forms */
.card-body a {
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-body a:hover {
    color: #357abd;
    text-decoration: underline;
}

/* Dark mode specific adjustments */
:root[data-bs-theme="dark"] .auth-input {
    background: rgba(255, 255, 255, 0.1) !important;
}

:root[data-bs-theme="light"] .auth-input {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Mobile responsiveness for auth forms */
@media (max-width: 768px) {
    .auth-input {
        font-size: 16px;
        /* Prevents zoom on mobile */
        padding: 0.8rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

/* Add these styles after your existing navbar styles */

/* Ensure dropdown is visible on mobile */
@media (max-width: 768px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        transform: none;
        left: 0;
    }

    .dropdown-item {
        padding: 0.8rem 1.5rem !important;
        text-align: left;
    }
}

/* Add these styles after your existing animations */

.fortune-prediction {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    margin-top: 2rem;
    animation: fortune-fade-in 0.5s ease-in-out;
}

.fortune-text {
    text-align: center;
}

.fortune-text h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Enhanced card header styling */
.card-header {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(33, 150, 83, 0.4));
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.4);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
                rgba(76, 175, 80, 0.2) 0%, 
                rgba(76, 175, 80, 0) 20%, 
                rgba(76, 175, 80, 0) 80%, 
                rgba(76, 175, 80, 0.2) 100%);
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Sparkle animation */
@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.sparkle {
    display: inline-block;
    animation: sparkle 2s infinite;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Glow effect for the text */
.glow {
    display: inline-block;
    position: relative;
    padding: 0 0.5rem;
}

.glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
    opacity: 0;
    border-radius: 4px;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.card-header h2 {
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    position: relative;
}

.card-header h5 {
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
    position: relative;
}

/* Light mode specific header styling */
:root[data-bs-theme="light"] .card-header {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(33, 150, 83, 0.5));
    border-bottom: 1px solid rgba(76, 175, 80, 0.6);
}

:root[data-bs-theme="light"] .card-header h2 {
    color: #444;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

:root[data-bs-theme="light"] .card-header h5 {
    color: #555;
}

.fortune-text p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0;
    line-height: 1.5;
}

@keyframes fortune-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness for fortune prediction */
@media (max-width: 768px) {
    .fortune-prediction {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .fortune-text h4 {
        font-size: 1.2rem;
    }

    .fortune-text p {
        font-size: 1.1rem;
    }
}

/* Enhanced hint text styling */
.hint-text {
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.01em;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.hint-arrow {
    font-size: 1.4em;
    display: inline-block;
    margin-left: 4px;
    animation: arrow-bounce 1.5s infinite;
}

.hint-arrow-up {
    color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.hint-arrow-down {
    color: #f44336;
    text-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

/* Message container enhancement */
#game-message {
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin: 0.75rem auto 1.25rem;
    max-width: 90%;
}

#game-message.hint-active {
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Success state */
#game-message.alert-success {
    background: rgba(76, 175, 80, 0.15) !important;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Error/wrong guess state */
#game-message.alert-danger {
    background: rgba(244, 67, 54, 0.15) !important;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Regular info state (neutral) */
#game-message.alert-info {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Improve light mode text contrast in messages */
:root[data-bs-theme="light"] #game-message.alert-info {
    background: rgba(0, 0, 0, 0.07) !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #212529;
}

:root[data-bs-theme="light"] .share-message {
    color: #333;
    font-weight: 500;
}

/* Start Game Button Styles */
.start-game-button {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #ffd700, #ffa000) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.start-game-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6);
}

.start-game-button:active {
    transform: translateY(-2px);
}

.start-game-button .emoji {
    font-size: 1.8rem;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

/* Game interface fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#game-interface.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Mobile responsiveness for start button */
@media (max-width: 768px) {
    .start-game-button {
        font-size: 1.3rem;
        padding: 1.2rem 2.5rem;
        width: 100%;
        max-width: 300px;
    }
}