/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #101010;
  color: #e0e0e0;
}

/* Banner Image */
.banner {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 0;
  filter: blur(1px);
}

/* Navigation Bar */
nav {
  background-color: #2c2c2c;
  margin-top: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 15px;
  justify-content: center; /* Center the nav items */
  flex-grow: 1;
}

.nav-links li a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 8px 16px;
}

.nav-links li a:hover {
  background-color: #444;
  border-radius: 4px;
}

.nav-links li a.nav-link-active {
  background-color: #444;
  border-radius: 4px;
  font-weight: bold;
  color: #ffffff;
}

.nav-menu-title {
  display: none;
}

.nav-menu-header {
  position: relative;
  display: inline-block;
}

.custom-tooltip {
  visibility: hidden;
  background-color: #444;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.9rem;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip-container:hover .custom-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 600px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }
  
  .nav-menu-title {
    display: none;
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
  }
}

/* Page Title */
.page-title {
  text-align: center;
  margin: 10px 0px;
  font-size: 1.5em;
  color: #ccc;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: auto;
  padding: 2px 20px 20px 20px;
  flex: 1;
}

.centered-content {
  text-align: center;
}

/* Hyperlinks */
a {
  color: #66aaff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Logo */
.logo-circle {
  display: block;
  margin: 1rem auto;
  max-width: 200px;
  border-radius: 50%;
}

/* Logo Speech Bubble */
.logo-speech-bubble-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-speech {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2rem;
}

.speech-bubble {
  position: relative;
  background: #2c2c2c;
  color: #e0e0e0;
  padding: 1.5rem 2rem;
  border-radius: 20px;
  max-width: 600px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
  word-break: normal;        /* Prevents breaking inside words */
  overflow-wrap: break-word; /* Allows wrapping at natural break points */
  hyphens: none;             /* Disables automatic hyphenation */
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  will-change: transform;
}

@media (max-width: 600px) {
  .speech-bubble {
    padding: 1rem;
    font-size: 1rem;
  }
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #2c2c2c transparent transparent transparent;
}

.speech-bubble p {
  text-align: center;
  margin-top: 0rem;
  margin-bottom: 0rem;
  margin-left: 0rem;
  margin-right: 0rem;
}

/* Main Page Container */
.main-page-container {
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Main Page Welcome */
.main-page-welcome-container h3 {
  font-size: 1.8rem;
  color: #cccccc;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: #2c2c2c;
  color: #e0e0e0;
  padding: 15px;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
}

/* Mods List */
.mods-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-items: center;
  grid-gap: 5px;
  grid-row-gap: 5px;
  margin: 25px 0px;
}

.mod-card {
  width: 100%;
  background-color: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.mod-card:hover {
  background-color: #2a2a2a;
  border-color: #444;
}

.mod-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid #333;
}

.mod-info {
  padding: 1rem;
  color: #e0e0e0;
}

.mod-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #66aaff; /* Must be same color as Hyperlinks */
  transition: text-decoration 0.3s ease;
}

.mod-card:hover .mod-title {
  text-decoration: underline;
}

.mod-game {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.3rem;
}

.mod-short-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* FAQ */
.faq-list-container {
  margin-top: 2rem;
}

.faq-item {
  background-color: #2c2c2c;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.faq-item h4 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #f0f0f0;
}

.faq-item p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Contact */
.contact-list-container {
  margin-top: 2rem;
}

.contact-item {
  background-color: #2c2c2c;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 1rem auto;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.contact-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Single Mod */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-items: center;
  grid-gap: 5px;
  grid-row-gap: 5px;
  margin: 25px 0px;
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
  will-change: transform;
}

.screenshot-grid img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.hidden {
  display: none;
}

.mod-long-text-area {
  text-align: left;
}

.back-link {
  margin: 40px 10px 40px 40px;
  font-size: 1.2em;
}
