*{margin: 0px; padding: 0px;}
ul{list-style: none;} 
a{text-decoration: none;} 

html, body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; 
    overflow-y: auto; 
}

html {
    scroll-behavior: smooth;
}

body {
  background: white;
}
 
header {
    width: 100%; 
    height: 100px;
    background-color: black;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

#title {
    text-align: left;
    padding: 40px;
    margin: 0; 
    color: white;
    font-size: 43px;
    font-weight: 200;
    font-family: Baskerville;
    position: relative; 
    flex-grow: 1; 
}

#logo{
  position: absolute;
  top: 15px;
  left: 50%; 
  transform: translateX(-50%); 
}

#top_menu a{color: white;}
 
nav{
    position: absolute;
    bottom: 30px;
    right: 50px;
    font-family: pretendard; font-size: 25px; font-weight: 300;
    z-index: 1001;
}

nav li{
    display: inline;
    margin-left: 60px;
}
 
nav li a{color: white;}

nav li a:hover{
    color: #98FF9D; 
}
 
.inner-menu {
    display: none;
    position: absolute;
    left: 15px;
    background-color: black;
    box-shadow: 0px 10px 15px rgba(133, 255, 102, 0.1);
    padding: 0;
    margin: 0;
}

.inner-menu-item > a {
    display: block;
    padding: 5px 40px;
    margin-bottom: 15px;
    font-size: 20px;
    color: white;
    text-align: center;
    text-decoration: none;
}
 
.inner-menu-item a:hover {
    background-color: black;
    color:  #98FF9D; 
}
 
ul {
    list-style-position: inside;
    padding-top: 0;
  }
  
nav ul li:hover .inner-menu {
    display: block;
}

  .text-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
    height: 100px;
    padding: 20px;
    margin-top: 20px;
  }
  
  .text-item {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px; font-weight: 400;
    color: rgb(208, 208, 208); 
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
  }

  .text-item:hover{
    color: #98FF9D; 
  }
  
  .content{    
    background-color:black;
    display: flex;
    flex-direction: column;
    min-height: 150vh;
    box-sizing: border-box;
}

/* 전체 배경 */
.white {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center; 
    min-height: 100vh;
    padding: 40px 0; 
}

/* 맨 위 이미지 */
.leaves {
    width: 60%;
    margin-bottom: 50px; 
}

/* 텍스트 스타일 */
.l-text, .l-text-small {
    font-size: 18px;
    font-family: 'GowunBatang-Regular', serif;
    color: #2f4d31;
}

.l-text {
    text-align: center;
    margin-bottom: 50px;
}

/* 가운데와 마지막 섹션 공통 스타일 */
.middle-section, .bottom-section {
    width: 1000px;
    height: 250px;
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.middle-section {
    justify-content: flex-start;
}

.bottom-section {
    justify-content: flex-start;
    margin-top: 50px;
    flex-direction: row-reverse; 
}

.leaves-small {
    width: 280px;
    margin-right: 40px;
}

.middle-section .leaves-small {
    margin-right: 0;
    margin-left: 40px;
}

.bottom-section .leaves-small {
    margin-right: 0;
    margin-right: 20px;
}

.l-text-small {
    text-align: left;
}


.f-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}



.explain {
    position: relative;
    left: 500px;
    top: 180px;
    font-size: 18px;
    font-family: 'pretendard';
    font-weight: 300;
    color: white;
    width: 20ch; /* 전체 텍스트 길이에 맞게 조정 */
    height: 1.5em; /* 한 줄 높이로 조정 */
    white-space: nowrap;
    overflow: hidden;
    border-right: 1px solid #98FF9D;
    animation: 
        cursor 0.5s step-end infinite alternate,
        text 4s steps(20) alternate infinite; /* 속도와 단계를 조정 */
}

@keyframes cursor {
    0%, 100% { border-color: #98FF9D; }
}

@keyframes text {
    0% { width: 0; }
    100% { width: 20ch; } /* 전체 텍스트 길이에 맞게 조정 */
}


.text-container2 {
    margin-top: 80px;
    position: relative; 
    top: 60px; 
    align-items: left;
    font-family: 'Pretendard', sans-serif;
    margin-left: 70px;
}

.text-container2 h1,
.text-container2 h2,
.text-container2 h3 {
    margin: 10px 0; 
    color: #e2e2e2;
}

.text-container2 h1 {
    font-size: 28px; 
    font-weight: 400; 
    margin-left: 0;
}

.text-container2 h2 {
    font-size: 24px;
    font-weight: 300; 
    margin-top: 20px;
}

.text-container2 h3 {
    font-size: 20px; 
    font-weight: 300;
}

.scene {
  width: 500px;
  height: 950px;
  margin: -13% 5% 5% 50%;
  

  perspective: 1000px;
}

.book {
  position: relative;
  width: 450px;
  height: 635px;
  

  transform-style: preserve-3d;
}

.page {
  cursor: pointer;
  position: absolute;
  color: black;
  width: 100%;
  height: 100%;

  transition: 1.5s transform;
  transform-style: preserve-3d;
  transform-origin: left center;
}

.front,
.back {
  position: absolute;
  overflow: hidden;

  width: 100%;
  height: 100%;
  padding: 10% 5% 5%;
  box-sizing: border-box;

  backface-visibility: hidden;
  background: -webkit-gradient(linear, 0% 0%, 100% 100%, from(#FFFFFF), to(#CCCCCC));
  background: linear-gradient(to bottom right, #fff, #ccc);
}
.back {
  transform: rotateY(180deg);
}

.page.active {
  z-index: 1;
}
.page.flipped {
  transform: rotateY(-180deg);
}
.page.flipped:last-of-type {
  z-index: 1;
}

p {
  text-indent: 1em;
  line-height: 1.7;
}

.qr {
  margin: 50px auto;
  max-width: 50%;
}
.qr img {
  display: block;
}


/* iPads (portrait) ----------- */
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (orientation : portrait) {
  .scene {
    width: 90%;
    height: 90%;
    margin: 5%;
}
}