/* start imports */

/* root */
@import url("./components/grid.css");

/* sidebar */
@import url("./components/sidebar-nav.css");
@import url("./components/sidebar-social.css");

/* data container */
@import url("./components/data-container.css");

/* icons */
@import url("./components/icons.css");

/* themes */
@import url("./components/themes.css");

/* end imports */

:root {
  /* font config */
  --varela-font: "Varela Round", BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;

  user-select: none;
  outline: none;
  text-decoration: none;

  border: none;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: rgba(0, 0, 0, 0);
  font-family: var(--varela-font);
}

img {
  display: block;
}

body,
html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

h1,
h3,
p,
span {
  color: var(--font-color0);
}

p {
  font-size: 1.1rem;
}

a {
  color: var(--accent-color0);
  font-weight: 700;
}

a:hover {
  color: var(--accent-color1);
  text-decoration: underline;
}

ul {
  margin: 0.75em 0;
  padding: 0 1em;
  list-style: none;
}
li::before {
  content: "";
  border-color: transparent var(--font-color0);
  border-style: solid;
  border-width: 0.35em 0 0.35em 0.45em;
  display: block;
  height: 0;
  width: 0;
  left: -1em;
  top: 0.9em;
  position: relative;
}

/* start scrollbar */
::-webkit-scrollbar {
  /* width: 0.875rem; */
  width: 1rem;
  height: 1.125rem;
}

::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  height: 0.375rem;
  border: 0.374rem solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  -webkit-border-radius: 0.438rem;
  border-radius: 0.5rem;
  background-color: var(--accent-color1);
  -webkit-box-shadow: inset -1px -1px 0px rgb(0 0 0 / 5%),
    inset 1px 1px 0px rgb(0 0 0 / 5%);
  box-shadow: inset -1px -1px 0px rgb(0 0 0 / 5%),
    inset 1px 1px 0px rgb(0 0 0 / 5%);
}
/* end scrollbar */

::selection {
  background-color: var(--accent-color0);
  color: white;
}

@keyframes highlight {
  0% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.04);
  }
  45% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes loadcontent {
  0% {
    transform: scale(1.2);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media screen and (max-width: 1000px), screen and (max-height: 500px) {
  #data-container main {
    padding: 1rem 2rem 3rem 3rem;
  }
}

@media screen and (max-width: 800px), screen and (max-height: 500px) {
  #data-container main {
    padding: 0 0rem 0 1rem;
    padding-top: 0;
  }

  #special-subtitle {
    display: block;
  }

  #data-container main section {
    padding: 0.5rem 1rem;
  }

  #main-title-desktop {
    display: none;
  }

  #main-title {
    margin: 0 auto 2rem auto;
    padding: 0;
    padding-bottom: 2rem;

    display: inherit;

    overflow: visible;
  }

  #main-title h1 {
    font-size: 1.6rem;
    position: relative;
    width: max-content;
    margin: 0 auto;
    bottom: 0;
  }

  #sidebar-social {
    position: absolute;

    height: 100vh;
    width: 6rem;
    max-height: 100vh;

    padding: 0.4rem;

    z-index: 2;

    opacity: 0;

    right: -30vw;

    transition: right 600ms ease, opacity 500ms ease;
  }

  #sidebar-nav {
    position: absolute;

    width: 100vw;
    height: 100vh;
    max-height: 100vh;

    z-index: 2;

    border-bottom: 1rem solid var(--accent-color0);
    border-left: none;

    right: 100vw;

    border-radius: 0;
    padding: 0;
    padding-bottom: 0.8rem;

    opacity: 0;

    transition: right 600ms ease, opacity 500ms ease;
  }

  .sidebar-nav-toggle {
    right: 0px !important;
    opacity: 1 !important;
  }

  #section-header-profile {
    display: flex;
  }

  #section-header {
    display: flex;
    flex-direction: row;
    background-color: transparent;
    border-bottom: 0.1rem solid transparent;
    transition: all 500ms ease;
  }

  .paint-section-header {
    border-bottom: 0.1rem solid var(--section-border-color) !important;
  }

  .nav-content {
    padding: 0;
    margin: auto;

    margin-top: 0;
    height: max-content;
  }

  .nav-profile {
    width: 60%;
    margin: auto auto 10% auto;

    padding: 1rem 0 0 0;

    background-color: transparent;

    border-radius: 1rem;
  }

  .nav-profile-title {
    margin: auto 0 auto 1rem;
  }

  .nav-profile img {
    border-radius: 50%;
    box-shadow: 0 0 0 0.2rem var(--main-color0),
      0 0 0 0.4rem var(--accent-color0);
  }

  .nav-content button {
    justify-content: center;
    padding: 1rem 2rem;
    margin: 0 auto;
    width: max-content;
    border-radius: 2rem;

    color: var(--font-color0);
  }

  .nav-content button span {
    font-size: 1.3rem;
  }

  .nav-profile div {
    display: none;
  }

  .high-contrast .nav-content button {
    box-shadow: inset 0 0 0 0.1rem var(--accent-color0);
    margin-bottom: 1rem;
  }

  .high-contrast section {
    border: 0;
  }

  @keyframes highlight {
    0% {
      transform: scale(1);
    }
    35% {
      transform: scale(1);
    }
    45% {
      transform: scale(1.04);
    }
    80% {
      transform: scale(1);
    }
    100% {
      transform: scale(1);
    }
  }
}
