@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

body {
  font-family: 'Jua', sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  text-align: center;
  background-image: linear-gradient(to bottom right, #434343, #000000);
}

h1 {
  font-size: 3rem;
  color: #f39c12;
  text-shadow: 2px 2px 4px #000;
}

#game-container {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 400px;
}

#stats-container {
  display: flex;
  justify-content: space-around;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

#stats-container p {
  margin: 0;
  font-size: 1.2rem;
}

#sword-container {
  margin-bottom: 1.5rem;
}

#sword-image {
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 0 10px #f39c12);
  /* 강화 성공 시 애니메이션을 위한 설정 */
  transition: transform 0.2s ease-in-out;
}

#sword-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

#strengthen-button {
  background-color: #f39c12;
  color: #fff;
  font-family: 'Jua', sans-serif;
  font-size: 1.5rem;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

#strengthen-button:hover {
  background-color: #e67e22;
}

#strengthen-button:active {
  transform: scale(0.95);
}

#log-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#log-message {
  font-size: 1.2rem;
  margin: 0;
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

/* 애니메이션 */
.success-animation {
  animation-name: success-flash;
}

.fail-animation {
  animation-name: fail-shake;
}

@keyframes success-flash {
  from, to {
    transform: scale(1);
    filter: drop-shadow(0 0 10px #2ecc71);
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px #2ecc71);
  }
}

@keyframes fail-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* 메시지 색상 */
.log-success { color: #2ecc71; }
.log-fail { color: #e74c3c; }
.log-info { color: #3498db; }
.log-default { color: #fff; }

/* 폼 섹션 스타일 */
body {
  display: flex;
  flex-direction: column; /* 세로로 요소들을 정렬 */
  align-items: center; /* 가로 중앙 정렬 */
  min-height: 100vh;
  margin: 0;
  text-align: center;
  background-image: linear-gradient(to bottom right, #434343, #000000);
}

#contact-form-section {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 400px;
  margin-top: 3rem; /* 게임 컨테이너와의 간격 */
  margin-bottom: 3rem; /* 하단 여백 */
}

#contact-form-section h2 {
  font-size: 2rem;
  color: #f39c12;
  margin-bottom: 1.5rem;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-form label {
  text-align: left;
  font-size: 1.1rem;
  color: #ccc;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-family: 'Jua', sans-serif;
  font-size: 1rem;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #f39c12;
  box-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}

#contact-form button[type="submit"] {
  background-color: #f39c12;
  color: #fff;
  font-family: 'Jua', sans-serif;
  font-size: 1.2rem;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
  margin-top: 1rem;
}

#contact-form button[type="submit"]:hover {
  background-color: #e67e22;
}

#contact-form button[type="submit"]:active {
  transform: scale(0.95);
}
