html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: 'nanumsquare', sans-serif;
    background: #ffffff;
    height: 6000px;
}

.navbar {
  background-color: #ffffff;
  padding: 20px 40px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.navbar li {
  flex-shrink: 0;
}

.navbar a {
  color: rgb(197, 197, 197);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
  white-space: nowrap;
}

.navbar a:hover {
  color: #a7a7a7;
}

.nav-right {
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  .nav-right {
    display: none;
  }
}

.MainTextBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    transition: opacity 0.8s ease-in-out;
}

.MainText {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(65deg, #0206bd, #0e9446);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 100px;
    font-weight: 1000;
    text-align: center;
    z-index: 1;
    position: relative;
    transition: opacity 0.8s ease-in-out;
}

.MainDownWrapper {
    position: sticky;
    top: 100px;
    width: 90%;
    max-width: 1200px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin: 0 auto;
    z-index: 1;
}

.leftinfo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.img-containerleft,
.img-containerright {
    opacity: 0;
    transform: translateY(2vh);
    transition: opacity 0.2s ease, transform 0.5s ease;
}

.img-containerleft img,
.img-containerright img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.img-containerleft.show,
.img-containerright.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #mainDown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        height: auto !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
        margin: 0 !important;
        z-index: 1000;
    }

    #img1, #img2, #img3 {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        transition: opacity 0.3s ease;
        width: 80vw; /* 모바일에 맞게 적절히 조절 */
        max-width: 300px;
        border-radius: 10px;
        pointer-events: none; /* 혹시 터치 이벤트 막기 */
    }

    /* show 클래스 붙은 이미지만 보이게 */
    #img1.show, #img2.show, #img3.show {
        opacity: 1;
        pointer-events: auto;
    }
}
