
/* ======= referenceunit.css ======= */

/* Variable reference unit depending on the screen */

:root {
  --base-font-size: 18px;
  /* Default base size */
}

/* Media Queries for different screen sizes and devices*/
@media (max-width: 1023px) {
  :root {
    --base-font-size: 16px;
  }
}

@media (min-width: 1024) {
  :root {
    --base-font-size: 18px;
  }
}

@media (min-resolution: 150dpi) and (pointer: coarse) {

  /* High-DPI touch devices */
  :root {
    --base-font-size: 22px;
  }
}

html {
  font-size: var(--base-font-size);
}


/* ======= mainsitepage.css ======= */

/* site page layout */

body {
  margin: 0;
  overflow-y: scroll;
}

header {
  position: sticky;
  top: 0;
  min-height: 3rem;
  z-index: 10;
}

main {
  min-height: calc(100vh - 4.85rem);
}

footer {
  position: sticky;
  bottom: 0;
  box-sizing: content-box;
}

#main-content {
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem 4rem 1rem;
}

#main-overlay {
  position: fixed;
  top: 5rem;
  right: calc(max(50% - 23rem, 3rem));
  box-sizing: border-box;
  min-width: 26rem;
  max-width: min(46rem, calc(100vw - 6rem));
}

.main-overlay-hidden {
  display: none;
}

/* Bing wants a h1 to index a page, but we don't care */
h1 {
  display: none;
}

/* page style */

html {
  text-size-adjust: none;
}

body {
  font-family: "Noto Sans", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 1rem;
  line-height: 1rem;
  color: var(--color-text);
  background: var(--gradient-bg-page, var(--color-bg-page));
}

a {
  text-decoration: none;
  color: royalblue;
  /* TODO: extract color ? */
}

a.anchor {
  display: block;
  position: relative;
  top: -8rem;
}


/* ======= maincontent.css ======= */

/* layout */

.main-intro {
  margin: 0 0 0.5rem 0rem;
  padding: 0 1rem 0.5rem 5rem;
}

.main-intro>p {
  margin: 0;
}

/* styling */

h2 {
  width: max-content;
  margin-top: 2rem;
  padding: 0 6rem 0.3rem 0.1rem;
  color: var(--color-text-soft);
  border-bottom: solid 1px var(--color-border-light);
}

h3 {
  width: max-content;
  margin-top: 1.5rem;
  padding: 0 3rem 0.3rem 0.1rem;
  color: var(--color-text-soft);
  border-bottom: solid 1px var(--color-border-light);
}


.main-intro {
  font-size: 1rem;
  line-height: normal;
  border-bottom: solid 1px var(--color-border-light);
}


/* ======= component/cover.css ======= */

/* cover images layout */

.large-image-cover {
  height: 14rem;
  width: 14em;
  padding: 1px;
}

.medium-image-cover {
  height: 6rem;
  width: 6rem;
  margin: 0 0.4rem 0 0;
}

.mediumsmall-image-cover {
  height: 4rem;
  width: 4rem;
  margin: 0 0.4rem 0 0;
}

.small-image-cover {
  height: 2rem;
  width: 2rem;
  margin: 0 0.2rem 0 0;
}

.marker-image-cover {
  height: 3rem;
  width: 3rem;
  margin: 0 0.4rem 0 0;
}

/* cover images styling */

.large-image-cover,
.medium-image-cover,
.mediumsmall-image-cover,
.small-image-cover,
.marker-image-cover {
  object-fit: contain;
  border: solid 1px var(--color-border-cover);
  background-color: var(--color-bg-cover);
  box-sizing: border-box;
}

.image-icon {
  border: none;
  background: none;
}


/* ======= component/footer.css ======= */

/* layout */

.footer-content {
  padding: 0.2rem 0 0.1rem 0;
}

.footer-frn {
  position: absolute;
  bottom: 0.1rem;
  right: 0.2rem;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  height: 5rem;
  width: 5rem;
  box-sizing: border-box;
  background-size: contain;
  text-align: right;
  padding: 0 0.05rem 0.2rem 0.05rem;
  text-shadow: 0 0 0.2rem black;
  border: solid 0.1rem var(--color-text);
}

.footer-kofi {
  position: absolute;
  bottom: 0;
  left: 0.4rem;
  z-index: 20;
}

.footer-kofi-button {
  height: 2rem;
}

/* styling */

.footer-content {
  background: var(--gradient-bg-bar, var(--color-bg-bar));
  border-top: solid 0.5px var(--color-bg-bar);
}

.footer-text {
  font-size: 0.5rem;
  line-height: 0.5rem;
  text-align: center;
}

.footer-frn {
  /* background: linear-gradient(135deg, transparent, transparent 20%, black); */
  background-image: url("/asset/image/logo/fanresources.png");
}

.footer-frn-text-top {
  color: red;
  stroke: black;
  font-size: 0.8rem;
  line-height: 0.8rem;
  font-weight: 600;
}

.footer-frn-text-bottom {
  color: white;
  font-size: 0.9rem;
  line-height: 0.9rem;
  font-weight: 600;
}


/* ======= component/kofi.css ======= */

.kofi-badge {
  border: 0;
  height: 5rem;
}


/* ======= component/header.css ======= */

/* layout */

.header-logo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
}

.header-logo-img {
  height: 5rem;
}

.header-navigation {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr;
  grid-template-areas: 'title main support';
  box-sizing: border-box;
  padding: 0.4rem 0 0.4rem 5.2rem;
}

.header-navigation-title {
  grid-area: title;
}

.header-navigation-main-items {
  grid-area: main;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  padding: 0 2rem 0rem 1rem;
}

.header-navigation-main-item {
  margin: 0.1rem 0rem 0.1rem 1rem;
}

.header-navigation-support-items {
  grid-area: support;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem 0 0;
}

.header-navigation-support-item {
  margin-top: 0.05rem;
}

/* styling */

.header-navigation {
  background: var(--gradient-bg-bar, var(--color-bg-bar));
  border-bottom: solid 0.5px var(--color-bg-bar);
}

.header-navigation-title {
  font-size: 0.8rem;
  line-height: 0.8rem;
  font-weight: 600;
  color: var(--color-text-highlight);
  align-self: end;
}

.header-navigation-main-item {
  font-size: 1.1rem;
  line-height: 1.1rem;
  font-weight: 600;
  color: var(--color-text-nav);
}

.header-navigation-support-item {
  font-size: 0.7rem;
  line-height: 0.7rem;
  font-weight: 600;
  color: var(--color-text-nav);
}

.header-navigation-item-selected {
  text-decoration: underline;
}

