:root {
  --main-background: #000;
  --h-color: #fff;
  --txt-color: #fff;
  --txt-color-lowcontrast: #999;
  --link-color: #ccc;
  --linkhover-color: #fff;
}

[data-theme="light"] {
  --main-background: #f2f2f2;
  --h-color: #000;
  --txt-color: #000;
  --txt-color-lowcontrast: #777;
  --link-color: #555;
  --linkhover-color: #000;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-size: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: var(--main-background);
  color: var(--txt-color);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.5s;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--h-color);
  font-weight: bold;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  font-size: 44px;
}

a {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--linkhover-color);
}

button {
  font: inherit;
}

.smallprint {
  color: var(--txt-color-lowcontrast);
  font-size: 11px;
  line-height: normal;
}

.wa-nav {
  z-index: 999;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 80px;
  overflow: hidden;
  user-select: none;
}

.wa-logo {
  position: relative;
  float: left;
  width: 60px;
  height: 60px;
  margin: 10px 11px 0 11px;
}

.wa-logo button {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

svg .wa-logo-col {
  fill: var(--txt-color);
}

.wa-site-title {
  opacity: 0;
  position: relative;
  float: left;
  width: 140px;
  height: 60px;
  padding-top: 27px;
  font-size: 14px;
  line-height: 14px;
  animation: fadein 0.9s 1 100ms forwards;
}

.wa-site-title.hidden {
  display: none;
}

.wa-about-btn {
  position: relative;
  float: right;
  width: 50px;
  height: 50px;
  margin: 15px 5px 0 0;
  padding: 0;
  border: 0;
  background: url("/Projects/assets/b-about-sprite.png") 0 0;
  background-size: 50px 550px;
  cursor: pointer;
}

.wa-main-content {
  display: block;
  width: 100%;
  margin: 80px 0 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 350px);
  gap: 0;
  justify-content: center;
  margin: 80px auto;
}

.grid.hidden {
  display: none;
}

.grid-item {
  opacity: 0;
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background-color: #111;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  animation: fadein 1s 1 forwards;
}

.grid-item-inner {
  display: block;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 #ffcc22;
  transition: 0.5s ease;
}

.grid-item:hover .grid-item-inner,
.grid-item:focus .grid-item-inner {
  box-shadow: inset 0 0 0 10px #ffcc22;
  transition: 0.2s ease;
}

.wa-detail {
  display: none;
}

.wa-detail.active {
  display: block;
}

.wa-slidertitle {
  z-index: 11;
  position: fixed;
  bottom: 44px;
  left: 20px;
  padding: 0;
  pointer-events: none;
}

.wa-slidertitle h1 {
  opacity: 0;
  font-size: 22px;
  animation: fadein 1.8s 1 forwards;
}

.wa-slidersubtitle {
  z-index: 10;
  position: fixed;
  bottom: 72px;
  left: 20px;
  padding: 0;
  pointer-events: none;
}

.wa-slidersubtitle h2 {
  opacity: 0;
  font-size: 12px;
  font-weight: normal;
  text-transform: none;
  animation: fadein 1s 1 500ms forwards;
}

.wa-sliderindicator {
  opacity: 0;
  z-index: 10;
  position: fixed;
  bottom: 20px;
  left: 17px;
  margin: 0;
  padding: 0;
  font-weight: bold;
  user-select: none;
  animation: fadein 1s 1 1000ms forwards;
}

.wa-sliderindicator span {
  color: #ffcc22;
  font-size: 20px;
  animation: blinking 1.5s infinite;
}

.wa-sliderA {
  z-index: 1;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.wa-sliderA canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.wa-aboutbox {
  z-index: 99;
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  max-height: 100vh;
  overflow: auto;
  background: rgba(30, 30, 30, 0.95);
  transform: translateX(200%);
}

.wa-aboutbox-content {
  opacity: 0;
  width: 75%;
  margin: 100px auto 0 auto;
  color: #fff;
}

.wa-aboutbox-content h1 {
  color: #fff;
}

.wa-aboutbox-content .imgright {
  float: right;
  width: 40%;
  margin: 10px 0 0 0;
}

.wa-aboutbox.slide-in {
  animation: slide-in 0.3s forwards;
}

.wa-aboutbox.slide-out {
  animation: slide-out 0.5s forwards;
}

.wa-aboutbox-content.fadein {
  animation: fadein 0.6s 1 400ms forwards;
}

.wa-aboutbox-content.fadeout {
  animation: fadein 0.2s 1 reverse forwards;
}

.aboutanimin {
  animation: aboutanim 0.2s steps(10) 1 forwards;
}

.aboutanimout {
  animation: aboutanim 0.2s steps(10) 1 reverse forwards;
}

.wa-footer {
  width: 100%;
  height: 50px;
  margin: 0 auto;
  text-align: center;
}

.wa-footer.hidden {
  display: none;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aboutanim {
  from { background-position-y: 0; }
  to { background-position-y: -500px; }
}

@keyframes slide-in {
  100% { transform: translateX(0); }
}

@keyframes slide-out {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

@keyframes blinking {
  0% { color: #ffcc22; }
  50% { color: #34470b; }
  100% { color: #ffcc22; }
}

@media (max-width: 800px) {
  .wa-aboutbox {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 34px;
  }

  .grid {
    grid-template-columns: 1fr;
    margin-top: 80px;
  }

  .grid-item {
    width: 100%;
    height: 100vw;
  }

  .wa-aboutbox-content {
    margin-top: 120px;
  }
}
