/* Theme variables */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #ff00ff;
  --accent-hover: #cc00cc;
}

/* Base layout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

a {
  color: var(--accent-color);
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

/* Flex container to center and expand content */
.tg_fc_full_container {
  display: flex;
  padding: 5px;
  justify-content: center;
}

/* Styling for the main container */
.tg_fc_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
}

.tg_fc_block {
  padding: 20px;
  margin: 0px;
  text-align: center;
  width: 100%;
}

/* Button styling */
.tg_fc_game_button {
  width: 100%;
  padding: 15px;
  margin: 5px 0;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tg_fc_game_button:hover,
.tg_fc_game_button:focus {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  outline: none;
}

.tg_fc_game_button:active {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.tg_ac_game_answer_button {
  padding: 15px;
  margin: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 5px;
  cursor: pointer;
  animation: scaleIn 0.3s ease;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tg_ac_game_answer_button:hover,
.tg_ac_game_answer_button:focus {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  outline: none;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



.scale-in {
  animation: scaleIn 0.5s ease-out;
}

.tg_fc_easy_button {
  padding: 2px;
  margin: 10px;
  font-size: x-small;
  font-weight: 100;
  text-align: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  padding-left: 10px;
  padding-right: 10px;
  border-color: var(--text-color);
  border-width: thin;
  border-style: dotted;
}

.tg_fc_easy_button:hover,
.tg_fc_easy_button:focus {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  outline: none;
}

.tg_fc_easy_button:active {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.tg_fc_game_a {
  color: var(--accent-color);
  text-decoration: underline dotted;
  font-weight: bolder;
  font-size: larger;
}

.tg_fc_game_a:hover,
.tg_fc_game_a:focus {
  text-decoration-style: solid;
  color: var(--accent-hover);
}

.tg_fc_intro_answers {
  color: var(--accent-color);
  text-decoration: underline dashed;
  font-weight: bolder;
  font-size: 1.7em;
}

.tg_fc_intro_answers:hover,
.tg_fc_intro_answers:focus {
  text-decoration-style: solid;
  color: var(--accent-hover);
}

/* Input field styling */
.tg_fc_game_input {
  width: 75%;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid var(--text-color);
  margin-top: 10px;
  font-size: 1em;
}

.tg_fc_game_input:focus {
  border-color: var(--accent-color);
  background-color: #f0f0f0;
  outline: none;
}

/* Settings and smaller buttons for responsive handling */
.tg_fc_settings {
  width: 100%;
}

.tg_fc_settings H4 {
  color: var(--accent-color);
  margin-bottom: -1px;
  text-decoration: underline gray 0.5px;
}

.tg_fc_smallButton {
  width: 30%;
  font-size: 0.75em;
  padding: 7px;
  margin: 2%;
  margin-right: 2%;
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tg_fc_smallButton:last-child {
  margin-right: 0;
}

.tg_fc_checkboxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 8px;
}

.tg_fc_checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.tg_card_stats_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.85em;
}

.tg_card_stats_table th,
.tg_card_stats_table td {
  border: 1px solid var(--text-color);
  padding: 4px;
}

.tg_card_stats_table th {
  background: var(--text-color);
  color: var(--bg-color);
}

.tg_fc_sweetCardImage{
  max-width: 100%;
  max-height: 200px;
  animation: scaleIn 0.3s ease;
}

.tg_fc_cardName{
  text-align: center;
  font-size: 1.7em;
  font-weight: bold;
  color: var(--text-color);
}




#newCardDisplay {
  display: block;
  padding-top: 10px;
  padding-bottom: 10px;
  margin-top: 5px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

#textInput {
  margin-bottom: 10px;
}

#testButton {
  margin-bottom: 10px;
}

.tg_nr_fcg_char_container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tg_nr_fcg_char_button {
  padding: 10px 12px;
  margin: 5px;
  min-width: 42px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 2px solid var(--text-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
}

.tg_nr_fcg_char_button:hover,
.tg_nr_fcg_char_button:focus {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  outline: none;
}

.tg_nr_fcg_char_button:active {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(1px);
}

#autoPlayAudio {
  width: 10px;
}

.tg-word-select-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.tg-word-select-btn {
  width: 35%;
  padding: 15px;
  margin: 5px;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tg-word-select-btn:hover,
.tg-word-select-btn:focus {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  outline: none;
}

.tg-word-select-btn.disabled {
  opacity: 0.4;
  background: #ccc;
  cursor: not-allowed;
}

.tg-word-select-start {
  width: 35%;
  padding: 15px;
  margin: 5px;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.tg-word-select-start:hover,
.tg-word-select-start:focus {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  outline: none;
}

.tg-timer-select {
  width: 100%;
  text-align: center;
  margin: 10px 0;
}
.tg-timer-select input {
  width: 80%;
}

.tg_fc_timer {
  display: none;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}
.tg_fc_timer span {
  margin-right: 10px;
  font-weight: bold;
  color: var(--text-color);
}
.tg_fc_timer_bar {
  flex-grow: 1;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  height: 10px;
}
#timeProgress {
  background: var(--accent-color);
  width: 0%;
  height: 100%;
}

.tg_fc_final_bar {
  width: 100%;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  height: 15px;
  margin: 10px 0;
}
.tg_fc_final_fill {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
}

#grade {
  font-size: 8em;
  font-weight: bold;
  margin-bottom: 10px;
}


/* Media Queries for different screen sizes */
@media (min-width: 600px) {
  .tg_fc_container {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 800px;
  }

  .tg_fc_block {
    flex: 1 1 300px;
  }

  .tg_fc_game_button,
  .tg_fc_game_input {
    padding: 20px;
    font-size: 1.25rem;
  }

  .tg_fc_smallButton {
    max-width: 100px;
    width: 25%;
    font-size: 0.75em;
    padding: 3px;
    margin: 2%;
    margin-right: 2%;
  }

  .tg_fc_cardName {
    font-size: 2em;
  }

  .tg_fc_sweetCardImage {
    max-height: none;
  }

}

@media (min-width: 900px) {
  .tg_fc_container {
    max-width: 900px;
  }

  .tg_fc_cardName {
    font-size: 2.2em;
  }

}

