:root {
  --real100vh: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

html,
body {
  min-height: var(--real100vh);
}

html {
  font-size: 20px;
  background-color: #000;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  color: #fff;
}

:root,
.scroll-snap-container {
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, .5) rgba(255, 255, 255, .003);
}

body::-webkit-scrollbar,
.scroll-snap-container::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track,
.scroll-snap-container::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(255, 255, 255, .003);
  border-radius: 8px;
}

body::-webkit-scrollbar-thumb,
.scroll-snap-container::-webkit-scrollbar-thumb {
  border-radius: 8px;
  box-shadow: inset 0 0 21px rgba(255, 255, 255, .5);
}

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

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('/font/montserrat/montserrat-v15-latin-regular.eot');
  /* IE9 Compat Modes */
  src: url('/font/montserrat/montserrat-v15-latin-regular.eot?#iefix') format('embedded-opentype'),
    /* IE6-IE8 */
    url('/font/montserrat/montserrat-v15-latin-regular.woff2') format('woff2'),
    /* Super Modern Browsers */
    url('/font/montserrat/montserrat-v15-latin-regular.woff') format('woff'),
    /* Modern Browsers */
    url('/font/montserrat/montserrat-v15-latin-regular.ttf') format('truetype'),
    /* Safari, Android, iOS */
    url('/font/montserrat/montserrat-v15-latin-regular.svg#Montserrat') format('svg');
  /* Legacy iOS */
}

body,
p,
h1,
h2,
a,
.button-link {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Verdana', 'Arial', sans-serif;
  font-weight: 400;
}

body {
  width: 90vw;
  margin: 3vh 5vw;
}

p {
  line-height: calc(1ex / 0.32);
}

@media screen and (max-width: 680px) {
  body {
    display: flex;
    flex-direction: column;
  }
}

.bg-box {
  background: url('../img/ijidBigV2.02.png'), url('../img/mohammad-alizade.jpg');
  background-position: 160% 34%, top center;
  background-size: 86% auto, cover;
  background-repeat: no-repeat;
  z-index: -1;
  position: fixed;
  top: 0;
  left: 0;
  min-height: var(--real100vh);
  width: 100%;
  transition: height 0.4s ease-in-out;
}

header {
  z-index: 999;
}

header h1 {
  margin: 0;
}

header p {
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
  text-align: right;
  color: #fff;
  line-height: 1;
}

nav {
  display: flex;
  justify-content: flex-end;
  font-size: 1rem;
}

nav a,
.button-link {
  font-size: 1rem;
  display: block;
  border: 3px solid #fff;
  padding: 1em 2.5em;
  margin: 3em 0 3em auto;
  text-decoration: none;
  border-radius: 50px;
  transition: all cubic-bezier(.77, 0, .18, 1) .2s;
  cursor: pointer;
  text-align: center;
  max-width: max-content;
  box-shadow: inset 0 2px 13px -2px rgba(255, 255, 255, 0.57);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

nav a:hover,
.button-link:hover,
.flip-card a:hover:not(.dead) {
  border-color: hsl(183.6, 80.5%, 55%);
  background: hsla(183.6, 80.5%, 55%, .13);
  box-shadow: inset 0 0 13px hsl(183.6, 80.5%, 55%);
}

header p {
  color: #fff;
  font-size: 1.15rem;
}

#about h2 {
  color: #fff;
  margin: 1em 0 1em;
}

#about a {
  transition: all 50ms ease-in-out;
}

#about a:hover {
  text-decoration-color: hsl(183.6, 80.5%, 65%);
  text-decoration-thickness: 3px;
}

@media screen and (min-width: 600px) {

  header p,
  header nav {
    padding-right: 12%;
  }
}

.footer {
  text-align: center;
}

.footer a {
  margin: 0 1em;
  font-size: 15px;
}

h3 {
  margin: 0;
  font-size: 0.7rem;
  color: #ffd274;
}

h4 {
  margin: 0;
  font-size: 0.7rem;
  color: #fff;
  background: #d4759f;
  padding: 2px;
  text-transform: uppercase;
}

h5 {
  margin: 0;
  font-size: 0.6rem;
  color: #ffd274;
}

p {
  font-size: 1rem;
  color: #fff;
  max-width: 34em;
}

a {
  color: #fff;
}

#about {
  max-width: 100%;
  float: left;
  margin: 10px;
}

@supports ((display: -ms-grid) or (display: grid)) {
  li {
    width: auto;
    margin: 0;
  }

  @media screen and (min-width: 680px) {
    main {
      display: grid;
      grid-template-columns: repeat(5, 16vw);
      grid-gap: 3vw;
      margin-top: 3rem;
    }

    header {
      grid-column: 2 / 5;
      grid-row: 2 / 3;
      align-self: center;
    }

    #about {
      width: auto;
      margin: 0 1em;
      grid-column: 2 / 5;
      grid-row: 4 / 5;
    }
  }

  @media (min-width: 980px) {
    main {
      display: grid;
      grid-template-columns: repeat(5, 14vw);
      grid-gap: 1vw;
      margin-top: 5rem;
    }

    header {
      grid-column: 2 / 4;
      grid-row: 2;
      align-self: center;
      position: relative;
      padding-right: 3px;
    }

    #about {
      width: auto;
      margin: 0;
      grid-column: 3 / 6;
      grid-row: 3 / 5;
      margin-top: 3em;
    }

    #about h2 {
      font-size: 2vw;
    }

    #about p {
      font-size: 1.5vw;
    }
  }
}

.animated {
  -webkit-animation: filter-animation 18s infinite;
  animation: filter-animation 18s infinite;
}

@-webkit-keyframes filter-animation {
  0% {
    -webkit-filter: hue-rotate(0deg);
  }

  50% {
    -webkit-filter: hue-rotate(120deg);
  }

  100% {
    -webkit-filter: hue-rotate(0deg);
  }
}

@keyframes filter-animation {
  0% {
    filter: hue-rotate(0deg);
  }

  50% {
    filter: hue-rotate(120deg);
  }

  100% {
    filter: hue-rotate(0deg);
  }
}

/* scroll-snap-container for portfolio links */
.scroll-snap-container {
  display: flex;
  align-items: center;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 50%;
  width: 100%;
  max-width: 100%;
  height: 285px;
  margin: 5em auto;
  padding: 0 1em;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 8px;
  box-shadow: 0 2px 13px -2px rgba(0, 0, 0, 0.57);
}

.scroll-snap-container li {
  scroll-snap-align: center;
  display: inline-block;
  margin-right: 1em;
}

.scroll-snap-container li:last-child {
  margin-right: 2em;
}

/* flip card stuff */
.flip-card, .flip-card-inner, .flip-card-front, .flip-card-back, .flip-card img {
  width: 300px;
  height: 212.33px;
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-back {
  background: #333;
  background-image: linear-gradient(45deg, #312944, #d063a6);
  color: var(--white);
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
}

.flip-card-back a {
  border: 2px solid #fff;
  padding: 1em;
  text-decoration: none;
  box-shadow: inset 0 2px 13px -2px rgba(255, 255, 255, .57);
  border-radius: 21px;
  transition: all cubic-bezier(.77, 0, .18, 1) .2s;
  line-height: 1;
}

.flip-card-back .content {
  text-align: left;
  padding: 0 1em;
  margin-left: .5em;
  font-size: 15px;
}

.flip-card-back a, .flip-card-back .content p {
  font-size: 15px;
}

.flip-card-front img {
  max-width: 100%;
}

.flip-card-inner,
.flip-card-front,
.flip-card-back,
.flip-card img {
  border-radius: 8px;
}

.flip-card-back .dead {
  border: none;
  box-shadow: none;
}
/* end flip card stuff */
