@font-face {
  font-family: 'Vandelvira';
  src: url('/fonts/Vandelvira-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Vandelvira', sans-serif;
  color: #1A1A19;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #e3ffe7 0%, #d9e7ff 40%, rgba(0, 0, 0, 0.5) 100%), url('bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

header {
  position: absolute;
  top: 20px;
  left: 20px;
}

.logo {
  height: 20dvh;
}

.mark {
  height: 3dvh;
  margin-right: 1dvh;
}

main {
  text-align: left;
  max-width: 600px;
  padding: 20px;
}

.subtitle {
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.title {
  font-size: 3.85rem;
  font-weight: 700;
  line-height: 1;
  margin: 10px 0;
}

.dotlottie-player {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 200px;
}

.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1.5s ease-out;
  padding: 20px;
  text-align: center;
}

.welcome-text {
  font-size: 2.5rem;
  font-weight: bold;
  animation: fadeInText 2s ease-in-out;
}

@keyframes fadeInText {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.welcome-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease-out;
}

.button-rn {
  align-items: center;
  background-color: #fee6e3;
  border: 2px solid #111;
  border-radius: 8px;
  color: #111;
  cursor: pointer;
  display: flex;
  font-family: 'Vandelvira', sans-serif;
  font-weight: 600;
  font-size: 17.6px;
  height: 48px;
  justify-content: center;
  padding: 0 20px;
  position: relative;
  text-decoration: none;
}

.button-rn:after {
  background-color: #111;
  border-radius: 8px;
  content: "";
  height: 48px;
  left: 0;
  width: 100%;
  position: absolute;
  top: -2px;
  transform: translate(8px, 8px);
  transition: transform .2s ease-out;
  z-index: -1;
}

.button-rn:hover:after {
  transform: translate(0, 0);
}

.button-rn:active {
  background-color: #ffdeda;
}

.nav-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.nav-modal.show {
  display: flex;
}

.nav-content {
  text-align: center;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
}

.nav-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Responsive styling for mobile devices */
@media (max-width: 768px) {
  body, html {
    flex-direction: column;
    padding: 0;
  }

  .logo {
    height: 15vh;
  }

  .title {
    font-size: 2.75rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .dotlottie-player {
    width: 150px;
    height: 150px;
  }

  .button-rn {
    width: 100%;
    padding: 0 10px;
  }

  .welcome-overlay {
    padding: 15px;
  }

  .welcome-text {
    font-size: 1.8rem;
    line-height: 1.2;
  }
}

@media (min-width: 768px) {
  .button-rn {
    padding: 0 40px;
  }
}
