body {
    background-color: rgb(8, 8, 8);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - 40px);
    height: calc(100vh - 40px);
    padding: 20px;
}

.content {
    color: rgb(51, 12, 12);
    font-family: sans-serif;
    font-size: 20px;
}

#overlay-toggle {
    position:absolute;
    display: none;
  }

  .overlay {
    z-index: 1;
    background-color: rgb(8, 8, 8);
  }

  .overlay label {
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vw;
    color: rgb(255, 255, 255);
    font-size: 2.5rem;
  }

  .no-hover {
    display: block;
  }

  .hover {
    display: none;
  }

  .fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 100vh;
    min-width: 100vw;
  }

  #overlay-toggle:checked ~ .overlay {
    animation-fill-mode: forwards;
    animation-name: fade, hide;
    animation-delay: 0s, 800ms;
    animation-duration: 1s, 0.5ms;
  }

  #overlay-toggle:checked ~ .overlay label {
    animation-fill-mode: forwards;
    animation-name: fade;
    animation-delay: 0s;
    animation-duration: 300ms;
  }

  @media(hover: hover) {
    .hover {
      display: block;
    }
    .no-hover {
      display: none;
    }
  }

  @keyframes fade{
    to {
      opacity: 0;
    }
  }
  
  @keyframes hide {
    to {
      visibility: hidden;
    }
  }