@view-transition {
  navigation: auto;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #2e2e2e;
  font-family: "Arial", sans-serif;
  background-image: url("../img/theme-bg.svg");
  background-size: cover;
  background-position: right bottom;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.slide-content {
  max-width: 80%;
  view-transition-name: slide-content;
  animation: fadeIn 0.8s ease-out forwards;
}
.slide-title {
  view-transition-name: slide-title;
}

h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
h2 {
  font-size: 3em;
  margin-bottom: 1rem;
  font-weight: 500;
}

p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.navigation {
  position: absolute;
  bottom: 2rem;
  display: flex;
  gap: 1rem;
  width: calc(100% - 4rem);
  justify-content: space-between;
}

.nav-button {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
  opacity: 0.5;
}
.nav-button.hidden {
  visibility: hidden;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden-step {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.slide-content > * {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Styled link for presentations */
.presentation-link {
  color: #8b5cf6;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.presentation-link:hover {
  color: #7c3aed;
  text-decoration-color: #7c3aed;
}

/* Code container styles */
.code-container {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  width: 700px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.code-header {
  display: flex;
  margin-bottom: 1rem;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.red {
  background-color: #ff5f56;
}
.yellow {
  background-color: #ffbd2e;
}
.green {
  background-color: #27c93f;
}

.code-content {
  font-family: "Courier New", monospace;
  color: #e0e0e0;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: left;
  white-space: pre;
}

/* Code syntax highlighting */
.function {
  color: #dcdcaa;
}

.keyword {
  color: #c586c0;
}

.method {
  color: #a2dc2e;
}

.async {
  color: #f0266e;
}

.condition {
  color: #569cd6;
}

.comment {
  color: #6a9955;
}
