/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #cdd6f4;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
.logo{
  color: white;
}
.logo-img {
  height: 3em;
  vertical-align: middle;
  margin-right: 8px;
}
/* Header */
header {
  background-color: #00000079; /* Mantle */
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

header span {
  font-size: 1.5em;
  font-weight: bold;
}

nav a {
  color: #cdd6f4; /* Text */
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: #b4befe; /* Lavender */
}

/* Dropdown */
#modpack-list {
  position: absolute;
  top: 100%;
  right: 0;
  background: #02020381; /* Surface0 */
  list-style: none;
  padding: 10px;
  border: 1px solid #45475a;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 999;
}

#modpack-list.show {
  backdrop-filter: blur(10px);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#modpack-list li {
  margin: 5px 0;
}

#modpack-list li a {
  color: #cdd6f4;
  text-decoration: none;
}

#modpack-list li a:hover {
  color: #89b4fa; /* Blue */
}

/* Main */
main {
  flex: 1;
  padding: 25px;
}

main section {
  margin-bottom: 40px;
}

/* About & Partners */
#about, #partners {
  backdrop-filter: blur(10px);
  background-color: #0000007c; /* Surface0 */
  padding: 20px;
  border-radius: 8px;
}

#about h2, #partners h2 {
  margin-bottom: 10px;
  color: #cdd6f4;
}

/* Modpacks Container */
.modpacks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.modpacks-title {
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0px 0px 10px black;
  padding: 15px;
  border-radius: 8px;
  background-color: #06060870;
  backdrop-filter: blur(10px);
  text-align: center;
}

/* Individual Modpack Section */
.modpacks > section {
  background-color: #06060870;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 250px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

.modpacks > section:hover {
  background-color: #45475a65;
}

.modpacks > section p {
  font-weight: 600;
  margin-bottom: 5px;
  color: #cdd6f4;
}

.modpacks > section span {
  font-size: 0.95em;
  color: #bac2de; /* Subtext1 */
}

.modpacks > section a {
  display: inline-block;
  margin-top: 8px;
  color: #89b4fa;
  text-decoration: none;
}

.modpacks > section a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  text-align: center;
  padding: 15px;
  color: #6c7086; /* Overlay0 */
  font-size: 0.9em;
  background-color: #18182577;
  backdrop-filter: blur(10px);
  border-top: 1px solid #313244;
}

/* General link styles */
a {
  color: #89b4fa; /* Blue */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #b4befe; /* Lavender */
  text-decoration: underline;
}

a:visited {
  color: #9399b2; /* Subtext0 (more muted) */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--slideshow-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 1;
  transition: background-image 1s ease-in-out;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}
