:root {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #dfe3ef 0%, #eef1f8 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    color: #333;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 760px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

h1 {
    color: #2C3E50;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#score {
    font-size: 1.4em;
    color: #727ea1;
    font-weight: bold;
    margin: 20px 0;
}

#definition-box {
    font-size: 1.3em;
    margin: 30px 0;
    padding: 20px;
    background: #f4f6fb;
    border-radius: 15px;
    color: #2C3E50;
    line-height: 1.6;
}

#options-container button {
    width: 85%;
    margin: 12px auto;
    padding: 12px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: #727ea1;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 126, 161, 0.25);
}

#options-container button:hover {
    background: #5e6888;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 104, 136, 0.35);
}

#next-button {
    margin: 25px auto;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: #608BC1;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 139, 193, 0.25);
}

#next-button:hover {
    background: #4c76ab;
    transform: translateY(-2px);
}

#hints-container {
    margin: 30px 0;
    padding: 20px;
    background: #f7f9ff;
    border-radius: 15px;
}

#hints-container h3 {
    color: #2C3E50;
    margin-bottom: 15px;
}

.hint-btn {
    margin: 8px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: #aeb0bd;
    color: #2C3E50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(142, 147, 167, 0.25);
}

.hint-btn:hover:not(:disabled) {
    background: #8e93a7;
    transform: translateY(-2px);
}

.hint-btn:disabled {
    background: #ECF0F1;
    color: #95A5A6;
    cursor: not-allowed;
    box-shadow: none;
}

#resultContainer {
    justify-content: center;
    z-index: 1000;
    position: fixed;
    border: none;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: none;
    width: 90vw;
    max-width: 600px;
    height: auto;
    min-height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    padding: 30px;
}

#resultText {
    color: #727ea1;
    font-size: 2em;
    margin-bottom: 15px;
}

#pointsText {
    color: #5e6888;
    font-size: 1.5em;
    margin-bottom: 20px;
}

#sentenceButton {
    width: 85%;
    margin: 15px auto;
    padding: 15px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: #727ea1;
    color: white;
    transition: all 0.3s ease;
}

#sentenceButton:hover {
    background: #5e6888;
    transform: translateY(-2px);
}


.sentence-option {
    width: 85%;
    margin: 10px auto;
    padding: 15px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: #608BC1;
    color: white;
    transition: all 0.3s ease;
    display: block;
}

.sentence-option:hover {
    background: #4c76ab;
    transform: translateY(-2px);
}

#bonusRound {
    transition: background-color 0.3s ease;
}

@media (max-width: 600px){
    body {
        padding: 5px;
    }

    .game-container {
        width: 88%;
        margin: 10px auto;
        padding: 15px;
    }

    h1 {
        margin-bottom: 10px;
        font-size: 1.3em;
    }

    #definition-box {
        font-size: 1em;
        margin: 30px 0;
        padding: 10px;
        background: #f4f6fb;
        border-radius: 15px;
        color: #2C3E50;
        line-height: 1.6;
    }



    #options-container button {
        width: 85%;
        margin: 8px auto;
        padding: 6px;
        font-size: 1em;
    }

    #resultContainer {
        width: 80vw;
    }

    .hint-btn {
        margin: 3px;
        padding: 4px 8px;
        font-size: 0.7em;
    }

    #score {
        font-size: 1em;
    }

    #hinttitle {
        font-size: 0.9em;
    }

    #hints-container {
        padding: 4px;
    }
}


.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}



header a {
  text-decoration: none;
}


.french-flag {
                width: 42px;
                height: 28px;
                border-radius: 7px;
            }

.french-flag {
            position: fixed;
            top: 18px;
            right: 18px;
            z-index: 20;
            width: 54px;
            height: 36px;
            border-radius: 8px;
            background: linear-gradient(90deg, #4673d4 0 33.333%, #fff 33.333% 66.666%, #ED2939 66.666% 100%);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
        }

header {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 20;
      width: 100%;
      background: #731112;
      color: #fff;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

    .header-container {
      width: min(1080px, calc(100% - 32px));
      margin: 0 auto;
      padding: 16px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .logo {
      color: #fff;
      font-size: 1.35rem;
      font-weight: 800;
      letter-spacing: 0;
      text-decoration: none;
    }

    nav {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    nav a {
      color: #fff;
      text-decoration: none;
      padding: 10px 16px;
      background: #608BC1;
      border-radius: 6px;
      font-weight: 700;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    nav a:hover {
      background: #2C3E50;
      transform: translateY(-1px);
    }

    @media (max-width: 600px) {
        .header-container {
        align-items: flex-start;
        flex-direction: column;
      }

      nav {
        width: 100%;
        justify-content: stretch;
      }

      nav a {
        flex: 1;
        text-align: center;
      }
    }