@font-face {
  font-family: "Stanberry";
  font-style: normal;
  font-weight: 400;
  src: url("/static/fonts/stanberry.woff") format("woff");
}

body {
  background-color: var(--color-bg-body);
  color: var(--color-text-body);
  font-family: Stanberry, Verdana, Arial, sans;
  font-size: 1.2em;
  width: 768px;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

a {
  color: var(--color-text-link);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  max-width: 95%;
}

a:hover,
a:active {
  text-decoration: underline;
}

header {
  margin: 24px 0px 0px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

header a {
  color: var(--color-text-header);
  padding: 6px 0px 0px;
  font-size: 2em;
  font-weight: 600;
}

select {
  font-family: Stanberry, Arial, sans;
  font-size: 16px;
  min-width: 160px;
  min-height: 54px;
  padding: 4px 8px;
  color: var(--color-text-body);
  background: var(--color-bg-main);
  border: var(--border-size);
  border-color: var(--border-color);
  border-radius: var(--border-radius);
}

aside,
main {
  background-color: var(--color-bg-main);
  margin: 12px 0px 0px;
  padding: 24px 0px 12px;
  width: 100%;
  border: var(--border-size);
  border-color: var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

aside {
  padding: 6px 0px;
}

span {
  max-width: 95%;
}

img {
  max-width: 95%;
  filter: var(--img-filter);
}

a img {
  max-width: 100%;
}

footer {
  color: var(--color-text-footer);
  margin: 12px 0px 16px;
}

footer a {
  color: var(--color-text-footer);
}

.title {
  font-size: 2em;
  color: var(--color-text-title);
  margin: 12px 0px 0px 0px;
  max-width: 95%;
}

.desc {
  margin: 16px 0px 0px;
  max-width: 95%;
  word-break: break-word;
}

.news-title {
  color: var(--color-text-title);
  margin: 16px 0px 0px;
}

.news {
  margin: 0px auto 16px;
  max-width: 95%;
  word-break: break-word;
}

.buttons {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 320px;
  margin: 16px 0px;
}

.buttons a {
  font-size: 20px;
  padding: 4px 0px;
  color: var(--color-text-button);
  background: var(--color-bg-button);
  border: 2px solid var(--color-bg-button);
  border-radius: var(--button-radius);
  flex: 1 1 auto;
  text-decoration: none;
}

.buttons a:hover {
  color: var(--color-bg-button);
  background-color: var(--color-text-button);
}

a.buttons-disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.permalink {
  margin: 16px 0px 0px;
  font-size: 0.8em;
}

/* This should only for specific theme */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

/* Mobile screen or really small display */
@media only screen and (max-width: 780px) {
  body {
    font-size: 1em;
    min-width: 354px;
    max-width: 85%;
  }
  header {
    margin: 18px 0px 0px;
  }
  select {
    font-size: 16px;
    min-height: 45px;
  }
  .buttons {
    width: 280px;
  }
  .buttons a {
    font-size: 16px;
  }
}
