body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  font-family: sans-serif;
  background: #1a1a2e;
  position: relative;
  overflow-x: hidden;
  justify-content: center;
  align-items: center;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
}

.h1 {
  position: fixed;
  right: -200px;
  top: 50px;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.5s ease forwards;
  color: white;
  font-size: 1.2rem;
}

@keyframes slideIn {
  to {
    right: 0;
  }
}

h1, p {
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white;
  margin: 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.boxes {
  text-align: center;
}

.box {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  border: 10px solid black;
  display: inline-block;
  margin: 10px;
  cursor: pointer;
  transition: 0.1s ease-in;
}

.box:hover {
  transform: rotate(2deg);
  opacity: 0.8;
}

.flash {
  background-color: white !important;
}

.usrflash {
  background-color: rgb(0, 0, 0) !important;
}

.red {
  background-color: #ff3333;
}

.green {
  background-color: #33ff33;
}

.orange {
  background-color: #ff9933;
}

.blue {
  background-color: #3333ff;
}

.rede {
  background-color: red;
  animation: gameOver 0.5s ease;
}

@keyframes gameOver {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(255, 0, 0, 0.3); }
}

@media (max-width: 600px) {
  .box {
    width: 120px;
    height: 120px;
    border-width: 8px;
  }
  
  .h1 {
    top: 20px;
    padding: 10px 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
}
