@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800;900&display=swap");

:root {
  --width: 100vw;
  --full-width: 100vw;
  
  @media (min-width: 42em) {
    --width: 42rem;
  }
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: #ddd;
}

html,
body {
  height: 100%;
  min-height: 100vh;
}

body {
  display: grid;
  place-items: center;
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.2;
  background-color: #212121;
  color: #ECEFF1;
}

.nav-bar-top, .nav-bar-bottom {
  position: fixed;
  z-index: 10;
}

.nav-bar-top {
  left: 0;
  top: 0;
  padding: 10px 0px 0px 10px;
}

.nav-bar-bottom {
  right: 0;
  bottom: 0;
  padding: 0px 10px 10px 0px;
}

.nav-item {
  text-decoration: none;
  margin: 0px 5px 0px 5px;
}

.nav-item:hover {
  text-decoration: underline;
}

.nav-item>img {
  width: 25px;
  height: 25px;
}

.nav-item>img:hover {
  border-radius: 50%;
  border: 1px solid #ECEFF1
}

.title {
  font-size: 1.75em;
  font-weight: 700;
  padding: 50px 0px 10px 0px;
}

.top-diagonal, .bottom-diagonal {
  position: fixed;
  transform: skewy(-2.5deg);
  width: 100%;
  width: 100vw;
  height: 8vh;
  z-index: 9;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  
  &:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #212121;
  }

  @media (max-width: 1440px) {
    height: 7vh;
    transform: skewy(-3deg);
  }
  @media (max-width: 1080px) {
    height: 6vh;
    transform: skewy(-4deg);
  }
  @media (max-width: 768px) {
    height: 5vh;
    transform: skewy(-4.2deg);
  }
}

.top-diagonal {
  top: 0;
  transform-origin: left top;
}

.bottom-diagonal {
  bottom: 0;
  transform-origin: right bottom;
}

.main {
  padding-top: 90px;
  padding-bottom: 90px;
  height: 100%;
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(45deg, #3c036c, #6303B1, #81098b, #8f0491d8);
  background-size: 800% 800%;
  animation: gradient 15s ease infinite;
  scroll-behavior: smooth;

  @media (max-width: 1440px) {
    padding-top: 4vw;
    padding-bottom: 8vw;
  }
  @media (max-width: 1080px) {
    padding-top: 6vw;
    padding-bottom: 10vw;
  }
  @media (max-width: 768px) {
    padding-top: 8vw;
    padding-bottom: 14vw;
  }
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/noise.png');
  background-size: 100px;
  opacity: 1;
}

.heading {
  font-weight: 600;
  font-size: 2.25em;
  text-align: center;
  color: #eceff1;
  margin-top: 6vh;
  margin-bottom: 1vh;
  z-index: 2;
}

.inner {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  width: 85vw;
  gap: 2.5em;
  margin: 0 auto;
  padding: 1.5em;
  position: relative;
  overflow-x: auto; 
  z-index: 2;
}

.card {
  flex: 1 1 14rem;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-items: start;
  margin-top: 50px;
  background-color: #2b2b2b;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #eceff133;
  border-radius: 15px;
  transition: all .4s cubic-bezier(.165, .84, .44, 1);
}

.card>a {
  padding: 1.5em 1.25em;
}

.card:hover {
  transform: translateY(-5px);
}

.card:hover .image {
  transform: translateY(-80%);
}

.image {
  width: 100px;
  height: 100px;
  transform: translateY(-70%);
  overflow: hidden;
  position: absolute;
  transition: all .4s cubic-bezier(.165, .84, .44, 1);
  z-index: 3;
}

.image>img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}