Where a photo turns sharp
A lens can only bring one distance to a perfect point. Everything at that distance makes a thin sheet in the world, called the plane of focus. Here it's the glowing sheet moving through the valley, with a bright line where it cuts the trees, the cabin and the mountains.
Why the rest goes soft
Light from any point spreads out, goes through the whole opening of the lens and gets bent back together. For a point on the plane, the rays meet exactly on the image plane, as a point. For anything nearer or farther they meet in front of it or behind it, so they arrive as a small disc called the circle of confusion. That disc is the blur. The rings on the glass at the back show how big it is for the tree, the cabin and the peak.
The focus ring
Turning the ring slides the glass forward or back inside the barrel. Closer subjects focus farther behind the lens, so the glass moves out. Far ones focus closer to it, so it moves in. You can drag the ring, the slider on the console or the one in the card.
The aperture
The iris is the adjustable hole in the middle of the lens. Wide open (f/2) the cone of light is fat, the discs are big and only a thin slice is sharp. Stopped down (f/16) the cone is thin, the discs shrink and the sharp zone gets deep. That's why landscapes are often shot at f/11 and portraits at f/2.
Upside down?
Yes. Every lens projects the world upside down, and that's how it's drawn on the glass. The screens on the console flip it back, like your camera does.
Keys
1 2 3 focus on foreground, middle, background · [ ] nudge focus · ⇧F aperture · ⇧X assembled or exploded · C cinematic cameras · R reset the view · drag to orbit · right-drag to pan · scroll to zoom · WASD to move, Q E to turn.
Numbers are for a 50 mm lens on a full-frame camera; the valley is about 60 cm away.