@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: url("../img/background.png") no-repeat #1e1e1e;
    background-size: cover;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50vh;
    transform: translateY(-50%);
    justify-content: center;
  }
  
  h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  .header {
    display: flex;
    justify-content: center;
  }

  .solde-container {
    background-color: #272727;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 23px;
    width: fit-content;
    padding: 9px 26px;
  }
  
  .controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cartes {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    width: 100%;
    max-width: 800px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
  }
  
  .joueur,
  .banque {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
  }
  
  .cartes-joueur,
  .cartes-banque {
    display: flex;
    flex-wrap: wrap;
    min-height: 120px; 
    transition: all 0.3s ease;
  }
  
  .carte {
    background-color: #ffffff;
    color: #000000;
    width: 60px;
    height: 90px;
    line-height: 90px;
    text-align: center;
    border-radius: 5px;
    margin: 10px;
    font-size: 1.2em;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
  }
  
  button {
    background-color: #23d5ab;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
  }
  
  button:disabled {
    background-color: #999999;
    cursor: not-allowed;
  }
  
  .resultat {
    display: none;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    background-color: #272727;
    padding: 16px;
    border-radius: 10px;
  }

  .resultat img {
    border-radius: 10px;
  }
  
  input[type=number] {
    width: 100px;
    padding: 5px;
    font-size: 16px;
  }
  
  .game-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.70);
    padding: 20px 47px;
    border-radius: 10px;
  }

  .wrapper-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
}
  
  .left-panel,
  .right-panel {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
    background-color: #272727;
  }
  
  .left-panel {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  
  .right-panel {
    order: 1;
  }

  .player-data,
  .banque-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }

  .player-data h2,
  .banque-data h2 {
    background-color: #1D1D1D;
    padding: 3px 31px;
    width: fit-content;
    border-radius: 50px;
  }
  
  .player-data span,
  .banque-data span {
    background-color: #fff;
    color: #000000;
    padding: 6px 21px;
    font-weight: bold;
    width: fit-content;
    border-radius: 50px;
  }

  .bet-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  
  .bet-controls > input[type=number] {
    width: 90px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .bet-options {
    display: flex;
    flex-direction: row;
    gap: 5px;
  }

  .bet-options #half-bet {
    background: #B5322A;
    border-radius: 3px;
    font-weight: bold;
    padding: 7px 13px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: none;
  }
  
  .bet-options #double-bet {
    background: #2A8BB5;
    border-radius: 3px;
    font-weight: bold;
    padding: 7px 13px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: none;
  }

  .controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
  }
  
  .top-controls,
  .bottom-controls {
    display: flex;
    justify-content: space-around;
    width: 100%;
  }
  
  .control-btn {
    width: calc(50% - 10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    font-size: 16px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .control-btn:disabled {
    background-color: #999999;
    cursor: not-allowed;
  }
  
  .control-btn:not(:disabled):hover {
    background-color: #23d5ab;
  }
  
  .control-btn.bet {
    background-color: #28a745;
  }
  
  .control-btn.reset {
    background-color: #dc3545;
  }
  
  @media screen and (min-width: 600px) {
    .wrapper-game {
        flex-direction: row;
    }

    .left-panel,
    .right-panel {
      margin: 0;
    }
  
    .left-panel {
      order: 1;
    }
  
    .right-panel {
      order: 2;
    }
  
    .top-controls {
        flex-direction: row;
        gap: 5px;
        margin-bottom: 0; 
    }

    .top-controls > button {
        display: flex;
        flex-direction: column;
        font-family: 'Inter', sans-serif;
        font-weight: bold;
        gap: 2px;
    }
    
    button#miser {
      background-color: #2E861E;
      font-family: 'Inter', sans-serif;
      font-weight: bold;
    }

    .bottom-controls {
      flex-direction: column;
      margin-bottom: 0;
    }
  
    .control-btn {
      width: 100%;
      margin-bottom: 10px;
    }
  }

  button#miser {
    background-color: #2E861E;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
  }

  button#tirer {
    background-color: #45BF27;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  button#rester {
    background-color: #BF2727;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  button#doubler {
    background-color: #2A8BB5;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    
  }
  
  #mise-input {
    width: 90px;
    padding: 7px 9px;
    font-size: 15px;
    border: none;
    border-radius: 3px;
    color: #000000;
    background: #d9d9d9;
    font-family: 'Inter', sans-serif;
  }

  #mise-input::placeholder {
    color: rgba(121, 121, 121, 1);
;
  }