/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(160deg, #0c0a0a, #2a0f0f);
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  min-height: 100vh;
  scroll-behavior: smooth;
}

h1 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #ff4c4c;
  text-shadow: 0 0 8px rgba(255, 76, 76, 0.6);
  text-align: center;
}

/* Container for project cards */
.project-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 600px;
}

/* Project card */
.launcher {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 76, 76, 0.3);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
  overflow: hidden;
  margin: 0 auto; /* centers cards */
}

/* Collapsed state for animation */
.launcher.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 30px;
}

/* Project title and description */
.launcher h2 {
  font-size: 1.5rem;
  color: #ff4c4c;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 6px rgba(255,76,76,0.4);
}

.launcher .description {
  font-size: 0.9rem;
  color: #ffb3b3;
  text-align: center;
  margin-bottom: 16px;
}

/* Expand button */
.expand-btn {
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a0c0c;
  background: #ff4c4c;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}

.expand-btn:hover {
  background: #ff1a1a;
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 76, 76, 0.6);
}

.expand-btn:active {
  transform: translateY(0);
}

/* Game container / iframe */
.game-container {
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9; 
  margin: 20px auto;
}

.game-frame {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 76, 76, 0.4);
  border-radius: 16px;
  background: #000;
  display: block;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 10px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.2);
}
