: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, #ffeac1 0%, #ffeac6 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    color: #333;
}

.game-container {
    background: #ffffff;
    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: #7EACB5;
    font-weight: bold;
    margin: 20px 0;
}

#definition-box {
    font-size: 1.3em;
    margin: 30px 0;
    padding: 20px;
    background: #f5d205;
    border-radius: 15px;
    color: white;
    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: #a90707;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

#options-container button:hover {
    background: #731112;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

#next-button {
    margin: 25px auto;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: #2ECC71;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

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



#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: #A8CD89;
    font-size: 2em;
    margin-bottom: 15px;
}

#pointsText {
    color: #608BC1;
    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: #3498DB;
    color: white;
    transition: all 0.3s ease;
}

#sentenceButton:hover {
    background: #2980B9;
    transform: translateY(-2px);
}


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

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

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

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

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

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

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

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

    #resultContainer {
        width: 80vw;
    }

    .hint-btn {
        margin: 4px;
        padding: 7px 13px;
        font-size: 0.8em;
    }
}



.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 {
  background-color: #000000;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

header a {
  text-decoration: none;
}

.header-container {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo span {
  margin-left: 10px;
  font-family: 'Courier New', Courier, monospace;
}

nav a {
  color: white;
  margin-left: 20px;
  padding: 10px 20px;
  background-color: #608BC1;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #0056b3;
}