/* Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; /* Cor neutra */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
  }
  
  /* Tela de Início */
  .start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
    z-index: 10;
  }
  
  .start-screen h1 {
    font-size: 48px;
    margin-bottom: 10px;
  }
  
  .start-screen p {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .start-screen button {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #f60404;
    color: #0d0118;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .start-screen button:hover {
    background-color: #530aff;
  }
  
  /* Contêiner do Jogo */
.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    background-color: #fff;
    border: 2px solid #ccc;
    overflow: hidden;
    border-radius: 8px;
    display: none; /* Inicialmente oculto */
  }
  
  @media (max-width: 800px) {
    .game-container {
      width: 100%;
      height: 100%;
      border: none;
    }
  }
  
  /* Estilos para Controles Móveis */
  .mobile-controls {
    display: none; /* Oculto por padrão */
    position: fixed; /* Fixar na parte inferior da tela */
    bottom: 10px; /* Espaçamento do fundo */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  
  .mobile-controls button {
    padding: 15px 30px; /* Ajuste no tamanho dos botões */
    font-size: 20px;
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 8px;
    margin: 0 5px; /* Menor espaçamento entre os botões */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
  }
  
  .mobile-controls button:hover,
  .mobile-controls button:active {
    background-color: #e60000;
  }
  
  /* Exibir botões apenas em telas pequenas */
  @media (max-width: 800px) {
    .mobile-controls {
      display: flex;
    }
  
    .sausage {
      width: 15%; /* Ajuste para telas menores */
      height: auto;
    }
  }
  /* Fundo Animado */
  .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpeg') repeat; /* Substitua 'background.jpg' pelo caminho da imagem */
    background-size: cover;
    animation: moveBackground 10s linear infinite;
  }
  
  @keyframes moveBackground {
    0% {
      background-position: 0 0;
    }
    100% {
      background-position: 0 -100%;
    }
  }
  
  /* Número da Fase */
  .phase {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #0826ed;
    z-index: 5;
  }
  
  /* Pontuação */
  .score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #3802fc;
    z-index: 5;
  }
  
  /* Linguiça */
  .sausage {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: url('sausage.png') no-repeat center/cover; /* Substitua 'sausage-realistic.png' pelo caminho da imagem */
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra para realismo */
  }
  
  /* Facas */
  .knives {
    position: relative;
  }
  
  .knife {
    position: absolute;
    top: -50px;
    width: 100px;
    height: 100px;
    background: url('knife.png') no-repeat center/cover; /* Substitua 'knife-realistic.png' pelo caminho da imagem */
    animation: moveKnife 3s linear forwards;
  }
  
  @keyframes moveKnife {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(100vh);
    }
  }
  
  /* Power-Ups */
  .power-up {
    position: absolute;
    top: -50px;
    width: 100px;
    height: 100px;
    background: url('shield-realistic.png.png') no-repeat center/cover; /* Substitua 'shield-realistic.png' pelo caminho da imagem */
    animation: movePowerUp 5s linear forwards;
  }
  
  @keyframes movePowerUp {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(100vh);
    }
  }
  
  /* Tela de Game Over */
  .game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #2f0aff;
    display: none;
    z-index: 10;
  }
  
  .game-over h1 {
    font-size: 48px;
    margin-bottom: 10px;
  }
  
  .game-over p {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .game-over button {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #f7f305;
    color: #021ef3;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .game-over button:hover {
    background-color: #ff0101;
  }
  
  /* Estilos para Controles Móveis */
  .mobile-controls {
    display: none; /* Oculto por padrão */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }
  
  .mobile-controls button {
    padding: 20px 40px;
    font-size: 24px;
    background-color: #f5f907;
    color: #0713f1;
    border: none;
    border-radius: 8px;
    margin: 0 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
  }
  
  .mobile-controls button:hover,
  .mobile-controls button:active {
    background-color: #e60000;
  }
  
  /* Exibir botões apenas em telas pequenas */
  @media (max-width: 800px) {
    .mobile-controls {
      display: flex;
    }
  }