@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');

:root {
    --primary-color: #00c3ff;
    --secondary-color: #5767df;
    --accent-color: #00e4ff;
    --bg-color: #0a0e17;
    --card-bg: rgba(13, 19, 33, 0.8);
    --border-glow: 0 0 10px var(--primary-color);
    --text-glow: 0 0 8px var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--bg-color);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: twinkle 5s infinite ease-in-out;
}

.star1 {
    width: 2px;
    height: 2px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.star2 {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 70%;
    animation-delay: 1s;
}

.star3 {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 20%;
    animation-delay: 2s;
}

.meteor {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    top: -10%;
    left: 90%;
    box-shadow: 0 0 10px 2px white;
    animation: meteor 15s infinite linear;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes meteor {
    0% { 
        transform: translateY(0) translateX(0) rotate(240deg); 
        opacity: 0;
    }
    10% { opacity: 1; }
    70% { opacity: 1; }
    100% { 
        transform: translateY(120vh) translateX(-120vw) rotate(240deg); 
        opacity: 0;
    }
}

#app {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.app-container {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#title {
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: var(--text-glow);
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

#title i {
    margin-left: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

#question-container {
    width: 100%;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    box-shadow: var(--border-glow);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#question {
    margin-bottom: 30px;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.5;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

button {
    padding: 12px 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.4);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.6);
}

button:active {
    transform: translateY(0);
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.3s ease;
}

button:hover::after {
    left: 100%;
}

#result {
    width: 100%;
    text-align: center;
}

.positive-result, .negative-result {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    box-shadow: var(--border-glow);
    animation: fadeIn 0.5s ease;
}

.positive-result {
    border-color: #00ff88;
    box-shadow: 0 0 15px #00ff88;
}

.negative-result {
    border-color: #ff3860;
    box-shadow: 0 0 15px #ff3860;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.positive-result p, .negative-result p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.positive-result p:first-child, .negative-result {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.positive-result a {
    color: #00ff88;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.positive-result a:hover {
    text-shadow: 0 0 10px #00ff88;
}

.refresh-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

@media (max-width: 600px) {
    #title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
    
    button {
        padding: 10px 20px;
    }
}