/* 
 * MoonDrop Games - Main Stylesheet
 */

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
}


/* Home Icon */
.home-icon {
  display: flex;
  margin-right: 30px;
}
.home-icon .icon {
  width: 40px;
  height: 40px;
  fill: white;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Layout */
.navbar-container,
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Bar Styles */
.navbar {
  background-color: #3A3F6C;
  width: 100%;
}

.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

/* Desktop Navigation */
.navbar-menu {
  display: flex;
  justify-content: space-between; /* This helps with responsive spacing */
  align-items: center;
  width: 100%;
}
/* Create a wrapper for the nav links to control positioning */
.nav-wrapper {
  display: flex;
  justify-content: center;
  flex: 1; /* This allows it to take up available space */
  padding: 0 20px; /* Add some padding on both sides */
}

/* styling for the big links at the top of nav bar */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-between; /* Even spacing between menu items */
  width: 100%;
  max-width: 1000px;
}
.nav-links li {
  margin: 0;
}
.nav-links a {
  position: relative;
  font-family: 'Fredoka One', cursive;
  font-size: 32px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  padding: 10px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 6px;
  bottom: 10px; /* Significantly increased to move it higher */
  left: 0;
  background-color: white;
  border-radius: 3px;
  opacity: 0;
}
.nav-links a:hover::after {
  width: 100%;
  opacity: 1;
}
.nav-links a.active::after {
  width: 100%;
  opacity: 0.5;
}



/* Search Icon */
.icon {
  width: 40px;
  height: 40px;
  fill: white;
}

/* Make search icon larger */
.search-icon-desktop .icon,
.search-icon-mobile .icon {
  width: 40px;
  height: 40px;
}

.search-icon-desktop {
  display: flex;
  margin-left: 30px;
}

/* Simple Mobile Dropdown with Checkbox Hack */
.mobile-dropdown {
  position: relative;
  display: none;
}

/* Mobile Title and Search Icon */
.site-title, 
.search-icon-mobile {
  display: none;
}

/* Hide the checkbox */
.menu-checkbox {
  display: none;
}

.dropbtn {
  background-color: #3A3F6C;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
}

/* Overlay to detect clicks outside menu */
.menu-checkbox:checked ~ .menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 990;
  cursor: default;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: #3A3F6C;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

/* Show dropdown when checkbox is checked */
.menu-checkbox:checked ~ .dropdown-content {
  display: block;
}

.dropdown-content a {
  font-family: 'Fredoka One', cursive;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-transform: uppercase;
  font-size: 24px;
}

.dropdown-content a:hover {
  background-color: #4B517E;
}

/* Mobile styles */
@media (max-width: 1024px) {
	/* Mobile title styling */
  .site-title {
    font-family: 'Berkshire Swash', cursive;
    color: white;
    font-size: 28px;
    text-decoration: none;
  }
  .site-title:hover {
    text-decoration: none;
    color: #f0f0f0;
  }
	
  .navbar-menu {
    display: none;
  }
  
  .navbar-container {
    justify-content: space-between;
  }
  
  /* Display mobile elements */
  .mobile-dropdown, 
  .site-title,
  .search-icon-mobile {
    display: inline-block;
  }
  
  /* Mobile title styling */
  .site-title {
    font-family: 'Berkshire Swash', cursive;
    color: white;
    font-size: 28px;
  }
}

/* Main Content Background */
.main-content {
  position: relative;
  min-height: calc(100vh - 80px - 80px); /* Viewport height minus navbar and footer */
  background-image: url('/https/moondropgames.com/image/pink-clouds-and-moon.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* This makes the image stay in place while content scrolls */
  padding: 0; /* Remove padding completely */
}





/* Desktop Logo */
.desktop-logo-container {
  text-align: center;
  padding: 20px 20px;
  display: flex;
    padding-bottom: 0px;
  flex-direction: column;
  align-items: center;
}

/* Allow flex layout when there's an image */
.desktop-logo-container.with-image {
  flex-direction: row;
  align-items: center;
  gap: 30px;
  padding-bottom: 0px;
  text-align: left;
  justify-content: center; /* Centers the content */
}

.desktop-logo {
  font-family: 'Berkshire Swash', cursive;
  font-size: 150px;
  margin: 0;
  line-height: 1.2;
}

/* Tag image container for category pages */
.tag-image-container {
  position: relative;
  flex-shrink: 0;
  width: 100px; /* Matches game thumbnails */
  height: 100px;
  transition: transform 0.3s ease;
  overflow: visible;
  border-radius: 10px;
}

/* Similar styling to game thumbnails */
.tag-image-container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(228, 228, 228, 0.9));
  border-radius: 14px;
  z-index: 0;
  box-shadow: 2px 8px 0 rgba(125, 102, 146, 0.5);
}

.tag-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}

/* Responsive font sizing for desktop logo */
@media (max-width: 1200px) {
  .desktop-logo {
    font-size: 120px;
  }
}

@media (max-width: 1024px) {
  .desktop-logo {
    font-size: 100px;
  }
}

/* Make smaller on very small screens */
@media (max-width: 480px) {
  .desktop-logo {
    font-size: 80px;
  }
  /* Now switch to column layout as screen is quite small */
  .desktop-logo-container.with-image {
    flex-direction: column;
    text-align: center;
  }
}






/* Content Section Styles */
.content-title {
  font-family: 'Berkshire Swash', cursive;
  font-size: 80px;
  margin: 0 0 20px 0;
  text-align: center;
  line-height: 1.2;
}
/* Responsive content title sizing */
@media (max-width: 1200px) {
  .content-title {
    font-size: 70px;
  }
}
@media (max-width: 1024px) {
  .content-title {
    font-size: 55px;
  }
}
@media (max-width: 768px) {
  .content-title {
    font-size: 45px;
  }
}
@media (max-width: 480px) {
  .content-title {
    font-size: 34px;
  }
}
@media (max-width: 320px) {
  .content-title {
    font-size: 28px; /* Even smaller on very small screens */
  }
}

.content-description {
  font-family: 'Afacad', sans-serif;
  font-size: 18px;
  text-align: left;
  line-height: 1.6; /* Slightly increased line height for better readability at smaller size */
}
/* Description below thumbnails */
.content-description-container {
  width: 100%;
  margin: 60px 0 20px 0; 
  padding: 0 20px;
}




/* Tag page specific */
.tag-page-content, 
.tag-page-description {
    max-width: 1460px;
    margin: 0 auto 0 auto;  /* 40px margin = no background */
    padding: 0 20px 20px 20px;
}



/* Games Grid Layout */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start; /* Changed from center to flex-start */
  width: fit-content; /* This makes the container only as wide as needed */
  max-width: 100%; /* Ensure it doesn't exceed the parent width */
  margin-left: auto;
  margin-right: auto;
}
.game-thumbnail {
  position: relative;
  width: 100px;
  height: 100px;
  transition: transform 0.3s ease;
  overflow: visible;
  border-radius: 10px;
}
/* Gradient stroke + 10px drop shadow */
.game-thumbnail::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(228, 228, 228, 0.9));
  border-radius: 14px;
  z-index: 0;
  box-shadow: 2px 8px 0 rgba(125, 102, 146, 0.5); /* drop shadow */
}
/* Optional hover overlay */
.game-thumbnail::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #44335A;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  z-index: 1;
}
.game-thumbnail:hover {
  transform: scale(1.05);
}
.game-thumbnail:hover::after {
  opacity: 0.35;
}
/* Image layer */
.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}
/* Game name */
.game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 4px #44335A, -1px -1px 4px #44335A, 1px -1px 4px #44335A, -1px 1px 4px #44335A;
  z-index: 3;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.game-thumbnail:hover .game-name {
  opacity: 1;
  transform: translateY(0);
}




/* Fixed-width Games Grid Layout */
.games-grid-fixed {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 20px;
    margin: 0 auto;
    padding-top: 20px;
    max-width: 100%;
    justify-content: center;
}
/* Large Game Thumbnail */
.game-thumbnail-large {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    width: 220px;
    height: 220px;
    transition: transform 0.3s ease;
    overflow: visible;
    border-radius: 10px;
}
/* Gradient stroke + drop shadow for large game thumbnails */
.game-thumbnail-large::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(228, 228, 228, 0.9));
    border-radius: 14px;
    z-index: 0;
    box-shadow: 2px 8px 0 rgba(125, 102, 146, 0.5);
}
/* Hover overlay for large game thumbnails */
.game-thumbnail-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #44335A;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    z-index: 1;
}
.game-thumbnail-large:hover {
    transform: scale(1.05);
}
.game-thumbnail-large:hover::after {
    opacity: 0.35;
}
/* Image with fixed size for large game thumbnails */
.game-thumbnail-large img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}
/* Large game thumbnail name */
.game-thumbnail-large-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 4px #44335A, -1px -1px 4px #44335A, 1px -1px 4px #44335A, -1px 1px 4px #44335A;
    z-index: 3;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.game-thumbnail-large:hover .game-thumbnail-large-name {
    opacity: 1;
    transform: translateY(0);
}
/* Category Thumbnail (Small) */
.category-thumbnail {
    position: relative;
    width: 100px;
    height: 100px;
    transition: transform 0.3s ease;
    overflow: visible;
    border-radius: 10px;
}
/* Gradient stroke + drop shadow for category thumbnails */
.category-thumbnail::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(228, 228, 228, 0.9));
    border-radius: 14px;
    z-index: 0;
    box-shadow: 2px 8px 0 rgba(125, 102, 146, 0.5);
}
/* White background for category thumbnails */
.category-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border-radius: 10px;
    z-index: 1;
}
.category-thumbnail:hover {
    transform: scale(1.05);
}
/* Category content container */
.category-thumbnail-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
/* Category image container */
.category-thumbnail-image {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 5px;
}
/* Category image */
.category-thumbnail img {
    width: 75px;
    height: 75px;
    object-fit: cover;
}
/* Category name - always visible */
.category-thumbnail-name {
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #44335A;
    padding: 2px 2px;
    margin-top: auto;
}
a.category-thumbnail {
    text-decoration: none;
}
a.category-thumbnail:hover {
    text-decoration: none;
}
/* Large Category Thumbnail */
.category-thumbnail-large {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    width: 220px;
    height: 220px;
    transition: transform 0.3s ease;
    overflow: visible;
    border-radius: 20px;
    margin: 0;
}
/* Gradient stroke + drop shadow for large category thumbnails */
.category-thumbnail-large::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(228, 228, 228, 0.9));
    border-radius: 24px;
    z-index: 0;
    box-shadow: 2px 8px 0 rgba(125, 102, 146, 0.5);
}
/* White background for large category thumbnails */
.category-thumbnail-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border-radius: 20px;
    z-index: 1;
}
.category-thumbnail-large:hover {
    transform: scale(1.05);
}
/* Center category content */
.category-thumbnail-large-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}
/* Category image container for large thumbnails */
.category-thumbnail-large-image {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 10px;
}
/* Category image for large thumbnails */
.category-thumbnail-large img {
    width: 170px;
    height: 170px;
    object-fit: cover;
}
/* Category name for large thumbnails - always visible */
.category-thumbnail-large-name {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #44335A;
    padding: 10px 5px;
    margin-top: auto;
}
a.category-thumbnail-large {
    text-decoration: none;
}
a.category-thumbnail-large:hover {
    text-decoration: none;
}
/* Responsive breakpoint for thumbnail sizes */
@media (max-width: 515px) {
    /* On small screens, large game thumbnails become same size as small ones */
    .game-thumbnail-large {
        width: 100px;
        height: 100px;
        grid-column: span 1;
        grid-row: span 1;
    }
    .game-thumbnail-large img {
        width: 100px;
        height: 100px;
    }
    .game-thumbnail-large-name {
        font-size: 12px;
    }
    /* Category thumbnails also become smaller on small screens */
    .category-thumbnail-large {
        width: 100px;
        height: 100px;
        grid-column: span 1;
        grid-row: span 1;
    }
    .category-thumbnail-large::before {
        border-radius: 14px;
    }
    .category-thumbnail-large::after {
        border-radius: 10px;
    } 
    .category-thumbnail-large-image {
        width: 75px;
        height: 75px;
        margin-top: 5px;
    }
    .category-thumbnail-large img {
        width: 75px;
        height: 75px;
    }
    .category-thumbnail-large-name {
        font-size: 11px;
        padding: 2px 2px;
    }
}
















/* Related tags section */
.related-tags-section {
  margin: 40px 0;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 20px;
}
.related-tags-section h2 {
  font-family: 'Berkshire Swash', cursive;
  font-size: 32px;
  margin-bottom: 20px;
  color: #44335A; /* Default color - will be overridden by inline style if needed */
}
.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
}
.related-tags li a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #30315c; /* Default color - will be overridden by inline style if needed */
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: transform 0.2s, background-color 0.2s;
}
.related-tags li a:hover {
  transform: scale(1.05);
  background-color: #4b4c7d; /* Lighter version of default color */
}








