* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

html {
  font-size: 10px;
  line-height: 1.5;
}

@media screen and (max-width: 400px), (max-height: 400px) {
  html {
    font-size: calc(5px + 1vmin);
  }
}

body {
  color: #000;
  display: flex;
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  text-align: center;
  position: relative;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2,
h3 {
  font-weight: 700;
}

h2 {
  font-size: 3.6rem;
  line-height: 4rem;
}

h3 {
  font-size: 2.4rem;
  line-height: 3.2rem;
}

p {
  font-size: 2rem;
  line-height: 2.8rem;
}

img {
  display: block;
}

/* Background */
.background {
  height: 100%;
  width: 100%;
  background-image: url("../images/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 0;
}

@media screen and (max-width: 768px) {
  .background {
    background-image: url("../images/background-mobile.webp");
  }
}

/* Modal */
.modal {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 1.2rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
}

.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

.modal__window {
  background-color: #000;
  border: 2px solid #00d9ff;
  border-radius: 1.6rem;
  max-width: 48rem;
  padding: 2.4rem 2rem;
  position: relative;
  z-index: 1001;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.modal__window__title {
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.1rem;
}

.modal__window__text {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  font-style: italic;
  line-height: 2.8rem;
  margin-bottom: 3.2rem;
  text-align: center;
}

.modal__window__buttons {
  display: flex;
  gap: 1.2rem;
  width: 100%;
}

.modal__window__button {
  background-color: #00d9ff;
  border-radius: 0.8rem;
  color: #fff;
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 3.2rem;
  padding: 1rem 1.6rem;
  text-transform: none;
  cursor: pointer;
  border: none;
  flex: 1;
  transition: all 0.3s ease;
}

.modal__window__button:hover {
  background-color: #00b8d9;
  transform: scale(1.02);
}

.modal__window__button--no {
  background-color: #e74c3c;
}

.modal__window__button--no:hover {
  background-color: #c0392b;
  transform: scale(1.02);
}

/* Survey */
.survey {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 2.8rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.survey__container {
  max-width: 60rem;
  width: 100%;
}

.survey-step {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 1.6rem;
  padding: 3rem 2rem;
  width: 100%;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.survey-step__title {
  color: #01364a;
  font-size: 3.2rem;
  margin-bottom: 1.6rem;
  font-weight: 700;
}

.survey-step__question {
  color: #333;
  font-size: 2rem;
  margin-bottom: 2.4rem;
  line-height: 2.8rem;
}

.survey-step__options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.survey-step__option {
  background-color: #f0f0f0;
  border: 2px solid transparent;
  border-radius: 0.8rem;
  color: #333;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 1.4rem 2rem;
  transition: all 0.3s ease;
  width: 100%;
}

.survey-step__option:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.survey-step__option-active {
  background-color: rgb(24, 139, 120);
  border-color: rgb(24, 139, 120);
  color: #fff;
}

.survey-step__option-active:hover {
  background-color: rgb(20, 120, 105);
}

.survey-step__input {
  border: 2px solid #e0e0e0;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  margin-bottom: 2.4rem;
  padding: 1.4rem 2rem;
  width: 100%;
  transition: border-color 0.3s ease;
}

.survey-step__input:focus {
  border-color: rgb(24, 139, 120);
  outline: none;
}

.survey-step__button {
  background-color: rgb(24, 139, 120);
  border: none;
  border-radius: 0.8rem;
  color: #fff;
  cursor: pointer;
  font-size: 2.2rem;
  font-weight: 700;
  padding: 1.4rem 3rem;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  width: 100%;
}

.survey-step__button:hover {
  background-color: rgb(20, 120, 105);
}

.survey-step__button:active {
  transform: scale(0.98);
}

/* Lock Step */
.survey-step-lock {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  width: 100%;
  height: 100%;
}

.lock-character {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 80vh;
  object-fit: cover;
  object-position: bottom center;
  display: block;
}

.lock-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: pointer;
  pointer-events: auto;
}

.lock-image {
  display: block;
  max-width: 100%;
  height: auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.lock-cursor {
  position: absolute;
  bottom: 10%;
  right: -2rem;
  z-index: 3;
  pointer-events: none;
  animation: cursorPulse 1.5s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.lock-cursor.hidden {
  display: none;
}

.lock-congratulations-modal {
  background-color: #000;
  border: 2px solid #00d9ff;
  border-radius: 1.6rem;
  max-width: 42rem;
  padding: 3rem 2.5rem;
  z-index: 1001;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.lock-step-question {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  z-index: 10;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lock-top-container {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
  text-align: center;
}

.lock-secret-text {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lock-timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.lock-timer-label {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lock-timer-box {
  display: inline-block;
  background-color: transparent;
  border: 2px solid #00d9ff;
  border-radius: 0.4rem;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  text-shadow: 0 0 10px #00d9ff, 0 2px 4px rgba(0,0,0,0.5);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.lock-hurry-text {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0.5rem 0 0 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lock-tap-button {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.8rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  padding: 1.2rem 2.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lock-tap-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%) scale(1.05);
}

.lock-tap-button:active {
  transform: translateX(-50%) scale(0.95);
}

.lock-congratulations-modal__title {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  font-style: italic;
  text-align: center;
}

.lock-congratulations-modal__text {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2.4rem;
  margin-bottom: 3.2rem;
  text-align: center;
}

.lock-congratulations-modal__button {
  background: linear-gradient(to bottom, #00e6ff, #00b8d9);
  border-radius: 0.8rem;
  color: #fff;
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 3.2rem;
  padding: 1.2rem;
  text-transform: none;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.lock-congratulations-modal__button:hover {
  background: linear-gradient(to bottom, #00f0ff, #00c8e9);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.7);
  transform: scale(1.02);
}

@media screen and (orientation: landscape) and (max-height: 550px) {
  .survey {
    flex-direction: row;
  }
  
  .survey__container {
    max-width: 80rem;
  }
  
  .survey-step__options {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .survey-step__option {
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 20rem;
  }
}

/* Utility classes */
.blur {
  filter: blur(8px);
}

.hidden {
  display: none !important;
}

.visible {
  animation: makeVisible 1s ease forwards;
  display: flex;
  opacity: 0;
}

@keyframes makeVisible {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


