﻿/* --- Global --- */

html, body {
    height: 100%;
    background: #0d0d0d;
    color: #e5e5e5;
    font-family: "Inter";
}

body {
    background-image: url('/Content/Vinylbg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

/* Subtle backdrop layer to improve readability */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* --- Navbar --- */

.navbar {
    background-color: rgba(20, 20, 20, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom:0px !important;
}

.navbar-brand,
.nav-link {
    color: #e5e5e5 !important;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-link:hover,
.navbar-brand:hover {
    color: #ffffff !important;
}

/* --- Layout Containers --- */

.container,
.container-fluid {
    background: rgba(0, 0, 0, 0.40);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
}

/* --- Main content area --- */

main {
    padding-top: 1rem;
    color: #e5e5e5;
}

/* --- Footer --- */

footer.footer {
    background: rgba(15, 15, 15, 0.85);
    color: #ccc;
    position:fixed;
    width:100%;
    bottom:0px;
}

    footer.footer a, footer span {
        color: #e5e5e5;
        font-variant-caps:all-petite-caps;
        text-decoration: none;
    }

footer.footer a:hover {
    text-decoration: underline;
}

/* --- Typography and Elements --- */

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    letter-spacing: 0.5px;
}

a {
    color: #9ecbff;
}

a:hover {
    color: #cfe5ff;
}

.btn-primary {
    background-color: #2a6fcb;
    border-color: #2a6fcb;
}

.btn-primary:hover {
    background-color: #1f5aa7;
    border-color: #1f5aa7;
}

.card {
    background: rgba(25, 25, 25, 0.65);
    color: #e5e5e5;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(3px);
}
.title-img{
    margin: 0 auto;
    max-width:300px;
    display:block;
}

/* Gradient Bootbox modal content */
.bootbox-dark .modal-content {
    background: linear-gradient(145deg, #1f1c2c, #928dab);
    color: #f0f0f0;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border: none;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Modal hover “pop” effect */
.bootbox-dark .modal-content:hover {
    transform: translateY(-3px);
}

/* Modal header and footer */
.bootbox-dark .modal-header,
.bootbox-dark .modal-footer {
    border: none;
    background: rgba(0,0,0,0.1);
}

/* Close button */
.bootbox-dark .bootbox-close-button {
    color: #fff;
    opacity: 0.8;
    background: none;
    border: none;
    font-size: 1.3rem;
}

    .bootbox-dark .bootbox-close-button:hover {
        color: #fffa;
        opacity: 1;
    }

/* Modal buttons */
.bootbox-dark .btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

    .bootbox-dark .btn-success:hover {
        transform: translateY(-1px);
    }

.bootbox-dark .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    border: none;
}

.btn-delicious {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.4rem 1rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

    .btn-delicious:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 10px rgba(0,0,0,0.3);
    }
.publish-btn {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    border-radius: 0.6rem;
    padding: 0.45rem 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

    .publish-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    }

.set-active-btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border-radius: 0.6rem;
    padding: 0.45rem 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

    .set-active-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }
.delete-subq-btn {
    background: linear-gradient(135deg, #ff416c, #ff4b2b); /* red gradient for danger */
    color: #fff;
    border-radius: 0.5rem;
    padding: 0.35rem 0.8rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

    .delete-subq-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(0,0,0,0.35);
    }
/* Base answer button */
.answer-button {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border-radius: 0.6rem;
    display:block;
    min-width:200px;
    width:100%;
    margin-bottom:20px !important;
    font-size:1.2em;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

    .answer-button:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    }
.answered-button {
    background: linear-gradient(135deg, #8b33ff, #33a1ff);
    background-size: 200% 200%;
    color: #fff;
    border-radius: 0.6rem;
    display: block;
    min-width: 200px;
    width: 100%;
    margin-bottom: 20px !important;
    font-size: 1.6em;
    font-weight: bold;
    padding: 0.5rem 1rem;
    box-shadow: 0 0 14px rgba(139, 51, 255, 0.75), 0 0 28px rgba(51, 161, 255, 0.55);
    animation: anticipationPulse 2.5s ease-in-out infinite;
    transition: all 0.25s ease;
}

@keyframes anticipationPulse {
    0% {
        background: linear-gradient(135deg, #8b33ff, #33a1ff);
        background-size: 200% 200%;
        background-position: 0% 50%;
        transform: scale(1);
    }

    50% {
        background-position: 100% 50%;
        transform: scale(1.015);
    }

    100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
}

/* Correct answer */
.answered-correct {
    background: linear-gradient(135deg, #28a745, #85e085);
    color: #fff;
    box-shadow: 0 0 20px #28a745, 0 0 40px #85e085;
    position: relative;
    animation: glowPulse 1s infinite alternate;
}

@keyframes incorrectPulse {
    0% {
        background-position: 0% 50%;
        box-shadow: inset 0 0 18px rgba(255, 60, 60, 0.25), 0 0 6px rgba(0,0,0,0.6);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: inset 0 0 22px rgba(255, 0, 0, 0.35), 0 0 4px rgba(0,0,0,0.7);
    }

    100% {
        background-position: 0% 50%;
        box-shadow: inset 0 0 18px rgba(255, 60, 60, 0.25), 0 0 6px rgba(0,0,0,0.6);
    }
}

.answered-incorrect {
    background: linear-gradient(135deg, #3a0000, #1a1a1a);
    background-size: 180% 180%;
    color: #ffb3b3;
    border-radius: 0.6rem;
    display: block;
    min-width: 200px;
    width: 100%;
    margin-bottom: 20px !important;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.5rem 1rem;
    animation: incorrectPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}


/* Firework effect for correct answer */
.firework-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, #28a745);
    animation: explode 0.8s forwards;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@keyframes explode {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3) rotate(360deg);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px #28a745, 0 0 20px #85e085;
    }

    100% {
        box-shadow: 0 0 20px #28a745, 0 0 40px #85e085;
    }
}
