/*
Theme Name: Portafolio
Theme URI: http://urldeltema
Description: portafolio
Author: Nicolas-leal
Author URI: dirección web del autor
Version: 0.1
License: GNU General Public License (u otra)
Tags: etiquetas que ayuden a indexar el tema
*/
.topheader {
  position: fixed;
  box-shadow: 0 0px 5px #000000;
  background-color: #00117f;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 100;
}

.topnav {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  max-width: 980px;
  margin: 0 auto;
}

/* Menu */
.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  padding: 0 15px;
}

.menu a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 50px;
  text-transform: uppercase;
  position: relative;
  left: 700px;
}

.menu a::after {
  content: "";
  background-color: #b6d2ff;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 100%;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s;
}

.menu a.selected::after,
.menu a:hover::after {
  opacity: 0.8;
}

.menu a:hover {
  color: #62cbff;
}

.open-menu,
.close-menu {
  display: none;
}


@media (max-width: 950px) {
  /* Menu */
  .menu {
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    align-items: center;
    background-color: #00117f;
    height: 100%;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .menu li {
    padding: 0;
    
  }

  .menu a {
    color: #ffffff;
    line-height: 70px;
    font-size: 25px;
    left: auto;
  }

  .open-menu,
  .close-menu {
    display: block;
    border: none;
    background: none;
    cursor: pointer;
  }

  .close-menu {
    align-self: flex-end;
    padding: 20px 15px;
  }

  .menu_opened {
    opacity: 1;
    pointer-events: all;
  }

  .open-menu:focus:not(:focus-visible),
  .close-menu:focus:not(:focus-visible) {
    outline: none;
  }

  .menu a::after {
    content: none;
    
  }

  .menu a:hover,
  .menu a.selected {
    color: #86b4ff;
  }
}
