:root {
  --bg-image: url("/bg/dark/0.png");
}

body {
  background-image: var(--bg-image);
}

/*
*	Take a look at https://www.w3schools.com/w3css/w3css_color_themes.asp
*	It might give some inspiration for ways to do my own styling.
*/
[data-theme="light"] {
  --sans-font: Eurofurence;
  --mono-font: Monofur;
  color-scheme: light;
  --bg: #f7f7f7;
  --bg-light: #fdfdfd;
  --text: #312c33;
  --text-light: #423b44;
  --accent: #471f37;
  --accent-dark: #997bdd;
  --accent-light: #7c3660;
  --accent-text: var(--bg);
  --border: #5f3d4e;
  --link: #2471a8;
}

[data-theme="dark"] {
  --sans-font: Eurofurence;
  --mono-font: Monofur;
  color-scheme: dark;
  --bg: #161925;
  --bg-light: #161925;
  --text: #c5c7d0;
  --text-light: #a8abb8;
  --accent: #997bdd;
  --accent-dark: #471f37;
  --accent-light: #815dd5;
  --accent-text: var(--bg);
  --border: #aa879d;
  --link: #78b5e2;
}

.empty:hover {
  background-color: initial;
}

:root {
  font-size: 16pt;
}

/* if the screen is not very wide */
@media screen and (max-width: 720px) {
  .columns {
    display: flex;
    justify-content: center;
    margin: auto;
    max-width: 400px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .social-links-outer {
    position: relative;
  }

  .social-links-inner {
    display: flex;
    flex-flow: column;
    justify-content: center;
  }

  .portrait-icon {
    margin: auto;
    width: 256px;
  }

  #header-div {
    justify-content: center;
  }
}

/* if the screen is decently wide */
@media screen and not (max-width: 720px) {
  .columns-bounded {
    display: flex;
    flex-flow: row nowrap;
  }

  .columns {
    display: flex;
    flex-flow: row wrap;
    min-width: 320px;
    align-items: center;
    justify-content: center;
  }

  .social-links-outer {
    height: 256px;
    position: relative;
  }

  .social-links-inner {
    height: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
  }

  .portrait-column {
    min-width: 256px;
  }

  .portrait-icon {
    width: 256px;
    height: 100%;
  }

  #header-div {
    justify-content: flex-start;
  }
}

.social-icon {
  width: 48px;
  height: 48px;
  margin: 16px;
  align-items: center;
}

.social-icon-img {
  border: none;
  padding: 0;
  border-radius: 0;
}

@font-face {
  font-family: Eurofurence;
  src: url("/font/EurofurenceNerdFont-Regular.ttf");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: Eurofurence;
  src: url("/font/EurofurenceNerdFont-Italic.ttf");
  font-style: italic;
  font-weight: normal;
}

@font-face {
  font-family: Eurofurence;
  src: url("/font/EurofurenceNerdFont-Bold.ttf");
  font-style: normal;
  font-weight: bold;
}

@font-face {
  font-family: Eurofurence;
  src: url("/font/EurofurenceNerdFont-BoldItalic.ttf");
  font-style: italic;
  font-weight: bold;
}

@font-face {
  font-family: Monofur;
  src: url("/font/MonofurNerdFont-Regular.ttf");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: Monofur;
  src: url("/font/MonofurNerdFont-Italic.ttf");
  font-style: italic;
  font-weight: normal;
}

.sc-img-container {
  display: grid;
  grid-auto-rows: max-content;
  transition: scale 0.25s ease-in;
  cursor: pointer;
  margin-top: 1rem;
}

.sc-img-container-enlarged {
  opacity: 1;
  scale: 1.25;
}

.sc-img {
  max-width: 80%;
  align-self: center;
  overflow: auto;
}

.sc-img-caption {
  max-width: 80%;
  border: 1px solid var(--accent);
  background-color: var(--bg-light);
  border-radius: var(--standard-border-radius);
  max-height: 30rem;
  padding: 0.625rem;
  overflow: auto;
  white-space: pre-wrap;
  text-align: left;
  margin-top: 5px;
}

.small {
  font-size: 0.69em;
  vertical-align: middle;
}

.text-box {
  max-width: 80%;
  border: 2px solid var(--accent);
  background-color: var(--bg-light);
  border-radius: calc(4 * var(--standard-border-radius));
  padding: 0.625rem;
  overflow: auto;
  text-align: left;
  margin: 1rem;
}

.text-box-title {
  font-size: xx-large;
  font-weight: bold;
}

a,
a:visited {
  text-decoration-color: var(--bg);
}

a:hover {
  text-decoration-line: underline;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.625rem;
  z-index: 69420;
  background-color: var(--bg-light);
  background-image: url("/img/pride-header.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;

  /* Use light-mode colors for the header no matter what for better visibility */
  --bg: #f7f7f7;
  --bg-light: #fdfdfd;
  --text: #312c33;
  --text-light: #423b44;
  --accent: #471f37;
  --accent-dark: #997bdd;
  --accent-light: #7c3660;
  --accent-text: var(--bg);
  --border: #5f3d4e;
  --link: #2471a8;

  color: #312c33;
}

#header-div {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

#theme-toggle-div {
  /* Makes the theme toggle button have consistent
	padding around it, making it more uniform and
	separating it slightly from the nav buttons */
  padding-right: calc(0.625rem - 0.25rem);
}

main {
  padding-top: 96px;
}
