:root {
  --border: 3px solid var(--color-border);
  --border-radius: 5px;
  --color-bg-2: floralwhite;
  --color-bg: antiquewhite;
  --color-border: var(--color-fg);
  --color-fg: #b00b69;
  --color-text-alt: var(--color-fg);
  --color-text-main: var(--color-fg);
  --font-main: "Aref Ruqaa", serif;
  --font-size-blog-post-title: x-large;
  --font-size-header: xxx-large;
  --font-size: large;
  --main-width: min(100vw, 500px);
  --num-buttons: calc(2 * 23);
}

*, *:before, *:after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  background: var(--color-bg-2);
  color: var(--color-text-main);
  display: grid;
  gap: 10px;
  height: 100%;
  justify-items: center;
  margin: 0px;
  line-height: 1.3;
}

#background-container, #background-container-2 {
  display: grid;
  grid-template-columns: repeat(12, 170px);
  grid-template-rows: repeat(9, 120px);
  left: -50px;
  opacity: 30%;
  position: fixed;
  bottom: 0px;
  width: 100%;
  z-index: -1;
}
#background-container-2 {
  left: 35px;
  bottom: -60px;
}
.b1, .b2, .b3, .b4, .b5, .b6, .b7, .b8, .b9 {
  @media (prefers-reduced-motion: no-preference) {
    animation: an1 2.3s infinite alternate;
  }
  align-self: center;
  background: #b00b69;
  justify-self: center;
  transform: rotate(45deg);
}
.b1 {
  height: 10px;
  width: 10px;
}
.b2 {
  animation-delay: -.5s;
  height: 20px;
  width: 20px;
}
.b3 {
  animation-delay: -1s;
  height: 30px;
  width: 30px;
}
.b4 {
  animation-delay: -1.5s;
  height: 40px;
  width: 40px;
}
.b5 {
  animation-delay: -2s;
  height: 50px;
  width: 50px;
}
.b6 {
  animation-delay: -2.5s;
  height: 60px;
  width: 60px;
}
.b7 {
  animation-delay: -3s;
  height: 70px;
  width: 70px;
}
.b8 {
  animation-delay: -3.5s;
  height: 80px;
  width: 80px;
}
.b9 {
  animation-delay: -4s;
  height: 90px;
  width: 90px;
}
@keyframes an1 {
  from {
    transform: scale(.7) rotate(45deg);
  }
  to {
    transform: scale(1) rotate(45deg);
  }
}

h1 {
  margin: 0px;
}

#content-container,
#menu-container,
#buttons-container {
  background: var(--color-bg);
}

#header-and-content-container {
  max-width: var(--main-width);
  width: 100%;
}

#content-container,
#menu-container {
  border-radius: var(--border-radius);
  border: var(--border);
  font-family: var(--font-main);
  font-size: var(--font-size);
  height: fit-content;
  max-width: var(--main-width);
  padding: 10px;
  width: 100%;
}

#menu-and-buttons-container {
  align-self: end;
  margin-bottom: 10px;
  width: var(--main-width);
}

#header {
  font-family: var(--font-main);
  font-size: var(--font-size-header);
  margin-bottom: 10px;
}

#content {
  max-height: 70vh;
  overflow: auto;
}

#content img {
  max-width: 100%;
}

#content > p {
  margin: 0px;
  padding: 0px;
}

.blog-post-title {
  font-size: var(--font-size-blog-post-title);
  margin: 0px;
}

.blog-post-date-text {
  font-size: small;
}

.blog-post-tag-list {
  font-size: small;
}

#content > blockquote {
  border-left: var(--border);
  margin-left: 10px;
  padding-left: 10px;
}

#content > pre {
  white-space: pre-wrap;
}

#menu-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  padding: 0px;
}

#menu-container > a {
  padding-bottom: 6px;
  text-align: center;
  width: 100%;
}

#menu-container > a:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.menu-selected {
  background: var(--color-text-main);
  color: var(--color-bg);
}

#buttons-container {
  align-self: end;
  border-radius: var(--border-radius);
  border: var(--border);
  height: 40px;
  margin-top: 10px;
  max-width: var(--main-width);
  overflow: hidden;
}

#buttons {
  animation: buttons-marquee infinite 10s linear;
  animation-play-state: playing;
  border: 1px solid red;
  padding-top: 1px;
  white-space: nowrap;
  width: calc(var(--num-buttons)*88px + var(--num-buttons)*4px + 6px);
}

#buttons:hover {
  animation-play-state: paused;
}

@keyframes buttons-marquee {
  to {
    transform: translateX(-50%);
  }
}

a {
  color: unset;
}
a:hover {
  animation: text-link 1s infinite alternate;
}

@keyframes text-link {
  to {
    background: var(--color-text-main);
    color: var(--color-bg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
