@import "./colors.css";

/* HEADER */
header {
  position: fixed;

  width: 100%;
  height: 50px;
  top: 0;

  z-index: 100;

  background-color: var(--background-color-dark);
}

header .content {
  width: 100%;
  height: 50px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .topbar {
  height: 50px;

  display: flex;
  align-items: center;
}

header .contact {
  height: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 10px 0 10px;
}

header .contact .links {
  height: fit-content;
  margin: 0 10px 0 10px;
}

/* NAV */
header .header-nav-list {
  display: flex;

  list-style: none;

  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
}

header .header-nav-list li {
  margin-right: 30px;
}

/* NAV SELECT */
header .header-nav-list div {
  font-family: "Roboto Monospace", monospace;
  font-weight: 200;

  color: var(--font-color-light);
  cursor: pointer;

  margin-right: 30px;

  -webkit-border-radius: 5px;
}

header .header-nav-list div:hover {
  color: var(--hover-color);
}

div > ul {
  display: none;
  list-style: none;
}

div:hover > ul {
  display: block;

  position: absolute;

  padding-top: 16px;
  padding-left: 0;

  background-color: var(--background-color-dark);
}

div:hover > ul > li {
  padding: 5px;
  margin-left: 30px;
  border-bottom: 1px solid var(--font-color-light);
}

div.select > ul {
  display: none;
  list-style: none;
}

#icono-nav {
  visibility: hidden;
}

li.responsive-selector {
  display: none;
  visibility: hidden;
}

/*NAV LIST*/
header .header-nav-list li a {
  font-family: "Roboto Monospace", monospace;
  font-weight: 200;

  text-decoration: none;
  color: var(--font-color-light);
}

header .header-nav-list li section {
  appearance: none;
  -webkit-background-origin: border-box;
}

header .header-nav-list li a:hover {
  color: var(--hover-color);
}

/*RESPONSIVE*/
@media screen and (max-width: 600px) {
  nav {
    display: none;
  }
  nav.responsive {
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    position: absolute;
    top: 48px;
    left: 0;
    padding: 10px 0;
  }
  nav.responsive ul {
    display: block !important;
    text-align: center;
  }
  nav.responsive ul li {
    margin: 5px 0;
  }
  nav.responsive #selector {
    display: none;
  }
  nav.responsive li.responsive-selector {
    display: block;
    visibility: visible;
  }
  #icono-nav {
    display: block;
    visibility: visible;
    padding-left: 30px;
  }
}
