@font-face {
  font-family: Kyiv;
  src: url("assets/KyivTypeSerif-Light3.otf");
}

body {
  font-family: Kyiv, serif;
  padding: 0;
  background-size: auto;
  overflow: scroll;
  margin:0;
}

.door-container {
  position: relative;
  overflow: scroll;
  height: 100vh;
}

.door-left,
.door-right {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(#c2ac8a, white);
  transition: clip-path 1s ease-in-out;
  padding: 0;
}

.door-left {
  left: 0;
  width: 70%;
  padding: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.door-right {
  right: 0;
  width: 70%;
  padding: 0;
  clip-path: polygon(50% 20%, 100% 0%, 100% 100%, 50% 70%);
}

@keyframes openDoor {
  0% {
    clip-path: polygon(0% 0%, 50% 20%, 50% 70%, 0% 100%);
  }
  100% {
    clip-path: polygon(100% 0%, 0% 0%, 0% 100%, 100% 100%);
  }
}

.door-left.open {
  animation: openDoor 2s ease-in-out forwards;
}

.door-right.open {
  animation: openDoor 2s ease-in-out forwards;
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.visible {
  opacity: 1;
}

p {
  margin-top: 100px;
  padding: 30px;
  color: #3f3210;
  text-align: justify;
  
  margin-left: auto;
  margin-right: auto;
  max-width:600px;
}

.en-text1 {
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
}

.en-text2 {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}

.ja-text1 {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 80px;
  transition: opacity 0.5s ease;
  font-size:20px;
  margin-left: 330px;
  margin-right: auto;
}
.ja-text2 {
  opacity: 0;
  position: absolute;
  top: 300px;
  left: 80px;
  transition: opacity 0.5s ease;
font-size:20px;
  margin-left: 330px;
  margin-right: auto;
}

.ja-text1.fade-in,
.ja-text2.fade-in {
  opacity: 40%;
}

#toggleButton {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 20px; 
  right: 20px;
  border: none;
  cursor: pointer;
  z-index: 2;
  font-family: Kyiv, sans-serif;
}


#toggleButton::before {
  content: attr(data-hover);
    cursor: pointer;
}

.ja-text {
  display: none;
}

#toggleButton:hover::before {
  content: "JP"; 
   font-family: Kyiv, sans-serif;
    cursor: pointer;
}



[data-hover="JP"] ~ .ja-text {
  display: block;
}


.arrow-right {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
}
.arrow-right:after {
  content: "";
  display: inline-block !important;
  width: 0;
  height: 0;
  border-left: 12px solid #C8A962;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  vertical-align: middle;

}

.arrow-right:before {
  width: 30px;
  height: 3px;
  background: #C8A962;
  content: "";
  display: inline-block;
  vertical-align: middle;}
.arrow-right:hover:before,
.arrow-right:hover:after {
  background-color: white;
}
.home-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: black; 
  color: white;
  opacity:40%;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.home-button:hover {
  transform: rotate(20deg);
}

.home-button::before {
  content: "\2191"; /* Unicode for up arrow */
  display: inline-block;
  margin-right: 1px; /* Adjust spacing between arrow and text */
}

.falling-text {
  font-family: Zen, serif;
  font-size: 90px;
  position: absolute;
  animation: fall 5s ease-in-out; 
  opacity:60%;
  
}

@keyframes fall {
  0% {
    transform: translateY(-100vh); 
  }
  100% {
    transform: translateY(100vh); 
  }
}


