/* Styles moved from vitachaos2.html <style> block */
/* Applied to body specifically for vitachaos2.html context,
   consider namespacing with a class if these are too general */
   body.vitachaos2-body { /* Added a class to scope these body styles */
    margin: 0;
    padding: 0;
    background-color: #111;
    color: white;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Styles for elements within vitachaos2.html */
.vitachaos2-body #game-container { /* Scoped to vitachaos2-body */
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vitachaos2-body #game-plans-container { /* Scoped to vitachaos2-body */
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    max-width: 400px;
    z-index: 100;
}

.vitachaos2-body #game-plans-container summary { /* Scoped to vitachaos2-body */
    cursor: pointer;
    font-weight: bold;
    color: #4CAF50;
}

.vitachaos2-body #game-plans-container #game-plans { /* Scoped to vitachaos2-body and specific ID */
    text-align: left;
    padding-left: 20px;
}

.vitachaos2-body #game-plans-container #game-plans li { /* Scoped to vitachaos2-body and specific ID */
    margin: 5px 0;
}

/* Styles for #controls-info and its children from vitachaos2.html */
#controls-info {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background-color: rgba(0, 0, 0, 0.7); 
    padding: 10px; 
    border-radius: 5px; 
    color: white; 
    font-size: 14px; 
    z-index: 100; 
    display: none;
}

#controls-info h3 {
    margin-top: 0; 
    color: #4CAF50;
}

#controls-info ul {
    padding-left: 20px; 
    margin-bottom: 5px;
}

#controls-info ul ul {
    padding-left: 15px;
    margin-top: 5px;
    font-size: 12px;
    color: #cccccc;
}

/* Painting Tool Styles */
#painting-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#painting-canvas {
    background-color: #222;
    border: 2px solid #4CAF50;
    cursor: crosshair;
    margin-bottom: 20px;
}

#painting-controls {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    max-width: 600px;
}

.color-picker, .brush-size, .shape-selector, .quick-shapes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-shapes button {
    padding: 5px 10px;
    margin: 0 3px;
    font-size: 12px;
}

#shape-type {
    background-color: #333;
    color: white;
    border: 1px solid #4CAF50;
    padding: 5px;
    border-radius: 4px;
}

#painting-controls button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#painting-controls button:hover {
    background-color: #45a049;
}

.painting-info {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    color: #4CAF50;
    font-weight: bold;
}