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

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background-color: #9bb5bf;
  font-family: Arial, sans-serif;
  position: relative;
  isolation: isolate;
  transition: opacity 0.6s ease;
}

body.loaded {
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.22),
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/lace.jpg");
  background-repeat: repeat;
  background-size: 650px;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

html::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}

.locket-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  position: relative;
  z-index: 3;
}

.medalhao {
  width: 100%;
  max-width: 850px;
  margin-top: -100px;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.3));
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
  transform-origin: center;
  will-change: transform;
  cursor: pointer;
}

.medalhao:hover {
  transform: scale(1.05) rotate(-1.5deg);
  filter: drop-shadow(0 50px 90px rgba(0, 0, 0, 0.35)) brightness(1.08);
}

.medalhao:active {
  transform: scale(0.96);
}

.footer {
  width: 100%;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 1px;
  margin-top: auto;
  transform: translateY(-20px);
  position: relative;
  z-index: 3;
}

.footer a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 300;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .medalhao {
    max-width: 650px;
    margin-top: -400px;
  }

  .footer {
    transform: translateY(-30px);
  }
}
