#spel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
    
.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'); 
}

#container {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 15px;
  align-items: start;
}
    
canvas {
  max-width: 100%;
  height: auto;
}

#canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 800 / 500;
}

#detailCanvas {
  width: 100px;
  height: 100px;
  flex: 0 0 auto; /* 🔥 voorkomt krimpen */
}
    
  #feedback {
    font-size: 22px;
    margin-top: 10px;
  }

  #progress {
    font-size: 18px;
    margin-top: 10px;
  }

  #timer {
    font-size: 18px;
    color: #0077cc;
  }

@media (min-width: 768px) {
  #container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}