/* Common styles */

h2 {
  margin: 0;
  font-family: "Audiowide", sans-serif;
  font-size: 20px;
  color: #FFD38D;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff;
}

p {
  margin: 0;
}

/* Container styles */

#editor-container {
  position: relative;
  background-color: var(--transparent-white-color);
  border: 1px solid var(--text-color);
  border-radius: 16px 0 16px 16px;

  @media screen and (min-width: 768px) {
    width: calc(100% - 130px);
    padding: 64px;
  }

  @media screen and (max-width: 767px) {
    border-top-right-radius: 16px;
    padding: 16px;
  }
}

.page-title-container {
  position: relative;
  display: flex;
  width: 100%;
}

.page-title-container > img {
  @media screen and (min-width: 933px) {
    position: absolute;
    top: -110px;
  }

  @media screen and (min-width: 768px) and (max-width: 932px) {
    position: absolute;
    top: -100px;
    width: 55%;
  }

  @media screen and (max-width: 767px) {
    width: 70%;
  }
}

#editor-container > #editor {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

/* Generator styles*/

#editor > div {
  display: flex;
  background-color: var(--transparent-white-color);
  border: 2px solid var(--secondary-color);
  border-radius: 16px;

  @media screen and (max-width: 1200px) {
    flex-direction: column;
  }
}

#filters, #info {
  flex: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
  gap: 32px;
  min-width: 20%;

  @media screen and (max-width: 767px) {
    padding: 16px;
    width: calc(100% - 32px);
    gap: 16px;
  }
}

#filters.desktop {
  @media screen and (max-width: 1200px) {
    display: none;
  }
}

#filters.mobile {
  @media screen and (min-width: 1201px) {
    display: none;
  }
}

#filters > #selectors {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media screen and (max-width: 767px) {
    gap: 8px;
  }
}

#filters > #selectors > select {
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  padding: 8px;
}

#filters > #selectors > select:focus {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 8px;
}

#generator {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: fit-content;
  padding: 32px;
  justify-content: start;
  align-items: center;

  @media screen and (max-width: 1200px) {
    padding: 16px;
    gap: 16px;
    width: calc(100% - 32px);
  }
}

#generator > #preview {
  position: relative;
  width: 128px;
  height: 128px;
  border: 2px solid var(--secondary-color);
}

#generator > #selectors {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media screen and (max-width: 767px) {
    gap: 32px;
  }
}

#generator > #selectors > .selector {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: center;

  @media screen and (max-width: 767px) {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: start;
  }
}

#generator > #selectors > .selector > .label-container {
  display: flex;
}

#generator > #selectors > .selector > .label-container > button {
  border: none;
  background-color: transparent;
}

#generator > #selectors > .selector > .label-container > button:hover {
  cursor: pointer;
}

#generator > #selectors > .selector > .label-container > label {
  font-weight: bold;
  color: var(--secondary-color);
}

#generator > #selectors > .selector > .controls {
  display: flex;
  justify-content: center;
  align-items: end;
}

#generator > #selectors > .selector > .controls > p {
  min-width: 175px;
  text-align: center;
  align-self: center;
  margin: 0;
}

#generator > #selectors > .selector > .controls > button {
  width: fit-content;
  height: fit-content;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  color: white;
  background-color: var(--secondary-color);
}

#generator > #selectors > .selector > .controls > button.next {
  border-bottom: 2px solid var(--secondary-dark-color);
}

#generator > #selectors > .selector > .controls > button.prev {
  rotate: 180deg;
  border-top: 2px solid var(--secondary-dark-color);
}

#generator > #selectors > .selector > .controls > button:hover {
  cursor: pointer;
  background-color: var(--secondary-dark-color);
  border: none;
}

#generator > #download {
  display: flex;
  align-items: end;
  min-height: 50px;
}

#generator > #download > button {
  height: fit-content;
  width: fit-content;
  padding: 8px 32px;
  border: none;
  border-radius: 8px;
  color: white;
  background-color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-dark-color);
}

#generator > #download:hover > button {
  cursor: pointer;
  background-color: var(--secondary-dark-color);
  border: none;
}

#disclaimer {
  max-width: 400px;
}

#disclaimer > p {
  color: var(--secondary-color);
  font-size: 0.8rem;
}

/* Decoration styles */

#background {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  background-image: url('/assets/shrines/tamagotchi/ui/background.png');
  background-repeat: repeat;
  mix-blend-mode: soft-light;
}
