:root {
  /* Solarized Light */
  --bg-color: #fdf6e3;
  --text-color: #073642;
  --heading-color: #002b36;
  --strong-color: #002b36;
  --link-color: #268bd2;
  --border-color: #073642;
  --wave-bg: #fdf6e3;
  --wave-color: #002b36;
  --wave-shadow-1: #002b36;
  --wave-shadow-2: #073642;
}

html.dark {
  --bg-color: #111;
  --text-color: #ccc;
  --heading-color: #ddd;
  --strong-color: #fff;
  --link-color: #6ca0dc;
  --border-color: white;
  --wave-bg: #111;
  --wave-color: #fff;
  --wave-shadow-1: #fff;
  --wave-shadow-2: #ccc;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--heading-color);
  font-family: "Verdana", sans-serif;
}

h1 {
  margin-bottom: 0.5em;
}

b,
strong {
  color: var(--strong-color);
}

a {
  color: var(--link-color);
}

html {
  color: var(--text-color);
  font-family: "Georgia", serif;
  font-size: 1.2em;
  line-height: 1.6;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  width: 800px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.header-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.theme-toggle-container {
  position: absolute;
  right: 15px;
  top: 15px;
}

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

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

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

.block {
  border: 1px dotted var(--border-color);
  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: var(--wave-bg);
  color: var(--wave-color);
  text-shadow: 1px 1px 10px var(--wave-shadow-1), 1px 1px 10px var(--wave-shadow-2);
}

/* Theme toggle container and icons */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-icon {
  width: 24px;
  height: 24px;
  color: var(--text-color);
}

.social-icon {
  width: 24px;
  height: 24px;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
  margin-right: 8px;
}

.social-icon:last-of-type {
  margin-right: 32px;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

/* Theme toggle switch */
.theme-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--bg-color);
  transition: 0.3s;
  border-radius: 50%;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

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

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

footer hr {
  width: 100%;
}