* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

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

header {
  text-align: center;
  margin-bottom: 50px;
  color: white;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.game-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.game-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

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

.game-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.game-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.game-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.game-card button {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.game-card button:hover {
  transform: scale(1.05);
}

#game-container {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.game-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

#back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: 20px;
  transition: background 0.2s ease;
}

#back-btn:hover {
  background: #5a6268;
}

#fullscreen-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  margin-right: auto;
  margin-left: 20px;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

#fullscreen-btn:hover {
  background: #0056b3;
}

#current-game-title {
  color: #333;
}

#game-frame {
  width: 100%;
  height: 800px;
  border: none;
}

#game-container:fullscreen {
  background: black;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

#game-container:fullscreen .game-header {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 10px;
  z-index: 10000;
  padding: 10px 20px;
}

#game-container:fullscreen #back-btn,
#game-container:fullscreen #fullscreen-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  font-size: 0.8rem;
}

#game-container:fullscreen #back-btn:hover,
#game-container:fullscreen #fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

#game-container:fullscreen #current-game-title {
  color: white;
  font-size: 1.2rem;
}

#game-container:fullscreen #game-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
}
