/* Tech Tetris - Game Styles */

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

body {
  font-family: "Consolas", sans-serif;
  background: linear-gradient(135deg, #000 0%, #111 100%);
  color: white;
  overflow: hidden;
}

.game-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.game-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-board {
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.game-info {
  text-align: center;
  margin-bottom: 20px;
}

.score-board {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  flex-grow: 1;
}
.intro h1 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: slideIn 1s ease-out;
}
.intro a svg {
  width: 2em;
  height: 2em;
  margin: 0 10px;
  transition: transform 0.3s ease, fill 0.3s ease;
}
.intro ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}
hr {
  width: 10em;
  border: 0;
  border-bottom: 1px dashed #f43;
  margin: 20px 0;
}
a {
  color: #f43;
  text-decoration: none;
}
@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.controls {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.5;
}

.game-over {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 30px;
  border-radius: 15px;
  border: 3px solid #ff0000;
  text-align: center;
  z-index: 1000;
}

.restart-btn {
  background: #00ffff;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.restart-btn:hover {
  background: #00cccc;
}

canvas {
  display: block;
  border-radius: 8px;
}

/* Mobile responsive design */
@media (max-width: 768px) {
  .game-container {
    flex-direction: column;
  }

  .tech-panel {
    border-left: none;
    border-top: 3px solid #00ffff;
    max-height: 40vh;
  }
}
