@import url('https://fonts.googleapis.com/css2?family=IM+Fell+DW+Pica:ital@0;1&family=Uncial+Antiqua&display=swap');

/* =============================== GLOBAL STUFF =============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =============================== FOUNDATIONAL STUFF =============================== */
body {
  display: flex;
  flex-direction: column;
  background-color: #000022;
  color: #aaddff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: #ffffff;
}

.parallax {
  position: relative;
  height: 80vh;
  margin: 20px 0;
  overflow: hidden;
}

.parallax-img {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 160%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
}

.parallax-free {
  position: absolute;
  width: 120px;
  height: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
  will-change: transform;
}

.container {
  min-height: 250vh;
}

.outlined-image {
  outline: 5px solid #aaddff;
  display: block;
  max-width: 100%
}

/* =============================== STRUCTURE CONTAINERS =============================== */
.main-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* =============================== BLOCK ELEMENTS =============================== */
h1 {
  margin-left: 10px;
  padding-left: 10px;
  margin-bottom: 20px;
  font-family: 'Uncial Antiqua', serif;
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(170, 221, 255, 0.5);
}

h2, p, img {
  margin-left: 10px;
  padding-left: 10px;
  margin-bottom: 5px;
  font-family: 'IM Fell DW Pica', serif;
  font-size: 16px;
}

ul {
  margin-left: 20px;
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

ul li {
  margin: 0;
  padding: 2px 0;
}

/* =============================== SPECIFIC SECTIONS =============================== */
header {
  background-color: #000000;
  padding: 20px;
  color: #99ddff;
  position: relative;
  z-index: 10; /* Keeps navbar sitting safely on top of everything */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1.4rem;
  color: #99ddff;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1.1rem;
  color: #aaddff;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-menu a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.nav-menu .active {
  color: #ffffff;
  border-bottom: 1px dashed #99ddff;
}

header p {
  margin: 0;
  padding: 0;
  background-color: #000000;
  font-family: 'IM Fell DW Pica', serif;
}

footer {
  margin-top: 50px;
  padding: 30px 20px;
  background-color: #000000;
  text-align: center;
  border-top: 1px solid #dddddd;
  position: relative;
  z-index: 10;
}

footer img {
  display: block;
  margin: 15px auto 0;
  max-width: 200px;
  height: auto;
}

footer p {
  margin: 0;
  padding: 0;
  background-color: #000000;
}

/* =============================== STEAM PROFILE WINDOW =============================== */

.steam-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 10px 20px;
}

.steam-stats .stat {
  display: flex;
  flex-direction: column;
  min-width: 130px;
  padding: 12px 16px;
  background-color: #000000;
  border: 2px solid #111133;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(153, 221, 255, 0.2);
}

.stat-value {
  font-family: 'Uncial Antiqua', serif;
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(170, 221, 255, 0.5);
}

.stat-label {
  font-family: 'IM Fell DW Pica', serif;
  font-size: 1rem;
  color: #aaddff;
}

.perfect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 10px 10px 20px;
}

.perfect-grid a {
  text-decoration: none;
}

.perfect-grid .no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 8px;
  text-align: center;
  background-color: #000000;
  border: 2px solid #111133;
  border-radius: 8px;
  font-family: 'IM Fell DW Pica', serif;
  color: #aaddff;
}

/* Reset the global img margin/padding for these thumbnails */
.perfect-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 2px solid #111133;
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.perfect-grid a:hover img,
.perfect-grid a:focus-visible img {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

/* =============================== COMPILED SNOWFLAKE SNOW SCENE =============================== */
.snow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  top: -20px;
  
  background-image: url('Snowflake.png');
  background-size: contain;
  background-repeat: no-repeat;
  
  background-color: transparent; 
  border-radius: 0;
  
  animation: fall linear infinite;
  
  box-shadow: none; 
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(105vh) rotate(360deg);
  }
}

.snowflake:nth-child(1)  { left: 10%; width: 20px; height: 20px; animation-duration: 8s;  animation-delay: 0s; }
.snowflake:nth-child(2)  { left: 20%; width: 35px; height: 35px; animation-duration: 12s; animation-delay: 1.5s; opacity: 0.6; }
.snowflake:nth-child(3)  { left: 35%; width: 15px; height: 15px; animation-duration: 6s;  animation-delay: 0.5s; }
.snowflake:nth-child(4)  { left: 50%; width: 25px; height: 25px; animation-duration: 10s; animation-delay: 3s; }
.snowflake:nth-child(5)  { left: 65%; width: 18px; height: 18px; animation-duration: 7s;  animation-delay: 2s; }
.snowflake:nth-child(6)  { left: 80%; width: 40px; height: 40px; animation-duration: 14s; animation-delay: 1s; opacity: 0.5; }
.snowflake:nth-child(7)  { left: 90%; width: 22px; height: 22px; animation-duration: 9s;  animation-delay: 4s; }
.snowflake:nth-child(8)  { left: 25%; width: 15px; height: 15px; animation-duration: 11s; animation-delay: 5s; }
.snowflake:nth-child(9)  { left: 45%; width: 30px; height: 30px; animation-duration: 13s; animation-delay: 0.2s; }
.snowflake:nth-child(10) { left: 75%; width: 18px; height: 18px; animation-duration: 8s;  animation-delay: 2.5s; }
.snowflake:nth-child(11) { left: 15%; width: 25px; height: 25px; animation-duration: 9s;  animation-delay: 6s; }
.snowflake:nth-child(12) { left: 60%; width: 35px; height: 35px; animation-duration: 15s; animation-delay: 0.8s; }
