@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter/static/Inter-Bold.ttf') format('truetype'); /* 700 */
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter/static/Inter-Black.ttf') format('truetype'); /* 800 */
    font-weight: 800;
    font-style: normal;
}

/* Define @font-face rule for Open Sans font */
@font-face {
    font-family: 'Open Sans';
    src: url('./fonts/Open_Sans/static/OpenSans-Regular.ttf') format('truetype'); /* 400 */
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('./fonts/Open_Sans/static/OpenSans-SemiBold.ttf') format('truetype'); /* 600 */
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('./fonts/Open_Sans/static/OpenSans-Bold.ttf') format('truetype'); /* 700 */
    font-weight: 700;
    font-style: normal;
}

:root {
  /* Colors */
  --bg-color-1: #090909;
  --bg-color-2: #121212;
  --bg-color-3: #191919;

  --text-color-1: #FFFFFF;
  --text-color-2: #EEEEEE;
  --text-color-3: #DDDDDD;

  --color-1: #2EB086;
  --color-2: #313552;
  --color-3: #EEE6CE;

  --btn-color-1: #B8405E;
  --btn-color-2: #EEE6CE;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color-1);
  color: var(--text-color-1);
  line-height: 1;
  overflow-x: hidden;
  box-sizing: border-box;
  border: 0;
  margin: 0;

  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;

  width: 100vw;
  min-height: 100vh;
}

:not(img, span) {
  box-sizing: border-box;
  margin: 0;
}

:is(button, a) {
  cursor: pointer;
}

:is(input, button, textarea) {
  font-family: inherit;
  font-size: 1em;
  border: 0;
  margin: 0;
}

:is(input, button, textarea):not(:focus, :focus-within, :focus-visible) {
  outline: 0;
}

:hover {
  outline: 0;
  margin: 0;
}

:is(p, span) {
  font-size: 1em;
  line-height: 1.5;
}

span:has(svg) {
  display: flex;
  justify-content: center;
  align-items: center;
}

:is(h1, h2, h3, h4) {
  font-family: "Inter", sans-serif;
  font-style: normal;
  line-height: 1.2;
}

h1 {
  font-size: 3em;
  font-weight: 800;
}

h2 {
  font-weight: 700;
}

header {
  position: relative;
}

nav.menu {
    color: #EEEEEE;
}

nav {
  display: flex;
  position: absolute;
  background-color: transparent;
  color: var(--text-color-2);
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.3em;
  top: 2em;
  left: 0;

  width: 100%;
  z-index: 99;

  & ul {
    align-self: end;
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0 1em;
    gap: 1em;
  }

  & a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: bold;

    &:hover {
      color: var(--btn-color-2);
    }
  }

  & #mobile-menu-btn {
    display: none;
  }
}

nav:has(.pagination) {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  gap: 2em;

  width: 100%;

  & ul {
    align-self: center;
    flex-wrap: wrap;
    padding: 0;
  }

  & a {
    color: var(--text-color-3);
    font-weight: 400;
  }

  & .disabled {
    opacity: 0.45;
  }

  & .active {
    color: var(--text-color-1);
    background-color: var(--btn-color-1);
    font-weight: 600;
  }

  & .pagination-link {
    display: flex;
    border-radius: 0.15em;
    margin: 0;
    padding: 1em;
  }

  & .next-prev {
    background-color: var(--bg-color-3);
  }
}

footer {
  background-color: var(--bg-color-3);
  min-height: 30vh;
}

.scroll-to-top {
  transition: all 300ms ease;
  transition: opacity 800ms ease;
  background-color: var(--color-1);
  display: flex;
  color: #FFFFFF;
  position: fixed;
  align-items: center;
  justify-content: center;
  padding: 1em;
  border-radius: 0.3em;
  opacity: 0;

  bottom: 1em;
  right: 1em;
  font-size: 2em;

  width: fit-content;
  aspect-ratio: 1 / 1;

  z-index: 99;


  &:hover {
    filter: saturate(1.3);
  }
}

.fill-btn {
  transition: all 300ms ease;
  text-decoration: none;
  text-align: center;
  background: var(--btn-color-1);
  color: var(--text-color-1);
  font-weight: bold;
  font-size: 1em;
  border: 0;
  border-radius: 0.3em;
  padding: 0.6em 1.2em;
  opacity: 1;

  &.fill-btn:hover {
    opacity: 0.85;
  }
}

.display-none {
  display: none;
}

.border-btn {
  transition: all 300ms ease;
  text-decoration: none;
  text-align: center;
  background: none;
  color: var(--text-color-1);
  font-weight: bold;
  font-size: 1em;
  border: 0.13em solid var(--btn-color-2);
  border-radius: 0.3em;
  padding: 0.6em 1.2em;
  opacity: 1;

  &.border-btn:hover {
    opacity: 0.85;
    color: var(--text-color-2);
  }
}

.icon-xl {
  width: 128px;
  height: 128px;
}

.icon-bi {
  width: 64px;
  height: 64px;
}

.icon-md {
  width: 48px;
  height: 48px;
}

.icon-sm {
  width: 32px;
  height: 32px;
}

.skeleton-img {
  background-color: var(--bg-color-3) !important;
  animation: skeleton-loading-animation 1.5s infinite ease-in-out;
}

.display-none:not(.htmx-request) {
  display: none !important;
}

@keyframes skeleton-loading-animation {
  0% { opacity: 0.6; }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; }
}

/* Modal styles */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  padding-top: 1.3em;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 999;

  & .prev, .next {
    background-color: var(--btn-color-1);
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1em;
    color: var(--text-color-1);
    font-weight: bold;
    font-size: 20px;
    margin-top: -24px;
    transition: 0.6s ease;
    border-radius: 0.25em;
    user-select: none;
  }

  & .prev {
    left: 1em;
  }

  & .next {
    right: 1em;
  }

  & img {
    margin: auto;
    display: block;
    max-width: 80vw;
    max-height: 80vh;
  }

  & .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #F1F1F1;
    font-size: 48px;
    font-weight: bold;
    transition: 0.3s;
  }

  & .close:hover,
  & .close:focus {
    color: #BBB;
    text-decoration: none;
    cursor: pointer;
  }
}

@media screen and (max-width: 1250px) {
  h1 {
    font-size: 2.6em;
  }

  h2 {
    font-size: 1.3em;
  }

  .icon-xl {
    width: 118px;
    height: 118px;
  }

  .icon-bi {
    width: 54px;
    height: 54px;
  }

  .icon-md {
    width: 46px;
    height: 46px;
  }

  .icon-sm {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 810px) {
  .scroll-to-top {
    font-size: 1.5em;
  }

  .modal {
    & .prev, .next {
      top: unset;
      bottom: 3%;
      margin: 0 25%;
    }
  }

  nav.menu {
    padding: 0;

    & ul {
      display: none;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(10px);
      flex-direction: column;
      position: absolute;
      padding: 2em 1em;
      align-items: center;
      justify-content: center;
      height: 100vh;
      width: 100%;

      top: -3em;
      left: 0;
      z-index: 0;

      & a {
        padding: 1em;
      }
    }
  }

  nav.menu #mobile-menu-btn {
    display: block;
    text-align: center;
    cursor: pointer;
    background: none;
    margin-right: 1em;

    align-self: flex-end;
    z-index: 1;
  }

  nav.menu #mobile-menu-btn div {
    border-radius: 0.3em;
    background-color: #EEEEEE;
    margin: 6px auto;

    width: 3em;
    height: 6px;
  }

  h1 {
    font-size: 2.35em;
  }

  h2 {
    font-size: 1.2em;
  }

  .icon-xl {
    width: 108px;
    height: 108px;
  }

  .icon-bi {
    width: 48px;
    height: 48px;
  }

  .icon-md {
    width: 42px;
    height: 42px;
  }

  .icon-sm {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 524px) {
  nav:has(.pagination) {
    & ul li:not(:first-child, :last-child, :has(.active)) {
      display: none;
    }

    & .pagination-link {
      background-color: var(--btn-color-1);

      &.active {
        background: none;
      }
    }
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.3em;
  }
}
