* {
    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;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

header h1 {
    color: white;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.game-setup {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.team-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.team-input {
    flex: 1;
    min-width: 200px;
}

.team-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.team-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.team-input input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.scoreboard {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.team {
    text-align: center;
    flex: 1;
}

.team h2 {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.5rem;
}

.score {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    margin: 0 20px;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.game-info > div {
    text-align: center;
}

.game-info span:first-child {
    font-weight: 600;
    color: #666;
}

.game-info span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-left: 5px;
}

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

.base {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    background: #ddd;
    transition: all 0.3s;
}

.base.occupied {
    background: #28a745;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.control-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.control-group h3 {
    margin-bottom: 15px;
    color: #555;
    text-align: center;
}

.btn-hit, .btn-result, .btn-control {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hit {
    background: #28a745;
    color: white;
}

.btn-hit:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-result {
    background: #dc3545;
    color: white;
}

.btn-result:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-control {
    background: #6c757d;
    color: white;
}

.btn-control:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.game-log {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.game-log h3 {
    margin-bottom: 15px;
    color: #555;
}

.log-entries {
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    padding: 15px;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry .timestamp {
    color: #999;
    font-size: 12px;
}

.log-entry .action {
    font-weight: 600;
    color: #667eea;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .team-inputs {
        flex-direction: column;
    }
    
    .teams {
        flex-direction: column;
        gap: 10px;
    }
    
    .vs {
        margin: 10px 0;
    }
    
    .game-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .controls {
        grid-template-columns: 1fr;
    }
    
    .bases {
        gap: 10px;
    }
    
    .base {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
} 