@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&display=swap');

@font-face {
  font-family: "noka_cellphone";
  src: url("../assets/fonts/nokiafc22.ttf");
}

html,
body {
  background-color: #000;
  color: #fff;
  font-size: 12px;
  font-family: "noka_cellphone", monospace;
  margin: 0;
  padding: 0;
}

a {
  color: #fff;
  text-decoration: none;
}

p {
  line-height: 24px;

  a {
  border-bottom: 2px solid red;
  color: red;
  text-decoration: none;

    &:hover {
      font-style: italic;
    }
  }
}

ol li {
  margin-top: 10px;
}

img {
  image-rendering: pixelated;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  &:hover {
    transform: scale(1.1) rotate(3deg);
    filter: brightness(1.2);
  }
}

#container {
  margin: 20px auto;
  width: 90%;

  @media (min-width: 768px) {
    width: 800px;
  }

  #modified {
    font-size: 12px;
  }

  #links {
    display: flex;
  }

  .link {
    margin-right: 4px;
  }

  #posts {
    margin-top: 12px;

    .title {
      margin-bottom: 8px;
    }
  }

  #banner {
    background-color: red;
    background-size: cover;
    border-radius: 4px;
    display: flex;
      flex-direction: column;
      justify-content: flex-end;
    filter: grayscale(80%);
    height: 160px;
    margin-top: 10px;
    width: 100%;

    #title {
      font-size: 24px;
      padding: 0px 0px 10px 10px;
    }
  }

  code {
    border-radius: 4px;
    font-size: 12px;
    font-family: "Inconsolata", monospace;
    font-optical-sizing: auto;
    font-style: normal;
  }
}

@keyframes bounce-text {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

#posts a:hover .char {
  animation: bounce-text 0.69s infinite;
}
