@font-face {
  font-family: 'LapsusPro';
  src: url('assets/font/LapsusPro-Bold.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
cursor: url("assets/cursor/cursor.png"), auto;
}

#main-menu-wrapper {
  margin: 0;
  padding: 0;
  overflow: hidden;
}  

#main-menu {
  position: absolute;
  top: 50%; 
  left: 50%; 
  margin: auto;
  z-index: 3;
}

.main-menu {
  opacity: 1;
  transform: translateX(0); 
}

.fade-to-left {
  animation: fadeToLeft 1s forwards;
}

@keyframes fadeToLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100px);
  }
}  
.hidden {
  display: none; 
}

#register-box {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(100%, -50%); 
  opacity: 0; 
  transition: none; 
  z-index: 15;
  display: flex;
  width: 460px;
  height: 700px;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
  flex-direction: column;
  text-align: center;
  font-family: 'LapsusPro';
}

#register{
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 5px solid black;
  width: 450px;
  height: 500px;
  background-color: white;
}


#register h1{
  padding-top: 40px;
  padding-bottom: 10px;
}

#login h1{
  padding-top: 70px;
  padding-bottom: 10px;
}

#register-box.fade-in {
  display: block;
  animation: fadeFromRight 2s forwards; 
  animation-delay: 2s;
}

#register-box form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes fadeFromRight {
  0% {
    opacity: 0;
    transform: translate(100%, -50%); 
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%); 
  }
}

.form-wrapper {
  position: relative;
  width: 100%; 
  height: auto; 
}

.form-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-hidden {
opacity: 0;
transform: translateY(50px);
pointer-events: none;
transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-active {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
z-index: 1;
transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-group {
position: relative;
width: 100%;
margin-bottom: 20px;
}

.buttons {
display: flex;
justify-content: center;
}

.button-containers {
position: relative;
display: inline-block;
}

.button-containers img {
width: 235px;
height: auto;
}

.button-texts {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
margin: auto;
color: rgb(87, 41, 26);
font-size: 24px;
font-weight: bold;
text-align: center;
pointer-events: none;
}

.regist-confirm {
position: relative;
display: inline-block;
}

.confirm-regist {
width: 85%;
height: 110%;
}

.button-regist {
position: absolute;
top: 25%;
left: 50%;
margin: auto;
transform: translate(-50%, -50%);
color: rgb(87, 41, 26);
font-size: 18px;
font-weight: bold;
text-align: center;
pointer-events: none;
}

.login-confirm {
position: relative;
display: inline-block;
}

.confirm-login {
width: 85%;
height: 60px;
}

.button-login {
position: absolute;
left: 50%;
margin: auto;
transform: translate(-50%, -50%);
color: rgb(87, 41, 26);
font-size: 18px;
font-weight: bold;
text-align: center;
pointer-events: none;
}

label {
position: absolute;
top: 50%;
left: 50px;
transform: translateY(-50%);
font-size: 16px;
color: #aaa;
transition: all 0.3s ease-in-out;
pointer-events: none;
}

input {
  width: 80%;
  border-radius: 10px;
  padding: 5px;
  padding-left: 15px;
  font-size: 18px;
  background: #f9f9f9;
  outline: none;
  height: 45px;
  border: none;
  border-color: transparent;
  transition: border-color 0.3s ease-in-out;
  margin-bottom: 10px;
  font-family: "LapsusPro";
}

.reveal-password-btn {
background: none;
border: none;
cursor: pointer;
font-size: 18px;
position: absolute;
right: 35px;
top: 5px;
transform: translateY(50%);
color: #666;
}

.reveal-password-btn:active,
.reveal-password-btn:focus {
outline: none;
}

.hidden {
display: none;
}

.error-modal {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
}

.modal-content {
background: #f44336; 
padding: 20px 30px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
text-align: center;
color: white;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}

.modal-icon {
width: 50px;
height: 50px;
border: 2px solid white;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
}

.cross {
font-size: 24px;
animation: spin 1s linear infinite;
}

@keyframes spin {
from {
    transform: rotate(0deg);
}
to {
    transform: rotate(360deg);
}
}

input:focus + label,
input:not(:placeholder-shown) + label {
  top: -10px; 
  font-size: 12px; 
  color: black;
}

input::placeholder {
  color: transparent; 
}

input:focus::placeholder {
  color: #ccc; 
}

input:focus{
  border: 2px solid black;
}

.parallax-container {
  position: relative;
  width: 100%;
  height: 100vh; 
}

.grass {
  position: absolute;
  width: 100%; 
  height: auto;
  bottom: 0;
  z-index: 10;
}

.grass2 {
  position: absolute;
  width: 100%; 
  height: auto;
  top: 0;
  transform: rotate(180deg); 
  z-index: 10;
}

.grass1 {
  position: absolute;
  left: 4.5%; 
  top: -5%;
  transform: rotate(90deg); 
  transform-origin: center left;
  z-index: 11;
  object-fit: cover; 
  height: auto; 
  width: 100%; 
}

.grass3 {
  position: absolute;
  height: auto; 
  width: 100%; 
  right: 4.5%; 
  top: -5%; 
  transform: rotate(-90deg); 
  transform-origin: center right; 
  z-index: 5; 
  object-fit: cover;
}

.layer {
position: absolute;
width: 120%;
height: 120%;
background-size: cover;
background-position: center;
transition: transform 0.1s ease-out;
z-index: 1; 
}

.layer1 {
  background-image: url('assets/parallax/parallax-1.png');
  z-index: 1;
}

.layer2 {
  background-image: url('assets/parallax/parallax-2.png');
  z-index: 2;
}

.layer3 {
  background-image: url('assets/parallax/parallax-3.png');
  z-index: 3;
}

.animal {
  position: absolute;
  z-index: 3;
  right: 350px;
}

.animal img {
  width: 350px; 
  transform: scaleX(-1);
  right: 0;
}

.animal1 {
  position: absolute;
  z-index: 15;
  right: 0;
  left: 350px;
  top: 50px;
}

.animal1 img {
  width: 350px;
}

.menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 6;
}


.button {
  width: 350px;
  height: 150px;
  cursor: pointer; 
}

.button-text {
  font-family: 'LapsusPro';
  color: rgb(87, 41, 26);
  position: absolute;
  top: 50%; 
  margin: auto;
  left: 50%; 
  transform: translate(-50%, -50%); 
  font-size: 72px;
  font-weight: bold; 
  pointer-events: none; 
}

.button-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s; 
}

.button-container:hover .button {
  filter: brightness(1.2);
}

.button-container.clicked {
  transform: translateX(-200px);
  transition: transform 0.3s ease-out;
}

.title-logo {
  display: block;
  margin: 0 auto;
  width: 700px; 
  animation: bounce 3s infinite ease-in-out;
  margin-bottom: 50px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
