/* font */
@font-face {
  font-family: "Ari-W9500 Display";
  src: url("../fonts/ari-w9500-display.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Retro Pixel Thick";
  src: url("../fonts/retro-pixel-thick.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Retro Pixel Arcade";
  src: url("../fonts/retro-pixel-arcade.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* color palette */
:root {
  --color-primary: #5e3536;
  --color-secondary: #a78483;
  --color-background: #eed7d4;
}

/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body and background */
body {
  min-height: 100vh;
  background: #2c2c2c;
  font-family: "Ari-W9500 Display", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://64.media.tumblr.com/7a9e0547a4db9a50a90693425007d682/97d6e365e7697bc8-26/s1280x1920/4285046ff31808472c87b51179e43fe3c4c17c1a.gifv");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(5px);
  z-index: -1;
}

/* main container */
.main-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 70rem;
  width: 100%;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: fit-content;
  height: 100%;
}

/* widget base styles */
.widget {
  background: var(--color-background);
  border: 3px solid var(--color-primary);
  padding: 0.9375rem 1.25rem;
}

.widget-container {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.widget-title {
  color: var(--color-primary);
  font-family: "Retro Pixel Thick", sans-serif;
  font-size: 3rem;
  height: 1.875rem;
  display: flex;
  align-items: center;
}

.widget-bar {
  margin-top: -0.3125rem;
  border-top: 5px solid var(--color-secondary);
}

.widget-title-link,
.widget-title-link:visited,
.widget-title-link:active {
  text-decoration: none;
  color: var(--color-primary);
}

.widget-title-text {
  display: inline;
}

.widget-title-text:hover {
  color: var(--color-secondary);
}

/* navigation & contact sections */
.widget-links {
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

.widget-link {
  font-family: "Ari-W9500 Display", monospace;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  text-underline-offset: 0.4125rem;
  text-decoration-color: var(--color-secondary);
  text-decoration-thickness: 1px;
}

.widget-link:before {
  content: "* ";
  text-decoration: none;
}

.widget-link:hover {
  color: var(--color-secondary);
  text-decoration: none;
  text-decoration-thickness: 2px;
}

.widget-link:active {
  color: var(--color-primary);
  text-decoration: none;
  text-decoration-thickness: 2px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* discord widget */
.status-text {
  font-family: "Ari-W9500 Display", monospace;
  font-size: 1.25rem;
  color: var(--color-secondary);
  text-decoration: none;
}

/* credits */
.credits {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.credits-row {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  font-family: "Ari-W9500 Display", monospace;
  font-size: 0.575rem;
}

.credits-label {
  color: var(--color-background);
}

.credits-link {
  color: var(--color-background);
  text-decoration: none;
}

.credits-link:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

/* responsive design */
@media screen and (max-width: 1200px) {
  body {
    padding: 0;
    overflow-x: auto;
    overflow-y: auto;
    justify-content: flex-start;
    align-items: flex-start;
  }

  body::before {
    background-attachment: scroll;
    width: 100vw;
    min-width: 74rem;
  }

  .main-container {
    margin: 2rem;
    min-width: 70rem;
    transform-origin: top left;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 0;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body::before {
    background-attachment: scroll;
    width: 100vw;
    min-width: 74rem;
  }

  .main-container {
    margin: 1rem;
    min-width: 70rem;
    width: 70rem;
    max-width: none;
  }

  .credits {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
  }

  body {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
  }
}

@media screen and (max-width: 480px) {
  .main-container {
    margin: 0.5rem;
  }

  body::before {
    min-width: 74rem;
  }
}

@media screen and (max-width: 1200px) {
  html {
    overflow-x: auto;
  }

  body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
      90deg,
      var(--color-primary) 0%,
      var(--color-secondary) 50%,
      var(--color-primary) 100%
    );
    opacity: 0.3;
    pointer-events: none;
    z-index: 1001;
    display: none;
  }

  body.scrolling::after {
    display: block;
  }
}

/* 404 Error Widget */
.error-widget {
  background: var(--color-background);
  border: 3px solid var(--color-primary);
  padding: 0.9375rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 3rem 2rem;
}

.error-message {
  font-family: "Ari-W9500 Display", monospace;
  font-size: 1.5rem;
  color: var(--color-secondary);
  text-align: center;
  line-height: 1.6;
}

.error-description {
  font-family: "Ari-W9500 Display", monospace;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
}