html {
  overflow: hidden;
}
body {
  user-select: none;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f6f9;
  color: #333;
  height: 100vh;
  overflow: hidden;
}
div.noGame {
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  box-sizing: border-box;
  align-items: center;
  text-align: center;
  justify-content: center;
  background-color: fff;
}
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
iframe {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 91%;
  /* height: calc(100vh - 0px); */
  height: 91%;
  border: none;
  margin: 0;
  padding: 0;
}
.Game {
  display: flex;
  justify-content: center;
}
nav {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0px 5%;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 999;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-right: auto; /* 로고를 왼쪽에 고정 */
}
#game-logo {
  color: #2c3e50;
  padding-top: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin-right: 20px; /* 메뉴 링크들을 왼쪽 정렬 */
}

.nav-links a {
  text-decoration: none;
  color: #34495e;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #3498db;
}

.auth-section {
  display: flex;
  align-items: center;
}

#auth-button {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
/* 로그인 안 했을 때 */
.logged-out #auth-button {
  padding: 8px 16px;
  font-size: 14px;
}

/* 로그인 했을 때 */
.logged-in #auth-button {
  padding: 8px 16px;
  font-size: 14px;
}

#auth-button:hover {
  background-color: #2980b9;
}

/* 기존 로그인 모달 CSS는 동일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  gap: 10px;
}

#login-method-change {
  display: block;
  margin-top: 15px;
  color: #3498db;
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

#draw-line {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

#draw-line::before,
#draw-line::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

#draw-line span {
  padding: 10px 10px;
  background-color: #fff;
  color: #777;
}
.user-profile {
  display: none;
  align-items: center;
  gap: 10px;
}

.logged-in .user-profile {
  display: flex;
}

#profile-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #333; /* 기본 검정 배경 */
}

#user-name {
  font-weight: 600;
  color: #2c3e50;
}

#logout-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

#logout-btn:hover {
  background-color: #c0392b;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}

button#google-login {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px;
  background-color: #67d6cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button#google-login:hover {
  background-color: #66cccc;
}
button#google-login:active {
  background-color: #66c6c6;
}

button#login-submit {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #000000;
  border: 1px solid #000000;
  color: #fff;
  border-radius: 4px;
  box-sizing: border-box;
}

button#login-submit:hover {
  background-color: #2c2c2c;
  color: #fff;
}
button#login-submit:active {
  background-color: #3c3c3c;
}

p#draw-line {
  margin-top: 5%;
  margin-bottom: 5%;
  width: 100%;
  text-align: center;
  line-height: 0.1em;
}

.login-form {
  user-select: none;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 300px;
  text-align: center;
}

#google-logo {
  padding-right: 5px;
  transform: translate(0px, -1px);
}

#login-method-change {
  font-size: smaller;
  color: black;
}
#login-method-change:hover {
  color: gray;
}
