/* Font: Roboto */
@import url("https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Funnel+Display:wght@300..800&family=Imperial+Script&family=Orbitron:wght@400..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* Colors */
@import url("/static/css/colors.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", serif;
  font-weight: 400;
  font-style: normal;
  user-select: none;
}

body,
html {
  height: 100%;
  overflow: hidden;
}

hr {
  width: 100%;
  color: var(--border);
}

.hidden {
    display: none !important;
}

.page-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
  display: flex;
  padding-top: 10rem;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--copy);
  background-image: url("https://cdn.bsky.app/img/feed_thumbnail/plain/did:plc:dhlboqjwqucnpu6c6cmrxdko/bafkreig5yqfo2nwhwftnji4txso4n3i4urbaihilbgezxrtg7y32h2l6xi");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

#header {
  display: flex;
  position: fixed;
  top: 0;
  align-self: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  min-width: 300px;
  padding: 1rem 4rem 1.2rem 4rem;
  border: var(--border) solid 5px;
  border-top: none;
  border-bottom-left-radius: 50vh;
  border-bottom-right-radius: 50vh;
  background-color: var(--foreground);
  z-index: 1000;
}

#header a {
  color: var(--copy-lighter);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

#header a:hover {
  color: var(--primary-light);
}

#header a.active {
  color: var(--primary-light);
}

#theme-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.6s ease;
}

path {
  fill: var(--copy);
}

#theme-toggle.dm {
  transform: rotateZ(180deg);
}

.center-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

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

/* .button {
    font-size: 1.5rem !important;
    background-color: var(--background);
    padding: 1rem;
    border-radius: 1em;
    color: var(--copy-light);
    text-decoration: none;
    margin-bottom: 1em;
} */

.button {
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.5rem !important;
    border-radius: 5px;
    transition: 0.2s ease;
    color: var(--primary-content);
    border: none;
    background-color: var(--primary);
    margin-bottom: 1rem;
}

.button:hover {
    color: var(--secondary-content);
    background-color: var(--secondary);
}

.button:active {
    transition: 0.1s ease;
    transform: scale(0.95);
}

.title * {
  line-height: 0.8em;
}

.title > h1 {
  font-size: 7vw;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  word-wrap: break-word;
  white-space: nowrap;
  margin-top: 15px;
}

.title > h1 b {
  color: var(--secondary);
}

.title > a {
  font-size: 8rem;
  font-weight: 500;
  color: var(--copy-light);
  text-decoration: none;
}

.title > p {
  font-size: 2rem;
  font-weight: 500;
  color: var(--copy-light);
}

@keyframes moveDownUp {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(1rem) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

#move-down {
  cursor: pointer;
  transition: 0.8s ease;
  animation: moveDownUp 0.8s ease-in-out;
}

#move-down:hover {
  transform: translateY(1rem) scale(1.1);
  color: var(--copy-lighter);
}

#gallery {
    padding: 1rem;
    margin: 0 2rem;
    text-align: center;
    columns: 3 300px;
    column-gap: 1.5rem;
}

.gallery-item {
  margin-bottom: 3rem;
  page-break-inside: avoid
}

#gallery img {
  width: 100%;
  min-width: 50px;
  height: auto;
  border-radius: 1rem;
  transition: 0.6s ease;
  cursor: pointer;
}

#gallery img:hover {
  transform: scale(0.98);
}

#gallery p {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--copy-light);
}

.gallery-item-images:has(> *:nth-child(2)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  margin: 1rem;
  border: var(--border) solid 5px;
  border-radius: 1rem;
  background-color: var(--foreground);
  transition: 0.6s ease;
  width: 60%;
  line-height: 3rem;
  white-space: pre-line;
  font-size: 1.8rem;
}

#commissions {
  border: initial;
  background-color: initial;
  transition: initial;
}

.commission {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem;
  border: var(--border) solid 5px;
  border-radius: 1rem;
  background-color: var(--foreground);
  transition: 0.6s ease;
}

.commission > .images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  align-self: center;
}

.commission > .images:has(> *:nth-child(2)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  height: fit-content;
}

.commission img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.commission > .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.commission > .info h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1rem;
}

.commission > .info .tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.commission > .info .price {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-content);
  background-color: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  width: fit-content;
  max-width: 50%;
}

.commission > .info > p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2em;
  color: var(--copy-light);
  width: 100%;
  margin: 1rem 0;

}

.commission > .info .tags > p {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--secondary-content);
  background-color: var(--secondary-light);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
}

.commission > .info .tags.optional > p {
  color: var(--primary-content);
  background-color: var(--primary-dark);
}

.commission > .info .button {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-content);
  background-color: var(--primary);
  padding: 1rem;
  border-radius: 1rem;
  transition: 0.6s ease;
}

.commission > .info .button:hover {
  background-color: var(--primary-light);
  color: var(--primary-content);
  transform: scale(1.1);
}

.commission > .info .button:active {
  transform: scale(0.9);
}

.social-link{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copy-light);
  transition: 0.6s ease;
}

.social-link:hover{
  transform: scale(1.2);
}

.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  text-align: center;
}

/* Error */
.error::before {
    content: "⚠ ";
}

.error {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--error) !important;
    font-size: 1.5em !important;
}

form {
  width: 100%;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.form-item {
  width: 15em;
  max-width: 90%;
}

.form-item > p {
  font-size: 0.8em;
}

label {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    word-wrap: break-word;
    white-space: nowrap;
}

input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    background-color: var(--background);
    color: var(--copy);
}

input:hover {
    transition: 0.2s ease;
    border-color: var(--primary);
}

input:focus {
    border-color: var(--primary-light);
    outline: none;
}

input::placeholder {
    color: var(--copy-lighter);
}

form button, input[type=file]::file-selector-button {
    width: 100%;
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: 0.2s ease;
    color: var(--primary-content);
    border: none;
    background-color: var(--primary);
    margin-bottom: 1rem;
}

form button:hover,input[type=file]::file-selector-button:hover {
    color: var(--secondary-content);
    background-color: var(--secondary);
}

form button:active, input[type=file]::file-selector-button:active {
    transition: 0.1s ease;
    transform: scale(0.95);
}

input[type=file]::file-selector-button {
  font-size: initial;
  width: initial;
  margin-bottom: initial;
  margin-right: 12px;
}

.delete-button {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--error-content);
  background-color: var(--error);
  padding: 0.5rem;
  border-radius: 1rem;
  transition: 0.6s ease;
}

.delete-button:hover {
  background-color: var(--error-content);
  color: var(--error);
  transform: scale(1.1);
}

.delete-button:active {
  transform: scale(0.9);
}

.row {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin-top: -0.5rem;
}

.comic-item {
  width: 20em !important;
  cursor: pointer;
}

.comic-title {
  color: var(--copy-light);
  text-decoration: none;
  font-size: 1.5em;
}

.comic-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  margin-top: 1em;
}

.comic > h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.comic > .description {
  font-size: 0.8em;
  display: flex;
  flex-wrap: wrap;
  width: 50%;
  max-width: 100%;
}

.comic-pages img {
  width: 100%;
  min-width: 50px;
  height: auto;
  border-radius: 1rem;
  transition: 0.6s ease;
  cursor: pointer;
}

.comic-pages img:hover {
  transform: scale(0.98);
}

.image-view-box {
  z-index: 100;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  padding-top: 5em;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-wrapper {
  position: relative;
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 10rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper > img {
  object-fit: contain;
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  border-radius: 10px;
}

.image-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--secondary);
  border: clamp(2px, 6px, 10px) solid var(--secondary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition-duration: 0.2s;
  display: flex;
  align-items:center;
  justify-content: center;
}

.image-close > p {
  rotate: 45deg;
  scale: 5.5;
  transform: translateY(-3%);
}

.image-close:hover {
  scale: 1.1;
}

.image-close:active {
  color: var(--secondary-light);
  border-color: var(--secondary-light);
}


/* Mobile */
@media screen and (max-width:  1000px) {
  .row {
    flex-wrap: wrap;
    gap: 1em;
  }

  .page-wrapper {
    padding-top: 0;
  }

  #header {
    padding: 1rem 2rem 1.2rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    border-radius: unset;
    border-left: unset;
    border-right: unset;
    position: relative;
    margin-bottom: 2em;
  }

  #header a {
    font-size: 1.2rem;
  }

  #theme-toggle {
    bottom: 1rem;
    right: 1rem;
  }

  .title > h1 {
    font-size: 3rem;
  }

  .title > a {
    font-size: 12vw;
  }

  .title > p {
    font-size: 5vw;
  }

  #gallery {
    margin: 0;
    margin-bottom: 4em !important;
  }

  #commissions {
    width: 100vw;
  }

  .commission {
    grid-template-columns: 1fr;
  }

  .commission > .info > p {
    width: 100%;
    margin: auto;
  }

  .block {
    width: 90%;
    line-height: 2.5rem;
  }

  .grid{
    grid-template-columns: repeat(1, minmax(300px, 1fr));
  }

  label {
    font-size: 1.5em !important;
  }

  .comic > h2 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }

  .comic-pages {
    width: 100%;
  }

  .comic-item {
    width: 100% !important;
    margin: 0;
  }

  .comic > .description {
    font-size: 0.6em;
    width: 100%;
  }

  .image-view-box {
    padding: 1rem;
  }

  .image-wrapper {
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
  }
}
