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

@font-face {
  font-family: "BeVietnam";
  src: url(../type/BeVietnamPro-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "BeVietnam";
  src: url(../type/BeVietnamPro-Bold.ttf);
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "BeVietnam";
  src: url(../type/BeVietnamPro-MediumItalic.ttf);
  font-weight: 400;
  font-style: italic;
}
html {
  color-scheme: light dark;
  --background-1: #c2c6de;
  --background-2: #f6f7f9;
  --text-color: #2d3153;
  --text-background: #ffdaff;
  --article-text: #2d3153;
  --hover-background: #2d3153;
  --hover-text: #ffafff;
  --hover-nav: #ffdaff;
  --hover-nav-shadow: #6a176a;
  --cookie: #2d2d2d;
  --arrow: #35374f;
  --arrow-background: #fbfbfb;
  --summary-open: #2d3153;
  --summary-open-text: #ffdaff;

  --background-1: light-dark(#c2c6de, #bea5bd);
  --background-2: light-dark(#f6f7f9, #8e778d);
  --text-color: light-dark(#2d3153, #868686);
  --text-background: light-dark(#ffdaff, #35374f);
  --article-text: light-dark(#2d3153, #ffffff);
  --hover-background: light-dark(#2d3153, #131522);
  --hover-text: light-dark(#ffafff, #ffffff);
  --hover-nav: light-dark(#ffdaff, #fbfbfb);
  --hover-nav-shadow: light-dark(#6a176a, #fbfbfb);
  --summary-open: light-dark(#2d3153, #fbfbfb);
  --summary-open-text: light-dark(#ffdaff, #2d3153);
}

body {
  font-family: "BeVietnam", Helvetica, sans-serif;
  font-style: normal;
  color: var(--text-color);
  background-image: repeating-linear-gradient(
    90deg,
    var(--background-1) 0 1em,
    var(--background-2) 0 2em
  );
  margin: 0;
  position: relative;
  background-repeat: repeat;
  opacity: 1em;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  color: #262535;
  transition: 0.5s ease-in-out;
  padding: 0 1em 0 1em;
  background-color: var(--background-1);
  position: sticky;
  top: 0;
  margin: 0;
  z-index: 100;
  @media (width<30em) {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }
  box-shadow: inset 0em 3em 5em #6a176a50;
}

header a {
  text-decoration: none;
  color: #262535;

  &:hover {
    cursor: pointer;
  }
  &:focus-visible {
    outline: 0.2em dashed #262535;
    outline-offset: 0.2em;
  }
}

header h1 {
  font-family: "MissFajardose";
  font-size: 3.5em;
  margin: 0;
  font-weight: bold;

  @media (width<30em) {
    font-size: 3em;
  }
  &:active {
    transform: scale(0.9);
    transition: 0.2s ease-in-out;
  }
}

nav {
  margin: 0;
  display: flex;
  flex-wrap: balance;
  gap: 2em;
  align-items: center;
  max-width: fit-content;
  padding: 1em;

  font-family: "BeVietnam", sans-serif;
  font-weight: 700;

  & a {
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-transform: uppercase;
    &:hover {
      text-shadow: var(--hover-nav-shadow) 0px 0 7px;
      color: var(--hover-nav);
    }
    &:active {
      transform: scale(0.9);
      transition: 0.2s ease-in-out;
    }
  }
}

main {
  max-width: 70%;
  margin-inline: auto;
  & h2 {
    text-shadow: var(--hover-nav-shadow) 0px 0 7px;
  }
}

.welcome1 {
  display: block;
  color: #262535;
  font-size: 2rem;
}
.welcome2 {
  display: block;
  font-family: "MissFajardose";
  font-size: 3.5rem;
  color: #262535;
}

details {
  background-color: var(--text-background);
  color: var(--article-text);
  text-align: left;
  box-shadow: 0em 0em 1em #6a176a60;

  border-radius: 0.5em;
  margin: 1em;
  &:focus-visible {
    outline: 0.2em dashed #262535;
    outline-offset: 0.2em;
  }
}

details:open::details-content {
  padding-inline: 1em;
  padding: 1em;
}
details[open] {
  box-shadow:
    0em 0em 3em #00000050,
    inset 0em -1em 5em #6a176a50;
}
details[open] summary {
  background: var(--summary-open);
  color: var(--summary-open-text);
  border-radius: 0.5em 0.5em 0 0;
}
summary {
  display: flex;
  cursor: pointer;
  padding-block: 1em;
  padding-inline: 1em;
  border-radius: 0.5em;
  transition: 0.3s ease-in-out;
  &:hover {
    background-color: var(--hover-background);
    color: var(--hover-text);
  }
  &:focus-visible {
    outline: 0.2em dashed black;
    outline-offset: 0.2em;
  }
}

summary h3 {
  display: inline;
  margin: 0;
}
.paragraphs {
  @media (width>25em) {
    column-count: 2;
    column-gap: 2;
  }
  & p {
    margin-top: 0;
  }
}
main a {
  cursor: default;
  &:focus-visible {
    outline: none;
  }
}
main a:focus-visible img {
  outline: 0.2em dashed black;
  outline-offset: 0.2em;
}
picture {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
picture img {
  width: 25rem;
  height: auto;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  margin-top: 1em;
  filter: drop-shadow(0px 4px 10px #00000050);
  &:hover {
    transform: rotate(10deg) scale(1.1);
  }

  &:active {
    transform: rotate(360deg) scale(1.1);
    transition: 0.5s ease-in-out;
  }
}
