
 .high-scores table {
    font-size: 11px;
    text-align: left;
}

.high-scores th, .high-scores td {
    padding: 2px;
}
 
 
 .timer {
  font-size: 20px;
  color: #333;
  margin-top: 10px;
  text-align: center;
}
 
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
  }

  .game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
  }

  h1 {
    text-align: center;
    margin-bottom: 10px;
  }

  .instructions-score-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
  }

  .instructions {
    flex: 1;
    font-size: 16px;
    margin-bottom: 15px;
  }

  #score {
    font-size: 20px;
    align-self: flex-end;
  }

  .card-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    padding: 10px;
    background-color: #e0e0e0;
    margin-bottom: 0px;
    border-radius: 10px;
    min-height: 180px;
  }

  .down-pointing-text-container {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .down-pointing-text {
    display: flex;
    justify-content: space-between;
    width: 600px;
    text-align: center;
  }
  
   .down-pointing-text-arrow {
      font-size: 26px;
      flex: 1;
    }
  
  .down-pointing-text-instruction {
    font-size: 18px;
    flex: 4;
  }

  .sorting-guidance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .sorting-guidance .left-text,
  .sorting-guidance .right-text {
    font-size: 18px;
  }

  .sorting-guidance .buttons-container {
    display: flex;
    gap: 10px;
  }

  .sorting-guidance button {
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    margin: 5px;
  }

  .sorting-guidance button:hover {
    background-color: #218838;
  }

  /* Pulsing animation for the Check Order button */
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
    }
    40% {
      transform: scale(1);
      box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
      transform: scale(1.05);
      box-shadow: 0 0 10px rgba(40, 167, 69, 0.7);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
    }
  }

  .pulse {
    animation: pulse 2s infinite;
  }

  .card {
    width: 150px;
    height: 180px;
    margin: 0px 10px 0px 0px;
    padding: 10px 5px 5px 5px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    cursor: move;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
  }

  .card:hover {
    transform: scale(1.05);
  }

  .sortable-ghost {
    opacity: 0.4;
  }

  #message {
    font-family: Arial, sans-serif;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
  }

  .card-value {
    font-size: 16px;
    position: absolute;
    bottom: 40px;
  }

  .hidden-ef .card-value {
    display: none;
  }

  @keyframes flash-green {
    0% { background-color: #fff; }
    10% { background-color: #d4edda; }
    100% { background-color: #fff; }
  }

  .flash-ef-correct {
    animation: flash-green 1s ease-in-out;
  }

  @keyframes flash-red {
    0% { background-color: #fff; }
    10% { background-color: #f8d7da; }
    100% { background-color: #fff; }
  }

  .flash-ef-wrong {
    animation: flash-red 1s ease-in-out;
  }

  .result-emoji {
    font-size: 24px;
    position: absolute;
    bottom: 10px;
  }

  .info-section {
    padding: 20px;
    text-align: left;
    color: #555;
    font-size: 14px;
  }

  .info-section a {
    color: #555;
    text-decoration: none;
  }

  .info-section a:hover {
    text-decoration: underline;
  }

  .footer {
    padding: 20px;
    text-align: center;
    color: #777;
    font-size: 12px;
  }

  .footer a {
    color: #777;
    text-decoration: none;
  }

  .footer a:hover {
    text-decoration: underline;
  }
  
  @media only screen and (max-width: 700px) {
    .game-container {
      padding: 0px 10px 0px 10px;
    }

    h1 {
      font-size: 18px;
      margin-bottom: 7px;
    }

    .instructions-score-container {
      margin-bottom: 4px;
    }

    .instructions {
      font-size: 12px;
      margin-bottom: 11px;
    }

    #score {
      font-size: 15px;
    }

    .card-container {
      padding: 8px;
      border-radius: 8px;
      min-height: 135px;
    }

    .down-pointing-text {
      width: 450px;
    }
    
    .down-pointing-text-arrow {
      font-size: 18px;
    }
  
    .down-pointing-text-instruction {
      font-size: 14px;
    }

    .sorting-guidance {
      margin-bottom: 15px;
      padding: 0 7.5px;
    }

    .sorting-guidance .left-text,
    .sorting-guidance .right-text {
      font-size: 14px;
    }

    .sorting-guidance .buttons-container {
      gap: 7.5px;
    }

    .sorting-guidance button {
      padding: 7.5px 15px;
      font-size: 15px;
      border-radius: 4px;
      margin: 4px;
    }

    .card {
      width: 113px;
      height: 135px;
      margin: 0px 8px 0px 0px;
      padding: 8px 4px 4px 4px;
      border-radius: 8px;
      font-size: 12px;
      box-shadow: 0 3px 4.5px rgba(0,0,0,0.1);
    }

    #message {
      font-size: 14px;
      margin-top: 15px;
    }

    .card-value {
      font-size: 12px;
      bottom: 30px;
    }

    .result-emoji {
      font-size: 18px;
      bottom: 7.5px;
    }

    .info-section {
      padding: 15px;
      font-size: 11px;
    }

    .footer {
      padding: 15px;
      font-size: 9px;
    }
  }
  

