@font-face {
  font-family: 'Inter';
  src: url('font/inter/Inter-VariableFont_slnt,wght.ttf')  format('truetype')
}

@font-face {
  font-family: 'LexendDeca';
  src: url('font/lexend/LexendDeca-Regular.ttf.ttf')  format('truetype')
}

body {
  background-color: hsl(233, 47%, 7%);
  font-family: 'Inter', sans-serif;
}

.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  background-color: hsl(244, 38%, 16%);
  width: 80%;
  margin: auto;
  font-size: 15px;
  border-radius: 8px;
  overflow: hidden;

  display: flex;
}

@media screen and (max-width: 600px) {
  .card {
    display: flex;
    flex-direction: column;
  }
}

/* CONTENT */

.content {
  margin: 3% 12% 2% 6%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* title */
.content h2 {
  color: hsl(0, 0%, 100%);
  font-size: 40px;
}

.content h2 mark {
  color: hsl(277, 64%, 61%);
  background: none;
}

.content p {
  color: hsla(0, 0%, 100%, 0.75);
  line-height: 30px;
}

@media screen and (max-width: 600px) {
  .content {
    margin: 10px 30px 30px 30px;
    text-align: center;
  }

  .content h2 {
    font-size: 27px;
  }

  .content p {
    color: hsla(0, 0%, 100%, 0.75);
    line-height: 22px;
  }
}

/* info */
.card-info {
 display: flex;
}

.info {
  width: 33%;
}

.info h3 {
  color: hsl(0, 0%, 100%);
  font-size: 30px;
  margin-bottom: 0;
}

.info p {
  color: hsla(0, 0%, 100%, 0.6);
  text-transform: uppercase;
  font-weight: 700;
}

@media screen and (max-width: 600px) {
  .card-info {
    flex-direction: column;
  }

  .info {
    width: 100%;
  }

  .info h3 {
    font-size: 20px;
  }

  .info p {
    margin: 0;
  }

}

/* image */
.image {
 height: 500px;
 position: relative;
}

.image img {
 height: 100%;
}

.image-effect:before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(161,85,207, 0.4);
}

.mobile-image {
  display: none;
}

@media screen and (max-width: 600px) {
  .image {
    display: none;
  }

  .mobile-image {
    display: initial;
    position: relative;
    width: 100%;
  }

  .mobile-image img {
    width: 100%;
    height: 100%;
  }
}

/* ATTRIBUTION */

.attribution {
  color: white;
  margin-top: 20px;
  font-size: 11px;
  text-align: center;

  position: fixed;
  bottom: 0;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}
