* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

.page {
  height: 100vh;
  width: 100vw;
  font-family: "system-ui", "Roboto", "Helvetica", "sans-serif";
}

.bg {
  background-size: cover;
  background-position: center;
  background-image: url("../images/back_m.webp");
  width: 100vw;
  height: 100vh;
}
@media (min-width: 1024px) {
  .bg {
    background-image: url("../images/back.webp");
  }
}

.content {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  height: 100%;
}

.girl {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.girl__wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  width: 100%;
}
.girl__image {
  position: absolute;
  bottom: 0;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  max-height: calc(100vh - 173px);
}
@media (min-width: 1024px) {
  .girl__image {
    max-height: calc(100vh - 100px);
  }
}

.lock-container {
  position: absolute;
  inset: 0;
  bottom: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lock-wrapper {
  position: relative;
  margin-top: 60px;
}

.lock-image {
  width: 100%;
  height: 100%;
  max-width: 300px;
  max-height: 300px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .lock-image {
    max-width: 400px;
    max-height: 400px;
  }
}
.lock-image.animate-lockPulse {
  animation: lockPulse 0.7s ease-in-out infinite;
}

@keyframes lockPulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
.cursor-wrapper {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  transform: translate(calc(-50% + 50px), calc(-50% + 50px));
  opacity: 1;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.cursor-wrapper.visible {
  opacity: 1;
  transform: translate(calc(-50% + 50px), calc(-50% + 50px)) scale(1);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.cursor-wrapper.hidden {
  opacity: 0;
  transform: translate(calc(-50% + 50px), calc(-50% + 50px)) scale(0.75);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.cursor-image {
  width: 80px;
  height: 80px;
  animation: cursorPulseFast 0.7s ease-in-out infinite;
}

@keyframes cursorPulseFast {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.tap-to-unlock {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  color: white;
  line-height: 20px;
  display: block;
}
.tap-to-unlock.hidden {
  display: none;
}

.tap-to-unlock-text {
  display: inline-block;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.overlay-third-click {
  display: none;
  position: fixed;
  inset: 0;
  height: 100vh;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 99;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
}

.overlay-content {
  position: relative;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 2px solid #06c9d7;
  background-color: #000000;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.overlay-content h2 {
  vertical-align: middle;
  font-weight: 900;
  font-size: 1.5rem;
  color: white;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 20px 0;
}

.overlay-description {
  display: none;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  font-size: 18px;
}

.invisible-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

.age-verification-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.age-btn {
  flex: 1 1 auto;
  max-width: 20rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem;
  font-weight: 700;
  font-size: 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .age-btn {
    padding: 6px 36px;
    font-size: 30px;
  }
}
.age-btn--no {
  background-color: #e53935;
  filter: drop-shadow(0 2px 2px rgb(219, 61, 27));
}
.age-btn--no:focus {
  outline: none;
  box-shadow: 0 0 0 1px #3b82f6;
}
.age-btn--yes {
  background-color: #00bcd4;
  filter: drop-shadow(0 2px 2px rgb(0, 152, 179));
}
.age-btn--yes:focus {
  outline: none;
  box-shadow: 0 0 0 1px #3b82f6;
}

header {
  margin-top: 10%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 480px) {
  header {
    padding: 0 16px;
  }
}

.header-wrapper {
  display: flex;
  justify-content: center;
}

.header-text-container {
  margin: 0 auto;
  margin-top: 40px;
  border-radius: 8px;
  text-align: center;
  color: white;
  font-style: italic;
  text-shadow: rgba(0, 255, 255, 0.8) -1px 1px 3px;
}

.header-title {
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .header-title {
    font-size: 28px;
  }
}
@media (min-width: 1024px) {
  .header-title {
    font-size: 32px;
  }
}

.header-timer-container {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 16px;
}
@media (min-width: 640px) {
  .header-timer-container {
    font-size: 18px;
  }
}
@media (min-width: 768px) {
  .header-timer-container {
    font-size: 20px;
  }
}

.header-timer {
  display: inline-block;
  width: auto;
  min-width: 60px;
  border-radius: 12px;
  border: 2px solid;
  background-color: #00242e;
  padding: 4px 8px;
  text-align: center;
  font-weight: 700;
  font-family: monospace;
  font-size: 16px;
  font-style: italic;
  line-height: 1;
  color: #fff;
  transition: all 0.2s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
@media (min-width: 640px) {
  .header-timer {
    font-size: 18px;
    padding: 8px 24px;
  }
}
@media (min-width: 768px) {
  .header-timer {
    font-size: 20px;
    padding: 12px 32px;
  }
}
.header-timer.border-color-red {
  border-color: #ff3c3c;
}
.header-timer.border-color-blue {
  border-color: #00f0ff;
}
.header-timer.shadow-color-red {
  box-shadow: 0 0 12px 2px #ff3c3c;
}
.header-timer.shadow-color-blue {
  box-shadow: 0 0 12px 2px #00f0ff;
}
.header-timer.text-shadow-danger {
  text-shadow: 0 0 8px #ff3c3c, 0 2px 2px #fff;
}
.header-timer.text-shadow-normal {
  text-shadow: 0 0 8px #00f0ff, 0 2px 2px #fff;
}

.header-hurry {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
}
@media (min-width: 768px) {
  .header-hurry {
    font-size: 18px;
  }
}

.border-color-blue {
  border-color: #4dbdea;
}

.border-color-red {
  border-color: #ff5252;
}

.shadow-color-blue {
  box-shadow: 0 0 15px rgba(77, 189, 234, 0.8), 0 0 3px rgb(77, 189, 234) inset;
}

.shadow-color-red {
  box-shadow: 0 0 15px rgba(255, 82, 82, 0.8), 0 0 3px rgb(255, 82, 82) inset;
}

.text-shadow-normal {
  text-shadow: 0 4px 4px rgb(3, 176, 207);
}

.text-shadow-danger {
  text-shadow: 0 4px 8px rgb(255, 82, 82);
}

#dressed {
  display: block;
  z-index: 0;
}