@import "./assets/iconfont/icons.css";
:root {
  color-scheme: light dark;
}

html,
body {
  height: 100%;
  width: 100%;
}

html,
body,
h1,
h2,
h3 p {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Roboto", sans-serif;
}

h3[data-value]::before {
  content: attr(data-value);
}

body {
  --text-color: black;
  --bkg-color: whitesmoke;
  --bkg-color-light: white;
  --card-shadow: rgba(0, 0, 0, 0.1);
}

body.dark {
  --text-color: #c9d1d9;
  --bkg-color: black;
  --bkg-color-light: #0d1117;
  --card-shadow: rgba(51, 50, 50, 0.8);
}

@media (prefers-color-scheme: dark) {
  body {
    --text-color: #c9d1d9;
    --bkg-color: black;
    --bkg-color-light: #0d1117;
    --card-shadow: rgba(51, 50, 50, 0.8);
  }

  body.light {
    --text-color: black;
    --bkg-color: whitesmoke;
    --bkg-color-light: white;
    --card-shadow: rgba(0, 0, 0, 0.1);
  }
}
body {
  background-color: var(--bkg-color);
}

h1,
h2,
h3,
p {
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
}

h3 {
  text-align: center;
  font-style: 0.65rem;
}

header {
  margin: auto;
  padding: 4em 2em;
  max-width: 1000px;
}
header h1 {
  text-align: center;
  font-size: 8rem;
  letter-spacing: 17px;
  text-transform: uppercase;
  font-weight: 600;
}
header h2 {
  text-align: center;
  font-weight: 400;
  font-size: 24px;
  line-height: 38px;
}
header nav {
  position: absolute;
  top: 2em;
  right: 2em;
  float: right;
}

nav {
  color: var(--text-color);
}
nav a {
  margin-right: 1rem;
}
nav c-toggle {
  cursor: pointer;
}
nav c-toggle .icon-light {
  color: yellow;
}
nav c-toggle .icon-dark {
  color: darkblue;
}

main {
  margin: auto;
  max-width: 820px;
}
main section {
  background-color: var(--bkg-color-light);
  padding: 2em 4em 1em 4em;
  -webkit-box-shadow: 0px 5px 20px 1px var(--card-shadow);
  box-shadow: 0px 5px 20px 1px var(--card-shadow);
  border-radius: 5px;
}
main section article p {
  margin-bottom: 1em;
  line-height: 2em;
  font-size: 22px;
  font-weight: 400;
}

footer {
  height: 200px;
}
footer nav {
  visibility: hidden;
}

@media screen and (max-width: 650px) {
  header {
    padding: 1em;
    max-width: 650px;
  }
  header h1 {
    font-size: 4.5em;
  }

  main > section {
    padding: 1em;
    box-shadow: none;
  }

  article > p {
    text-align: left;
  }
}
@media screen and (max-width: 430px) {
  header {
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  header h1 {
    text-align: left;
    font-size: 4em;
    letter-spacing: 12px;
  }
  header h2 {
    text-align: left;
  }
}
.icon {
  font-size: 1.45em;
  color: var(--text-color);
  vertical-align: bottom;
}

.btn {
  height: 2rem;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  color: white;
  font-weight: bold;
}
.btn--follow {
  background: #263a99;
  background: linear-gradient(243deg, #263a99 27%, #253896 48%, #090e4f 90%);
  margin-right: 1rem;
}
.btn--follow:hover {
  background: #164279bb;
}

.c-snack-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  padding: 0 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-content: center;
  height: 55px;
  width: 255px;
  background-color: black;
  color: white;
  transition-duration: 0.45s;
  transition-property: opacity, visibility;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.c-snack-bar--open {
  visibility: visible;
  opacity: 1;
}

.c-snack-bar > button {
  align-self: center;
}

/* UTILS */
.u-margin-bottom--md {
  margin-bottom: 1rem;
}

.u-margin-left--md {
  margin-left: 1rem;
}

.c-fab {
  margin: 1em 2em;
  position: fixed;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  height: 62px;
  width: 62px;
  border-radius: 50%;
  background-color: black;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  z-index: 9999;
}

.c-fab__icon {
  margin: auto;
  animation: rotation 22s linear infinite;
  transform-origin: 50% 50%;
  fill: white;
}

@keyframes rotation {
  to {
    transform: rotate(360deg);
  }
}
.c-fab__icon:hover {
  animation: rotation 1s ease-in-out infinite;
  cursor: pointer;
}

.c-menu {
  padding: 2em;
  color: white;
  position: fixed;
  top: 30%;
  right: 0;
  width: 450px;
  height: 250px;
  background-color: black;
  z-index: 9999;
}

/* width */
::-webkit-scrollbar {
  width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--bkg-color-light);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--text-color);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--card-shadow);
}