* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticker-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ticker-symbol {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f7931a;
    background-color: #222222;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #444444;
}

.current-price {
    font-size: 1.5rem;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888888;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.price-label {
    color: #cccccc;
}

#currentPrice {
    color: #f7931a;
    font-weight: bold;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
}

.chart-container {
    background-color: #111111;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.1);
    border: 1px solid #333333;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(247, 147, 26, 0.02) 50%, transparent 51%);
    pointer-events: none;
}

.prediction-section {
    text-align: center;
    background-color: #111111;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.1);
    border: 1px solid #333333;
    width: 100%;
    max-width: 600px;
}

.prediction-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #cccccc;
}

.prediction-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.prediction-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.up-btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
}

.up-btn:hover {
    background: linear-gradient(45deg, #00cc6a, #00ff88);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.down-btn {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: #ffffff;
}

.down-btn:hover {
    background: linear-gradient(45deg, #ff3742, #ff4757);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.prediction-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    background-color: #222222;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-label {
    color: #cccccc;
}

#upPercentage {
    color: #00ff88;
    font-weight: bold;
}

#downPercentage {
    color: #ff4757;
    font-weight: bold;
}

.total-votes {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444444;
    color: #f7931a;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        align-items: stretch;
        padding: 10px;
    }
    
    .container {
        align-items: stretch;
        padding: 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .ticker-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .chart-container {
        padding: 20px;
        max-width: none;
    }
    
    .prediction-section {
        max-width: none;
    }
    
    .prediction-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .prediction-btn {
        width: 200px;
    }
}

/* Loading animation */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Stock-like price animations */
.price-up {
    animation: priceUp 0.5s ease-out;
}

.price-down {
    animation: priceDown 0.5s ease-out;
}

@keyframes priceUp {
    0% {
        background-color: rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }
    50% {
        background-color: rgba(0, 255, 136, 0.1);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

@keyframes priceDown {
    0% {
        background-color: rgba(255, 71, 87, 0.3);
        transform: scale(1);
    }
    50% {
        background-color: rgba(255, 71, 87, 0.1);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Real-time indicator */
.current-price::after {
    content: '●';
    color: #00ff88;
    margin-left: 8px;
    animation: blink 2s infinite;
    font-size: 0.8em;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}
