.popup {
  transition: transform 0.3s ease-in-out;
  background-color: var(--bg);
  color: var(--text);
  position: fixed;
  overflow: auto;
  display: block;
  height: 100dvh;
  width: 100%;
  left: -100%;
  z-index: 3;
}

.popup.active {
  transform: translateX(100%);
}

.popup::-webkit-scrollbar {
  display: none;
}

.popup-header {
  background-color: var(--bg);
  justify-content: left;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  position: absolute;
  height: 9dvh;
  width: 100%;
  left: 0;
  top: 0;
}

.popup-header svg {
  transition: transform 0.3s ease;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  background: none;
  position: absolute;
  height: 6dvh;
  margin: 1.5dvh 2dvh;
  width: 6dvh;
  padding: 0;
  right: 0;
  top: 0;
}

.popup-header h1,
.popup-header h2,
.popup-header h3 {
  margin: 3dvh;
  font-size: 5dvh;
}

.popup-content {
  transform: translateX(-50%);
  scrollbar-width: none;
  text-align: center;
  position: absolute;
  max-width: 500px;
  overflow: auto;
  height: 91dvh;
  margin: auto;
  width: 90%;
  left: 50%;
  top: 9dvh;
}

.popup-content button {
  background-color: var(--bg);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  font-size: 3dvh;
  height: 10dvh;
  width: 100%;
  padding: 0;
}

.popup-content a {
  background-color: var(--bg);
  text-decoration: underline;
  color: var(--text);
}

.popup-content img {
  border-radius: 5px;
  height: auto;
  width: 100%;
}

.popup-content p {
  text-align: justify;
}

.colorCards {
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  display: grid;
  height: 91dvh;
  padding: 0;
  gap: 1dvh;
}

.colorCard {
  aspect-ratio: 4 / 3;
  cursor: pointer;
  height: auto;
  margin: auto;
  width: 100%;
}

.color {
  border-radius: 3px;
  border: 1px solid;
  height: 60%;
  margin: 5%;
  width: 90%;
}

.colorCard h3 {
  font-size: 3vh;
}

#versionDisplay {
  text-align: center;
}

#historyPopup {
  width: 75%;
  left: -75%;
}

#historyContent {
  overflow-wrap: anywhere;
  font-size: 5vw;
  padding: 3px;
}

#historyContent div {
  margin: 3dvh 0;
}