/* Gray-Scott Reaction-Diffusion Simulation - CSS */

.reaction-diffusion-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
}

.reaction-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 6px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    color: #ff00ff;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.control-group input[type="range"] {
    width: 120px;
    cursor: pointer;
}

.control-group span {
    color: #ff00ff;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}


.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    flex-basis: 100%;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.btn-primary {
    background: #ff00ff;
    color: #1a1a1a;
}

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

.btn-secondary {
    background: #444;
    color: #ff00ff;
}

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


.reaction-canvas-container {
    display: flex;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 10px;
}

#reactionCanvas {
    display: block;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: crosshair;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#reactionCanvas:hover {
    border-color: #ff00ff;
}

.info-text {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    padding: 10px;
}

.info-text p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .reaction-diffusion-container {
        padding: 15px;
    }
    
    .reaction-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .button-group {
        width: 100%;
    }
    
    .btn {
        flex: 1;
    }
    
    #reactionCanvas {
        width: 100%;
        height: auto;
    }
}

