/* Apply only to the game page */
body {
  font-family: 'Noto Sans Cherokee', 'Plantagenet Cherokee', sans-serif;
  text-align: center;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Specifically apply to game buttons */
.answers button {
  font-family: 'Noto Sans Cherokee', 'Plantagenet Cherokee', sans-serif !important;
  font-size: 5vh;
  padding: 5px 10px;
  cursor: pointer;
  background-color: #fff;
  border: 2px solid #d5a56d;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}


.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff8dc;
    border-bottom: 2px solid #caa36d;
    padding: 5px;
    display: flex;
    z-index: 1100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.menu-bar button {
    background-color: #a35e1d;
    color: white;
    border: none;
  	margin-right:5px;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.menu-bar button:hover {
    background-color: #874d18;
}
.game-area {
display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Distributes equal space */
    width: 100%;
    height: 90%;
    box-sizing: border-box;
    padding: 2vh 0; /* Optional padding for top/bottom breathing room */
}
.question {
Top:5vh;
    position: absolute;
    font-size: 5vh;
}
.customGameContent {
Margin-top:2.5;
Margin-bottom:2.5vh;
Height:50%;
    width: 100%;
}
.player-section {
    position: absolute;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 25%;
    Bottom:5vh;
}
.player-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 23%;
    height: 100%;
    box-sizing: border-box;
}
.header {
    font-size: 4vh;
    font-weight: bold;
    margin-bottom: 10px;
}
.answers {
    position: relative;
    bottom: 0px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.answers button {
  font-family: 'CherokeeRainbow' !important;
  padding: 5px 10px;
  font-size: 5vh;
  cursor: pointer;
}
.answers button.correct {
    background-color: green;
    color: white;
}
.answers button.wrong {
    background-color: red;
    color: white;
}
.score {
    bottom: 0px;
    position: relative;
    font-size: 2vh;
}
select {
    position: relative;
    font-size: 1.2em;
    padding: 5px;
}
.end-game {
    max-width: 750px;
    width: 75%;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    z-index: 1000;
}
.end-game button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.start-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #ffecc7, #fffbf2);
    z-index: 1000;
}
.start-overlay .modal {
    background: #fffaf0;
    padding: 30px;
    border: 3px solid #caa36d;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 80%;
    max-width: 400px;
    animation: popIn 0.5s ease-out;
}
.start-overlay h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #7d4e1d;
}
.start-overlay select,
.start-overlay input {
    font-size: 1.1em;
    padding: 8px;
    width: 90%;
    margin: 5px auto;
    border-radius: 6px;
    border: 2px solid #d5a56d;
}
.start-overlay button {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 1.1em;
    border: none;
    background-color: #a35e1d;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.start-overlay button:hover {
    background-color: #874d18;
}
@keyframes popIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
#score-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: 90%;
}
#score-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdf6e3;
    border: 2px solid #e0c28a;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 10px 0;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    animation: fadeIn 0.4s ease-in-out;
    transition: transform 0.2s ease;
}
#score-list li:hover {
    transform: scale(1.02);
}
.rank-icon {
    font-size: 1.6em;
    margin-right: 10px;
}
.player-name {
    flex-grow: 1;
    text-align: left;
    font-weight: bold;
}
.player-score {
    font-family: monospace;
    font-size: 1.1em;
    color: #444;
}
.rank-gold {
    background-color: #fff8dc !important;
    border-color: #f1c40f !important;
}
.rank-silver {
    background-color: #f0f0f0 !important;
    border-color: #bdc3c7 !important;
}
.rank-bronze {
    background-color: #fbe4d5 !important;
    border-color: #cd7f32 !important;
}
/* 🔁 MOBILE FRIENDLY TWEAKS */
@media (max-width: 768px) {
.menu-bar {
  flex-direction: row;          /* keep buttons inline */
  justify-content: center;      /* center them horizontally */
  align-items: center;          /* center them vertically */
}
.menu-bar button {
    background-color: #a35e1d;
    color: white;
    border: none;
  	margin-right:5px;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.shapes-container {
    margin-top:10px;
    position: relative;
    bottom: auto;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }
.shape {
   width: 21vw;
    max-width: 75px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}
.question {
    font-size: 7vw;
    Top:75px;
    margin:0px;
    padding: 0 10px;
  }
.player-section {
Position:absolute;
    Bottom: 120px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
  }
.player-column {
    width: 45%;
    margin: 5px;
    padding: 10px;
    box-sizing: border-box;
    height: 130px;
  }
.header {
    font-size: 1em;
  }
.answers {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
.answers button {
  font-family: 'CherokeeRainbow', 'Noto Sans Cherokee', 'Plantagenet Cherokee', sans-serif !important;
  font-size: 1.5em;
  padding: 8px 12px;
}

.score {
    font-size: 1em;
  }
.end-game {
    width: 95%;
    padding: 15px;
  }
#score-list li {
    font-size: 1em;
    flex-direction: column;
    gap: 5px;
  }
.rank-icon {
    font-size: 1.4em;
  }
.player-name,
.player-score {
    text-align: center;
    width: 100%;
  }
}
