@import url('https://fonts.googleapis.com/css?family=Sarabun:300,700&display=swap');

:root {
  --col-text: #444748;
  --col-primary: #7DBE65;
  --col-secondary: #B17A5B;
  --col-bg: #E6E8EC;
  --col-bright: #F6F7FA;

  --font-base: 'Sarabun', 'Roboto', Helvetica, Arial, sans-serif;
}

html {
  font-family: var(--font-base);
  color: var(--col-text);

  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

html {
  background-color: var(--col-bg);
}
html::before {
  content: '';
  display: block;
  background-color: var(--col-primary);
  width: 100%;
  height: 16px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 40px auto 20vh;
}

.header {
  display: flex;
  align-items: center;
}

.header__image {
  display: block;
  height: 86px;
}
.header__title {
  font-size: 68px;
  margin-inline-start: 0.5em;
}

.card {
  background-color: var(--col-bright);
  border-radius: 24px;
  box-shadow:  12px 12px 24px rgba(0, 0, 0, 0.05),
               -12px -12px 24px rgba(255, 255, 255, 0.3);
  padding: 16px 32px;
  margin-bottom: 80px;
}

.quote {
  font-size: 1.6em;
  position: relative;
}

@media only screen and (min-width: 1100px) {
    .quote::before {
    content: '';
    display: block;
    position: absolute;
    top: -172px;
    right: -176px;
    width: 276px;
    height: 478px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url('img/svg/bg_leaves.svg');
    pointer-events: none;
  }
}

.quote__text {
  font-weight: 700;
}

.quote__name {
  font-weight: 300;
}

.memes {
  padding: 48px;
}

.memes__list {
  margin: 0;
  padding-left: 0;
  text-align: center;
}

.memes__list-item {
  list-style-type: none;
  margin: 0 auto 15vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.memes__list-item:last-child {
  margin: 0 auto;
}

.memes__anchor {
  color: inherit;
  text-decoration: none;
}

.memes__anchor:hover {
  color: var(--col-primary);
}

.memes__number {
  text-align: right;
  font-size: 72px;
  font-weight: 700;
  margin: 0;
}
.memes__number::before {
  content: '#';
  margin-right: 0.1em;
  font-size: 0.75em;
}

.memes__image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
}

@media only screen and (max-width: 576px) {
  .header {
    flex-direction: column;
  }
  .header__title {
    font-size: 48px;
    margin-left: 0;
  }
  .memes {
    padding: 24px 16px;
  }
  .memes__number {
    font-size: 56px;
  }
}
