/*      ROOT       */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #f1e3c9;
  --border: #660630;
  --accent: lightpink;
  --pressed: pink;
}

/*      FONTS       */
@font-face {
  font-family: "DS-Font";
  src: url("./fonts/nds-true-bios.ttf") format("truetype");
}

@font-face {
  font-family: "Wii-Font";
  src: url("./fonts/WiiSans-Regular-4.otf") format("opentype");
}

/*      BASE       */
body {
  background-image: url("../images/home/grafbg.png");
  background-position: 15px 15px;
  font-family: "DS-Font";
  font-size: 1.65rem;
  line-height: 1em;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Wii-Font";
  line-height: 1.25em;
}

ul {
  list-style-position: inside;
  list-style-type: "\2765   ";
  text-align: left;
}

img {
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
}

button {
  font-size: 1em;
  font-family: "DS-Font";
  padding: 0px 0.8em;
  background-color: var(--border);
  color: white;
  border: 2px solid var(--border);
}

button:hover {
  background-color: var(--accent);
  color: black;
}

button:active {
  background-color: var(--pressed);
}

/*      SECTIONS       */
header {
  display: flex;
  flex-direction: column;
  border-bottom: 5px dashed var(--border);
  width: 100%;
  background-color: var(--border);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
main {
  min-width: 60%;
}

aside {
  min-width: 20%;
}

footer {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/*      FORMATTING UTILITIES       */
/*      Flex      */
.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

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

.flex-bottom-align {
  align-items: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-item-equal {
  flex: 1 1 0px;
}

/*      Spacing       */
.simple-gap {
  gap: 1em;
}

.half-gap {
  gap: 0.5em;
}

.simple-padding {
  padding: 1em;
}

.half-padding {
  padding: 0.5em;
}

/*      Text       */
.center-text {
  text-align: center;
}

/*      List       */

.no-bullet {
  list-style-type: none;
}

.horizontal-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.horizontal-list > li {
  list-style: none;
}

/*      COMPONENTS       */
/*      Main      */
.container {
  max-width: 1400px;
  background-color: aqua;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  background-image: url("../images/home/divbg.png");
  background-position: 15px 15px;
  border: 5px solid var(--border);
  border-radius: 25px;
}

.content {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 1em;
  padding: 0em 0.5em 0em 0.5em;
}

.content-box {
  background-color: white;
  border: 3px solid var(--border);
}

.section-title {
  width: 100%;
  background-color: var(--border);
  color: white;
  height: fit-content;
  text-align: center;
  padding-bottom: 5px;
}

.section-title > h1,
.section-title > h2 {
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
    2px 2px 0 #000;
}

.section-content {
  padding: 1em;
  height: fit-content;
  background-color: white;
}

.marble-bg {
  background-color: white;
}

/*      Other      */

.profile-img {
  display: block;
  border: 5px double var(--border);
  border-radius: 50%;
  max-width: 150px;
  max-height: 150px;
}

.centered-nav > li {
  padding: 0.75em;
  list-style: none;
  text-align: center;
}

.centered-nav > li:not(:last-child) {
  border-bottom: 3px solid var(--border);
}

.centered-nav > li > a {
  color: black;
}

.centered-nav > li:hover {
  background-color: var(--accent);
}

#updatebox {
  max-height: 500px;
  overflow-y: scroll;
  padding: 0.5em;
}

#updatebox > ul > li:not(:last-child) {
  margin-bottom: 10px;
}

/*      Marquee      */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 1rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 10px;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/*      Explore page      */
.explore-area {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
}

.explore-area > * {
  width: 100%;
}

/*      EXTERNAL       */

.verdite-container {
  width: fit-content;
  border: 5px outset;
  text-align: center;
  background-color: #b94c03;
  color: white;
  border-color: #7a7877;
  display: flex;
  justify-content: center;
  gap: 0.5em;
}

.verdite-items {
  flex: 1;
  margin: 0;
  padding: 0.1em;
  border-color: #564f4e;
  color: white;
  font-size: 16px;
}

.verdite-header {
  flex: 4;
  vertical-align: middle;
  font-family: "Cinzel", serif;
  font-size: 20px;
  color: #84fb67;
}

/*      MEDIA QUERY       */
@media screen and (max-width: 1000px) {
  .content {
    grid-template-columns: 1fr;
  }

  .explore-area {
    flex-direction: column;
  }

  .explore-area > * {
    max-width: 95%;
    max-height: 95%;
  }
}

.buddies {
  width: 230px !important;
  height: auto !important;
  image-rendering: crisp-edges !important;
}
