
:root {
  --header-footer-bg: #1a0f0a;
  --primary-color: #ff5500;
  --accent-hover: #ff9966;
  --light-color: #fff;
  --muted-color: rgba(255, 255, 255, 0.7);
  --text-headline: #000;
  --text-default: #fff;
  --background-color: #0b0b0b;
  --boxed-bg: rgba(0, 0, 0, 0.5);
  --border-color: rgba(255, 85, 0, 0.4);
  --corner: 14px;
  --standard-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
  --small-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 12px rgba(255, 85, 0, 0.5);
}

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

html,
body {
  height: 100%;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-default);
}

.withbackground {
  background: linear-gradient(-45deg, #d14a00 0%, #ff7733 8%, #191919 40%, #0b0b0b 100%);
  background-size: 500% 500%;
  background-attachment: scroll;
  animation: gradient 30s ease-in-out infinite alternate;
}

@keyframes gradient {
  0%   { background-position: 20% 50%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 20% 50%; }
}


.hero-title,
.page h1 {
  font-family: 'Bungee Spice', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
  text-align: center;
  text-shadow:
    0 0 6px #000,
    0 0 15px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 0, 0, 0.6),
    0 0 45px rgba(0, 0, 0, 0.5);
  animation: pulseGlow 3s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

h1, .hero-title {
  font-weight: 800;
  font-size: 2.5rem;
  margin-top: 40px;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--light-color);
  margin-top: 1rem;
  margin-bottom: 0.50rem;
  text-align: left;
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

.spacer {
  margin-bottom: 3rem;
}


.menu ul {
  list-style: none;
}

.menu ul li a {
  padding: 4px 10px;
  border-radius: var(--corner);
  transition: background-color 0.3s;
  color: var(--light-color);
  text-decoration: none;
  font-weight: bold;
}

.menu ul li.active a {
  background-color: var(--primary-color);
  color: black;
  text-decoration: none;
  box-shadow: var(--small-shadow);
}

.menu ul li:not(.active) a:hover {
  background-color: var(--border-color);
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}


footer {
  grid-area: footer;
  background-color: var(--header-footer-bg);
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted-color);
  height: 65px;
  min-height: 65px;
  max-height: 65px;
  flex-shrink: 0;
  z-index: 16;
}

body > header {
  grid-area: menu;
  position: relative;
  z-index: 1;
}


.menu-toggle-input,
.menu-toggle-btn,
.menu-overlay {
  display: none;
}

/* NARROW VIEW  */
@media (max-width: 800px) {
  .menu-toggle-input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .menu-toggle-btn,
  .menu-overlay {
    display: block;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 65px;
    z-index: 14;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: rgba(0, 0, 0, 0.5);
  }

  .menu-toggle-input:checked ~ .menu-overlay {
    pointer-events: auto;
    opacity: 1;
  }

  .menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    z-index: 16;
    background-color: var(--header-footer-bg);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .menu-toggle-icon {
    width: 22px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 6px 0 var(--primary-color), 0 -6px 0 var(--primary-color);
  }

  body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--background-color);
  }

  body > header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 15;
    width: 0;
    overflow: visible;
    pointer-events: none;
  }

  body > header .menu {
    pointer-events: auto;
  }

  main {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(40,0,0,0.9) 100%);
    padding: 32.5px 4px;
    box-shadow: 6px 0 8px rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--border-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .menu-toggle-input:checked ~ header .menu {
    transform: translateX(0);
  }

  footer {
    position: relative;
    z-index: 20;
  }

  .menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 38px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .content {
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    height: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    padding-bottom: 16px;
    gap: 16px;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .content.is-scrolling {
    scrollbar-color: var(--primary-color) transparent;
  }

  .content::-webkit-scrollbar {
    width: 12px;
  }

  .content::-webkit-scrollbar-track {
    background: transparent;
  }

  .content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .content.is-scrolling::-webkit-scrollbar-thumb {
    background: var(--primary-color);
  }

  .content h1,
  .content .hero-title {
    align-self: center;
    width: 100%;
    text-align: center;
  }

  .boxed {
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--corner);
    padding: 16px;
    margin: 0;
    background-color: var(--boxed-bg);
    box-shadow: var(--standard-shadow);
    width: 100%;
  }

}

/*  WIDE VIEW */
@media (min-width: 801px) {
  body > header {
    z-index: 2;
  }

  body {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 64px 1fr 64px;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: var(--background-color);
    grid-template-areas:
      "menu"
      "content"
      "footer";
  }

  .menu {
    grid-area: menu;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    min-width: 100%;
    flex-shrink: 0;
    background-color: var(--header-footer-bg);
    padding: 0 16px;
    box-shadow: var(--standard-shadow);
    border-bottom: 1px solid var(--border-color);
  }

  .menu ul {
    display: inline-flex;
    flex-direction: row;
    gap: 25px;
    width: auto;
    margin: 0;
    padding: 0;
  }

  main {
    grid-area: content;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }

  .content {
    flex: 1;
    min-height: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 16px;
    padding: 16px;
    padding-bottom: 16px;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .content.is-scrolling {
    scrollbar-color: var(--primary-color) transparent;
  }

  .content::-webkit-scrollbar {
    width: 12px;
  }

  .content::-webkit-scrollbar-track {
    background: transparent;
  }

  .content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 6px;
    transition: background 0.2s ease;
  }

  .content.is-scrolling::-webkit-scrollbar-thumb {
    background: var(--primary-color);
  }

  .content h1,
  .content .hero-title {
    align-self: center;
    width: 100%;
    text-align: center;
  }

  .boxed {
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--corner);
    max-width: 75vw;
    padding: 16px;
    align-self: center;
    background-color: var(--boxed-bg);
    box-shadow: var(--standard-shadow);
  }

}

/* PAGE SECTIONS */
.page {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.page.visible {
  display: flex;
  opacity: 1;
}

.page {
  min-width: 0;
  max-width: 100%;
}


.player-box {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1rem;
  background-color: var(--boxed-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--corner);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  align-self: center;
}

.player {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.player iframe {
  display: block;
  width: 100%;
  height: 600px;
}




.project-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 280px));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  min-width: 0;
  align-self: center;
  justify-content: center;
}

.project-card {
  display: block;
  text-decoration: none;
  color: var(--light-color);
  background-color: var(--boxed-bg);
  padding: 1rem;
  border-radius: var(--corner);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.4);
  background: rgba(255, 85, 0, 0.1);
}

.project-card h3 {
  color: var(--primary-color);
  font-family: 'Bungee Spice', cursive;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: var(--accent-hover);
}

/* About - Download page */
.download-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--accent-hover);
  text-decoration: none;
  border: 2px solid var(--accent-hover);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.5);
}

.download-btn:hover {
  color: var(--light-color);
  background: rgba(255, 85, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.8);
}

.screenshot {
  display: block;
  max-width: 90%;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: var(--standard-shadow);
}

.centered-block {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.6;
  font-size: 1.1rem;
  color: var(--light-color);
}

.centered-block a,
a[href^="mailto:"] {
  color: var(--primary-color);
}

.centered-block a:hover,
a[href^="mailto:"]:hover {
  color: var(--accent-hover);
}

@supports (height: 100dvh) {
  html, body {
    height: 100dvh;
  }
}
