* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    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: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2em;
}

header p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.main-content {
    margin-bottom: 30px;
}

.visualization {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#opticsCanvas {
    border: 2px solid #ecf0f1;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    background-color: #fafafa;
}

.controls-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.controls-row {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
    justify-content: center;
}

.control-group {
    flex: 1;
    max-width: 300px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    margin-bottom: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.control-group span {
    font-weight: bold;
    color: #3498db;
    font-size: 1.1em;
}

.info-panel {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
}

.info-panel h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.detector-stats {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background-color: white;
}

.stat label {
    font-weight: 500;
    color: #34495e;
}

.stat span {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1em;
}

.explanation {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.explanation h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.explanation p {
    color: #555;
    font-size: 1.05em;
    text-align: justify;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    #opticsCanvas {
        width: 100%;
        height: auto;
    }
} 