@font-face {
  font-family: "Red Hat Display";
  src:
    url("../fonts/redhatdisplay-regular.woff2") format("woff2"),
    url("../fonts/redhatdisplay-regular.woff") format("woff");
  font-display: swap;
  font-weight: 400;
}

:root {
  --color-fg: #fff;
  --color-bg: #660017;
  --color-secondary: #d1006a;
  --color-selection-bg: #000;
  --color-socials: #ccc;
  --color-socials-hover: var(--color-secondary);
  --font: 1.14em/1.5 var(--font-family);
  --font-family: "Red Hat Display", Helvetica, Arial, sans-serif;
  scrollbar-color: var(--color-fg) var(--color-bg);
  scrollbar-width: thin;
  scroll-behavior: smooth;
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
}

html {
  color: var(--color-fg);
  background: var(--color-bg);
  font: var(--font);
  overflow-x: hidden;
  letter-spacing: .3px;
}

.homepage-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.home {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-grow: 1;
  max-width: 1000px;
  margin: 0 auto;
  gap: 0 3em;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  padding-top: 10px;
  margin: 0 auto;
  width: 90%;
  max-width: 300px;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: static;
  background: black;
  text-align: center;
  padding: 5px;
  font-size: 90%;
  width: 100%;
  height: fit-content;
  max-height: 50px;
  border-radius: 30px;
}

nav span {
  padding: 3px 10px;
  display: flex;
  align-items: center;
}

nav .links {
  display: flex;
  gap: 10px;
}

nav .nav-active {
  font-weight: bold;
  text-decoration: none;
}

.page {
  display: block;
  max-width: 750px;
  margin: 0 auto;
  padding: 1em;
}

.page hr {
  margin: 15px 0;
}

.bg {
  height: 100vh;
  width: 100vw;
  background-image: url("../img/bg.webp");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(8px);
  transform: scale3d(1.1, 1.1, 1.1);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  position: fixed;
  z-index: -1;
}

header, main {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 500px;
}

header, main {
  overflow: hidden;
}

header {
  padding-inline: 12px;
}

header section {
  margin-inline-start: 1em;
}

header #name {
  width: 95%;
  height: auto;
  max-height: 250px;
  max-width: 500px;
  opacity: 80%;
  pointer-events: none;
}

header .socials * {
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
}

header .socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

header .socials ul li a {
  color: var(--color-socials);
  background: none;
  padding: 0;
  transition: .3s;
}

header .socials ul li a:hover {
  color: var(--color-socials-hover);
  transition: .3s;
}

header .socials ul {
  flex-wrap: wrap;
  margin-top: 10px;
  display: flex;
  gap: 20px;
}

header .socials ul li {
  list-style: none;
  transform: scale3d(1.2, 1.2, 1.2);
}

main #boxes {
  padding-top: 30px;
  height: 100%;
  max-height: 795px;
  overflow: hidden scroll;
  padding-inline: 15px;
}

main #boxes .box {
  width: 390px;
  height: 100%;
  max-height: 190px;
  padding: 18px;
  margin-bottom: 15px;
  border-radius: 23px;
  position: relative;
  background: #3d001e url("../img/pinkstatic-dark.gif");
  background-repeat: repeat;
  transition: .3s;
  mix-blend-mode: difference;
}

main #boxes .box .box-info {
  margin-right: 15px;
  position: absolute;
  bottom: 20px;
}

main #boxes .box:hover {
  transform: scale3d(1.05, 1.05, 1.05);
  transition: .3s;
}

main #boxes .extramargin {
  height: 15px;
}

main #boxes .vieraskuu {
  width: 95%;
  height: auto;
  max-height: 89px;
  max-width: 200px;
  opacity: 80%;
  pointer-events: none;
  float: right;
  mix-blend-mode: overlay;
}

::selection {
  color: var(--color-selection);
  background: var(--color-selection-bg);
}

a, a:visited, a:active, a:hover {
  color: var(--color-fg);
}

img, br, hr, main #boxes .box {
  -webkit-user-select: none;
  user-select: none;
}

.center {
  text-align: center;
}

img#signature {
  width: 40px;
  height: 40px;
  pointer-events: none;
}

@media (max-width: 1020px) {
  .homepage-wrapper {
    display: block;
    overflow-y: auto;
  }
  .home {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
  }

  header {
    height: fit-content;
    margin: 50px 0;
  }

  main {
    height: fit-content;
    margin-bottom: 50px;
    justify-content: center;
    align-items: center;
  }

  main #boxes .box {
    height: 200px;
    max-width: 75vw;
  }
}

body.notfound {
  display: block;
  margin-top: 40px;
}