:root {
  --black: #0a0a0a;
  --white: #eee;
  --link: #c7c7c7;
}

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

body {
  width: 100%;
  height: 100%;
  background-color: var(--black);
  color: var(--white);
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info,
.image {
  width: 100%;
  height: 50dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#title,
#description {
  text-align: center;
  padding: 10px;
}

#title,
.subtitle {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
}

#title {
  padding-bottom: 1.5rem;
  line-height: 3rem;
  font-size: 2.2rem;
}

#description {
  font-size: 1.3rem;
  margin-bottom: 5rem;
}

#born::before,
#death::before {
  display: inline-block;
  margin-right: 0.5rem;
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background-repeat: no-repeat;
  background-position: center;
}

#born::before {
  background-image: url(assets/icons/star.svg);
}

#death::before {
  background-image: url(assets/icons/cross.svg);
}

.info {
  line-height: 1.5rem;
  letter-spacing: 0.1rem;
}

.subtitle {
  padding-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 500;
}

.text {
  text-indent: 1rem;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 1rem;
}

.image {
  justify-content: flex-end;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.one {
  background-image: url(assets/images/portrait.jpg);
}
.two {
  background-image: url(assets/images/airship.jpg);
}
.three {
  background-image: url(assets/images/14bis.jpg);
}
.four {
  background-image: url(assets/images/old_portrait.jpg);
}

.caption {
  margin-bottom: 10px;
  padding: 2px;
  font-size: 0.9rem;
  background-color: var(--black);
}

.foot {
  margin-top: 50px;
  font-size: 0.9rem;
}

.link {
  color: var(--white);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

#last-info {
  position: relative;
}

.footer {
  position: absolute;
  display: flex;
  gap: 2rem;
  text-align: center;
  bottom: 0.5rem;
}

.footer a {
  text-decoration: none;
  color: var(--link);
}

/* Above 992px */
@media screen and (min-width: 992px) {
  .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .reverse {
    flex-direction: row-reverse;
  }

  .subtitle {
    font-size: 1.8rem;
  }

  .info,
  .image {
    width: 50%;
    height: 100vh;
  }

  .text {
    max-width: 800px;
    padding: 10px 50px;
  }

  .footer a {
    transition: color 0.5s;
  }

  .footer a:hover {
    color: #fff;
  }
}
