:root {
  --color-background: #151818;
  --color-text: whitesmoke;
  --color-chill: #ecf232;
  --marquee-font-size: min(max(12px, 2vw), 22px);
  --headline-font-size: min(max(40px, 6vw), 70px);
  --paragraph-font-size: min(max(16px, 4vw), 22px);
  --section-heading-font-size: min(max(30px, 4vw), 50px);
  --duration: 300ms;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

/* scroll-bar */
/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #a9a9a9 #17202a;
    font-family: "SF Pro Display", "Segoe UI", "Noto Sans", "Roboto", "Helvetica",
    "Opensans", -apple-system, system-ui, BlinkMacSystemFont, sans-serif;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 7px;
  }

  *::-webkit-scrollbar-track {
    background: #17202a;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #a9a9a9;
    border-radius: 20px;
    border: 2px none #ffffff;
  }
/* scroll-bar */

* {
  box-sizing: border-box;
  cursor: url("../img/cursor.svg"), auto;
  scroll-behavior: smooth;
}

/* cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 1px solid white;
  border-radius: 50%;
  position: absolute;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
  animation: cursorAnim 0.5s infinite alternate;
  pointer-events: none;
}

.cursor::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  border: 8px solid gray;
  border-radius: 50%;
  opacity: 0.5;
  top: -9px;
  left: -9px;
  animation: cursorAnim2 0.5s infinite alternate;
}

@keyframes cursorAnim {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.7);
  }
}
@keyframes cursorAnim2 {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.4);
  }
}
@keyframes cursorAnim3 {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(3);
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
.expand {
  animation: cursorAnim3 0.5s forwards;
  border: 2px solid aqua;
  filter: blur(2px);
}
/* cursor */

body {
  background-color: var(--color-background);
  font-family: "Inter", sans-serif;
  color: var(--color-text);
  width: 100%;
  transition: background-color var(--duration) var(--ease);
}

.page-content {
  /* max-width: 95ch; */
  max-width: 80vw;
  padding: 4rem;
  margin: 6rem auto;
}

.page-content * + * {
  margin-top: 2.5rem;
}

.page-content a {
  color: var(--color-chill);
}

.page-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-content h2 {
  margin-top: 6rem;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-content em {
  font-style: italic;
}

.page-content p {
  font-size: 1.5rem;
  line-height: 1.75;
  letter-spacing: 0.0125rem;
}

.page-content__section {
  transition: opacity var(--duration) var(--ease);
}

.page-content__section h2 {
  transform-origin: 50% 100%;
}

.page-content__section.active {
  opacity: 1;
}

.page-content__section.active h2 {
  -webkit-animation: activate calc(var(--duration) * 2) var(--ease) forwards;
  animation: activate calc(var(--duration) * 2) var(--ease) forwards;
}

@-webkit-keyframes activate {
  25% {
    color: var(--color-chill);
    transform: translateY(-12px);
  }

  40% {
    transform: translateY(2px);
  }

  50% {
    transform: translateY(-4px);
  }

  60% {
    color: var(--color-text);
    transform: translateY(1px);
  }

  65%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes activate {
  25% {
    color: var(--color-chill);
    transform: translateY(-12px);
  }

  40% {
    transform: translateY(2px);
  }

  50% {
    transform: translateY(-4px);
  }

  60% {
    color: var(--color-text);
    transform: translateY(1px);
  }

  65%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-content__section.active h2 {
    -webkit-animation: none;
    animation: none;
  }
}

.marquee-container {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-weight: 700;
  font-family: "Karla", sans-serif;
  text-transform: uppercase;
  z-index: 1;
}

.marquee {
  position: absolute;
  font-size: var(--marquee-font-size);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.25rem;
  overflow: hidden;
  padding: 2vmin 0;
  min-width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: var(--color-background);
  box-shadow: var(--color-background) 0 2vmin 2vmin 1vmin;
  transition: background-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.marquee--top {
  top: -1px;
}

.marquee--left {
  left: -1px;
  bottom: -6vmin;
  transform: rotate(-0.25turn);
  transform-origin: 0 0;
}

.marquee--right {
  left: calc(100% + 1px);
  top: 0;
  transform: rotate(0.25turn);
  transform-origin: 0 0;
}

.marquee--bottom {
  bottom: -1px;
  right: 0;
  transform: rotate(0.5turn);
}

.marquee div {
  opacity: 1;
  transition: opacity var(--duration) var(--ease);
}

.marquee div.active {
  opacity: 0;
}

/* project-vid */
.mian-box {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  /* background-color: red; */
  align-items: baseline;
}

.part1 {
  width: 48%;
  margin-right: 20px;
  box-shadow: rgba(255, 255, 255, 0.5) 0px 4px 6px -1px,
    rgba(255, 255, 255, 0.1) 0px 2px 4px -1px;
  /* background-color: black; */
}

.part2 {
  width: 48%;
  margin-left: 20px;
  box-shadow: rgba(255, 255, 255, 0.5) 0px 4px 6px -1px,
    rgba(255, 255, 255, 0.1) 0px 2px 4px -1px;
  /* background-color: rgb(121, 245, 238); */
}

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

.vid-part iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 1110px) {
  .mian-box {
    display: flex;
    flex-direction: column;
  }

  .part1,
  .part2 {
    width: 100%;
    margin: 0;
  }

  .part1 {
    margin-bottom: 2rem;
  }
}

.dec-part {
  letter-spacing: normal;
  line-height: normal;
  padding: 1rem;
}

.title-part {
  font-size: 1.7rem;
  font-weight: 600;
}
/* project-vid */

/* media part */
@media only screen and (max-width: 1000px) {
  .page-content {
    width: 100vw;
    padding: 1rem;
    margin: auto;
    margin-top: 5rem;
    margin-bottom: 5rem;
  }

  h1,
  h2 {
    font-size: 32px !important;
  }

  p {
    font-size: 17px !important;
  }
}
/* media part */

.page-content p{
  margin-bottom: 20px;
}

.game-part{
  padding: 8px;
  border:none;
  border-radius: 6px;
  /* background-color:rgba(245, 245, 245, 0.16); */
  color: lightcyan !important;
  box-shadow: rgba(255, 255, 255, 0.16) 0px 3px 6px, rgba(255, 255, 255, 0.23) 0px 3px 6px;
  transition: all 0.1s ease-in-out;
  outline: none;
  text-decoration: none;
}

.page-content .mess-parts{
  padding: 8px;
  border:none;
  border-radius: 6px;
  /* background-color:rgba(245, 245, 245, 0.16); */
  color: darkorange;
  font-weight: 600;
  font-size: 20px;
  box-shadow: rgba(255, 255, 255, 0.16) 0px 3px 6px, rgba(255, 255, 255, 0.23) 0px 3px 6px;
  transition: all 0.1s ease-in-out;
  outline: none;
  text-decoration: none;
}

.marquee-text-small {
  font-size: 1.2rem !important;
  padding: 5px;
  /* margin: 5rem; */
  border-bottom: 3px solid white;
}