.sidenav {
  height: 100%;
  width: 13rem;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  margin-top: 6rem;
  z-index: 2147483646;
}

.sidenav a {
  position: relative;
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 1.4rem;
  color: #AAA;
  display: block;

  background-color: #533; 
  
  background-image: linear-gradient(to bottom, #533, #644);
  
  border: none;
  border-radius: 4px;
  margin: 4px 4px;
}

.sidenav a:hover {
  color: #FFFFFF;

  background-color: #644;
  background-image: linear-gradient(to bottom, #644, #533);

  transition: background-image 0.3s ease;
}

.sidenav a::after {
  content: ""; 

  width: 2.5rem;
  height: 2.5rem;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  right: 0.4rem; 
  transform: translateY(-50%) translateX(10px); 
  
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidenav a:hover::after {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

.sidenav a[href*="/"]::after {
  background-image: url("assets/home.png");
}

.sidenav a[href*="flash.php"]::after {
  background-image: url("assets/flash.png");
}

.sidenav a[href*="touhou.php"]::after {
  background-image: url("assets/mima.png");
}

.sidenav a[href*="videos.php"]::after {
  background-image: url("assets/mm.png");
}

.sidenav a[href*="forum.php"]::after {
  background-image: url("assets/forum.png");
}

.sidenav a[href*="blog.php"]::after {
  background-image: url("assets/blog.png");
}

.sidenav a[href*="about.php"]::after {
  background-image: url("assets/about.png");
}

.sidenav a[href*="contact.php"]::after {
  background-image: url("assets/contact.png");
}

.sidenav a[href*="coolsites.php"]::after {
  background-image: url("assets/coolsites.png");
}

.main {
  margin-left: 160px;
  padding: 0px 10px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
} 
