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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

main {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.control-panel {
    flex: 0 0 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.control-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.control-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.control-group h3 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-container input[type="range"] {
    flex: 1;
}

.slider-container input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.parameter-control {
    margin-bottom: 10px;
}

.parameter-control label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.parameter-control input[type="range"] {
    width: 100%;
}

.parameter-control input[type="number"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #2980b9;
}

.visualization-area {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#interferenceCanvas {
    border: 1px solid #ddd;
    cursor: crosshair;
}

.canvas-info {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.theory-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.theory-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.theory-content h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
}

.theory-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.theory-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .control-panel {
        flex: 1;
    }
    
    #interferenceCanvas {
        width: 100%;
        height: auto;
    }
}