/* ---------------------- root & basics ---------------------- */

* {
    box-sizing: border-box;
}

:root {
    /* --content-max: 72rem;
  --pad-x: clamp(16px, 4vw, 48px);
  --section-gap: clamp(16px, 1.2rem + 2vmin, 48px);
  --title-gap: clamp(12px, 0.6rem + 2vmin, 40px);
  --grid-gap: clamp(12px, 0.5rem + 1.5vmin, 24px); */

    --bg-color: #272727;
    --accent-color: #4373d2;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --text-lightGrey-color: #bebebe;
    --menu-hover-color: #d6d6d6;
    --cls-btn-color: #f4f1ec;
}

body {
    font-family: 'Cuprum', sans-serif;
    line-height: 1.5;
    padding: 0;
    margin: auto;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
}

.hidden {
    display: none;
}

.visible-mobile {
    display: none;
}

@media screen and (max-width: 480px) {
  .visible-mobile {
    display: block;
  }

  .hidden-mobile {
    display: none;
  }
}

/* ---------------------- header ---------------------- */

header {
    background-color: var(--bg-color);
    min-height: 80px;
}

header::after {
    content: '';
    display: block;
    width: 85%;
    height: 80px;

    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    top: 0%;
    bottom: 0;
    left: 10px;
    right: 10px;
    -moz-border-radius: 100px / 10px;
    border-radius: 100px / 10px;

    position: absolute;
    bottom: 0;
    left: 10%;
    z-index: -1;
}

nav {
    padding: 8px;
}

/* ---------------------- logo ---------------------- */

.logo {
  float: left;
  padding: 8px;
  margin-left: 9%;
  margin-top: 8px;
  /* letter-spacing: 2px; */

  animation: logo-entry 1.2s cubic-bezier(.05, .7, .2, 1) .1s both;
}

.logo a {
  color: var(--accent-color);
  text-transform: uppercase;
  font-size: 32px;
  text-decoration: none;
}

@keyframes logo-entry {
  from {
    transform: translateX(-40px);
    letter-spacing: 5px;
    opacity: 0;
  }

  to {
    transform: translateX(0);
    letter-spacing: 2px;
    opacity: 100%;
  }
}

@media screen and (max-width: 864px) {
  .logo {
    padding: 2px;
    position: absolute;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    margin-left: 5%;
  }
}

/* ---------------------- menu text ---------------------- */

nav ul {
  float: right;
  margin-right: 5%;
}

nav ul li {
  display: inline-block;
  float: left;
  padding: 10px 0 0 40px;
}

nav ul li a {
  color: var(--accent-color);
  text-decoration: none;
  text-transform: capitalize;
  font-size: 18px;
  letter-spacing: 1px;
  transition: all .3s ease;
  /* animation: menu-entry 1.2s cubic-bezier(.05, .7, .2, 1) forwards; */
}

@keyframes menu-entry {
  from {
    letter-spacing: 0.2em;
    opacity: 0;
    scale: 100%
  }

  to {
    letter-spacing: 1px;
    opacity: 100%;
    scale: 100%;
  }
}

nav ul li a:hover {
  color: var(--menu-hover-color);
}

/* ---------------------- hamburger menu ---------------------- */

@media screen and (max-width: 864px) {
  .nav-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    transform: translateX(100%);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform .60s cubic-bezier(0.78, 0.18, 0.12, 1.02), opacity .30s ease .30s, visibility 0s linear .60s;
    display: flex;
    align-items: center;
    justify-content: right;
  }

  .nav-wrapper ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;

    list-style: none;
    margin: 0;
    padding: 0;
    margin-right: 30px;
  }

  .nav-wrapper ul li {
    overflow: hidden;
    line-height: 1.2;
    margin: 0.35rem 0;
    text-align: right;
    display: block;
    float: none !important;
    width: auto;
  }

  .nav-wrapper ul li:not(:first-child) {
    margin-left: 0;
  }

  .nav-wrapper ul li a {
    display: inline-block;
    transform: translateY(110%) translateX(16%) scaleY(.85) scaleX(.90);
    transform-origin: bottom right;
    opacity: 0;
    transition:
      transform .7s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      opacity .3s ease;
    will-change: transform, opacity;
  }

  .nav-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;

    /* animation: hamburger-entry 1s cubic-bezier(.05, .7, .2, 1) .2s both; */
  }

  .nav-btn i {
    display: block;
    position: absolute;
    opacity: 1;
    height: 2px;
    width: 24px;
    background: var(--accent-color);
    border-radius: 2px;
    left: 10px;

    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
  }

  .nav-btn i:nth-child(1) {
    top: 16px;
    width: 24px;
  }

  .nav-btn i:nth-child(2) {
    top: 24px;
    width: 20px;
  }

  .nav-btn i:nth-child(3) {
    top: 32px;
    width: 24px;
  }

  #nav:checked+.nav-btn i:nth-child(1) {
    top: 24px;
    background: var(--cls-btn-color);
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
  }

  #nav:checked+.nav-btn i:nth-child(2) {
    opacity: 0;
    left: -60px;
    background: var(--keywords-hover-color);
  }

  #nav:checked+.nav-btn i:nth-child(3) {
    top: 24px;
    background: var(--cls-btn-color);
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
  }

  #nav:checked~.nav-wrapper {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition:
      transform .60s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      visibility 0s;
  }

  #nav:checked~.nav-wrapper {
    touch-action: none;
  }

  #nav:checked~.nav-wrapper {
    overscroll-behavior: contain;
  }

  #nav:checked~.nav-wrapper ul li a {
    transform: translateY(0) scaleY(1);
    opacity: 1;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(1) a {
    transition-delay: .16s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(2) a {
    transition-delay: .20s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(3) a {
    transition-delay: .24s;
  }

  #nav:checked~.nav-wrapper ul li:nth-child(4) a {
    transition-delay: .28s;
  }

  #nav:not(:checked)~.nav-wrapper ul li a {
    transition:
      transform .50s cubic-bezier(0.78, 0.18, 0.12, 1.02),
      opacity .25s ease;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(1) a {
    transition-delay: .14s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(2) a {
    transition-delay: .10s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(3) a {
    transition-delay: .06s;
  }

  #nav:not(:checked)~.nav-wrapper ul li:nth-child(4) a {
    transition-delay: .02s;
  }
}

@keyframes hamburger-entry {
  from {
    transform: translateX(20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* ---------------------- body containers ---------------------- */

.article-body-mid {
    margin-inline: auto;
    max-width: 110ch;
    padding-inline: 5vmin;
    /* small gap for narrow screens */
    overflow-wrap: break-word;
}

.article-body-wide {
    margin-inline: auto;
    max-width: 120ch;
    padding-inline: 5vmin;
    /* small gap for narrow screens */
    overflow-wrap: break-word;
}

.article-body-Xwide {
    margin-inline: auto;
    max-width: 140ch;
    padding-inline: 5vmin;
    /* small gap for narrow screens */
    overflow-wrap: break-word;
}

.article-title {
    margin-top: 7%;
    margin-bottom: 3%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* ---------------------- text ---------------------- */

/* main title */
h1 {
    color: #fff;
    font-size: 28px;
    font-weight: normal;
    text-align: center;
}

/* categories below main title */
h2 {
    color: #bebebe;
    font-size: 20px;
    font-weight: lighter;
    text-align: center;
}

/* left-aligned bold subtitle */
h3 {
    color: #fff;
    font-size: 20px;
    font-weight: lighter;
    text-align: left;
}

/* section title */
h4 {
    color: #fff;
    font-size: 24px;
    font-weight: normal;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0;
}

/* image caption below images */
h5 {
    color: var(--text-lightGrey-color);
    font-size: 20px;
    font-weight: lighter;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* image caption above images */
h6 {
    color: var(--text-lightGrey-color);
    font-size: 20px;
    font-weight: lighter;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* highlight text centered accent color */
h7 {
    /* display: block; */
    color: var(--accent-color);
    font-size: 20px;
    font-weight: lighter;
    text-align: center;
}

/* body paragraph text */
p {
    color: var(--text-lightGrey-color);
    font-size: 20px;
    font-weight: 100;
    text-align: justify;
    text-align-last: left;
    line-height: 1.5;
    /* spacing between lines within a paragraph */
    margin-bottom: 0.5em;
}

ul.first {
    color: var(--text-lightGrey-color);
    font-size: 20px;
    font-weight: 100;
    list-style-type: square;
    list-style-position: outside;
    padding-left: 1em;
}

ul.first li {
    text-align: justify;
}

ul.second {
    color: var(--text-lightGrey-color);
    font-size: 18px;
    font-weight: 100;
    text-align: left;
    list-style-type: circle;
    list-style-position: inside;
    text-align: justify;
    padding-left: 0;
}

ol.number {
    color: var(--text-lightGrey-color);
    font-size: 20px;
    font-weight: 100;
    text-align: left;
    list-style-position: inside;
    margin-left: -2em;
    text-align: justify;
}

ol.number li {
    margin-bottom: 10px;
}

a {
    color: #fff;
}

a:hover {
    color: var(--accent-color);
}

a:active {
    color: #fff;
}

/* ---------------------- img & video ---------------------- */

img {
    width: 100%;
    margin-top: 2vmin;
    margin-bottom: 2vmin;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

video {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 30px;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---------------------- footer area ---------------------- */

footer {
    background-color: var(--bg-color);
    margin-top: clamp(24px, 4vw, 56px);
    padding-top: 24px;
    padding-bottom: 12px;
    text-align: center;
}

footer .container-contact {
    width: min(1100px, 90%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

footer .copyright {
    margin: 0;
    color: var(--text-lightGrey-color, #bebebe);
    font-size: 14px;
    font-weight: 400;
    position: static;
    transform: none;
    height: auto;
}

footer .footer_icons {
    width: 100%;
}

footer .icon-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    margin-top: 20px;
}

footer .icon-list img.ig {
    width: 32px;
    height: 32px;
    display: block;
    float: none;
}

@media (hover: hover) and (pointer: fine) {
    footer .icon-list a img.ig {
        transition: transform 0.3s ease, filter 0.3s ease;
        transform-origin: center;
    }

    footer .icon-list a:hover img.ig {
        filter: brightness(1.4);
        transform: scale(1.05);
        transition: transform 0.2s ease-out, filter 0.2s ease-out;
    }
}

@media screen and (max-width: 432px) {
    .ig {
        width: 20px;
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 5px;
    }
}