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

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

header h1 {
    font-size: 3em;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 800px 1fr;
    gap: 20px;
    align-items: start;
}

.zoo-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#zooCanvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: #e8f5e9;
    display: block;
}

.controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

#startBtn {
    background: #4CAF50;
    color: white;
}

#startBtn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

#pauseBtn {
    background: #ff9800;
    color: white;
}

#resetBtn {
    background: #f44336;
    color: white;
}

#speedBtn {
    background: #2196F3;
    color: white;
}

#clearLogBtn, #copyLogBtn {
    padding: 5px 15px;
    font-size: 14px;
}

#clearLogBtn {
    background: #e0e0e0;
}

#copyLogBtn {
    background: #4CAF50;
    color: white;
}

.history-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 680px;
    display: flex;
    flex-direction: column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.history-header h2 {
    color: #333;
}

.history-log {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.log-entry {
    margin-bottom: 12px;
    padding: 8px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.log-entry .timestamp {
    font-weight: bold;
    color: #667eea;
    margin-right: 5px;
}

.log-entry.special {
    border-left-color: #ff9800;
    background: #fff8e1;
}

.stats {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.stats h3 {
    margin-bottom: 10px;
    color: #333;
}

.stat-item {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.stat-label {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .history-section {
        max-height: 400px;
    }
}
