body {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
    color: white;
}

header {
  width: 100vw;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  position: relative;
  font-size: 1rem;
  color: white;
}

header nav,
header .hamburger {
  z-index: 10;
}



header nav a {
  color: white;
}

header nav a:hover {
  color:rgb(182, 196, 231);
}

section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    width: 80%;
    max-width: 42em;
    visibility: hidden;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background: rgba(0, 0, 0, 0.4);
    padding: 2em;
    z-index:10;
}


section h1 {
  padding-bottom: 1em;
  font-size: 2.5em;
  font-variant: small-caps;
  font-weight: 400;
}

section h2 {
  padding-bottom: 0.5em;
  font-size: 1.5em;
  font-weight: 600;
}

section a {
  color: white;
}

section a:hover {
  color: rgb(182, 196, 231);
}

section a:visited {
  color: rgb(182, 196, 231);
}

section p {
  line-height: 1.5;
  margin-bottom: 1em;  
}

img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s;
}

#img1 {
  object-position: right;
}

#img2 {
  object-position: left;
}


main input {
    visibility: hidden;
}

.left,
.right {
    position: absolute;
    top: 50%;
}

.left {
    left: 1em;
}

.right {
    right: 1em;
}

.left .arrow,
.right .arrow {
    border: solid white;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 4px;
    background-color: transparent;
    cursor: pointer;
}

.left .arrow {
    transform: scale(1, 2) rotate(135deg);
}

.right .arrow {
    transform: scale(1, 2) rotate(-45deg);
}

.selectors {
    position: absolute;
    display: flex;
    bottom: 2em;
    width: 100%;
    flex-direction: row;
    justify-content: center;
}

.selectors label {
    display: inline-block;
    width: 2em;
    height: 0.25em;
    margin: 0.2em;
    border-radius: 0.05em;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.selectors label:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

#sel1:checked ~ .selectors label#lbl1,
#sel2:checked ~ .selectors label#lbl2,
#sel3:checked ~ .selectors label#lbl3,
#sel4:checked ~ .selectors label#lbl4,
#sel5:checked ~ .selectors label#lbl5 {
    background-color: rgba(255, 255, 255, 0.8);
}



#sel1:checked ~ #img1,
#sel2:checked ~ #img2,
#sel3:checked ~ #img1,
#sel4:checked ~ #img2,
#sel5:checked ~ #img1 {
    opacity: 1;
}


#blurb1:has(~ #sel1:checked),
#blurb2:has(~ #sel2:checked),
#blurb3:has(~ #sel3:checked),
#blurb4:has(~ #sel4:checked),
#blurb5:has(~ #sel5:checked) {
    visibility: visible;
    opacity: 1;
}

footer {
  visibility: hidden;
}

@media (min-width: 42em) { 
  header nav {
      width: auto;
      top: auto;
      margin: 0 auto 0 auto;
      display: block;
      position: relative;
  }
}

