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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    min-height: 600px;
}

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

h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-content,
.result-content,
.final-content {
    text-align: center;
    padding: 40px;
}

.intro-content h2,
.result-content h2,
.final-content h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    margin-top: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-vote {
    background: #4CAF50;
    color: white;
    width: 100%;
}

.btn-vote:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-abstain {
    background: #999;
    color: white;
    width: 100%;
}

.btn-abstain:hover {
    background: #777;
}

.round-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.round-info h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 10px;
}

#scenario-description {
    font-size: 1.1em;
    color: #333;
    line-height: 1.6;
}

.candidates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.candidate {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s;
}

.candidate.party-card {
    border-left-width: 8px;
}

.candidate:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.candidate.party-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.candidate.abstain {
    background: #f9f9f9;
}

.candidate.abstain:hover {
    border-color: #999;
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.candidate-header h3 {
    color: #333;
    font-size: 1.5em;
}

.candidate-icon {
    font-size: 2.5em;
}

.candidate-info h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.candidate-info ul {
    list-style-position: inside;
    color: #666;
    line-height: 1.8;
    text-align: left;
}

.candidate-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.warning {
    color: #ff6b6b;
    font-weight: bold;
}

.result-content {
    max-width: 800px;
    margin: 0 auto;
}

#result-details {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.result-bar {
    margin: 15px 0;
}

.result-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.result-bar-container {
    background: #e0e0e0;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.result-bar-fill {
    height: 100%;
    transition: width 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
}

.result-bar-fill.candidate-a {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.result-bar-fill.candidate-b {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.result-bar-fill.abstain {
    background: linear-gradient(90deg, #999 0%, #777 100%);
}

#outcome-message {
    margin: 30px 0;
    padding: 25px;
    border-radius: 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

#outcome-message.good {
    background: #d4edda;
    border: 2px solid #4CAF50;
    color: #155724;
}

#outcome-message.good.happy-end {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 3px solid #f39c12;
    color: #2d3436;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
}

#outcome-message.good.happy-end .highlight {
    font-size: 1.2em;
    font-weight: bold;
    color: #d63031;
    text-align: center;
    margin: 20px 0;
}

#outcome-message.bad {
    background: #f8d7da;
    border: 2px solid #ff6b6b;
    color: #721c24;
}

#outcome-message.neutral {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.stats {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.stats h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.stats p {
    font-size: 1.1em;
    color: #333;
    margin: 10px 0;
}

.stats span {
    font-weight: bold;
    color: #667eea;
}

.lesson {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: left;
}

.lesson h3 {
    color: #1976d2;
    margin-bottom: 15px;
}

.lesson p {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.lesson ul {
    list-style-position: inside;
    color: #666;
    line-height: 2;
}

.lesson li {
    margin: 10px 0;
}

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.cta h3 {
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1em;
    margin: 10px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .candidates-container {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}
