html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
}

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

/* https://kilianvalkhof.com/2022/css-html/your-css-reset-needs-text-size-adjust-probably/ */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  min-block-size: 100vh;
  line-height: 1.6;
}

/* pull that line height down for the buttons, makes adding padding nicer */
h1,
h2,
h3,
button,
input,
label {
  line-height: 1.1;
}

/* typography touch to make headers balanced, prevents one word lines */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* typography touch to prevent text orphans in paragraphs */
p,
li {
  text-wrap: pretty;
}

img,
picture {
  /* same as max-width ^^ */
  max-inline-size: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

@font-face {
  font-family: "gothic";
  src: url("/OldLondon.ttf");
}

ul {
  list-style-type: none;
}

:root {
  --main-bg-color: black;
  --main-text-color: white;
  --main-link-color: rgb(255, 49, 49);
  --main-font: "Garamond", serif;
  --accent-font: gothic;
  --font-xs: 0.75rem;
  --font-sm: 1rem;
  --font-md: 1.5rem;
  --font-lg: 2rem;
  --font-xl: 2.75rem;
  --font-xxl: 3.5rem;
}

body {
  color: var(--main-text-color);
  background: var(--main-bg-color);
  font-family: var(--main-font);
  font-size: var(--font-lg);

  @media (width < 760px) {
    font-size: var(--font-md);
  }

  cursor: url("tiles/cursor.png"), default;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 600px) {
  html {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

a {
  cursor: url("tiles/cursor-3.png"), pointer;
}

header,
footer {
  width: 100%;
}

footer {
  font-family: "Comic Sans", monospace;
  font-size: var(--font-sm);
  background: url("tiles/7527.png");
}

.big-image {
  max-height: 35rem;
  margin: 3rem auto;

  @media (width < 760px) {
    max-height: 20rem;
    margin: 2rem auto;
  }
}

.info-container,
.guild-members-container,
.resources-container {
  padding-block: 2rem;

  @media (width < 760px) {
    padding-block: 1rem;
  }
}

.accent {
  font-family: var(--accent-font);
  font-weight: 200;
  text-shadow: 2px 2px black;
}

.link-container {
  font-size: var(--font-lg);

  font-weight: 300;
  font-family: gothic;
  text-shadow: 2px 2px black;
  display: flex;
  justify-content: center;

  background-image: url("tiles/skulls.jpg");
  color: var(--main-link-color);

  @media (width < 760px) {
    font-size: var(--font-md);
    flex-flow: wrap;
  }
}

.link-container li {
  padding-block: 1.5rem;
  padding-inline: 1.5rem;

  @media (width < 760px) {
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
    line-height: 1.1;
  }
}

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

.link {
  color: var(--main-link-color);
  display: inline-block;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -1px;
  right: 100%;
  background-color: var(--main-link-color);
  transition: width 0.3s ease, right 0.3s ease;
  font-weight: 600;
}

.link:hover::after {
  width: 100%;
  right: 0;
}

.info-container,
.resources-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.infos {
  @media (width < 760px) {
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
    line-height: 1.1;
  }
}

.infos > li {
  @media (width < 760px) {
    padding-block: 0.5rem;
    padding-inline: 0.5rem;
  }
}

.infos > li > span {
  font-size: var(--font-xl);

  @media (width < 760px) {
    font-size: var(--font-lg);
  }
}

.discord,
.title,
footer {
  text-align: center;
}

.title {
  font-size: var(--font-xxl);
  margin-block: 2rem;

  @media (width < 760px) {
    font-size: var(--font-xl);
    margin-block: 1rem;
  }
}

.guild-members-grid,
.guild-friends-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;

  @media (min-width: 600px) {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 900px) {
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

.guild-members-grid {
  margin-bottom: 4rem;

  @media (width < 760px) {
    margin-bottom: 2rem;
  }
}

.guild-member-card {
  background: var(--main-bg-color);
  padding: 1rem;
  border: white ridge 4px;
  font-size: var(--font-md);
  line-height: 1.4;

  h3 {
    font-size: var(--font-xl);
  }

  @media (width < 760px) {
    font-size: var(--font-sm);

    h3 {
      font-size: var(--font-lg);
    }

    margin-inline: 1.5rem;
  }
}

.characters {
  font-size: var(--font-sm);

  @media (width < 760px) {
    font-size: var(--font-xs);
  }
}

.image {
  width: 12rem;
  height: 12rem;
  padding: 0.5rem;
  background-size: contain;
  background-position: center;
  border-radius: 50%;
  border: gray solid 2px;
  background-color: var(--main-bg-color);
  @media (width < 760px) {
    width: 8rem;
    height: 8rem;
  }
}

.small-image {
  height: 6rem;
  padding-right: 1rem;

  @media (width < 760px) {
    height: 4rem;
    padding-right: 0.5rem;
  }
}

.discord-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-button {
  text-decoration: none;
  border: red 4px inset;
  padding-block: 0.5rem;
  padding-inline: 1.5rem;
  margin-inline: 0.25rem;
  font-size: var(--font-xl);
  color: var(--main-link-color);

  @media (width < 760px) {
    padding-block: 0.25rem;
    padding-inline: 0.75rem;
    margin-inline: 0.12rem;
    font-size: var(--font-lg);
    border: red 2px inset;
  }
}

.link-button:hover {
  background-color: darkgray;
}

.morgan {
  background-image: url("tiles/background038.gif");
  border: rgb(218, 185, 0) ridge 4px;
}

.guild-members-container {
  background-image: url("tiles/0064_small.gif");
}

.ordered-list {
  text-align: left;

  li {
    margin-inline: 1rem;
    padding-block: 0.5rem;

    @media (width < 760px) {
      padding-block: 0.25rem;
    }
  }
}

.gallery-container {
  width: 100%;
  text-align: center;
  padding-bottom: 8rem;
}
