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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.simulation-container {
    position: relative;
    height: 400px;
    margin: 30px 0;
}

.simulation {
    position: relative;
    height: 100%;
    display: flex;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.pane {
    flex: 1;
    height: 100%;
    margin: 0 10px;
    position: relative;
    transform: rotateY(30deg);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.object-pane {
    background-color: rgba(200, 230, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

#object-image {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.pinhole-pane {
    background-color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pinhole {
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
}

.image-pane {
    background-color: black;
    overflow: hidden;
}

#projection-canvas {
    width: 100%;
    height: 100%;
}

.rays-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.explanation {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.explanation h2 {
    margin-bottom: 10px;
}

.explanation p {
    margin-bottom: 10px;
} 