html,
body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  overflow-x: hidden;
}

body {
  /* display: flex 1 0 auto; */
  /* flex-direction: column; */
  font-family: poppins;
  font-size: 1.125rem;
  font-weight: 300;
  margin: auto;
}

h1,
h2,
h3 {
  font-family: poppins;
  font-weight: 400;
  color: #143774;
  margin-top: 0;
  margin-bottom: 0;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

.card {
  width: 50%;
  animation: fadein 1s;
  -moz-animation: fadein 1s; /* Firefox */
  -webkit-animation: fadein 1s; /* Safari and Chrome */
  -o-animation: fadein 1s; /* Opera */
  margin-top: 20px;
  margin-left: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  border-style: solid;
  border-width: 2px;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  width: 500px;
  height: 920px;

  text-align: center;
  font-family: poppins;
  background-color: white;
  opacity: 0.9;
}

.card p {
  margin: auto;
  max-width: 450px;
}

.article-container {
  width: 100%;
  display: block;
  overflow: auto;
}

.title {
  color: black;
  font-size: 18px;
}

button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 6px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 50%;
  font-size: 18px;
}

a {
  text-decoration: none;
  font-size: 22px;
  color: black;
}

button:hover,
a:hover {
  opacity: 0.7;
}

.container-header {
  background: #7f7fd9; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  display: flex;
  padding-bottom: 50px;
}

.referral {
  color: black;
}

.container-bottom {
  display: flex;
  flex-direction: row;
}

.articles {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  animation: fadein 5s;
  -moz-animation: fadein 5s; /* Firefox */
  -webkit-animation: fadein 5s; /* Safari and Chrome */
  -o-animation: fadein 5s; /* Opera */
}

.article-featured:hover {
  box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.2);
  bottom: 10px;
}

.article-title {
  background-color: white;
  border-color: black;
}

.article-img {
  height: 250px;
  width: 350px;
}

.article-description {
  margin-top: 50px;
  width: 500px;
  align-items: center;
  margin-right: auto;
  margin-left: auto;
}

.article-featured {
  margin-top: 25px;
  width: 350px;
  margin-right: auto;
  margin-left: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  opacity: 0.9;
  z-index: 1;
  border-style: solid;
  border-width: unset;
  border-radius: 5px;
  border-width: 2px;
}

.articles h2 {
  text-align: center;
  font-size: 30px;
}

.article-featured:hover {
  cursor: pointer;
}

.more-articles {
  background: #7f7fd5; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding-bottom: 50px;
}

.read-more {
  margin-bottom: -10px;
  background: #7f7fd5; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #91eae4,
    #86a8e7,
    #7f7fd5
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

header {
  text-align: center;
}

footer {
  background: #143774;
  color: white;
  text-align: center;
  padding: 0.5em 0;
}

label {
  display: flex;
  flex-direction: column;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-moz-keyframes fadein {
  /* Firefox */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fadein {
  /* Safari and Chrome */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes fadein {
  /* Opera */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.socials {
  display: flex;
  justify-content: space-evenly;
}

/* Block */
.art1 {
  width: 275px;

  font-family: "Playfair Display", serif;
  text-align: center;

  transition: all 0.125s;
  transform: scale(1) translateY(0px);
}

/* Elements */
.art1__wrapper {
  height: 580px;
  padding-top: 0.1px;
  padding-bottom: 0.1px;
  position: relative;

  background-color: #ffffff;
  color: #999999;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05);
}
.art1__wrapper:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 15px;
  right: 15px;
  bottom: 0;
  left: 15px;

  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.125s;
  transform: scale(1) translateY(0px);
}
.art1__box {
  padding-right: 35px;
  padding-left: 35px;
  margin-top: 25px;
  margin-bottom: 25px;
}
.art1__item {
  margin-top: 20px;
  margin-bottom: 20px;
}
.art1__item--small {
  margin-top: 10px;
  margin-bottom: 10px;
}
.art1__feature {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}
.art1__img {
  display: block;
  max-width: 100%;
  height: 240px;
  width: 275px;
}
.art1__header {
  position: relative;
  z-index: 1;
}
.art1__title {
  color: #222222;

  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}
.art1__label {
  color: #cccccc;

  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.art1__divider {
  display: block;
  width: 100%;
  height: 10px;
  border: none;
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyOHB4IiBoZWlnaHQ9IjE1cHgiIHZpZXdCb3g9IjAgMCAyOCAxNSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMjggMTUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGZpbGw9IiNERURFREUiIGQ9Ik0yNy41LDdoLTZDMjEuMiwzLjEsMTgsMCwxNCwwUzYuOCwzLjEsNi41LDdoLTZDMC4yLDcsMCw3LjIsMCw3LjVTMC4yLDgsMC41LDhoNmMwLjMsMy45LDMuNSw3LDcuNSw3czcuMi0zLjEsNy41LTdoNkMyNy44LDgsMjgsNy44LDI4LDcuNVMyNy44LDcsMjcuNSw3eiBNMTQsMWMzLjQsMCw2LjIsMi42LDYuNSw2SDcuNUM3LjgsMy42LDEwLjYsMSwxNCwxeiBNMTQsMTRjLTMuNCwwLTYuMi0yLjYtNi41LTZoMTIuOUMyMC4yLDExLjQsMTcuNCwxNCwxNCwxNHoiLz48L3N2Zz4=);
  background-repeat: no-repeat;
  background-position: center center;
}
.art1__body {
  font-size: 12px;
  line-height: 1.5;
}

/* Modifiers */
.art1:hover {
  cursor: pointer;
  transform: scale(1.05);
}
.art1:hover .art1__wrapper {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.05);
}
.art1:hover .art1__wrapper:after {
  transform: scale(0.95) translateY(10px);
}

/* Demo */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #e9ebea;
  text-align: center;
}
.art1 {
  display: inline-block;
  margin-top: 20px;
  margin-right: 15px;
  margin-left: 15px;
  top: 50%;
}

footer {
  font-family: poppins;
}

footer form input {
  color: black;
  margin: 0 10px;
  display: inline;
}

@media (max-width: 1020px) {
  .article-title h2 {
    display: flex;
  }

  .container-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card {
    margin-right: auto;
    margin-left: auto;
    margin: auto;
    width: 500px;
    height: 1000px;
    display: flex;
  }

  .card img {
    margin: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .article-description {
    padding-top: 50px;
    width: 300px;
    margin-right: auto;
    margin-left: auto;
    margin: auto;
    text-align: center;
  }

  .articles {
    width: 100%;
    display: flex;
  flex-direction: column;
  justify-content: space-evenly;

  }

  footer form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  footer form button {
    margin-right: auto;
    margin-left: auto;
  }
}


@media (max-width: 675px) {
  .article-title h2 {
    display: flex;
  }

  .container-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card {
    margin-right: auto;
    margin-left: auto;
    margin: auto;
    width: 300px;
    height: 900px;
    display: flex;
  }

  .card img {
    margin: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .article-description {
    padding-top: 50px;
    width: 300px;
    margin-right: auto;
    margin-left: auto;
    margin: auto;
    text-align: center;
  }

  .articles {
    width: 100%;
    display: flex;
  flex-direction: column;
  justify-content: space-evenly;

  }

  footer form {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  footer form button {
    margin-right: auto;
    margin-left: auto;
  }
}
