/* Global Base Styles */
body {
  font-family: 'Pretendard', sans-serif;
  margin: 0;
  color: #333333;
}

/* Home Portal Styles */
.portal-body {
  background-color: #f7fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.container h1 {
  color: #2d3748;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-item {
  display: block;
  padding: 1rem;
  background-color: #ebf8ff;
  color: #2b6cb0;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #bee3f8;
}

.link-item:hover {
  background-color: #bee3f8;
  transform: translateY(-2px);
}

:root {
  --r-main-font: 'Pretendard', sans-serif;
  --r-heading-font: 'Pretendard', sans-serif;
  --r-code-font: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
  --r-main-color: #333333;
  --r-heading-color: #0066cc;
  --r-background-color: #ffffff;
  --r-link-color: #0066cc;
}

.reveal .slides {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  margin: 0 !important;
}

.image-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  border: 2px solid var(--r-heading-color);
  margin-top: 15px;
}

.step-title {
  background: var(--step-bg);
  color: var(--step-text);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9em;
  margin: 15px 0 10px 0;
  display: inline-block;
}

details {
  width: 100%;
  margin-top: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f8fafc;
  padding: 10px;
}

summary {
  cursor: pointer;
  outline: none;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.reveal {
  font-family: var(--r-main-font);
  font-size: 22px;
  font-weight: 400;
  color: var(--r-main-color);
}

/* Layout */
.reveal .slides section {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 60px 80px !important;
  box-sizing: border-box !important;
  height: 100% !important;
  width: 100% !important;
  inset: 0 !important;
}

.reveal .slides section.center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Typography */
.reveal h1 {
  font-family: var(--r-heading-font);
  font-weight: 700;
  color: var(--r-heading-color);
  font-size: 1.8em;
  margin: 0 0 0.8em 0;
  width: 100%;
  padding-bottom: 0.4em;
  border-bottom: 2px solid rgba(0, 102, 204, 0.1);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.reveal .slides section.center h1 {
  border-bottom: none;
  padding-bottom: 0;
  font-size: 2.8em;
  margin-bottom: 0.2em;
  width: auto;
}

.reveal h2 {
  font-family: var(--r-heading-font);
  color: #4a5568;
  font-weight: 600;
  font-size: 1.2em;
  margin: 0 0 0.8em 0;
  width: 100%;
  line-height: 1.3;
}

.reveal .slides section.center h2 {
  color: #718096;
  font-size: 1.3em;
  width: auto;
  margin-top: 0.2em;
  font-weight: 500;
}

.reveal p,
.reveal li {
  font-size: 1.0em;
  line-height: 1.7;
  margin: 0.5em 0;
  color: #2d3748;
}

.reveal ol,
.reveal ul {
  margin: 0.5em 0 1em 1.5em;
  display: block;
}

.reveal li {
  margin-bottom: 0.4em;
}

/* Links */
.reveal a {
  color: #0066cc;
  text-decoration: none;
  transition: opacity 0.2s;
}

.reveal a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Code */
.reveal code {
  font-family: var(--r-code-font);
  background: rgba(0, 102, 204, 0.08);
  color: #0052a3;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  vertical-align: baseline;
}

.reveal pre {
  background: #282c34;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  font-size: 0.8em;
  margin: 1.5em 0;
  width: 100%;
}

.reveal pre code {
  background: transparent;
  padding: 1.2em;
  color: #abb2bf;
  line-height: 1.5;
  max-height: 500px;
  border-radius: 8px;
}

/* Tables */
.reveal table {
  font-size: 0.85em;
  margin: 1.5em 0;
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.reveal th {
  background: #f7fafc;
  color: #2d3748;
  font-weight: 700;
  text-transform: none;
  border-bottom: 2px solid #e2e8f0;
  padding: 18px 20px;
  line-height: 1.4;
}

.reveal td {
  border-bottom: 1px solid #e2e8f0;
  padding: 18px 20px;
  color: #4a5568;
  line-height: 1.6;
}

.reveal tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
.reveal blockquote {
  background: #f8fbff;
  border-left: 5px solid #0066cc;
  padding: 1.2em 1.5em;
  font-style: normal;
  margin: 1.5em 0;
  font-size: 0.9em;
  width: 95%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  border-radius: 0 8px 8px 0;
}

.reveal blockquote p {
  margin: 0;
  color: #2b6cb0;
  font-weight: 500;
}

/* Utilities */
.highlight-box {
  background: #fffaf0;
  padding: 0.2em 0.6em;
  border-radius: 6px;
  border: 1px solid #fbd38d;
  color: #9c4221;
  font-weight: 600;
  display: inline-block;
}

.success {
  color: #2f855a;
  font-weight: 700;
}

.warning {
  color: #c53030;
  font-weight: 700;
}

/* Slide Numbers */
.reveal .slide-number {
  font-family: var(--r-main-font);
  font-size: 14px;
  color: #cbd5e0;
  background: transparent;
}

/* Specific Spacing Adjustments */
.reveal .content {
  width: 100%;
}

.home-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background-color: #0066cc;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s;
}

.home-button:hover {
  background-color: #004499;
}

/* Copy Button Styles */
.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #0066cc;
  color: #0066cc;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-button:hover {
  background: #0066cc;
  color: white;
}

.copy-button.copied {
  background: #2f855a;
  color: white;
  border-color: #2f855a;
}

.reveal blockquote {
  position: relative;
}

.reveal pre {
  position: relative;
}