@import url(/css/base.css);

:root {
   --h-color: #406;
   --a-color: #407;
   --a-visited-color: #739;
   --a-hover-color: maroon;
   --shade-bg: #f1e7ff none;

   --logo-width: 121px;
   --logo-height: 200px;
   --logo-image: url(/css/holidays/april-fools/virus/logo.webp);

   --header-color: white;
   --header-color-text-shadow: var(--dark-text-shadow);
   --header-color-bg: #406 none;
   --header-a-color: white;
   --header-a-text-shadow: var(--dark-text-shadow);
   --header-bar-border-color: #006;
   --header-bar-height: 70px;
   --header-bar-bg: #edf url(/css/holidays/april-fools/virus/titlebar.png) -438px center;
   --header-title-bg: white none;
   --header-title-border: 1px solid #006;

   --nav-color: #340047;
   --nav-a-color: white;
   --nav-a-text-shadow: var(--dark-text-shadow);
   --nav-sub-a-color: #036;
   --nav-sub-a-text-shadow: var(--light-text-shadow);
   --nav-a-hover-color: #ffff80;
   --nav-a-hover-bg-color: #180029;
   --nav-hr-width: 96px;
   --nav-hr-height: 32px;
   --nav-hr-bg: transparent url(/css/holidays/april-fools/virus/h2.png) no-repeat center center;
}

@media screen and (min-width:200px) {
   #content {
      padding-bottom: 130px;
      background: url(/css/holidays/april-fools/virus/corner.png) 80% 100% no-repeat;
   }
}

@keyframes growVirus {
   0% {
      width: 0px;
      height: 0px;
   }

   100% {
      width: 256px;
      height: 256px;
   }
}

@keyframes colorVirus {
   0% { filter:hue-rotate(0deg); }
   100% { filter:hue-rotate(360deg); }
}

@keyframes moveVirus {
   0% { top:0; left:50%; transform:rotate(0deg); }
   15% { top:20%; left:0%; transform:rotate(50deg); }
   25% { top:95%; left:32%; transform:rotate(100deg); }
   30% { top:63%; left:95%; transform:rotate(150deg); }
   40% { top:0; left:52%; transform:rotate(200deg); }
   46% { top:95%; left:32%; transform:rotate(250deg); }
   50% { top:45%; left:0%; transform:rotate(225deg); }
   60% { top:12%; left:95%; transform:rotate(200deg); }
   65% { top:0; left:44%; transform:rotate(275deg); }
   70% { top:40%; left:0%; transform:rotate(300deg); }
   80% { top:95%; left:25%; transform:rotate(320deg); }
   90% { top:40%; left:95%; transform:rotate(340deg); }
   100% { top:0; left:50%; transform:rotate(360deg); }
}

.virus {
   position: absolute;
   top: 0;
   background: transparent url(/css/holidays/april-fools/virus/virus.png) no-repeat;
   background-size: contain;
   max-width: 256px;
   max-height: 256px;
   transform-origin: 50% 50%;
   animation: growVirus 100s ease-in forwards, colorVirus 35s infinite linear, moveVirus 200s infinite linear;
   z-index: 100;
}

.virus:nth-child(1) { animation-delay:0s; }
.virus:nth-child(2) { animation-delay:20s; }
.virus:nth-child(3) { animation-delay:40s; }
.virus:nth-child(4) { animation-delay:60s; }
.virus:nth-child(5) { animation-delay:80s; }
.virus:nth-child(6) { animation-delay:100s; }
.virus:nth-child(7) { animation-delay:120s; }
.virus:nth-child(8) { animation-delay:140s; }
.virus:nth-child(9) { animation-delay:160s; }
.virus:nth-child(10) { animation-delay:180s; }
