@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap");

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #25253a;
  --accent-pink: #ff6b9d;
  --accent-blue: #6b9dff;
  --accent-purple: #9d6bff;
  --text-primary: #ffffff;
  --text-secondary: #c0c0d0;
  --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.2);
  --transition-normal: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  font-family: "Press Start 2P", cursive;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  background-image: none;
  line-height: 1.4; /* Reduced line height */
  min-height: 100vh;
  font-size: 0.9rem; /* Reduced base font size */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem; /* Reduced padding */
}

/* Fix for the header "Proll's School" - restore gradient */
.logo {
  font-family: "Press Start 2P", cursive;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
  letter-spacing: 1px;
  margin: 0.7rem 0;
  padding: 0.3rem 0;
  position: relative;
  display: block;
  text-align: center;
  width: 100%;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-pink), var(--accent-blue), transparent);
}

/* Fix for the "New Games" header - center it */
h1 {
  position: relative;
  padding: 0.5rem 0;
  margin: 1rem 0;
  overflow: hidden;
  text-align: center;
  font-family: "Press Start 2P", cursive;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

h1:before,
h1:after {
  content: "";
  position: absolute;
  height: 2px;
  width: 30%;
  top: 50%;
  background: linear-gradient(90deg, transparent, var(--accent-pink));
}

h1:before {
  left: 0;
}

h1:after {
  right: 0;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}

h2,
h3 {
  font-family: "Press Start 2P", cursive;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
  letter-spacing: 1px;
  margin-bottom: 0.7rem; /* Reduced margin */
  text-align: center;
}

h1 {
  font-size: 1.3rem;
} /* Smaller headings */
h2 {
  font-size: 1.1rem;
}
h3 {
  font-size: 0.9rem;
}

.button-container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem;
  background: linear-gradient(to right, rgba(26, 26, 46, 0.4), rgba(37, 37, 58, 0.4), rgba(26, 26, 46, 0.4));
  border-radius: 15px;
  margin: 0.8rem auto;
  max-width: 95%;
  box-shadow: inset 0 0 10px rgba(107, 157, 255, 0.1);
}

.button-container1 .button {
  background: linear-gradient(135deg, rgba(37, 37, 58, 0.9), rgba(26, 26, 46, 0.9));
  border-radius: 12px;
  padding: 0.6rem 1rem;
  min-width: 110px;
  border: 1px solid rgba(107, 157, 255, 0.2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Fix for the button highlight issue - make it cover the full button */
.button-container1 .button:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 157, 255, 0.1), rgba(255, 107, 157, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 11px;
}

.button-container1 .button:hover:before {
  opacity: 1;
  height: 100%;
}

/* Add a top border to the buttons for that accent */
.button-container1 .button:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-pink));
  opacity: 0.7;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.button-container1 .button:hover:after {
  opacity: 1;
}

.button-container1 .button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.button-container,
.button-container.new-games,
.button-container.regular-games {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center; /* Center the buttons */
  align-items: center;
  text-align: center;
  margin: 0 auto;
  gap: 0.6rem; /* Reduced gap */
  padding: 0.6rem; /* Reduced padding */
  position: relative;
  z-index: 1;
  text-align: center; /* Center button content */
}

/* Navigation buttons - smaller and more compact */
.button,
button[class*="Games"],
button[class*="Website"],
button[class*="Source"],
button[class*="Cheats"],
button[class*="Save"],
button[class*="Leaderboard"],
button[class*="Discord"] {
  background-color: var(--bg-secondary);
  border-radius: 10px; /* Slightly smaller radius */
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  padding: 0.6rem; /* Reduced padding */
  display: inline-block;
  width: auto;
  min-width: 100px; /* Smaller min-width */
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  margin: 0.2rem; /* Reduced margin */
  color: #ffffff;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(107, 157, 255, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
  border-radius: 10px;
}

.button:hover {
  transform: translateY(-2px); /* Smaller hover effect */
  background-color: var(--bg-tertiary);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.button:hover::before {
  opacity: 1;
}

.button img {
  width: 40px; /* Smaller images */
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.3rem; /* Reduced margin */
  border: 2px solid var(--accent-pink);
  box-shadow: 0 0 0 2px rgba(107, 157, 255, 0.3);
  transition: all var(--transition-normal);
}

.button:hover img {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.3);
  transform: scale(1.03); /* Smaller scale effect */
}

/* Changed button text to solid white */
.button span,
button[class*="Games"],
button[class*="Website"],
button[class*="Source"],
button[class*="Cheats"],
button[class*="Save"],
button[class*="Leaderboard"],
button[class*="Discord"] {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.75rem; /* Smaller font */
  font-family: "VT323", monospace; /* Ensure consistent font */
}

.button span {
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.75rem;
  font-family: "VT323", monospace; /* Ensure consistent font */
}

.game-section {
  margin: 1.2rem 0; /* Reduced margin */
  text-align: center;
}

/* Game card grid layout for better space usage */
.game-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Smaller cards */
  gap: 0.8rem; /* Reduced gap */
  margin: 0.8rem 0; /* Reduced margin */
}

.game-card {
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  padding: 0.8rem; /* Reduced padding */
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-2px); /* Smaller hover effect */
  background-color: var(--bg-tertiary);
}

.game-card-image {
  width: 60px; /* Smaller images */
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0.4rem auto; /* Reduced margin */
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
    linear-gradient(135deg, var(--accent-pink), var(--accent-blue)) border-box;
}

/* Better font for game cards */
.game-card-title {
  font-family: "VT323", monospace;
  font-size: 1.1rem; /* Smaller font */
  margin-bottom: 0.2rem; /* Reduced margin */
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

.game-list {
  list-style-type: none;
  padding: 0;
  margin: 0.4rem 0; /* Reduced margin */
  text-align: left;
}

.game-list li {
  padding: 0.2rem 0.4rem; /* Reduced padding */
  margin: 0.15rem 0; /* Reduced margin */
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  transition: all var(--transition-normal);
  font-size: 0.7rem; /* Smaller font */
}

.game-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px); /* Smaller hover effect */
}

.game-card-button {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  color: #ffffff;
  border: none;
  padding: 0.3rem 0.8rem; /* Reduced padding */
  border-radius: 9999px;
  margin: 0.4rem 0; /* Reduced margin */
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: inline-block;
  font-size: 0.7rem; /* Smaller font */
  margin-top: auto;
}

.game-card-button:hover {
  transform: translateY(-1px); /* Smaller hover effect */
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

/* Ensure all game titles have gradient effect and proper font */
.game-title,
[class*="game"] h3,
[class*="game"] h4,
[class*="game"] .title,
[id*="game"] h3,
[id*="game"] h4,
[id*="game"] .title,
.slope,
.retro-bowl,
.gunship,
.tvt-io,
.block-blast,
.idle-breakout,
.learn-to-fly,
.radiobasiscs,
.gun-mayhem,
.gun-mayhem-2,
.wall-smash,
.fnaf-1,
.fnaf-2,
.drift-boss {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "VT323", monospace !important; /* Force font family */
  font-size: 1.1rem; /* Smaller font */
  letter-spacing: 1px;
}

.section-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-pink),
    var(--accent-blue),
    var(--accent-purple),
    transparent
  );
  margin: 1.2rem auto; /* Reduced margin */
  width: 80%;
  max-width: 600px;
  border-radius: 2px;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  width: 3px; /* Smaller dots */
  height: 3px;
  border-radius: 50%;
  background: var(--accent-pink);
  top: -1px;
}

.section-divider::before {
  left: 20%;
}

.section-divider::after {
  right: 20%;
  background: var(--accent-blue);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.6rem; /* Reduced padding */
  background-color: var(--bg-secondary);
  border-radius: 9999px;
  margin-bottom: 0.8rem; /* Reduced margin */
  font-size: 0.7rem; /* Smaller font */
}

/* Search bar styling with more rounded corners */
input[type="text"],
input[type="search"] {
  background-color: #ffffff;
  color: #000000;
  border: 2px solid var(--accent-blue);
  border-radius: 9999px;
  padding: 5px 10px; /* Reduced padding */
  width: 100%;
  max-width: 350px; /* Smaller max-width */
  margin: 0 auto;
  display: block;
  font-family: "Press Start 2P", cursive;
  font-size: 0.65rem; /* Smaller font */
  box-shadow: 0 2px 8px rgba(107, 157, 255, 0.3);
}

/* Add a subtle glow effect to the search container */
.search-container {
  position: relative;
  margin: 1rem auto;
  max-width: 400px;
}

.search-container:after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue), var(--accent-purple));
  border-radius: 30px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  0% {
    opacity: 0.2;
    filter: blur(8px);
  }
  100% {
    opacity: 0.4;
    filter: blur(12px);
  }
}

/* Footer styling - change Discord and GitHub icons to pink on hover */
footer {
  padding: 0.8rem; /* Reduced padding */
  margin-top: 1rem; /* Reduced margin */
  background-color: var(--bg-secondary);
  text-align: center;
  font-size: 0.7rem; /* Smaller font */
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.social-icons {
  margin-bottom: 0.5rem; /* Reduced margin */
}

.social-icons a {
  margin: 0 8px; /* Reduced margin */
  font-size: 20px; /* Smaller icons */
  color: #5865f2; /* Discord's brand color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a.github {
  color: #333; /* GitHub color */
}

/* Change to pink on hover for both Discord and GitHub icons */
.social-icons a:hover,
.social-icons a.github:hover {
  color: var(--accent-pink) !important; /* Force pink color on hover */
}

/* Improved New Games section */
.new-games {
  position: relative;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.8), rgba(10, 10, 26, 0.8));
  border-radius: 15px;
  padding: 1.5rem 1rem;
  margin: 1rem auto;
  border: 1px solid rgba(255, 107, 157, 0.3);
  box-shadow: 0 0 20px rgba(157, 107, 255, 0.2), inset 0 0 15px rgba(107, 157, 255, 0.1);
  max-width: 95%;
}

.new-games:before {
  content: "NEW";
  position: absolute;
  top: -10px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  font-size: 0.6rem;
  padding: 3px 10px;
  border-radius: 10px;
  font-family: "Press Start 2P", cursive;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.new-games .button {
  background: linear-gradient(to bottom, rgba(110, 1, 1, 0.8), rgba(70, 0, 0, 0.9));
  border: 1px solid rgba(255, 107, 157, 0.3);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin: 0.5rem;
}

.new-games .button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 107, 157, 0.3);
  border: 1px solid rgba(255, 107, 157, 0.6);
}

.new-games .button img {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 107, 157, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.3);
}

.new-games .button:hover img {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent-pink);
  box-shadow: 0 0 15px rgba(255, 107, 157, 0.5);
}

.new-games .button span {
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ff8ba7, #ffc2d1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Make regular games section look better too */
.regular-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  justify-content: center;
}

.regular-games .button {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .button-container1 .button {
    min-width: 100px;
    padding: 0.5rem 0.8rem;
  }

  .new-games .button img {
    width: 50px;
    height: 50px;
  }

  .regular-games {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .button img,
  .game-card-image {
    width: 35px; /* Even smaller on mobile */
    height: 35px;
  }

  .logo,
  h1 {
    font-size: 1.1rem;
  }

  .game-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .button {
    min-width: 90px;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .button-container1 .button {
    min-width: 90px;
    padding: 0.4rem 0.6rem;
  }

  .new-games .button img {
    width: 45px;
    height: 45px;
  }

  .regular-games {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .button {
    padding: 0.4rem;
    min-width: 80px;
  }

  .logo,
  h1 {
    font-size: 1rem;
  }

  .game-card {
    padding: 0.6rem;
  }

  .game-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .button span {
    font-size: 0.65rem;
  }
}

/* Adding Some Sparkle */
body:after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url("https://www.transparenttextures.com/patterns/stardust.png");
  opacity: 0.1;
}

/* Fix for game cards at the bottom with blue text and no font */
.game-title,
[class*="game"] h3,
[class*="game"] h4,
[class*="game"] .title,
[id*="game"] h3,
[id*="game"] h4,
[id*="game"] .title,
.slope,
.retro-bowl,
.gunship,
.tvt-io,
.block-blast,
.idle-breakout,
.learn-to-fly,
.radiobasiscs,
.gun-mayhem,
.gun-mayhem-2,
.wall-smash,
.fnaf-1,
.fnaf-2,
.drift-boss,
.button span,
.game-card-title,
[class*="button"] span,
[id*="button"] span,
.black-jack,
.fnaf,
.dbz-devolution,
.just-fall,
.vex-3,
.vex-4,
.vex-5,
.vex-6,
.paper-io-2,
.bitlife,
.one,
.subway-surfers,
.smash-karts,
.slope-ball,
.moto-x3m,
.cookie-clicker,
.flappy-bird,
.temple-run,
.crossy-road,
.eggy-car-tycoon,
.retrobowl,
.riddle-school,
.square-fill,
.jetpack-joyride,
.geometry-dash,
.duck-life,
.gold-digger,
/* Add more specific selectors for bottom game cards */
  .button
  a
  span,
.regular-games .button a span,
.new-games .button a span {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-family: "VT323", monospace !important; /* Force font family */
  font-size: 1rem; /* Smaller font */
  letter-spacing: 1px;
  text-shadow: none;
}

/* Force black text in search inputs - high specificity override */
html body input[type="text"],
html body input[type="search"],
html body input[type="email"],
html body input[type="password"],
html body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .search-input,
html body [id*="search"],
html body [class*="search"],
html body form input {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  caret-color: #000000 !important;
}

/* Target input placeholder text as well */
::placeholder {
  color: #666666 !important;
  opacity: 1 !important;
}

/* Fix for any remaining blue text with no font issues */
a,
a span,
button a,
button a span {
  font-family: "VT323", monospace !important;
  text-decoration: none;
}

/* Ensure all button text is visible */
.button a {
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
}
/* Favorites Section Styling */
#favorites-section {
  margin: 2rem 0;
  position: relative;
}

#favorites-section h1 {
  position: relative;
  padding: 0.5rem 0;
  margin: 1rem 0;
  overflow: hidden;
  text-align: center;
  font-family: "Press Start 2P", cursive;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

#favorites-section h1:before,
#favorites-section h1:after {
  content: "";
  position: absolute;
  height: 2px;
  width: 30%;
  top: 50%;
  background: linear-gradient(90deg, transparent, #FFD700);
}

#favorites-section h1:before {
  left: 0;
}

#favorites-section h1:after {
  right: 0;
  background: linear-gradient(90deg, #FFA500, transparent);
}

#favorites-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.8), rgba(10, 10, 26, 0.8));
  border-radius: 15px;
  margin: 1rem auto;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), 
              inset 0 0 15px rgba(255, 215, 0, 0.1);
  max-width: 95%;
}

.favorite-star {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

.favorite-star:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
}

.button {
  position: relative;
}

.no-favorites-message {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

/* Animation for adding to favorites */
@keyframes star-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.star-animation {
  animation: star-pulse 0.5s ease;
}
.favorite-star {
  transition: all 0.3s ease;
}

.favorite-star:hover {
  transform: scale(1.2);
  color: gold !important;
}

.no-favorites-message {
  padding: 20px;
  color: #888;
  font-style: italic;
  text-align: center;
}

#favorites-section {
  margin-bottom: 20px;
}

.button {
  position: relative !important;
  overflow: hidden;
}
