body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

nav ul{
  margin: 0;
  padding: 0;
}

.topnav {
  background-color: #333;
  margin: 0;
  padding: 0;
}
  
.topnav a {
    /* float: left; */
  display: inline-block;
  color: #f2f2f2;
  text-align: center;
  padding: 55px 16px 14px;
  text-decoration: none;
  font-size: 17px;
  position: relative;
}

.topnav a::after {
  display: block;
  width: 45px;
  height: 45px;
  content: '';
  position: absolute;
  background: url(marvel.png);
  top: 5px;
  left: 50%;
  transform: translatex(-50%);
}

.topnav a:hover::after{
  background-position-y: 100%;
}

.topnav li:nth-child(3) a::after{
  background-position-x: -45px;
}

.topnav li:nth-child(4) a::after{
  background-position-x: -90px;
}

.topnav li:nth-child(5) a::after{
  background-position-x: -135px;
}

.topnav li:nth-child(6) a::after{
  background-position-x: -180px;
}

.topnav li:nth-child(7) a::after{
  background-position-x: -225px;
}

.topnav li:nth-child(8) a::after{
  background-position-x: -270px;
}

.topnav li:nth-child(9) a::after{
  background-position-x: -315px;
}

.topnav li:nth-child(10) a::after{
  background-position-x: -360px;
}
.topnav li:nth-child(11) a::after{
  background-position-x: -405px;
}

.submenu a::after, a.active::after, a.icon::after{
  display: none;
}

.submenu a {
  padding: 14px 16px;
}

nav a:hover {
  background-color: #ddd;
  color: white;
}

/* .topnav a:hover {
  background-color: #ddd;
  color: black;
} */
  
.topnav a.active {
  background-color: #04AA6D;
  color: white;
}
  
.topnav .icon {
  display: none;
}

nav li{
  display: inline;
  position: relative;
}

.submenu{
  position: absolute;
  display: none;
  left: 0;
}

.submenu a{
  width: 100%;
}

li:hover .submenu{
  display: block;
}

.submenu li{
  display: block;
  background-color: #04AA6D;
}

   
 

  @media screen and (max-width: 600px) {
    .topnav li:not(:first-child) a {display: none;}
    .topnav li a.icon {
      float: right;
      display: block;
    }
  }
  
  @media screen and (max-width: 600px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive .icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive li a {
      float: none;
      display: block;
      text-align: left;
    }
  }
  
@media screen and (min-width: 601px) {
  nav li{
    display: inline;
  }
  .submenu{
    display: none;
  }
}

  /* circulo de carga*/
  
    #loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
  }
  #loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  #loader-wrapper .loader-section.section-left {
    left: 0;
  }
  #loader-wrapper .loader-section.section-right {
    right: 0;
  }
  #loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    -webkit-animation: spin 2s linear infinite;
            animation: spin 2s linear infinite;
    z-index: 99999;
  }
  #loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;
    -webkit-animation: spin 3s linear infinite;
            animation: spin 3s linear infinite;
  }
  #loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;
    -webkit-animation: spin 1.5s linear infinite;
            animation: spin 1.5s linear infinite;
  }
  .loaded #loader-wrapper {
    visibility: hidden;
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
    -webkit-transition: all 0.3s 1s ease-out;
    transition: all 0.3s 1s ease-out;
  }
  .loaded #loader-wrapper .loader-section.section-left {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
  .loaded #loader-wrapper .loader-section.section-right {
    -webkit-transform: translateX(100%);
            transform: translateX(100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
  .loaded #loader {
    opacity: 0;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
  }
  @-webkit-keyframes spin {
    0% {
      -webkit-transform: rotate(0deg);
              transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }
  @keyframes spin {
    0% {
      -webkit-transform: rotate(0deg);
              transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
              transform: rotate(360deg);
    }
  }