*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: #222222;
  color: white;
  font-family: "Verdana";
}

:root {
  --shadow_color: white;
}

body {
  /* Fallback for browsers that don't support dvh */
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  /* grid-template-rows: 1fr auto; */
  grid-template-areas: "header" "content" "footer";
  grid-template-rows: 100px 1fr 100px;
  align-items: start;
  overflow-x: hidden;
}
header {
  grid-area: header;
  display: block;
  position: relative;
  width: 100%;
  height: 100px;
  padding: 1em;
  margin: 0 auto;
  background-color: #030303;
  color: white;
}
section {
  display: block;
  position: relative;
}

section#cards_section2 {
  grid-area: content;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  grid-gap: 10px;
  align-items: start;

  margin-top: 2em !important;
  margin-bottom: 2em !important;
  position: relative;
  width: 100%;
  transition: all 0.1s ease-out;

  & .card {
    background-color: #030303;
    border-radius: 3px;
    padding: 1em;
    outline: 1px solid transparent;
    transition: all 0.1s ease-out;

    &:hover {
      /* outline: 1px solid rgba(255, 255, 255, 0.8); */
      outline: 1px solid var(--shadow_color);
    }
    & .title {
      font-size: 1.5em;
      font-weight: bold;
      margin-bottom: 0.5em;
    }
    & .content {
      font-size: 1em;
      font-weight: normal;
      margin-bottom: 0.5em;

      & > a {
        display: unset;
        color: white;
        text-decoration: none;
        font-weight: bold;
        &:visited,
        &:link,
        &:active {
          color: white;
        }

        &:hover {
          text-decoration: underline;
          background-color: white;
          color: black;
        }
      }
    }
    & .link > a {
      margin-top: 1em;
      padding-left: 0.5em;
      font-weight: bold;
      display: block;
      text-decoration: none;
      background-color: white;
      transform: translateX(0em);

      transition: all 0.1s ease-out;
      color: black;
      &:visited,
      &:link,
      &:active {
        color: black;
      }
      &:hover {
        text-decoration: none;
        color: black;
        outline: 1px solid rgba(255, 255, 255, 0.8);
        transform: translateX(0.5em);
      }

      &::after {
        content: " →";
      }
    }
  }
}

.lightshadow {
  /* --shadow_color: rgba(255, 0, 0, 0.5); */

  &:hover {
    box-shadow: 0px 0px 10px 0px var(--shadow_color);
  }
}
footer {
  grid-area: footer;
  display: flex;
  margin-top: auto;
  bottom: 0;
  background-color: #030303;
  width: 100%;
  height: 100px;
  align-items: last baseline;
  justify-content: center;
  min-height: 5em;
  padding-bottom: 1em;
}
