* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #C0BCB7;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 30px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1a2980;
}

h1 {
    color: #133CAC;
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    color: #519EEF;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Setup Screen */
.setup-screen {
    text-align: center;
    padding: 20px;
}

.setup-content {
    max-width: 900px;
    margin: 0 auto;
}

.setup-content h2 {
    color: #133CAC;
    margin-bottom: 30px;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rules {
    background: linear-gradient(#B77BEE, #5874C1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    text-align: left;
    border-left: 5px solid #133CAC;
}

.rules h3 {
    color: #1a2980;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules ul {
    list-style: none;
    padding-left: 10px;
}

.rules li {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.rules li:hover {
    transform: translateX(10px);
}

.rules li i {
    color: #133CAC;
    font-size: 1.2em;
    width: 25px;
}

.highlight {
    color: #1a2980;
    font-weight: bold;
    background: #e6f7ff;
    padding: 2px 8px;
    border-radius: 5px;
}

/* Team Inputs */
.team-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
    position: relative;
}

.team-input {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);;
    border-left: 3px solid #5906A5;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-input:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-input.active {
    border-color: #1a2980;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(26, 41, 128, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(26, 41, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 41, 128, 0); }
}

.team-color {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.team-input h3 {
    color: #1a2980;
    margin-bottom: 20px;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.team-input input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.team-input input:focus {
    outline: none;
    border-color: #26d0ce;
    box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.2);
}

.team-avatar {
    font-size: 4em;
    color: #1a2980;
    opacity: 0.2;
    margin-top: 10px;
}

.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    border: 5px solid white;
}

.vs-text {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Start Button */
.start-button-container {
    margin-top: 40px;
}

.start-button {
    background: linear-gradient(135deg, #8333CD, #5874C1);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.4em;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(26, 41, 128, 0.3);
}

.start-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 41, 128, 0.4);
}

.start-button:active {
    transform: translateY(-2px);
}

/* Game Screen */
.game-screen {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Game Header */
.game-header {
    background: linear-gradient(135deg, #8333CD, #5874C1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.question-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.scores-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.team-score {
    text-align: center;
    padding: 15px 25px;
    min-width: 180px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.team-score.active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.team-score.active::before {
    content: '▶';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.5em;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(-60%); }
}

.team-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    opacity: 0.9;
}

.score {
    font-size: 2.8em;
    font-weight: bold;
    margin: 5px 0;
}

.score-label {
    font-size: 0.9em;
    opacity: 0.8;
    letter-spacing: 1px;
}

.timer-container {
    text-align: center;
    min-width: 180px;
}

.timer-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.timer {
    font-size: 3.5em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.timer.warning {
    color: #ffdd59;
    animation: pulse 1s infinite;
}

.timer.critical {
    color: #ff6b6b;
    animation: pulse 0.5s infinite;
}

.current-turn {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    min-width: 180px;
}

.turn-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.turn-team {
    font-size: 1.4em;
    font-weight: bold;
}

/* Question Container */
.question-container {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.question-number {
    font-size: 1.3em;
    color: #1a2980;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.points {
    background: linear-gradient(135deg, #8333CD, #5874C1);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(38, 208, 206, 0.3);
}

.question-text {
    font-size: 1.8em;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #8333CD;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #5874C1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Options */
.options-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
    }
}

.option {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.option:hover {
    border-color: #1a2980;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.option.selected {
    border-color: #1a2980;
    background: #f0f7ff;
}

.option.correct {
    background: linear-gradient(135deg, #2ed573, #1dd1a1);
    color: white;
    border-color: #2ed573;
    transform: scale(1.02);
}

.option.incorrect {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-color: #ff6b6b;
    opacity: 0.8;
}

.option-number {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a2980;
}

/* Game Controls */
.game-controls {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.second-chance-info {
    background:  #062e9e;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.controls-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.control-button {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skip-button {
    background: linear-gradient(135deg,#8333CD, #5874C1);
    color: white;
}

.skip-button:hover {
    background: linear-gradient(135deg, #8333CD, #5874C1);
    transform: translateY(-3px);
}

.next-button {
    background: linear-gradient(135deg, #8333CD, #5874C1);
    color: white;
}

.next-button:hover {
    background: linear-gradient(135deg,#8333CD, #5874C1);
    transform: translateY(-3px);
}

/* Feedback */
.feedback-container {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
    border-left: 5px solid #5874C1;
    animation: slideIn 0.5s ease;
}

.feedback-message {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.feedback-message i {
    font-size: 1.8em;
}

.feedback-message.correct {
    color: #2ed573;
}

.feedback-message.incorrect {
    color: #ff6b6b;
}

.correct-answer {
    font-size: 1.2em;
    color: #133CAC;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

/* Results Screen */
.results-screen {
    animation: fadeIn 0.5s ease;
}

.results-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.results-content h2 {
    color: #133CAC;
    margin-bottom: 40px;
    font-size: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.final-scores {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.final-team {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 40px;
    border-radius: 20px;
    min-width: 280px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.final-team.winner {
    border: 5px solid #ffd700;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.final-team-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #1a2980;
    margin-bottom: 20px;
}

.final-team-score {
    font-size: 4em;
    font-weight: bold;
    color: #26d0ce;
    margin: 20px 0;
}

.team-trophy {
    font-size: 3em;
    color: #ffd700;
    animation: bounce 2s infinite;
}

.final-vs {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b6b;
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.winner-container {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg,#8333CD, #5874C1);
    border-radius: 15px;
    color: white;
}

.winner-message {
    font-size: 2em;
    font-weight: bold;
}





.results-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.results-button {
    padding: 20px 40px;
    border: none;
    border-radius: 15px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 200px;
}

.play-again-button {
    background: linear-gradient(135deg, #8333CD, #5874C1);
    color: white;
}

.play-again-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 41, 128, 0.3);
}

.change-teams-button {
    background: white;
    color: #133CAC;
    border: 3px solid #133CAC;
}

.change-teams-button:hover {
    background: #133CAC;
    color: white;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 20px;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
    }
    
    .scores-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .team-inputs {
        flex-direction: column;
    }
    
    .vs-badge {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .question-text {
        font-size: 1.4em;
    }
    
    .option {
        font-size: 1.1em;
        padding: 20px 15px;
    }
    
    .final-team {
        min-width: 100%;
    }
}

/* Допълнителни стилове за липсващите елементи */
.option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Анимация за правилен отговор */
@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.option.correct {
    animation: correctAnswer 0.5s ease;
}

/* Анимация за грешен отговор */
@keyframes incorrectAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.option.incorrect {
    animation: incorrectAnswer 0.5s ease;
}

/* Стилове за мобилни устройства */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .setup-content h2 {
        font-size: 1.5em;
    }
    
    .team-input {
        width: 100%;
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.2em;
        padding: 15px;
    }
    
    .option {
        padding: 15px 10px;
        font-size: 1em;
    }
    
    .control-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .results-button {
        padding: 15px 25px;
        font-size: 1em;
        min-width: 150px;
    }
}

/* Стилове за таблети */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 95%;
    }
    
    .team-inputs {
        gap: 20px;
    }
    
    .team-input {
        width: 280px;
    }
}