body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    display: flex;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
}

#canvas-wrapper {
    position: relative;
}

canvas {
    display: block;
    background-color: #eee;
    cursor: crosshair;
}

#ui-panel {
    width: 300px;
    padding: 20px;
    background-color: #fff;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

h1 {
    margin-top: 0;
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
}

.info-group {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-group p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.tower-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tower-btn {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tower-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.tower-btn.selected {
    border-color: #3498db;
    background-color: #ebf5fb;
}

.tower-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    margin-right: 15px;
    font-size: 18px;
}

.type-2 { background-color: #e74c3c; }
.type-3 { background-color: #2ecc71; }
.type-5 { background-color: #3498db; }
.type-7 { background-color: #9b59b6; }

.tower-info {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tower-cost {
    font-weight: bold;
    color: #f39c12;
}

.tower-stats {
    font-size: 12px;
    color: #7f8c8d;
}

.controls button {
    width: 100%;
    padding: 12px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

.controls button:hover {
    background-color: #34495e;
}

.instructions {
    margin-top: auto;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.instructions h3 {
    margin-top: 0;
    font-size: 16px;
}

.instructions p {
    margin: 5px 0;
}
