/* Modern Gaming UI Styles inspired by Flame Launcher */
:root {
  --primary-color: #ff3a3a;
  --secondary-color: #1e1e1e;
  --accent-color: #4a90e2;
  --accent-color-hover: #357abd;
  --background-dark: #0a0a0a;
  --text-color: #333;
  --nav-height: 60px;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  justify-content: flex-start;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

/* Main Content */
.main-content {
  margin-top: var(--nav-height);
  padding: 2rem;
  min-height: calc(100vh - var(--nav-height));
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.game-card {
  background: rgba(30, 30, 30, 0.6);
  border-radius: 15px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(40, 40, 40, 0.7);
}

.game-info {
  text-align: center;
}

.game-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.game-description {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.8;
}

/* Buttons */
.play-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent-color);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.play-button:hover {
  background: var(--accent-color-hover);
  color: white;
}

/* Section Headers */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Loading Animation */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--primary-color);
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .game-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Additional Styles */
.rainbow-text.title-selectv{
  font-size: 9em;
  margin-top: 70px;
}

.play-button2{
margin-top: 30px;
}

.diff-bg{
background: url('About-bg.png') no-repeat center center fixed;
  background-size: cover;
}
.diff-docs-bg{
  background: url('docs-bg.png') no-repeat center center fixed;
  background-size: cover;
}

.website-button {
  font-size: 25px;
  padding: 10px;
  background-color: darkslategray;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  max-width: 100%;
  width: 450px;
  text-align: center;
  display: block;
  margin:auto;
}
.docs-button {
  font-size: 2em;
  padding: 10px;
  background-color: gray;
  color: white;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  max-width: 100%;
  width: 450px;
  text-align: center;
  display: block;
  margin:auto;
  margin-left: 0;
  margin-right: auto
}

.mcbutton:hover {
  background-color: darkgray;
  color: white;
}

#changelog {
  top: 69%;
  left: 4%;
  transform: translateY(-50%);
  position: fixed;
  background-color: rgb(49, 51, 54);
  height: 57vh;
  width: 25vw;
  padding-left: 1vw;
  padding-right: 1vw;
  padding-top: 1vw;
  padding-bottom: 1vw;
  border-radius: 1vw;
  color: white;
  max-width: 45vw;
  text-align: center;
  overflow: visible;
  font-size: calc(1.2vw);
}

.docs-button:not(.d-flex) img{
  width: 100%;
  display: block;
}

.website-button {
  font-size: 25px;
  background-color: darkolivegreen;
}


.website-button:hover
{
color: white
}
.discord-button {
  font-size: 25px;
  background-color: darkslateblue;
}


.discord-button:hover
{
color: white
}

.owl-nav button {
  pointer-events: auto;
  transition: .4s;
  background: rgb(255, 255, 255, .77) !important;
  color: #333 !important;
  width: 60px;
  height: 60px;
  border-radius: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
font-size:25px;
}

.owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  justify-content: space-between;
  display: flex;
  left: 0;
  padding: 0 2px;
}
.owl-dots {
  margin-top: 20px;
margin-bottom: 20px;
}

.rainbow-text{position: relative;}

.splash{
background-image: unset;
  color: unset;
  text-align: center;
  -webkit-text-stroke: 0;
/*	*/
position:absolute;
right:0;
top:calc(100% - 40px);
transform: rotate(-20deg);
color: yellow;
display:block;
font-size:34px;
}

.splash.bigtext{
    font-size: 28px;
  top: calc(100% - 60px);
  right: -30px;
}
.splash.smalltext{
top: calc(100% - 48px);
}
.btn-secondary {
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .5s ease-in-out;
}

.splash-404{
background-image: unset;
color: yellow;
font-size:26px;
}
.text-center {
  text-align: center;
}
.game-link {
  height: 400px;
  width: 300px;
}
.game-tile {
  background-color: #949494;
  height: 400px;
  width: 300px;
  color: #ffffff;
  border-radius: 30px;
  -webkit-animation: scale-down-center 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation: scale-down-center 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.game-tile:hover {
  text-decoration: none;
  -webkit-animation: scale-up-center 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: scale-up-center 0.3s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}
@-webkit-keyframes scale-up-center {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
@keyframes scale-up-center {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
@-webkit-keyframes scale-down-center {
  0% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes scale-down-center {
  0% {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
.game-icon {
  border-radius: 30px;
  width: 300px;
  height: 300px;
}
.game-title {
  font-size: 30px;
  color: #ffffff;
  text-align: center;
}
.flex-container {
  display: flex;
  flex-direction: row;
  order: 0;
  flex-grow: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.container {
  padding: 10px;
}

.dropdown-menu {
  background-color: #2c2c2c;
  border: 2px solid #3c3c3c;
}

.dropdown-item {
  color: white;
  padding: 10px;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: #3c3c3c;
  color: white;
}

.dropdown-toggle::after {
  margin-left: 8px;
}

.back-nav {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  left: 2rem;
  z-index: 999;
}

.back-button {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.back-button:hover {
  color: white;
  transform: translateX(-5px);
  background: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo {
  margin-left: 0;
}

.performance-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(74, 144, 226, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.note-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
}

.note-icon {
    font-size: 1.5rem;
}

.note-content p {
    margin: 0;
}

.warning-note {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.danger-note {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

/* Search Bar */
.search-container {
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    color: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Back Button */
.back-nav {
    padding: 1rem 2rem;
    margin-top: var(--nav-height);
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    background: var(--accent-color-hover);
    color: white;
    transform: translateX(-5px);
}

/* Search Animations */
.searching .game-link {
    transition: all 0.3s ease-out;
}

.game-link.hidden {
    opacity: 0;
    transform: scale(0.9);
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.game-link.visible {
    opacity: 1;
    transform: scale(1);
    height: auto;
    pointer-events: auto;
}

/* Empty State Message */
.no-results-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Search Animation Styles */
.game-card {
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

.game-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}

.game-card.visible {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.no-results-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary, #666);
  font-size: 1.2rem;
  grid-column: 1 / -1;
}

.searching {
  transition: all 0.3s ease;
}

.danger-card {
    border: 2px solid var(--primary-color);
    background: rgba(220, 53, 69, 0.1);
}

.danger-card:hover {
    background: rgba(220, 53, 69, 0.2);
}

.premium-card {
    background: linear-gradient(135deg, rgba(45, 45, 65, 0.8), rgba(60, 60, 85, 0.8));
    border: 2px solid #7b68ee;
    box-shadow: 0 0 15px rgba(123, 104, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(123, 104, 238, 0.1),
        rgba(72, 61, 139, 0.1),
        rgba(147, 112, 219, 0.1)
    );
    animation: shimmer 2s infinite;
    z-index: 0;
}

.premium-card .game-info {
    position: relative;
    z-index: 1;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(123, 104, 238, 0.4);
    background: linear-gradient(135deg, rgba(50, 50, 70, 0.9), rgba(65, 65, 90, 0.9));
}

.premium-button {
    background: linear-gradient(45deg, #7b68ee, #9370db);
    border: none;
    box-shadow: 0 2px 8px rgba(123, 104, 238, 0.3);
}

.premium-button:hover {
    background: linear-gradient(45deg, #9370db, #7b68ee);
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.5);
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}