/* reset css */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.3s background ease;
}

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

input,
select,
button {
  outline: none;
  border: none;
  font-family: inherit;
}

ul,
li {
  list-style: none;
}

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

/* custom css */
.flex {
  display: flex;
}

.flex-aln-center {
  align-items: center;
}

.flex-d-col {
  flex-direction: column;
}

.flex-jst-center {
  justify-content: center;
}

.flex-jst-sb {
  justify-content: space-between;
}

.flex-jst-sa {
  justify-content: space-around;
}

body {
  --primary-color: #36435e;
  --secondary-color: #bf4141;
  --accent-color: #3f9287;
  width: 100%;
  height: max-content;
  font-family: "Manrope", sans-serif;
  letter-spacing: 1px;
  scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
  body {
    --text-color: #ffffff;
    --faded-text-color: #2c3744;
    --background-color: #212a34;
    --header-active-bg-color: #4f5e71;
    --header-active-color: #ffff;
  }

  .container .site_container ul li:hover,
  .container header span:hover {
    box-shadow: 0 0 20px 3px var(--faded-text-color);
    text-shadow: 0 0 10px var(--text-color);
  }

  .container .site_container ul li img[alt="default"] {
    filter: invert(48%) sepia(13%) saturate(3207%) hue-rotate(130deg)
      brightness(95%) contrast(80%);
  }
}

@media (prefers-color-scheme: light) {
  body {
    --text-color: #212a34;
    --faded-text-color: #e8e8e8;
    --background-color: #ffffff;
    --header-active-bg-color: #939393;
    --header-active-color: #ffffff;
  }
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: var(--faded-text-color);
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

.container {
  width: 100%;
  height: 100%;
  background: var(--background-color);
  color: var(--text-color);
}

.container header {
  flex-direction: row !important;
}

.container header span {
  padding: 1rem;
  font-weight: 800;
  transition: 0.3s box-shadow ease, 0.3s text-shadow ease,
    0.3s background-color ease !important;
}

.container header span.active {
  color: var(--header-active-color);
  background: var(--header-active-bg-color);
}

.container .site_links {
  overflow: auto;
  gap: 2rem;
  height: 100%;
  width: 100%;
  padding-block: 2rem;
}

.container .site_links .site_container,
.container header {
  padding-inline: 2rem;
  min-width: 50%;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media only screen and (max-width: 600px) {
  .container .site_links .site_container,
  .container header {
    width: 100%;
  }
}

.container .site_links .site_container h1 {
  text-transform: capitalize;
}

.container .site_container ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container .site_container ul li,
.container header span {
  cursor: pointer;
  display: flex;
  width: 100%;
  background: var(--faded-text-color);
  border-radius: 5px;
  transition: 0.3s box-shadow ease, 0.3s text-shadow ease;
}

.container .site_links.grid_view .site_container ul {
  flex-direction: row;
  flex-wrap: wrap;
}

.container .site_links.grid_view .site_container ul li {
  width: max-content;
}

.container .site_links.grid_view .site_container ul li a .name {
  display: none;
}

.container .site_container ul li a {
  width: 100%;
  font-weight: 800;
  display: flex;
  padding: 1rem;
  align-items: center;
  gap: 2rem;
}

.container .site_container ul li img {
  aspect-ratio: 1/1;
  width: 2rem;
}
