#game {
      width: 720px;
      height: 540px;
      margin: 20px auto;
      position: relative;
      display: grid;
      grid-template-columns: repeat(10, 64px);
      grid-template-rows: repeat(8, 64px);
      gap: 4px;
      padding: 10px;
      background: rgba(255,255,255,0.25);
      border-radius: 20px;
      backdrop-filter: blur(4px);
    }

    .tile {
      width: 64px;
      height: 64px;
      background: rgba(255,255,255,0.85);
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 34px;
      cursor: pointer;
      transition: transform 0.2s, background 0.2s;
      user-select: none;
      position: relative;
      z-index: 2;
    }

    .tile:hover {
      transform: scale(1.08);
    }

    .selected {
      background: #ffe066;
      box-shadow: 0 0 15px gold;
    }

    .removed {
      visibility: hidden;
    }

    canvas {
      position: absolute;
      top: -80px;
      left: -80px;
      z-index: 1;
      pointer-events: none;
    }

    .fly-away {
      animation: flyAway 1s forwards;
    }

    @keyframes flyAway {
      0% {
        transform: scale(1) translate(0,0) rotate(0deg);
        opacity: 1;
      }
      100% {
        transform: scale(0.2) translate(300px,-300px) rotate(720deg);
        opacity: 0;
      }
    }
      
#movesInfo,
#timerInfo {
  text-align: center;
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 1px 1px 3px black;
}
.tile-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
} 
#spel {
      margin: 0;
      background: linear-gradient(to bottom, #8fd3ff, #dff8ff);
      font-family: Arial, sans-serif;
    }

    
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    padding-top: 5px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#scoreCards {
  max-width: 600px;
  margin: 10px auto;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
}

.scoreCard {
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 6px 10px;
  margin-bottom: 6px;
}

.scoreRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow-x: auto;
}

.scoreRow span {
  flex: 1;
  text-align: left;
  color: #000;
}

.scoreRow .score {
  text-align: right;
  font-weight: bold;
  color: #000;
}

#scoreForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  max-width: 300px; /* optioneel, om het niet te breed te maken */
}    
     ::-webkit-scrollbar { 
	width: 16px;
}
::-webkit-scrollbar-track { 
	background-color: #333;
} 
::-webkit-scrollbar-thumb { 
	background-color: #424e69;
}
::-webkit-scrollbar-thumb:hover { 
	background-color: #8295d5;
}

@font-face { 
	font-family: 'Oswald-Light'; 
	src: url('Oswald-Light.ttf'); 
}
@font-face { 
	font-family: 'Oswald-Bold'; 
	src: url('Oswald-Bold.otf'); 
}
.infoBar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;          /* ruimte tussen beide */
    margin-bottom: 10px;
    flex-wrap: wrap;    /* op smartphone onder elkaar indien nodig */
}