:root {
  --main: #04AA6D;
  --correct: rgba(19, 163, 45);
  --correctLight: ;
  --wrong: ;
  --wrongLight: ;

  --back-color-1: #85eec0;
  --back-color-2: #66b0e5;
  --header-color: white;
  --settingsGearFilter: invert(0%) brightness(97%);
  --settings-back-color: #f5f5f5;

  --background-image: linear-gradient(var(--back-color-1), var(--back-color-2));;

  --btnColor: #04AA6D;
  --btnColorHover: #048a59;
  --btnTextColor: white;

  --searchText: black;
  --searchBackground: #fbfbfb;
  --searchBorder: 1px solid #ddd;
  --dropdownButtonHover: #f6f6f6;
  --disabledInputBG: #afafaf;

  --headerText: #070807;
  --bodyText: #222222;
  --cardshadow: 0px 2px 8px 2px #0424051c;

  --containerColor: rgba(255, 255, 255, 0.60);
  --hintBackground: #3c5eab;
  --hintBackgroundHover: #3c5eab;
  --floatingBoxBackground: whitesmoke;
  --floatingBoxTrim: white;

  --clueBtnColor: #ffffff;
  --clueBtnBackground: #2a52b4;
  --clueBtnBorder: 1px solid #204299;
  --clueBtnColorDisabled: rgb(109, 107, 107);
  --clueBtnBackgroundDisabled: rgb(214, 214, 214);
  --clueBtnBorderDisabled: 1px solid rgb(182, 182, 182);

  --shareBtnColor: #9ad9c8;
  --shareBtnColorHover: #82c2b1;

  --correctRGB: rgb(19, 163, 45);
  --wrongRGB: rgb(191, 63, 32);
  --skipRGB: rgb(124, 124, 124);
  --noneRGB: rgb(122, 3, 151);

  --epHistoryText: white;
}

body.dark-mode {
  --back-color-1: #0216b5;
  --back-color-2: #000549;
  --header-color: #141414;
  --settingsGearFilter: invert(100%) brightness(60%);
  --settings-back-color: #222222;

  --background-image-url: url('assets/stars.webp');
  --background-image: var(--background-image-url), linear-gradient(var(--back-color-1), var(--back-color-2));;

  --btnColor: #59a352;
  --btnColorHover: #4d9146;
  --btnTextColor: #030303;

  --searchText: #e9e9e9;
  --searchBackground: #202020;
  --searchBorder: 1px solid black;
  --dropdownButtonHover: #3d3d3d;
  --disabledInputBG: #353535;

  --headerText: #f3f7f3;
  --bodyText: #f5ecec;
  --cardshadow: 0px 2px 8px 2px #393939;

  --containerColor: rgba(255, 255, 255, 0.20);
  --hintBackground: #373737;
  --hintBackgroundHover: #2f2f2f;
  --floatingBoxBackground: #2f2f2f;
  --floatingBoxTrim: #363636;

  --clueBtnColor: #ffffff;
  --clueBtnBackground: #2a52b4;
  --clueBtnBorder: 1px solid #204299;
  --clueBtnColorDisabled: #8f8f8f;
  --clueBtnBackgroundDisabled: rgb(40, 40, 40);
  --clueBtnBorderDisabled: 1px solid #4d4d4d;

  --shareBtnColor: #c6d7d2;
  --shareBtnColorHover: #b0c5bf;

  --correctRGB: #0d6d1f;
  --wrongRGB: #972c13;
  --skipRGB: #535353;
  --noneRGB: rgb(111, 52, 125);

  --epHistoryText: #fff;
}

@font-face {
  font-family: Nunito Sans;
  src: url(assets/fonts/Nunito_Sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf)
}

body.color-blind {
  --clueBtnColor: #ffffff;
  --clueBtnBackground: #2a52b4;
  --clueBtnBorder: 1px solid #204299;
  --clueBtnColorDisabled: rgb(109, 107, 107);
  --clueBtnBackgroundDisabled: rgb(40, 40, 40);
  --clueBtnBorderDisabled: 1px solid rgb(182, 182, 182);

  --correctRGB: #999C0F;
  --wrongRGB: #BF2020;
  --skipRGB: #030397;
  --noneRGB: rgb(102, 178, 178);
}

html {

}

body {
  background-image: var(--background-image);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed;

  margin: 0;
  font-family: Nunito Sans, sans-serif;
  font-size: 1em;

  min-height: 100svh;
  overflow-y: scroll;
}

@font-face {
  font-family: spongeboy;
  src: url(assets/fonts/spongeboy-font/SpongeboyReg.otf);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: spongeboy;
  color: var(--headerText);
  margin: 4px;
}

h1 {
  font-size: clamp(1rem, 5vw, 2.0rem);
  padding-bottom: 16px;
}

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

.headerRow {
  padding-left: 76px;
  display: flex;
  margin-top: 16px;
}

.tableHeader {
  display: flex;
  width: 167px;
  padding: 0px 0px 8px 8px;
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 1px solid #a5a5a5;
  align-items: center;
}

.propertyBox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 50px;
  padding: 10px;
  border: 3px solid white;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: white;
  margin: 8px 0 0 0 ;
  position: relative;
  cursor: default;
}

.altActor {
  display: block !important;
  position: absolute;
  bottom: 85%;
  background-color: whitesmoke;
  color: var(--bodyText);
  padding: 12px;
  border-radius: 4px;
  cursor: help;
  width: 300px;
  box-shadow: var(--cardshadow);
}

.floatingBox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min-content;
  min-width: 50px;
  height: 50px;
  padding: 10px;
  border: 3px solid white;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: var(--bodyText);
}

#picture {
  height: 70px;
  width: 70px;
  padding: 0;
}

.win-image {
  width: 100px;
  height: 100px;
}

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--header-color);
  width: 100%;
  height: 52px;
  align-content: center;
  position: sticky;
  box-shadow: 0px 2px 8px #0424051c;
  top: 0;
  z-index: 1000;
}

.header-tab {
  text-decoration: none;
  padding: 8px 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  color: var(--headerText);
  border-radius: 4px;
  background-color: #f6f6f6;
}

.header-tab:hover {
  background-color: #e2e2e2;
}

.currentPage {
  font-weight: bold;
  color: #03300b;
  background-color: #13a32d3b;
}

.currentPage:hover {
  font-weight: bold;
  color: #03300b;
  background-color: #13a32d3b;
}

#logo {
  height: 40px;
  width: auto;
  margin-right: 16px;
  padding-left: 16px;
}

.svg-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.svg-button img {
  height: 32px;
  filter: var(--settingsGearFilter);
}

.svg-button:hover img {
  filter: var(--settingsGearFilter) brightness(1.2);
}

#settingsPopup {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.settingsContent {
  background-color: var(--settings-back-color);
  margin: auto;
  padding: 20px;
  border: var(--searchBorder);
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  box-shadow: var(--cardshadow);

  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#settingsPopup.active .settingsContent {
  transform: translateY(0);
  opacity: 1;
}

.settingsText {
  color: var(--bodyText);
  font-weight: 600;
  width: 110px; 
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.toggle-switch {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 20px;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.toggle-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.toggle-track {
  fill: #ccc;
  transition: fill 0.3s ease-in-out;
}

.toggle-knob {
  fill: white;
  transform: translateX(0);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-visual .toggle-track {
  fill: var(--correctRGB);
}

.toggle-input:checked + .toggle-visual .toggle-knob {
  transform: translateX(30px);
}

.toggle-input:focus-visible + .toggle-visual {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.toggle-switch:hover .toggle-track {
  filter: brigthtness(0.9);
}

.close-button {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.btn {
  padding: 6px 24px;
  border-radius: 4px;
  background-color: var(--btnColor);
  font-family: Nunito Sans, sans-serif;
  font-size: 1em;
  font-weight: 700;
  color: var(--btnTextColor);
  text-decoration: none;
  display: block;
  width: fit-content;
  height: 36px;
  border: none;
}

.btn:hover {
  background-color: var(--btnColorHover);
  cursor: pointer;
}

.gameMode {
  width: 250px;
}

.clue-btn {
  background-color: var(--clueBtnBackground);
  border: var(--clueBtnBorder);
  color: var(--clueBtnColor);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 0 2px;
  font-size: 1em;
  cursor: pointer;
  height: 36px;
  width: 36px;
}

.clue-btn:disabled {
  background-color: var(--clueBtnBackgroundDisabled);
  border: var(--clueBtnBorderDisabled);
  color: var(--clueBtnColorDisabled);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 0 2px;
  font-size: 1em;
  cursor: not-allowed;
}

#inputHint {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 344px;
}

.actBtn {
  display: flex;
  margin: auto;
}

#shareResults {
  margin: auto;
  background-color: var(--shareBtnColor);
  color: #02460f;
  font-weight: 700;
  margin-top: 8px;
}

#shareResults:hover {
  margin: auto;
  margin-top: 8px;
  background-color: var(--shareBtnColorHover);
  color: #02460f;
  font-weight: 600;
}

#streak-parade-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 100;
  pointer-events: none;
}

.streakSprite {
  max-width: 12vw;
  max-height: 6vh;
  position: absolute;
}

#nextButton {
  margin: auto;
}

.container {
  max-width: 800px;
  min-width: 300px;
  text-align: center;
  background-color: var(--containerColor);
  border-radius: 24px;
  padding: 32px;
  margin: 32px auto;
  height: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  box-shadow: 20px 20px 3px 2px #0000004a;
}

.pane {
  padding: 0 32px;
  min-width: 300px;
  margin: auto;
}

.image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px;
}

.image-container img {
  display: block;
  height: auto;
  
}

.border-image {
  position: absolute;
  width: 139%;
  z-index: 2;
  pointer-events: none;
}

#episodeImage {
  width: 400px;
  height: 300px;
}

#quoteImage {
  width: 400px;
  height: 300px;
  border-radius: 16px;
}

.clue {
  position: relative;
}

.clue:hover {
  cursor: help;
}

.clue-num {
  margin: 16px;
  display: flex;
  align-items: center;
}

#episodeTextClue {
  display: flex;
}

.epHint {
  display: block !important;
  position: absolute;
  background-color: var(--floatingBoxBackground);
  color: var(--bodyText);
  padding: 12px;
  border-radius: 4px;
  cursor: help;
  width: max-content;
  max-width: 300px;
}

.floatingHint {
  display: block;
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 10px;
  border: 3px solid var(--floatingBoxTrim);
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  color: var(--bodyText);
  white-space: normal;
  text-align: center;
}

.hintBtn {
  border: 1px solid red;
  visibility: visible;
}

.clue-button-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--hintBackgroundHover);
  background-image: url('./assets/icons/hint.svg');
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--bodyText);
}

.clue-button-container:hover {
  background-image: url('./assets/icons/hintHover.svg');
  cursor: help;
}

.ep-history {
  width: 400px;
  height: min-content;
  padding: 16px;
  border-radius: 16px;
  justify-content: left;
  display: flex;
  min-width: 50px;
  font-weight: 800;
  color: var(--epHistoryText);
  margin-top: 8px;
}

.dropbtn {
  background-color: var(--main);
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropbtn:hover,
.dropbtn:focus {
  background-color: var(--main);
}

#searchInput {
  box-sizing: border-box;
  color: var(--searchText);
  background-color: var(--searchBackground);
  background-position: 14px 12px;
  background-repeat: no-repeat;
  width: 100%;
  height: 40px;
  font-size: 1em;
  padding: 8px 16px;
  border: var(--searchBorder);
  border-radius: 4px;
}

#noResults {
  text-align: left;
  padding: 2px 16px;
  margin: 0;
  font-family: arial;
  color: #626970;
}

.input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.input-container .search-box:focus+#myDropdown {
  visibility: visible;
}

.clear-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 24px;
  display: none;
  padding: 0 5px;
}

.clear-button:hover {
  color: #333;
}

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

.dropdown-content {
  background-color: var(--searchBackground);
  width: 100%;
  height: auto;
  max-height: 150px;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  border: 1px solid #cccccc;
  border-radius: 8px;
  z-index: 3;
  position: absolute;
}

.dropdown-content:hover {
  visibility: visible;
}

.dropdown-content button {
  color: var(--headerText);
  padding: 8px 16px;
  text-decoration: none;
  text-align: left;
  display: block;
  width: 100%;
  font-size: 1em;
  height: 40px;
  border: none;
  background-color: transparent;
}

.dropdown-content button:hover {
  background-color: var(--dropdownButtonHover);
  cursor: pointer;
}

.show {
  visibility: visible;
}

#responseContainer {
  display: flex;
  align-items: center;
}

#quote {
  margin-bottom: 24px;
}

#keyboardDIV {
  margin-bottom: 16px;
}

#keyboardDIV button {
  border-radius: 4px;
  width: 32px;
  height: 32px;
  font-weight: 500;
  font-family: arial;
  font-size: 1em;
  background-color: rgb(173, 216, 230);
  margin: 2px;
  border: none;
}

#keyboardDIV button:hover {
  background-color: rgb(166, 207, 221);
  cursor: pointer;
}

#keyboardDIV button:disabled {
  color: white;
  cursor: default;
}

.quote-box {
  box-sizing: border-box;
  background-color: #fbfbfb;
  background-position: 14px 12px;
  background-repeat: no-repeat;
  width: 300px;
  height: 40px;
  font-size: 1em;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

@media screen and (max-width: 480px) {
  .pane {
    padding: 0 8px;
    min-width: 300px;
    margin: auto;
  }

  .container {
    max-width: none;
    margin: 8px auto;
    padding: 8px;
  }

  h1 {
  font-size: clamp(1rem, 5vw, 2.0rem);
  padding-bottom: 8px;
  }

  .header {
    padding: 0;
  }

  .header-tab {
    padding: 4px 8px;
    font-size: 0.7em;
    width: 75px;
    height: 30px;
  }

  .headerRow {
    padding-left: 50px;
  }

  #winPicture {
    width: 100%;
    height: 100%;
  }

  .ep-history {
    width: 300px;
  }

  #logo {
    padding-left: 8px;
  }

  .dropdown-content {
    bottom: 100%;
  }

  #inputHint {
  min-width: 65vw;
  max-width: 65vw;
  }

  .floatingHint {
  left: unset;
  right: 0%;
  transform: none;
  max-width: 80vw;
  }

  .propertyBox {
    width: 38px;
    font-size: 0.7em;
    height: 25px;
    padding: 8px;
  }

  #responseContainer {
    justify-content: space-between;
  }

  #responseContainer p.propertyBox {
    /* width: auto; */
  }

  #episodeImage {
    width: 100%;
    height: 100%;
  }

  #picture {
    height: 40px;
    width: 40px;
    padding: 0;
  }

  .tableHeader {
    width: 50px;
    padding: 0px 0px 8px 8px;
    font-size: 0.6em;
  }
}



.guess-distribution-graph {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-left: 10px;
	background-color: var(--settings-back-color);
	opacity: 0.8;
	border-radius: 16px;
	box-shadow: var(--cardshadow);
}

.graph-bar {
    background-color: var(--correctRGB);
    width: 40px;
    text-align: center;
    color: white;
    font-weight: bold;
    position: relative;
    box-sizing: border-box;
}

.graph-bar-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    color: var(--headerText);
}
