/* latin */
@font-face {
  font-family: "New Science";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(new_science_bold.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "New Science";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(new_science_thin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: #000;
  color: #eee;
  font-family: "New Science", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1.0rem;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

p {
  font-size: 1.0rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

h2,
h3 {
  font-family: "New Science", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "slnt" 0;
  font-weight: inherit;
  margin: 0;
  font-size: 1.0rem;
  font-weight: 600;
  color: #f7d443;
  text-transform: uppercase;
}

h3 {
  color: #fff;
}

div.actions h3 {
  display: block;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

div.actions button.text {
  display: block;
  text-align: center;
  color: #fff;
  margin: 0 auto;
}

button {
  font-family: "New Science", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "slnt" 0;
  font-weight: inherit;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.0rem;
}

input {
  font-family: "Blinker", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  background-color: #000;
  padding: 6px;
  border: 1px solid #f7d443;
  color: #f7d443;
  border-radius: 6px;
  text-transform: uppercase;
}

input::placeholder {
  color: #694900;
}

select {
  display: block;
  font-family: "Blinker", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  background-color: #000;
  padding: 6px;
  border: 1px solid #f7d443;
  color: #f7d443;
  border-radius: 6px;
  text-transform: uppercase;
}

div.bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

div.bg img {
  width: 100%;
  opacity: 0.5;
}

.promptpart {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.promptpart input,
.promptpart select {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.screen {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 100svw;
  height: 99svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: stretch;
  justify-content: center;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  gap: 20px;
}

.screen.visible {
  pointer-events: all;
  opacity: 1;
}

.hidden {
  display: none;
}

ul#history {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul#history li img {
  width: 200px;
  height: 200px;
}

img#resultimage {
  width: 512px;
  height: 512px;
}

div.actions {
  position: absolute;
  box-sizing: border-box;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 5px;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
  opacity: 0;
}

div.actions.visible {
  transform: none;
  opacity: 1;
}

div.actions.inline {
  display: block;
  position: unset;
}

div.actions.inline button {
  background-color: #222;
  font-weight: 500;
}

div.actions button {
  width: auto;
  background-color: #111; /* rgba(0,0,0,0.8); */
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 10px;
  color: #f7d443;
  transition: opacity 0.4s ease-in-out;
}

div.actions button:nth-child(2) {
  transition-delay: 100ms;
}

div.actions button:nth-child(3) {
  transition-delay: 200ms;
}

div.actions button span {
  font-size: inherit;
}

#preview-spinner {
  display: none;
}

#preview-spinner.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#preview-spinner p {
  margin: 0 0 20px 0;
  color: #f7d443;
  text-align: center;
}

#preview-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#preview-result.visible {
  opacity: 1;
}

#preview-result img {
  width: 90%;
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #f7d443;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

div.actions button.hidden-default {
  opacity: 0;
}

div.actions button.hidden-default.visible {
  opacity: 1;
}

.logocircle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 80vw;
  max-width: 300px;
  max-height: 300px;
  aspect-ratio: 1;
}

.logocircle .ringbg {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 100%;
  background-color: #f7d443;
}

.logocircle.spinner .ringbg {
  background: conic-gradient(#000, #f7d443 98%, #000 66%, #000 100%);
  animation: rotation 1s linear infinite;
}

.logocircle .bg {
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 100%;
  background-color: #000;
}

.logocircle .text {
  z-index: 2;
  max-width: 90%;
  text-align: center;
  font-size: 2rem;
}

.logocircle.spinner .text {
  font-size: 1.2rem;
}

.logocircle .text h2 {
  font-size: inherit;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
  box-sizing: border-box;
  transform: translateY(20px);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  opacity: 0;
}

.content.visible {
  opacity: 1;
  transform: none;
}
