::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 50px;
}

::-webkit-scrollbar-track {
  background-color: #fff;
  border-left: solid 1px #d3d3d3;
}

@font-face {
  font-family: Horizon;
  src: url("../assets/fonts/Horizon-Font/horizon.otf");
}
@font-face {
  font-family: Horizon-outlined;
  src: url("../assets/fonts/Horizon-Font/horizon_outlined.otf");
}
@font-face {
  font-family: Oswald;
  src: url("../assets/fonts/Oswald/Oswald-Regular.ttf");
}
@font-face {
  font-family: Oswald;
  font-weight: 500;
  src: url("../assets/fonts/Oswald/Oswald-Medium.ttf");
}
@font-face {
  font-family: Oswald;
  font-weight: 700;
  src: url("../assets/fonts/Oswald/Oswald-SemiBold.ttf");
}
@font-face {
  font-family: Oswald;
  font-weight: 900;
  src: url("../assets/fonts/Oswald/Oswald-Bold.ttf");
}
@font-face {
  font-family: Oswald;
  font-weight: 300;
  src: url("../assets/fonts/Oswald/Oswald-Light.ttf");
}
@font-face {
  font-family: Oswald;
  font-weight: 100;
  src: url("../assets/fonts/Oswald/Oswald-ExtraLight.ttf");
}
.loader-container {
  background-color: var(--main-color);
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.isloading .loader-container, .loader-container.isloading {
  transform: translateY(0);
}

.loaded .loader-container, .loader-container.loaded {
  transform: translateY(-100%);
}

.loader {
  width: 9px;
  height: 9px;
  background: white;
  color: white;
  box-shadow: -18px -9px, 0 -9px, 18px -9px, -18px 0, 18px 0, -18px 9px, 0 9px, 18px 9px, -18px 18px, 0 18px, 18px 18px;
  animation: l29 2s infinite;
}

.cursor-dot,
.cursor-dot-outline {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--second-color);
}

.cursor-dot-outline {
  width: 20px;
  height: 20px;
  background-color: rgba(204, 153, 255, 0.5);
}

@keyframes l29 {
  10% {
    box-shadow: -18px -9px, 0 -9px, 18px -9px, -18px 0, 18px 0, -18px 9px rgba(0, 0, 0, 0), 0 9px, 18px 9px rgba(0, 0, 0, 0), -18px 18px, 0 18px, 18px 18px;
  }
  20% {
    box-shadow: -18px -9px, 0 -9px, 18px -9px, -18px 0, 18px 0, -18px 9px, 0 9px, 18px 9px rgba(0, 0, 0, 0), -18px 18px rgba(0, 0, 0, 0), 0 18px, 18px 18px;
  }
  30% {
    box-shadow: -18px -9px, 0 -9px rgba(0, 0, 0, 0), 18px -9px, -18px 0 rgba(0, 0, 0, 0), 18px 0, -18px 9px, 0 9px rgba(0, 0, 0, 0), 18px 9px, -18px 18px rgba(0, 0, 0, 0), 0 18px, 18px 18px rgba(0, 0, 0, 0);
  }
  40% {
    box-shadow: -18px -9px, 0 -9px, 18px -9px, -18px 0 rgba(0, 0, 0, 0), 18px 0 rgba(0, 0, 0, 0), -18px 9px, 0 9px, 18px 9px, -18px 18px, 0 18px, 18px 18px;
  }
  50% {
    box-shadow: -18px -9px, 0 -9px, 18px -9px, -18px 0, 18px 0 rgba(0, 0, 0, 0), -18px 9px rgba(0, 0, 0, 0), 0 9px, 18px 9px, -18px 18px, 0 18px, 18px 18px;
  }
  60% {
    box-shadow: -18px -9px, 0 -9px rgba(0, 0, 0, 0), 18px -9px, -18px 0, 18px 0, -18px 9px rgba(0, 0, 0, 0), 0 9px, 18px 9px, -18px 18px rgba(0, 0, 0, 0), 0 18px, 18px 18px;
  }
  70% {
    box-shadow: -18px -9px, 0 -9px rgba(0, 0, 0, 0), 18px -9px rgba(0, 0, 0, 0), -18px 0, 18px 0, -18px 9px, 0 9px, 18px 9px, -18px 18px rgba(0, 0, 0, 0), 0 18px, 18px 18px;
  }
  80% {
    box-shadow: -18px -9px rgba(0, 0, 0, 0), 0 -9px, 18px -9px, -18px 0, 18px 0, -18px 9px, 0 9px, 18px 9px, -18px 18px, 0 18px, 18px 18px rgba(0, 0, 0, 0);
  }
  90% {
    box-shadow: -18px -9px rgba(0, 0, 0, 0), 0 -9px, 18px -9px, -18px 0, 18px 0, -18px 9px, 0 9px rgba(0, 0, 0, 0), 18px 9px, -18px 18px, 0 18px, 18px 18px rgba(0, 0, 0, 0);
  }
}
*, *:before, *:after {
  transition-duration: 0.25s;
  transition-timing-function: ease-in-out;
  cursor: none;
}

body {
  background-image: url("../assets/images/background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--main-color);
  background-blend-mode: overlay;
  padding: 50px;
  margin: 0;
  display: grid;
  grid-template-columns: auto 450px auto;
  grid-template-areas: 
    "header main aside"
    "footer footer aside";
  line-height: 1;
  height: calc(100vh - (50px * 2));
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: black;
  transition-property: color;
  display: inline-block;
}
a :hover {
  color: var(--main-color);
}

header {
  grid-area: header;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
header .title {
  font-size: clamp(20pt, 5vw, 100pt);
  font-family: Horizon;
  margin-top: 0;
  margin-bottom: 0;
}
header .baseline {
  font-size: clamp(18pt, 2vw, 75pt);
  font-family: Horizon;
  margin-top: 0;
  color: var(--second-color);
}
header .channels {
  display: flex;
  flex-wrap: wrap;
  margin: 25px 0;
}
header .channels li {
  margin: 0 10px;
}
header .channels li img, header .channels li svg {
  width: clamp(50px, 7vw, 75px);
  height: clamp(50px, 7vw, 75px);
  object-fit: contain;
  display: block;
  fill: white;
}
header .channels li img:hover, header .channels li svg:hover {
  fill: var(--second-color);
  transform-origin: center;
  transform: scale(1.1);
}
header .channels:first-child {
  margin-left: 0;
}
header .channels:last-child {
  margin-right: 0;
}

main {
  grid-area: main;
  /* 450px */
  height: 100%;
}
main .markets {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
main .markets figure {
  width: calc(100% - 40px);
  background-color: white;
  margin: 20px;
  padding: 0;
  transition-property: color;
}
main .markets figure a {
  width: 100%;
}
main .markets figure a:hover {
  color: var(--second-color);
}
main .markets figure a img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}
main .markets figure a figcaption {
  text-align: center;
  font-family: Horizon;
  padding: 10px;
  font-size: clamp(12pt, 2vw, 50pt);
  pointer-events: none;
}

aside {
  grid-area: aside;
  height: calc(100% - (20px * 2));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}
aside .logo {
  width: 50px;
  height: 50px;
}
aside .socialmedia li {
  margin: 20px 0;
}
aside .socialmedia li a img, aside .socialmedia li a svg {
  fill: white;
  width: 25px;
  height: 25px;
}
aside .socialmedia li a img:hover, aside .socialmedia li a svg:hover {
  fill: var(--second-color);
  transform-origin: center;
  transform: scale(1.1);
}
aside .socialmedia:first-child {
  margin-top: 0;
}
aside .socialmedia:last-child {
  margin-bottom: 0;
}

footer {
  grid-area: footer;
  color: white;
}
footer .copyright {
  font-family: Oswald;
}
footer .copyright a {
  color: white;
  position: relative;
}
footer .copyright a:before {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: white;
  position: absolute;
  inset: calc(100% + 1px) 0 -10px;
  transition-property: width;
}
footer .copyright a:hover {
  color: var(--second-color);
}
footer .copyright a:hover:before {
  width: 100%;
}

@media screen and (max-width: 1450px) {
  body {
    flex-direction: column;
    align-items: center;
    height: auto;
    grid-template-columns: auto;
    grid-template-areas: 
      "aside"
      "header"
      "main"
      "footer";
    padding: 25px;
  }
  header {
    height: auto;
    text-align: center;
    margin: 25px 0;
  }
  header .channels {
    justify-content: center;
  }
  main {
    height: auto;
    margin: 25px 0;
  }
  main .markets {
    flex-direction: row;
    flex-wrap: wrap;
  }
  main .markets figure {
    margin: 20px;
  }
  aside {
    justify-content: center;
    margin: 25px 0;
  }
  aside .logo {
    margin: 10px;
  }
  aside .socialmedia {
    display: flex;
    flex-wrap: wrap;
  }
  aside .socialmedia li {
    margin: 10px;
  }
  footer {
    text-align: center;
  }
}
@media screen and (max-width: 820px) {
  header h1 {
    font-size: 30pt;
  }
}