:root {
  --bg-color: #232026;
  --text-color: #E9D8FF;
  --nav-bg: #3A363F80;
  --link-hover: #9E60E9;
  --navbar-link: #E9D8FF;
  --grid: #1A1123;
  --back: black;
}

body {
  margin: 0;
  font-family: 'Madimi One';
  background-color: var(--bg-color);
  color: var(--text-color);
  text-shadow: 0 0 5px var(--back);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-shift 10s linear infinite;
  will-change: background-position;
  transition: background 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

@keyframes grid-shift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px -100px;
  }
}

.content {
    width: 90%;
    max-width: 960px;
    margin: auto;
    font-size: 1.2rem;
    text-align: center;
}

.logo img {
    height: 40px;
    transition: transform 0.25s ease;
}

    .logo img:hover {
        transform: scale(1.05);
    }

.navbar {
  width: 100%;
  background-color: var(--nav-bg);
  padding: 0.5rem 0; 
  backdrop-filter: blur(2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.25);
  transition: background 0.25s;
}

.easy {
    display:none;
}

.navbar-inner {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    flex: 1 1 auto;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 auto;
}

    .nav-links li {
        list-style: none;
    }

@media (max-width: 768px) {
    .navbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

        .nav-links li {
            width: 100%;
            list-style: none;
        }
}

.nav-links a {
  color: var(--navbar-link);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--link-hover);
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

.features ul {
  list-style: none;
  padding: 0;
  font-size: 20px;
}

.features li {
  margin-bottom: 0.5rem;
}

.about, .features, .gallery, .stats, .credits {
  margin-top: 2rem;
}

section h2 {
  margin-bottom: 0.5rem;
  font-size: 32px;
}

.carousel-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 1rem auto;
    border-radius: 8px;
    background-color: rgba(158, 96, 233, 0.5);
    box-shadow: 0 0 15px rgba(158, 96, 233, 0.5);
}

.screenshots-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 10px;
}

    .screenshots-carousel img {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex-shrink: 0;
        user-select: none;
    }   


.widgets-section {
    text-align: center;
    margin: 2rem auto;
    max-width: 1100px;
}

    .widgets-section h2 {
        font-size: 2rem;
        color: var(--text-color);
        margin-bottom: 1rem;
    }

.widgets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.gameStats li{
    list-style: none;
}

.gameStats ul {
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.achievementIndividual {
    backdrop-filter: blur(2px);
}

.achievementIndividual img {
    border-radius: 8px;
}

.login {
    text-decoration: none;
    color: var(--navbar-link);
    border: 2px solid var(--navbar-link);
    border-radius: 8px;
    backdrop-filter: blur(2px);
    padding: 2px;
    transition: color 0.25s ease, border 0.25s ease;
}

    .login:hover {
        color: var(--link-hover);
        border: 2px solid var(--link-hover);
    }