@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'GmarketSansMedium', sans-serif;
  background-color: #121212;
  color: #f5f5f5;
  margin: 0; padding: 0;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.light {
  background-color: #f5f5f5;
  color: #222;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

header {
  background-color: #222;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

body.light header {
  background-color: #eee;
  color: #222;
}

#logo {
  height: 40px;
  width: auto;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

select,
button,
textarea {
  font-family: 'GmarketSansMedium';
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  padding: 10px 16px;
  background: #333;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

body.light select,
body.light button,
body.light textarea {
  background: #ddd;
  color: #222;
}

select {
  min-width: 140px;
}

textarea {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  margin-bottom: 10px;
}

pre#output {
  background: #000;
  color: #0f0;
  padding: 15px;
  border-radius: 8px;
  min-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-bottom: 20px;
}

body.light pre#output {
  background: #eee;
  color: #070;
}

footer {
  margin-top: auto;
  background-color: #222;
  color: #aaa;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 0.9rem;
}

body.light footer {
  background-color: #eee;
  color: #444;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links button,
.footer-links a {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  margin-left: 15px;
  font-size: 0.9rem;
  text-decoration: underline;
}

.footer-links a:hover,
.footer-links button:hover {
  opacity: 0.8;
}

/* 모달 스타일 */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #222;
  color: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
}

body.light .modal-content {
  background: #f5f5f5;
  color: #222;
}

#modeToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: none;
  font-size: 1.6rem;
  color: inherit;
  border: none;
  cursor: pointer;
}
