/*
 Theme Name:   Hangman Game Theme
 Theme URI:    https://www.twistertools.com/
 Description:  The classic hangman game with a twist! Guess the word before the time runs out. Play now and test your vocabulary skills!
 Author:       MC
 Author URI:   https://www.twistertools.com/
 Template:     blocksy
 Version:      1.0.1
 Text Domain:  blocksy-child
*/

body {
  background-color: #1a202c;
  background: linear-gradient(to bottom, #1f2937, #2d3748, #000000);
}

/* Remove bottom margin on caption headings */
.category-grid .category-card .category-title {
  margin-block-end: 0 !important;
}

/* Grid container */
.category-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  padding: 0 1rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Category card styling */
.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  aspect-ratio: 4/3; /* Add aspect ratio to cards */
}

.category-card:hover {
  transform: translateY(-5px);
}

/* Image container */
.card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover img {
  transform: scale(1.05);
}

/* Title styling */
.category-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 20%, transparent 100%);
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1;
}

#post-15 {
  text-align: center;
}

#post-15 ol, #post-15 ul {
  display: inline-block;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
  }
}

@media (max-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .category-grid {
      grid-template-columns: 1fr;
  }
  
  .category-title {
      font-size: 1rem;
      padding: 1rem;
  }
}