@import url("https://fonts.googleapis.com/css?family=Poppins:400,700");

:root {
  --color-hue: 0;
  --color-saturation: 0%;
}

a {
  text-decoration: none;
  color: white;
  z-index: 1;
}

html,
body {
  margin: 0px;
  padding: 0px;
  font-family: "Poppins", serif;
  line-height: 1;
}

::backdrop {
  background: black;
  opacity: 0.7;
}

dialog {
  width: 40vw;
  height: 30vw;
  background-color: #121212;
  border: none;
  border-radius: 30px;
  padding: 2em;
  overflow: hidden;
}

#close {
  float: right;
  cursor: pointer;
  margin: 0.1em;
  width: 2em;
  height: 2em;
}
#close img {
  width: 2em;
  height: 2em;
}

.context {
  width: 100%;
  position: absolute;
  top: 10vh;
  text-align: center;
  color: #fff;
}

.context h1 {
  font-size: 24px;
}
.context h2 {
  font-size: 22px;
}
.context h3 {
  font-size: 20px;
}
.context h4 {
  font-size: 18px;
}
.context h5,
.context h6 {
  font-size: 16px;
}
s {
  text-decoration: line-through 2px;
}

#container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  grid-gap: 2rem;
  margin: 2rem;
}

#counter {
  margin-left: auto;
  margin-right: auto;
  height: 20px;
  width: 135px;
  z-index: 10;
  position: absolute;
  display: inline-block;
  justify-content: none;
}
#el1 {
  display: inline-block;
  margin: 0;
}
h3 {
  color: white;
  font-size: 24px;
  margin: 20px 0 0 20px;
}
p {
  color: white;
  font-weight: 400;
  font-size: 16px;
  align-self: end;
  margin: 0 0 20px 20px;
  letter-spacing: 0.5px;
}
.circles li img,
.card img {
  position: absolute;
  top: 0;
  height: 110%;
  width: 100%;
  z-index: -1;
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: brightness(0.6);
}
.card {
  height: 215px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: 1fr 1fr;
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.card:hover {
  transform: scale(1.035, 1.035);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.card:hover img {
  transform: translateY(-10px);
}
button {
  display: inline-block;
  border-radius: 4px;
  background-color: var(--search-backgrounds);
  border: none;
  color: #ffffff;
  text-align: center;
  font-size: 17px;
  padding: 16px;
  width: 130px;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
}
#search-bar.failedSearch {
  border-color: #f00;
}
button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
button span:after {
  position: absolute;
  opacity: 0;
  top: 0;
  right: -15px;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
button:hover span {
  padding-right: 15px;
  z-index: 5;
}
button:hover span:after {
  opacity: 1;
  right: 0;
  z-index: 5;
}

.small-text {
  font-size: 15px;
  font-family: Arial;
  color: white;
  text-align: center;
}

.dotted {
  color: black;
  border-radius: 10px;
  padding: 1em;
  display: inline-block;
  width: 90%;
}

.pink {
  background: pink;
}

.blue {
  background: #89cff0;
}

.black {
  color: white;
  background: black;
  border-color: white;
  border-style: dashed;
}

.secret {
  opacity: 0;
}
.secret:hover {
  opacity: 30%;
  transition: 0.5s;
}
a.link {
  text-decoration: underline;
  font-family: Arial;
}

#submit-search {
  width: 22px;
  height: 24px;
  margin: -8px -13.5px;
  position: relative;
  left: -27px;
  background-image: url("../images/bitmap/search.png");
}
.search-button {
  padding: 0px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  background-size: contain;
  background-repeat: no-repeat;
  transition: 1s;
}
.search-button:hover {
  scale: 120%;
}
#advanced-search {
  position: relative;
  top: 8px;
  margin: 0px 10px;
  width: 24px;
  height: 24px;
  background-image: url("../images/bitmap/drop.png");
}
#advanced-search.active {
  transform: rotate(-180deg);
}
#advanced-menu {
  background-color: color-mix(in hsl, var(--search-border-color), white 10%);
  display: block;
  overflow: hidden;
  width: calc(340px - 2em);
  border: var(--search-border-color) solid;
  text-align: left;
  margin: -15px calc(50% - 165px) 20px auto;
  padding: 0px 2em;
  height: 0px;
  transition: all 1s;
  line-height: normal;
}
#advanced-search.active + #advanced-menu {
  padding: 2em;
  font-weight: bold;
  height: 400px;
  overflow-y: auto;
}
#search-bar {
  width: 22em;
  position: relative;
  padding: 0.6em 1em;
  box-sizing: border-box;
  border-radius: 20px;
  font-size: 1.1em;
  transition: 2s;
}
#tag-search {
  width: calc(80% - 24px);
}
#tag-list {
  display: none;
  top: 5px;
  position: relative;
  width: inherit;
  overflow-wrap: anywhere;
}
#submit-tag {
  display: inline-block;
  aspect-ratio: 1/1;
  justify-content: center;
  height: 29px;
  text-align: center;
  border-color: var(--search-border-color);
  background-color: var(--search-backgrounds);
  cursor: pointer;
}
.text-container {
  width: 100%;
  display: inline-flex;
  margin-top: 0.3em;
}
.text-container input {
  flex: auto;
}
.search-text {
  color: white;
  font-family: "Poppins";
  border: solid;
  border-color: var(--search-border-color);
  background-color: var(--search-backgrounds);
}
.search-text:hover {
  border-color: color-mix(in hsl, var(--search-border-color), white 25%);
  cursor: pointer;
}
.search-text:focus {
  border-color: white;
  outline: none;
  cursor: text;
  background-color: color-mix(in hsl, var(--search-backgrounds), white 10%);
}
.tag-query {
  cursor: url("../images/bitmap/x.png") 8 8, auto;
}
.tag-block {
  padding: 5px;
  display: inline-block;
  background-color: hsl(
    var(--color-hue),
    calc(var(--color-saturation) - 5%),
    13%
  );
  margin: 2px 5px;
  transition: 0.2s all;
}
.tag-block:hover {
  color: orange;
  text-decoration: underline;
}

.tag-query.tag-block:hover {
  color: #f00;
  text-decoration: line-through;
}
.fake-card div {
  background-image: linear-gradient(
    -70deg,
    #3c3c3c,
    #3c3c3c 35%,
    #9f9f9f,
    #3c3c3c 65%
  );
  background-size: 200% 100%;
  animation: 1s linear 1s infinite load;
}
footer {
  line-height: 1.5;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  width: 16em;
  padding: 0.5em 0.8em;
  border-radius: 12px;
  border: solid 1.5px var(--search-border-color, #555);
  background-color: var(--search-backgrounds, #1a1a1a);
  color: white;
  font-family: "Poppins", sans-serif;
  font-size: 0.95em;
  box-sizing: border-box;
  resize: vertical;
  transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

input:hover,
textarea:hover {
  border-color: color-mix(in hsl, var(--search-border-color, #555), white 25%);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: white;
  background-color: color-mix(
    in hsl,
    var(--search-backgrounds, #1a1a1a),
    white 10%
  );
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

input:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input.error,
textarea.error {
  border-color: #f00;
  background-color: rgba(255, 0, 0, 0.1);
}

.changelog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.changelog-overlay.active {
  display: flex;
}

.changelog-dialog {
  background: #1c1c1c;
  border-radius: 12px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.changelog-header {
  background: #090909;
  color: white;
  padding: 30px;
  border-radius: 12px 12px 0 0;
  border-bottom: 2px solid #2d2d2d;
}

.changelog-header h2 {
  font-family: "Exo", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.changelog-version {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #6e6e6e;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.changelog-content {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.changelog-content::-webkit-scrollbar {
  width: 8px;
}

.changelog-content::-webkit-scrollbar-track {
  background: #131313;
  border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb {
  background: #2d2d2d;
  border-radius: 4px;
}

.changelog-content::-webkit-scrollbar-thumb:hover {
  background: #3b3b3b;
}

.changelog-section {
  margin-bottom: 25px;
}

.changelog-section:last-child {
  margin-bottom: 0;
}

.changelog-section h3 {
  font-family: "Exo", sans-serif;
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.changelog-item {
  padding: 10px 0;
  color: #fff;
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  border-bottom: 1px solid #2d2d2d;
  display: flex;
  align-items: flex-start;
}

.changelog-item:last-child {
  border-bottom: none;
}

.changelog-item::before {
  content: "•";
  color: white;
  font-weight: bold;
  margin-right: 12px;
  font-size: 18px;
  line-height: 1.6;
  flex-shrink: 0;
}

.changelog-footer {
  padding: 0 30px 30px;
}

.changelog-close-btn {
  background: #2d2d2d;
  color: white;
  border: 2px solid #1e1e1e;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.changelog-close-btn:hover {
  background: #3b3b3b;
  border-color: #6e6e6e;
}

.changelog-trigger-btn {
  background: #2d2d2d;
  color: white;
  border: 2px solid #1e1e1e;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.changelog-trigger-btn:hover {
  background: #3b3b3b;
  border-color: #6e6e6e;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

@keyframes load {
  from {
    background-position-x: -80%;
    scale: 100%;
  }
  50% {
    scale: 105%;
  }
  to {
    background-position-x: 120%;
    scale: 100%;
  }
}
