/**************************/
/* BELOW 1184px (Laptops)  */
/**************************/
@media (max-width: 74em) {
  html {
    font-size: 56.25%;
  }
}

/**************************/
/* BELOW 992px (Tablets)  */
/**************************/
@media (max-width: 62em) {
  html {
    scroll-padding-top: 1.6rem;
    font-size: 50%;
  }

  .force-hide {
    display: none !important;
  }

  .fullscreen-toggle ion-icon {
    color: #7e620d;
  }

  .fullscreen-toggle {
    z-index: 9999;
    position: absolute;
    top: 0;
    left: 100%;
    transform: translate(160%, -100%);
    display: inline-block; /* safe default */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Extra mobile stability */
    -webkit-transform: translate(160%, -100%);
  }

  .fullscreen-toggle .contract-icon {
    display: none;
  }

  .fullscreen-toggle.is-fullscreen .expand-icon {
    display: none;
  }

  .fullscreen-toggle.is-fullscreen .contract-icon {
    display: block;
  }

  .injure {
    &::after {
      content: url("../icons/icons8-close-24.svg");
      width: 2.4rem;
      height: 2.4rem;
    }
  }

  .player-name {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -110%);
  }

  .waiting-opponent-1,
  .error-message-1 {
    position: absolute;
    top: 0;
    transform: translate(40%, -110%);
    opacity: 0;
    background-color: #fff9e8;
  }
  .timer-label {
    top: 0;
    transform: translate(0, -110%);
    width: 100%;
    background-color: #fff9e8;
  }

  tr .empty-th {
    width: 1rem;
    height: 1rem;
  }

  .pwa-promo {
    display: block;
    margin-top: 6.4rem;
  }

  .dropzone::after {
    border: 2px solid #fff;
  }
}

/**************************/
/* BELOW 832px (Tablets)  */
/**************************/
@media (max-width: 52em) {
  html {
    font-size: 43.75%;
  }

  :fullscreen {
    /* Full-screen */
    font-size: 48%;
  }

  html,
  body {
    margin: 0;
  }

  .sea-battle-grid {
    row-gap: 8rem;
  }
}

/**************************/
/* BELOW 704px (Smaller Tablets)  */
/**************************/
@media (max-width: 44em) {
  body {
    background: rgba(17, 17, 17, 0.98);
    overscroll-behavior-y: none;
    overflow: hidden;
  }

  .navbar,
  .sea-battle-grid,
  .sea-container,
  .game-description-container,
  footer {
    /* display: none; */
    opacity: 0;
  }

  .sea-battle-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .notification-window {
    width: 100%;
    transform: translate(0%, 50%);
  }

  /**************************/
  /* LANDSCAPE HINT */
  /**************************/
  .landscape-hint {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.98);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    font-family: system-ui, sans-serif;
  }

  .landscape-hint .content {
    display: block;
  }

  .landscape-hint.show {
    display: flex;
  }

  .content h2 {
    font-size: 3rem;
    margin: 0 0 1.2rem;
  }

  .content p {
    font-size: 2rem;
    opacity: 0.9;
  }

  .phone {
    font-size: 16rem;
    margin-bottom: 6.4rem;
    animation: rotateAnim 2.2s infinite ease-in-out;
  }

  .arrow {
    font-size: 7.2rem;
    margin: 2rem 0;
    animation: bounce 1.4s infinite;
  }

  @keyframes rotateAnim {
    0%,
    100% {
      transform: rotate(-12deg);
    }
    50% {
      transform: rotate(12deg);
    }
  }

  @keyframes bounce {
    0%,
    100% {
      transform: translateX(-15px);
    }
    50% {
      transform: translateX(15px);
    }
  }
}

/**************************/
/* BELOW 448px (Phones)  */
/**************************/
@media (max-width: 28em) {
}
