body {
  background-color: #fff3f7;
  background-image: url("background.png")
}
.container {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 0 1rem;
  align-content: center;
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.25rem;
  border-bottom: 1px dashed #000000;
  margin-bottom: 2.5rem;
}
.logo {
  height: auto;
  max-height: 100px;
  padding-right: 1rem;
  display: inline-block;
  vertical-align: middle;
}
.top-writing {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 1px 1px #f8e0f5;
  letter-spacing: 0.5px;
  transform: translateY(.688rem);
}

.title-purple {
  color: #893dd4;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.title-pink {
  color: #893dd4;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.nav-buttons {
  display: inline-flex;
  gap: 0;
  transform: translateY(.75rem);
  padding-left: 5.625rem;
  border-radius: 62.438rem;
  height: 2.5rem;
}

.nav-btn {
  background: linear-gradient(to bottom, #f2eafc, #dbc8f8);
  color: #fc67d5;
  border: 1px solid #343333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  padding: 8px 16px;
  width: 100px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 0;
  font-family: monospace;
}

.left-child {
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}
.right-child {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

@media (max-width: 640px) {
  .logo {
    height: auto;
    max-width: 50%;
  }
  .top-writing {
    display: none;
  }
  .nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gapx: 0;
    row-gap: .1rem;
    padding-left: 0;
    width: 100%;
    height: auto;
    padding-bottom: 1rem;
  }
  .nav-btn {
    height: 2rem;
    font-size: .7rem;
  }
  #open-help {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
  }
  #open-stats {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
  }
}
.pop-up {
  opacity: 0;
  position: fixed;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all 0.3s ease-in-out;
  z-index: -1;
  display: flex;
}
.pop-up.open {
  opacity: 1;
  z-index: 999;
}
.rules-list {
  list-style-position: inside;
  list-style: -moz-ethiopic-numeric;
  padding-left: 1.5rem;
  margin-top: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  text-alignment: left;
}
.help-inner,
.pop-up-inner {
  text-align: left;
}
.rules-list li {
  margin-bottom: 0.75rem;
  text-align: left;
}
.pop-up-inner {
  background: #fff3f7ff;
  padding: 30px 40px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  font-family: sans-serif;
}
.close-button {
  margin-top: 20px;
  padding: 8px 16px;
  background: linear-gradient(to bottom, #dfd5ee, #c8b7e6);
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
#game-stats {
  text-align: left;
}
.close-button:active {
  background: #333;
}
.nav-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
.h2 {
  justify-content: center;
}
.nav-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
.game {
  display: flex;
  align-items: center;
  flex-direction: column;
}
#idol-image {
  text-align: center;
}

#idol-image img {
  max-width: 40%;
  height: auto;
  display: inline-block;
  border-radius: 10px;
}
.image-popup {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.search-area {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
}

#game-search {
  width: 100%;
  height: 2rem;
  max-height: 35px;
  border-radius: 10px;
  transform: translateY(-5px);
  font-size: 1.3rem;
  font-family: monospace;
  background-color: white;
  border: 2px solid #d5b2ec;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  transition: border 0.2s ease-in-out;
  flex: 1;
  min-width: 200px;
  margin: 0 auto;
}
#game-search:focus {
  border-color: #cf71e6;
  box-shadow: 0 0 0 2px rgba(207, 113, 230, 0.2);
}
.game-buttons {
  display: flex;
  flex: none;
  gap: 0;
  transform: translateY(.75rem);
  border-radius: 62.438rem;
  transform: translateY(-.313rem);
}

#silhouette-button {
  width: 12.5rem;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
}

#timer {
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
  width: 6rem;
  position: relative;
}

@media(max-width: 640px) {
  .search-area {
    justify-content: center;
  }
  .game-buttons {
    order: 1;
    width: 100%;
  }
  #game-search {
    order: 2;
  }
  #silhouette-button {
    width: 100%;
  }
  #timer {
    width: 31%;
  }
}

.suggestions {
  background: white;
  justify-items: center;
  width: 1000px;
  font-family: monospace;
  font-size: 1rem;
  padding: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  list-style: none;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 10px;
  overflow-y: auto;
  max-height: calc(5 * 48px);
}

.suggestions li {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 20px;
  font-family: monospace;
  list-style: none;
  margin: 0;
  text-align: left;
  cursor: pointer;
  font-size: 0.8rem;
}

.suggestions li:active {
  background: #893dd4;
}

.game-table {
  width: 100%;
  max-width: 1000px;
  border-collapse: separate;
  border-spacing: 0 12px;
  font-family: monospace;
  font-size: 1rem;
  text-align: center;
  margin-top: 20px;
}

.game-table th {
  font-weight: bold;
  color: #6e2ca7;
  padding-bottom: 8px;
  text-decoration: underline;
  background: none;
  border: none;
}

.game-table th:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.game-table th:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.game-table tr {
  background-color: white;
  box-shadow: 0 4px 6px rgba(137, 61, 212, 0.25);
  border-radius: 12px;
  padding: 1rem;
  border: none;
  transition: all 0.2s ease;
}

.game-table tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.game-table tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.game-body {
  width: 100%;
  max-width: 1000px;
  justify-content: center;
  justify-items: center;
}
#date-selector {
  background-color: white;
  border: 2px solid #d5b2ec;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  transition: border 0.2s ease-in-out;
  border-radius: 999px;
}
#date-submit {
  background-color: white;
  border: 2px solid #d5b2ec;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  transition: border 0.2s ease-in-out;
  border-radius: 999px;
}
#date-submit:active {
  transform: translateY(4px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}
@media (max-width: 640px) {

  .game-table {
    display: block;
    overflow-x: auto;
  }
  .game-table th {
    width: 100%;
  }
}
.footers {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  margin-top: 100px;
  margin-left: 20px;
}

.footers button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #8048b0;
  cursor: pointer;
}

.footers button:active {
  color: #cf71e6;
  text-decoration: underline;
}