:root {
  --correct: #187c16;
  --correct-text: #efeff1;
  --incorrect: #7c1618;
  --incorrect-text: #efeff1;
  --close: #e5df37;
  --close-text: #0e0e10;
  --bg-button: #38383d;
}

html,
body,
.content {
  min-height: 100vh !important;
}

html {
  background-color: var(--bg);
  color: var(--default-color);
  font-family: Roobert, Helvetica, Arial, sans-serif;
  font-size: 1em;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding: 0;
}

#page-title-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  box-sizing: border-box;

  margin-bottom: 5em;
}

#page-title {
  margin: 0;
  padding: 0;
  font-size: 4rem;
}

#page-subtitle {
  margin: 0;
  padding: 0;
}

#puzzle-date {
  margin: 0.33em 0;
  font-size: 1.33rem;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  box-sizing: border-box;

  background: var(--bg-light);
}

@media (max-width: 750px) {
  :root {
    font-size: 8pt;
  }

  .content {
    padding: 15px;
    width: 100%;
  }

  .section {
    width: 100%;
    box-sizing: border-box;
  }

  #entry-count {
    font-size: 1.33em;
    margin: 0.25em;
  }

  #entry-tip,
  #entry-error {
    font-size: 0.9em;
    margin: 0.25em;
  }
}
@media (min-width: 750px) and (max-width: 1333px) {
  :root {
    font-size: 10pt;
  }

  .content {
    padding: 35px;

    min-width: 750px;
    width: 90%;
  }

  .section {
    width: 90%;
    box-sizing: border-box;
  }

  #entry-count {
    font-size: 1.1em;
    margin: 0.25em;
  }

  #entry-tip,
  #entry-error {
    font-size: 0.8em;
    margin: 0.25em;
  }
}
@media (min-width: 1333px) {
  .content {
    padding: 50px;

    width: 1200px;
  }

  #entry-section {
    width: 75%;
  }

  #table-section {
    width: 90%;
    margin: 3em 0;
  }

  #entry-count {
    font-size: 1.1em;
    margin: 0.25em;
  }

  #entry-tip,
  #entry-error {
    font-size: 0.8em;
    margin: 0.25em;
  }
}

#entry-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  box-sizing: border-box;

  margin-bottom: 2em;
}

#entry-error {
  color: #f74622;
}

#section-title {
  font-size: 2.2rem;
}

#guess-entry {
  width: 100%;
}

#win-section .section-title {
  text-align: center;
}

#game-info {
  text-align: center;
}

#win-section {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-content: center;

  margin-bottom: 2em;
}

#screenshot-section, #description-section {
  display: none;
  max-width: 80%;
}

#game-screenshot {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
}

.screenshot {
  max-width: 100%;
}

#share-results {
  display: flex;
  flex-direction column;
  justify-content: center;
  align-items: center;
}

#share-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  font-size: 1.25em;
  border: 1px solid transparent;
  padding: 0.25em;
  background-color: var(--twitch-purple);
  color: var(--bg);
  cursor: pointer;
}

#table-section {
  margin: 3em 0;

  max-width: 100%;
  overflow-x: scroll;
}

#table-section table {
  width: 100%;
}

#table-section table,
#table-section th,
#table-section td {
  border: 3px solid var(--bg-lighter);
  border-collapse: collapse;
}

#table-section td {
  text-align: center;
}

#table-section td p {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#table-section td.wrong {
  background-color: var(--incorrect);
  color: var(--incorrect-text);
}

#table-section td.close {
  background-color: var(--close);
  color: var(--close-text);
}

#table-section td.correct {
  background-color: var(--correct);
  color: var(--correct-text);
}

.autocomplete {
  position: relative;
  display: flex;
  width: 100%;
}

input {
  border: 1px solid transparent;
  background-color: var(--bg-lighter);
  padding: 0.5em;
  font-size: 1.25em;
}

input[type="text"] {
  color: var(--default-color);
  flex: 1;
  margin-right: 0.5em;
}

input[type="submit"] {
  background-color: var(--twitch-purple);
  color: var(--bg);
  cursor: pointer;
}

input[type="submit"]:disabled {
  background-color: var(--bg-button);
  cursor: default;
}

.autocomplete-list {
  position: absolute;
  border: 1px solid var(--bg);
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-list div {
  padding: 10px;
  cursor: pointer;
  background-color: var(--bg-lighter);
  border-bottom: 1px solid var(--bg-light);
}

/*when hovering an item:*/
.autocomplete-list div:hover {
  background-color: var(--bg-button);
}

/*when navigating through the items using the arrow keys:*/
.ac-item-active {
  background-color: var(--bg-button) !important;
  color: var(--default-color);
}

#hint-key-section {
  border: 3px solid var(--bg-lighter);
  padding: 1em;
}

.hint-key-paragraph ul {
  margin-top: 0.1em;
}
