/* Import Google font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}
/* Original game styles - modified to work with landing page */
body {
  min-height: 100vh;
}
.wrapper {
  width: 65vmin;
  height: 70vmin;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  border-radius: 5px;
  background: #293447;
  box-shadow: 0 20px 40px rgba(52, 87, 220, 0.2);
  margin: 0 auto;
}
.game-details {
  color: #B8C6DC;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 20px 27px;
  display: flex;
  justify-content: space-between;
}
.play-board {
  height: 100%;
  width: 100%;
  display: grid;
  background: #212837;
  grid-template: repeat(30, 1fr) / repeat(30, 1fr);
}
.play-board .food {
  background: #FF003D;
}
.play-board .head {
  background: #60CBFF;
}

.controls {
  display: none;
  justify-content: space-between;
}
.controls i {
  padding: 25px 0;
  text-align: center;
  font-size: 1.3rem;
  color: #B8C6DC;
  width: calc(100% / 4);
  cursor: pointer;
  border-right: 1px solid #171B26;
}

@media screen and (max-width: 800px) {
  .wrapper {
    width: 90vmin;
    height: 115vmin;
  }
  .game-details {
    font-size: 1rem;
    padding: 15px 27px;
  }
  .controls {
    display: flex;
  }
  .controls i {
    padding: 15px 0;
    font-size: 1rem;
  }
  
  .game-frame {
    width: 95%;
  }
}

/* Portrait mode optimization for mobile */
@media screen and (max-width: 600px) and (orientation: portrait) {
  .wrapper {
    width: 95vw;
    height: 95vw; /* Make it square in portrait mode */
    margin-top: 10px;
  }
  
  .game-details {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  
  .controls {
    display: flex;
  }
  
  .controls i {
    padding: 12px 0;
    font-size: 1.2rem;
  }
  
  /* Make controls more accessible on mobile */
  .controls i {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    width: 50px !important;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Adjust game container for portrait */
  .game-container {
    padding: 10px;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  /* Optimize fullscreen game for portrait */
  .fullscreen-game .wrapper {
    width: 95vw;
    height: 95vw;
  }
}