* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.container {
  height: 100vh;
  width: 100vw;
  background: #9ab59a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main {
  max-height: 80vh;
  max-width: 90vw;
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

#ptop {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: #3e5d3d;
  color: white;
  padding: 15px;
  font-size: 20px;
}

.top-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.box {
  color: white;
  margin: 0px 5px;
  border-radius: 5px;
  font-weight: bold;
}

#pbtm {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.bubble {
  width: 40px;
  height: 40px;
  margin: 4px;
  border-radius: 50%;
  background: #3e5d3d;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.bubble:hover {
  background: #5a7d5a;
}

.main-screen {
  height: 100vh;
  width: 100vw;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.546);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

#game-over {
  display: none;
}

.main-screen-item {
  height: 40vh;
  width: 40vw;
  border-radius: 10px;
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.play-btn {
  height: 50px;
  min-width: 120px;
  border: none;
  border-radius: 50px;
  background-color: #3e5d3d;
  margin: 15px;
  color: white;
  font-size: 20px;
  font-weight: bold;
  transition: 0.2s;
}

.play-btn:hover {
  background: #5a7d5a;
}

.main-screen-item h3 {
  margin: 10px 0px;
}

/* TABLET */
@media (max-width: 768px) {

  .main {
    width: 95vw;
    height: 90vh; /* 🔥 GAME TAKES MOST SCREEN */
  }

  #ptop {
    font-size: 18px;
    padding: 12px;
  }

  #pbtm {
    padding: 15px;
  }

  /* Bigger bubbles for touch */
  .bubble {
    width: 45px;
    height: 45px;
    font-size: 18px;
    margin: 5px;
  }

  /* Popup bigger */
  .main-screen-item {
    width: 75vw;
    height: auto;
    padding: 30px 20px;
  }

  /* Bigger button */
  .play-btn {
    font-size: 20px;
    padding: 12px 25px;
    min-width: 150px;
  }

  h1 {
    font-size: 30px;
  }

  h3 {
    font-size: 18px;
  }
}

/* MOBILE */
@media (max-width: 480px) {

  .container {
    align-items: flex-start; /* remove top empty space */
    padding-top: 10px;
  }

  .main {
    width: 95vw;
    height: 90vh; /* 🔥 MAIN GOAL */
  }

  #ptop {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 16px;
    padding: 10px;
  }

  .top-item {
    justify-content: space-between;
    width: 100%;
  }

  #pbtm {
    padding: 10px;
  }

  /* 🔥 BIGGER BUBBLES */
  .bubble {
    width: 42px;
    height: 42px;
    font-size: 16px;
    margin: 4px;
  }

  /* 🔥 BIG POPUP */
  .main-screen-item {
    width: 90vw;
    height: auto;
    padding: 25px 15px;
  }

  /* 🔥 BIG BUTTON */
  .play-btn {
    width: 85%;
    font-size: 18px;
    padding: 12px;
  }

  h1 {
    font-size: 26px;
  }

  h3 {
    font-size: 16px;
  }
}
