body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: url('../assets/generated/grass_tile.png') repeat; 
    background-position:center; /*anchored to center */
    background-size: 180px 180px; /*actual scaling happens in game.js*/
}

#game {
    position: "absolute";
    top: "0";
    left: "0";
    width: "100vw";
    height: "100vh";

    /* Prevent accidental text selection on mobile */
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-touch-callout: none;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;

    /*fade it in*/
    opacity: 0;
    animation: fadeIn 0.2s ease-in forwards;
  }

  .popup {
    width: 320px;
    background-color: #4caf50; /* green background */
    color: #fff;
    border-radius: 8px;
    padding: 16px;
    font-family: "Roboto Condensed", sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transform-origin: center;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  .popup .scoreboard {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 34px;
    margin-bottom: 8px;
  }

  .popup .title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    margin: 12px 0;
  }

  .popup .description {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
  }

  .popup .to-score {
    display: flex;
    align-items: center;
    font-size: 18px;
    margin-bottom: 12px;
  }

  .popup .to-score img {
    width: 28px;
    height: auto;
    margin-right: 8px;
  }

  .popup button {
    background-color: #fff;
    color: #4caf50;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-family: "Roboto Condensed", sans-serif;
    width: 100%;
  }

#seed {
    font-family: "Roboto Condensed", sans-serif;
    font-size:14px;
    font-weight:900;
    text-align:left;
    color:#FFFFFF;
    position: absolute;
    top: 8px;
    left: 8px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/*example of using fade in*/
.fade-in {
  opacity: 0;
  animation: fadeIn 0.2s ease-in forwards;
}

@keyframes popIn {
  0%   { transform: scale(0.9); }
  60%  { transform: scale(1.05); } /* overshoot */
  100% { transform: scale(1); }   /* settle */
}

/*example of using pop-in*/
.pop-in {
  transform-origin: center;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}