* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: white;
  overflow-x: hidden;
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.screen-container {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.bouncing-icons-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bouncing-icon {
  position: fixed;
  transition: none;
  pointer-events: none;
}

.content-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
  gap: 60px;
}

.content-overlay.centered {
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.nav-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  padding-top: 20px;
}

.nav-column-bottom,
.nav-column-top {
  display: none;
}

.content-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.title-container {
  text-align: left;
  margin-bottom: 20px;
  width: 100%;
  max-width: 1200px;
}

.content-overlay.centered .title-container {
  text-align: center;
}

.main-title {
  font-family: 'Monoton', cursive;
  font-size: clamp(32px, 12vw, 80px);
  font-weight: 500;
  color: black;
  margin: 0;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0;
  transition: opacity 0.5s ease-in-out, font-size 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.content-overlay.centered .main-title {
  justify-content: center;
}

.main-title.non-home {
  opacity: 0.15;
  font-size: 36px;
  flex-direction: row;
  align-items: flex-start;
}

.main-title.non-home:hover {
  opacity: 0.3;
}

.title-word {
  white-space: nowrap;
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.content-overlay.centered .nav-buttons {
  flex-direction: row;
  justify-content: center;
}

.nav-button {
  font-family: 'Poiret One', cursive;
  font-size: 24px;
  font-weight: 600;
  color: black;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  transition: opacity 0.2s;
  position: relative;
  text-align: left;
}

.content-overlay.centered .nav-button {
  padding: 10px 20px;
}

.nav-button:hover {
  opacity: 0.7;
}

.nav-button.active {
  opacity: 0.5;
}


.projects-grid {
  width: 100%;
  max-width: 700px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 40px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  border: 1px solid #ddd;
  width: 250px;
  height: 250px;
  text-align: center;
}

.project-card:hover {
  background-color: #fafafa;
}

.project-card:hover .project-title,
.project-card:hover .project-description {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  transition: text-shadow 0.2s;
}

.project-description {
  font-size: 14px;
  color: #666;
  transition: text-shadow 0.2s;
}

/* Responsive design */
@media (max-width: 768px) {
  .project-title {
    font-size: 16px;
  }

  .project-description {
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  .content-overlay {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .content-overlay > .nav-column {
    display: none;
  }

  .nav-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .content-column {
    align-items: center;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .title-container {
    text-align: center;
    order: 1;
  }

  .main-title {
    justify-content: center;
  }

  .content-column .nav-column-top {
    display: block;
    width: 100%;
    order: 2;
  }

  .blog-posts-list,
  .projects-grid,
  .about-container,
  .blog-detail-container,
  .graph-screen-content {
    align-items: center;
    order: 3;
  }

  .nav-column-bottom,
  .nav-column-top {
    display: none;
  }

  .content-column .nav-column-bottom {
    display: block;
    width: 100%;
    order: 4;
  }
}

@media (max-width: 350px) {
  .nav-button {
    font-size: 18px;
  }
}

/* About Container */
.about-container {
  width: 100%;
  max-width: 700px;
  margin-top: 20px;
}

/* Material Icons support */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

/* Blog Layout */
.blog-posts-list {
  width: 100%;
  max-width: 700px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.blog-post-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
}

.blog-post-item:hover {
  background-color: #fafafa;
}

.blog-post-item:hover .blog-post-title,
.blog-post-item:hover .blog-post-date {
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.blog-post-date {
  font-size: 14px;
  color: #666;
  min-width: 90px;
  flex-shrink: 0;
  transition: text-shadow 0.2s;
}

.blog-post-title {
  font-size: 16px;
  color: #000;
  transition: text-shadow 0.2s;
}

/* Blog Actions */
.blog-actions {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

.back-button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: #666;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: opacity 0.2s;
}

.back-button:hover {
  opacity: 0.6;
}

/* Blog Detail Container */
.blog-detail-container {
  width: 100%;
  max-width: 700px;
  margin-top: 20px;
}

/* Markdown Content Styling */
.markdown-content {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
  border: 1px solid #ddd;
  padding: 30px;
}

.markdown-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 30px 0 20px 0;
  color: #000;
}

.markdown-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  color: #000;
}

.markdown-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0 10px 0;
  color: #000;
}

.markdown-content p {
  margin: 15px 0;
}

.markdown-content ul,
.markdown-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.markdown-content li {
  margin: 8px 0;
}

.markdown-content code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.markdown-content pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 20px;
  margin: 20px 0;
  color: #666;
  font-style: italic;
}

.markdown-content a {
  color: #0066cc;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

/* Blog Author */
.blog-author {
  font-size: 14px;
  color: #666;
  opacity: 0.5;
  margin-bottom: 20px;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
  .blog-posts-list {
    max-width: 100%;
  }

  .blog-post-date {
    font-size: 13px;
    min-width: 80px;
  }

  .blog-post-title {
    font-size: 15px;
  }

  .markdown-content {
    font-size: 15px;
  }

  .markdown-content h1 {
    font-size: 26px;
  }

  .markdown-content h2 {
    font-size: 22px;
  }
}

/* Graph View Styles */
.graph-screen-content {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

.graph-screen-content h2 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.graph-screen-content p {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.graph-container {
  width: 100%;
  height: 600px;
  background: transparent;
  border-radius: 0px;
  border: 1px solid #ddd;
  overflow: hidden;
  position: relative;
}

.graph-container canvas {
  display: block;
}

@media (max-width: 768px) {
  .graph-container {
    height: 400px;
  }

  .graph-screen-content {
    padding: 15px;
  }
}
