:root {
  --bg-main: #0a0c04;
  --text-main: #d4d4d4;
  --text-secondary: #c6940d;
  --radius-default: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cinzel", serif;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background-position: left bottom;
  background-color: var(--bg-main);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

header {
  padding: 1rem;
  padding-top: 0rem;
  text-align: center;
}

footer {
  padding: 1rem;
  text-align: center;
}

main {
  flex: 1;
  padding: 1rem;
}

h1 {
  color: var(--text-secondary);
  margin-block: 0.67em;
}

h2 {
  color: var(--text-secondary);
}

section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

article {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-default);
  padding: 1.5rem;
  border: 2px solid var(--text-secondary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  gap: 1rem;
  display: grid;
}

article img {
  max-width: 100%;
}

article.error {
  border: 2px solid red;
}

article.three-col {
  grid-template-columns: repeat(3, auto);
}

article.two-row {
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
}

article.centred {
  justify-content: center;
}

article .arrow {
  flex: 1;
  text-align: center;
  font-size: 1.8rem;
}

article .arrow::after {
  content: " ➝";
  font-size: 1.5em;
  color: var(--text-secondary);
}

.container-small {
  width: 8rem;
  height: 8rem;
}

div.centred{
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

button, input[type=submit], a.btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-secondary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-default);
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

button:hover, input[type=submit]:hover {
  background-color: #a07709;
  transform: translateY(-2px);
}

input {
  background: linear-gradient(135deg);
  font-weight: 600;
  padding: 0.75rem;
  border-radius: var(--radius-default);
  text-decoration: none;
  transition: all 0.3s ease;
}

@media (orientation: portrait) {
  body {
    background-image: url("/assets/pinkys/background-portrait-15034ddc.webp");
  }
}

@media (orientation: landscape) {
  body {
    background-image: url("/assets/pinkys/background-landscape-08b72319.webp");
  }
}

/* wooden sign styles */
.wooden-sign-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wooden-sign-menu a {
  display: flex;
  color: var(--text-secondary);
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.5rem);
  text-decoration: none;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 0px;
  padding-top: 1rem;
  margin: 0px;
  margin-bottom: clamp(-5px, -1vw, -3px);
  width: min(300px, 60vw);
  height: calc(min(300px, 60vw) * 0.3575);
  background-image: url("/assets/pinkys/sign_1-1056eef0.webp");
  background-size: contain;
  background-position: top center;
  background-repeat: no-repeat;
  animation: wooden-sign-dropdown 0.5s ease-out forwards;
  opacity: 0;
}

.wooden-sign-menu a:first-child {
  width: min(400px, 70vw);
  height: calc(min(400px, 70vw) * 0.417);
  background-image: url("/assets/pinkys/sign_0-a2361d6a.webp");
  opacity: 1;
  animation: none;
}
.wooden-sign-menu a:nth-child(2) {
    animation-delay: 0.2s;
}
.wooden-sign-menu a:nth-child(3) {
    animation-delay: 0.3s;
}
.wooden-sign-menu a:nth-child(4) {
    animation-delay: 0.4s;
}
.wooden-sign-special {
  background: linear-gradient(135deg, #d4af37 0%, #f4e6a1 100%);
  color: #2c1810;
  padding: 0.2rem 1.8rem;
  border: 3px solid #d4af37;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

@keyframes wooden-sign-dropdown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* stylecard */
.style-card {
  width: 100%;
  padding: 0.3rem;
  margin: 0.3rem;
  display: flex;
  gap: 0.3rem;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  border-radius: var(--radius-default);
}

.style-card > :nth-child(1) {
  grid-column: 1 / -1;
}

.style-card.selectable:hover {
  background-color: #3a2614;
}

.style-card.selected {
  background-color: #3a2614;
}

.style-card img {
  object-fit: cover;
  transition: opacity 0.3s ease;
  width: 100%;
  height: 100%;
}

.style-card ol {
   list-style: none;
   padding: 0;
   margin: 0;
 }

.style-card li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.style-card li:last-child {
  margin-bottom: 0;
}

.number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.step-text {
  line-height: 1.4;
}

/* gallery */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  flex: 1 1 calc(25% - 1rem);
  min-width: 250px;
  max-width: 300px;
  aspect-ratio: 1;
}

.gallery-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-default);
  cursor: pointer;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.before-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.gallery-image:hover .before-image,
.gallery-image:active .before-image {
  opacity: 1;
}

.gallery-image:hover .after-image,
.gallery-image:active .after-image {
  opacity: 0;
}

/* spinner */
.spinner-container {
  gap: 1rem;
  display: grid;
  justify-content: center;
}

.spinner{
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: var(--text-secondary);
  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);
  }
} 
