:root {
  --principal-color: #0d1117;
  --secondary-color: #161b22;

  --principal-accent: #e63946;
  --secondary-accent: #f4a261;

  --text-color: #f8f9fa;
  --secondary-text-color: #8b949e;
}


body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        margin: 0;
        background-color: var(--principal-color);
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      }

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 30px 50px;
    border-radius: 16px;
}

      h2 {
        color: var(--text-color);
        margin-bottom: 10px;
      }
      p {
        color: var(--secondary-text-color);
        margin-bottom: 20px;
      }

      #puzzle {
        display: flex;
        flex-wrap: wrap;
        border: 2px solid black;
      }

      .piece {
        border: 1px solid rgba(255, 255, 255, 0.3);
        cursor: grab;
        background-size: cover;
        box-sizing: border-box;
      }

      .piece:active {
        cursor: grabbing;
      }

      button#btn-valider {
        margin-top: 30px;
        padding: 12px 30px;
        font-size: 16px;
        font-weight: bold;
        color: white;
        background-color: var(--principal-accent);
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: 0.5s ease;
      }

      button#btn-valider:hover {
        transform: scale(1.02);
      }

      #modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
        z-index: 1000;
      }

      #modal-content {
        background: var(--secondary-color);
        padding: 40px;
        border-radius: 15px;
        text-align: center;
        max-width: 400px;
        width: 90%;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
      }

      #modal-text {
        margin-bottom: 25px;
      }

      .modal-ok {
        color: #28a745;
        font-size: 22px;
        font-weight: bold;
      }
      .modal-ko {
        color: #dc3545;
        font-size: 22px;
        font-weight: bold;
      }

      .btn-close {
        padding: 8px 20px;
        background: var(--secondary-text-color);
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
      }

      .btn-success {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        background: #28a745;
        color: white;
        text-decoration: none;
        border-radius: 4px;
      }