h1,
h2,
h3,
h4,
h5 {
  color: #f7f7f7;
  font-family: Inter, sans-serif;
}

b,
strong {
  color: #fff;
}

a {
  color: #eee;
}

html {
  color: #d7d7d7;
  font-family: Inter, sans-serif;
  font-size: 1.2em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #273f4f;
}

body {
  max-width: 800px;
  width: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.site-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  /* text-align: center; */
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: left;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.block {
  border: 1px dotted white;
  padding: 5px 15px;
  margin: 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block h1 {
  font-size: 1em;
  text-align: center;
  margin-bottom: 0;
}

.small {
  font-size: 0.8em;
}

.wave {
  background: #111;
  color: #fff;
  text-shadow: 1px 1px 10px #fff, 1px 1px 10px #ccc;
}

footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer hr {
  width: 100%;
}

/* Prevent horizontal overflow */
pre, code {
  overflow-x: auto;
  max-width: 100%;
}

pre {
  white-space: pre;
  word-wrap: normal;
}

img {
  max-width: 100%;
  height: auto;
}

/* Prevent long words from breaking layout */
body {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  html {
    font-size: 1em;
  }

  body {
    padding: 10px;
  }

  .site-title {
    font-size: 1.8em;
  }

  nav {
    font-size: 1em;
    flex-wrap: wrap;
    justify-content: center;
  }

  .block {
    margin: 5px;
    padding: 5px 10px;
  }

  /* Additional mobile-specific overflow handling */
  pre {
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
  }
}
