*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0
}

ul[role='list'],
ol[role='list'] {
  list-style: none
}

body {
  min-height: 100vh;
  line-height: 1.5
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1
}

h1,
h2,
h3,
h4 {
  text-wrap: balance
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor
}

img,
picture,
video {
  max-width: 100%;
  display: block;
  height: auto
}

input,
button,
textarea,
select {
  font: inherit
}

textarea:not([rows]) {
  min-height: 10em
}

:target {
  scroll-margin-block: 5ex
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  font-family: sans-serif;
  line-height: 1.3;
  margin: 0;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  cursor: pointer;

  &:link,
  &:visited,
  &:hover,
  &:active {
    color: inherit;
  }
}

#skip-to-content-link {
  position: fixed;
  top: 0;

  background: black;
  color: white;
  height: 30px;
  left: 50%;
  padding: 8px;

  transform: translate(-50%, -150%);
  transition: transform 0.3s;
  z-index: 100;

  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;

  &:focus {
    transform: translate(-50%, 0);
  }
}

.content-width {
  max-width: 1200px;
  width: 90%;
  margin-inline: auto;
}

.filter {
  margin-top: 1rem;

  .flex {

    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

.previews {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;


  article {
    position: relative;

    &.hide {
      display: none;
    }

    a {
      border: 1px solid currentColor;
      text-decoration: none;
      display: flex;
      align-items: start;
      gap: 1rem;
      justify-content: space-between;
      flex-wrap: wrap;
      padding: 1rem 1rem 0.8rem;
      transition: 0.2s ease-out;
      border-radius: 10px;

      &:hover {
        color: hsl(240, 64%, 47%);
        border-radius: 24px;

        /*
        background-color: midnightblue;
        color: white;

        .tag{
          border-color: white;
        }
        */
      }

      .left {
        display: flex;
        gap: 1rem;
        align-items: baseline;
      }
    }

    .filter-tags {
      display: flex;
      gap: 0.5rem;
      margin-left: auto;
    }

    .tags,
    .technologie {
      list-style: none;
      display: flex;
      gap: 0.5rem;
    }

  }
}

fieldset {
  border-radius: 6px;
}

.tag {
  text-transform: uppercase;
  font-size: 0.7em;
  letter-spacing: 0.03em;
  border: 1px solid currentColor;
  border-radius: 1em;
  padding: 4px 8px 2px;
  transition: 0.2s ease-out;
}

#main-header {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  background-color: midnightblue;
  color: white;
  padding: 0.9rem 1rem;

  a {
    text-decoration: none;
  }
}

.single-resource {
  article {
    margin-top: 3rem;
    margin-bottom: 3rem;
    font-size: 1.2rem;

    h1 {
      font-size: 1.75em;
      padding-bottom: 0.3em;
      margin-bottom: 0.5em;
      border-bottom: 2px solid midnightblue;
    }

    ul:not(.technologie):not(.tags) {
      margin-top: 2rem;
      padding-left: 1em;
    }

    .tags-wrapper {
      display: flex;
      gap: 0.5em;
      margin-top: 0.5rem;

      ul {
        list-style: none;
        display: flex;
        gap: 0.5em;
      }
    }

    video {
      margin-block: 2rem;
      aspect-ratio: 16 / 9;
      width: 100%;
    }
  }
}

summary,
label {
  cursor: pointer;
}