@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
	font-family: 'Jost', sans-serif;
}

body {
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.center {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  padding: 10px;
}

.overlay {
  /* Height & width depends on how you want to reveal the overlay (see JS below) */    
  height: 100%;
  width: 100%;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  background-color: transparent; /* Black fallback color */
  overflow-x: hidden; /* Disable horizontal scroll */
  background-image: radial-gradient(#212121 20%, transparent 20%),
      radial-gradient(#f00 20%, transparent 20%);
  background-position: 0 0, 15px 15px;
  background-size: 30px 30px;
  -webkit-animation-duration: 3s;animation-duration: 3s;
  -webkit-animation-fill-mode: both;animation-fill-mode: both;
}

.fadeOut {
  -webkit-animation-name: fadeOut;
  animation-name: fadeOut;
}

@keyframes fadeOut {
   0% {opacity: 1;left:0;}
   33% {opacity: 1;left:0;}
   99% {opacity: 0.1; left: 0}
   100% {opacity: 0; display: none; left:-100%;} 
} 