html {
  text-align: center;
}  
.header {
  width: 40%;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}
.header:hover {
  transform: scale(1.03);
}
.links {
  margin: auto;
  width: 30%;
}
.links img {
  width: 30%;
  margin: 0.8%;
}

footer {
  text-align: center;
  margin: auto;
}

footer a,p {
  font-family:'Courier New', Courier, monospace;
  color: rgba(255, 255, 255, 0.33);
  font-size: 60%;
  font-style: italic;
}


hr {
  margin: auto; 
  width: 30%;
}

marquee {
  font-size: 20px;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  font-style: italic;
}

#update-btn{
  position:fixed;
  top:10px;
  right:8px;
  z-index:5;
  background:none;
  border:none;
  width: 7%;
  cursor: pointer;
}

#update-btn img{
  width: 80%;
}

/* 업데이트 기록 창 배경 */
#update-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 업데이트 기록 내용 */
#update-content {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: larger;
  background-color: rgb(88, 88, 88);
  padding: 20px;
  width: 50%;
  position: relative;
  text-align: left;
  border: 1px solid rgb(255, 255, 255);
}

/* 왼쪽 하단 이미지 스타일 */
.bottom-left-image {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 80px;
  z-index: 100;
}

/* 닫기 버튼 */
#close-btn {
  color: white;
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* 드롭다운 메뉴 스타일 */
.dropdown {
  position: relative;
  display: inline-block;
  width: 8%;
}

.dropdown button {
  width: 100%;
  padding: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2c2c2c; /* 어두운 회색 배경 */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s;
  font-size: 14px; /* 글씨 크기 축소 */
}

.dropdown-content a img {
    width: 16px; /* 이미지 크기도 약간 축소 */
    height: 16px;
    object-fit: contain;
}

.dropdown-content a:hover {
    background-color: #3c3c3c;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.nav-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3vw;
    width: 70%;
    margin-bottom: 20px;
    margin: auto;
    flex-wrap: wrap; /* 줄바꿈 허용 */
}

.nav-btn {
    padding: 0;
    margin: 5px;
    width: 10%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.nav-row button p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 200%;
    color: white;
    text-decoration-line: none;
    margin: 0;
}

@media (max-width: 740px){
    .header {
        width: 90%;
        margin: 3% 0 8px 0; /* 아래쪽 마진을 8px로 줄임 */
    }
    footer a {
        font-size: 1%;
    }
    .version {
        font-size: xx-small;
    }
    .links {
        width: 100%;
    }
    .links img{
        width: 25%;
        margin: 0.2%;
    }
    nav {
        gap: 10px;
    }

    .nav_btn, .dropdown {
        width: 60%;
    }

    nav button img {
        width: 100%;
    }

    #update-content {
    font-size: 60%;
    width: 70%;
    }

    .flag_counter {
        display: none;
    }

    #update-btn {
        width: 15%;
        position: fixed;
        top: 5px;
        right: 0;
    }
    #update-btn img{
        margin: auto;
        top: 5px;
        right: 5px;
    }

    .dropdown{
        width: auto;
    }
    .dropdown button {
        width: auto;
        padding: 0;
    }   
    .dropdown-content{
        font-size: 1%;
    }

    .nav-btn {
        margin: 5px;
        width: auto;
        box-sizing: border-box;
        text-align: center; /* 텍스트를 중앙 정렬 */
        white-space: normal; /* 텍스트 줄바꿈 허용 */
        word-wrap: break-word; /* 긴 단어를 강제로 줄바꿈 */
    }

    .nav-row button p {
        font-family: 'Times New Roman', Times, serif;
        font-size: 200%;
        color: white;
        text-decoration-line: none;
        margin: 0;
        line-height: 1.2; /* 줄 간격 조정 */
    }
}