@charset "UTF-8";
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #eee;
}

.container {
  height: 400px;
  width: 400px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: rotate(-90deg);
  overflow: hidden;
  scroll-behavior: smooth;
}

.section {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: flex-start;
  transform: rotate(90deg);
  width: 400px;
  height: 400px;
}

.section:nth-child(1) {
  background: url('https://images.unsplash.com/photo-1480321182142-e77f14b9aa64?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: bottom;
}

.section:nth-child(2) {
  background: url('https://images.unsplash.com/photo-1611489473774-5d881f1153f1?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=956&q=80');
  background-size: cover;
  background-position: center;
}

.section:nth-child(3) {
  background: url('https://images.unsplash.com/photo-1574870111867-089730e5a72b?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=934&q=80');
  background-size: cover;
  background-position: center;
}

nav {
  padding: 5px 15px;
  margin: 20px;
  background: #ddd;
  padding: 15px 10px;
  border-radius: 25px;
}

nav a {
  padding: 1px 10px;
  margin: 0 10px;
  border-radius: 50%;
  background: #bbb;
  transition: all 200ms ease-in-out;
}

.active {
  background: #555;
}

