body {
  margin: 0;
  font-family: Arial;
}

.topnav {
  text-align: right;
  overflow: hidden;
  background-color: rgb(51, 51, 51, 0.7);
}

.topnav a {
  display: inline-block;
  vertical-align: middle;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  transition: background-color 200ms ease, color 200ms ease;
}

.active {
  background-color: #3eb64b;
  color: white;
}

.topnav .icon {
  display: none;
}

.dropdown {
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  transition: background-color 200ms ease, color 200ms ease;
}

.dropdown .dropbtn.active {
  background-color: #3eb64b;
  color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(51, 51, 51, 0.7);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav a:hover,
.dropdown:hover .dropbtn {
  background-color: #5f499e;
  color: white;
}

.dropdown-content a:hover {
  background-color: rgb(95, 73, 158, 0.4);
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.topnav a.name {
  font-size: 25px;
  float: left;
  font-family: impact;
}

.topnav .logo {
  width: 60px;
  height: 60px;
  position: absolute;
  top: 10px;
  left: 20px;
}

.topnav .logo:hover {
  transform: scale(
    1.3
  ); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
  transition: 1s;
}

.topnav .logo:not(:hover) {
  transition: 1s;
}

@media screen and (max-width: 1280px) {
  .topnav a:not(:first-child),
  .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 1280px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: center;
  }
  .topnav.responsive .dropdown {
    float: none;
  }
  .topnav.responsive .dropdown-content {
    position: relative;
  }
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .active {
    background-color: #3eb64b;
    /* margin-top: 50px; */
  }
  .dropdown-content {
    background-color: rgb(150, 150, 150, 0.7);
  }
  .topnav {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .topnav .logo {
    width: 48px;
    height: 48px;
    top: 8px;
    left: 12px;
  }
}
