body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'BookkGothic-Bd';
    overflow: hidden; /* 스크롤바 완전 제거 */
}

body {
    background-color: white;
    color: black;
    transition: background-color 0.5s, color 0.5s;
}
@font-face {
    font-family: 'BookkGothic-Bd';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkGothic-Bd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

a {
    color: black;
    font-family: 'BookkGothic-Bd';
    text-decoration: none;
    list-style: none;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: relative;
    background-image: url('./img/bg5.jpg');
    /* 다크 모드 배경 이미지 */
    background-size: cover;
}

.container img {
    transition: opacity 0.5s;
}

.ment {
    justify-content: center;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 5%;
    font-size: 1.5rem;
    line-height: 1.3;
}

.ment1 {
    align-self: flex-end;
    /* 오른쪽 정렬 */
    text-align: right;
    width: 100%;
    white-space: nowrap;
}

.ment2 {
    align-self: flex-start;
    /* 왼쪽 정렬 */
    text-align: left;
    width: 100%;
    white-space: nowrap;
    color: #efefef;
    font-weight: 100;
}

.or {
    position: absolute;
    bottom: 31%;
}

.coffee1 img {
    width: 8vh;
}

.tea1 img {
    width: 8vh;
}

.do1 img {
    width: 6vh;
    position: absolute;
    bottom: 20%;
    left: 10%;

}

.do2 img {
    width: 5vh;
    top: 10%;
    right: 40%;
    position: absolute;
}

.gbox {
    width: 40%;
    position: absolute;
    top: 10%;
    left: 30%;
}

.roombox {
    width: 10%;
    position: absolute;
    top: 20%;
    left: 10%;
}

.room1 {
    position: absolute;
    top: 1%;
    left: 5%;
    z-index: 1;
}

.room1 h2 {
    color: white;
    font-family: 'BookkGothic-Bd';

}

.room1 p {
    color: white;
    line-height: 1.4;
    font-weight: 100;
    font-family: 'BookkGothic-Bd';
    font-size: 0.8rem;
}

.room1 h2 {
    z-index: 1;
    /* 텍스트가 입자 위에 나오도록 */
}

.but {
    position: absolute;
    top: 30%;
    left: 12%;
}

.but a {
    color: white;
    line-height: 1.4;
    font-weight: 100;
    font-family: 'BookkGothic-Bd';
    font-size: 1.5rem;
    display: flex;
}

.but a:hover {
    text-decoration: underline;
    z-index: 999;
    text-underline-offset: 3px;
    /* 밑줄과 글자 사이 간격 조절 */
}

/* 이미지 */
.pic1 {
    position: absolute;
    top: 50%;
    left: 40%;
    display: flex;
    /* Flexbox 활성화 */
    align-items: center;
    /* 가운데 정렬 (선택) */
    gap: 12px;
    /* 이미지 간 간격 */
}

.pic1 img {
    width: 200px;
}

.pic2 {
    position: absolute;
    top: 50%;
    left: 10%;
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.pic2 img {
    width: 100px;
}
.pic4 {
    position: absolute;
    top: 10%;
    left: 40%;
}
.pic4 img {
    width: 300px;
}
.pic1 a:hover {
    filter: brightness(0);  /* 검게 만들기 */
}
.pic2 a:hover {
    filter: brightness(0);  /* 검게 만들기 */
}
.pic4 a:hover {
    filter: brightness(100);  /* 검게 만들기 */
}
/* 메뉴 */
.menulogo img {
    width: 10vh;
    position: absolute;
    top: 10%;
    right: 10%;
    z-index: 100;
}

.menuin {
    position: absolute;
    top: 23%;
    right: 10%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    font-family: 'BookkGothic-Bd';
    z-index: 100;

}

.menuin a {
    font-family: 'BookkGothic-Bd';
}

.menuin h3 {
    color: #ffffff;
    background-color: #000000;
    padding: 10px 20px;
    border-radius: 80px;
    font-size: 1.5rem;
    /* 필요하면 크기도 조정 */
    line-height: 1;
    /* 줄간격도 조정하면 밀집된 느낌 가능 */
    margin: 10px 0;
    /* 위아래 여백을 줄임 (기본은 약 1em 정도) */
    text-align: center;
    font-family: 'BookkGothic-Bd';
}

.menuin.show {
    max-height: 300px;
    /* 필요한 높이만큼 조절 */
    opacity: 1;
}

.footer {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 100;
    font-family: 'BookkGothic-Bd';
    white-space: nowrap; /* 줄 바꿈 방지 */
    position: fixed; /* 아래 고정 */
    box-sizing: border-box;
}
.footer p{
    font-family: 'BookkGothic-Bd';
    color: white;
}
.bug-wrapper {
  position: absolute;
  top: 0%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  animation: spinDrop 6s linear infinite;
}

.cus {
  position: absolute;
  width: 30px;
  transform: translate(100px, 0); /* 원 반지름 */
  animation: rotateBug 6s linear infinite;
}

.cus img {
  width: 100%;
}

/* 위에서 아래로 회전하며 떨어지는 효과 */
@keyframes spinDrop {
  0% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateX(-50%) translateY(80vh) rotate(360deg);
  }
}

/* 벌레가 항상 앞을 보게 회전 */
@keyframes rotateBug {
  0% {
    transform: translate(100px, 0) rotate(0deg);
  }
  100% {
    transform: translate(100px, 0) rotate(-360deg);
  }
}


@media (max-width: 767px) {
    .container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background-image: url('./img/bg6.jpg');
        /* 다크 모드 배경 이미지 */
        background-size: cover;
    }

.gbox {
    width: 50vh;
    position: absolute;
    top: 50%;
    left: 0%;
     transform: rotate(-90deg); /* ← 세로 방향에 가깝게 살짝 회전 */
  transform-origin: center; /* 회전 기준점 (필요 시) */
}

.roombox {
    width: 20vh;
    position: absolute;
    top: 20%;
    left: 10%;
}
/* 이미지 */
.pic1 {
    position: absolute;
    top: 50%;
    left: 40%;
    display: flex;
    /* Flexbox 활성화 */
    flex-direction: column;
    /* 세로 정렬 */
    align-items: center;
    /* 가운데 정렬 (선택) */
    gap: 12px;
    /* 이미지 간 간격 */
}

.pic1 img {
    width: 100px;
}
.pic2 {
    position: absolute;
    top: 10%;
    left: 10%;
    gap: 12px;
    display: flex;
    flex-direction: row;
}

.pic2 img {
    width: 80px;
}

.pic4 {
    position: absolute;
    top: 30%;
    left: 50%;
}
.pic4 img {
    width: 150px;
}

}