.flex-container {
  display: flex;
}

.header {
  display: flex;
  justify-content: space-between;
}

.title {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  height: 80px;
  width: 80px;
  border: 5px dashed white;
  border-radius: 150px;
}

.name {
  color: white;
  padding: 10px;
  font-size: 20px;
}

.sidebar
{
  display: none;
}



#toggle {
  display: none;
}

/* Style for the menu toggle */
.menu-toggle {
  display: inline-block; /* Show the button on mobile */
  color: white;
  font-size: 50px;
}

/* Show the sidebar when the checkbox is checked */
#toggle:checked ~ .sidebar {
  border-left: 2px solid rgba(255, 255, 255, 0.671);
  display: block;
  width: 50%;
  background-color: #0000009c;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 1;
  animation: slideInRight 1s forwards;
  opacity: 0;
}

.sidebar
{
  padding-top: 20px;
}
.nav li {
  list-style: none;
}

.nav a {
  color: white;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  text-decoration: none;
  position: relative;
  display: inline-block;
  text-align: center;
  font-weight: 800;
}

.nav a::before { 
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%; /* Adjust the width as needed */
  height: 1px;
  background-color: rgba(255, 255, 255, 0.658);
}



.redes {
  height: 50px;
  margin-top: 10px;
  justify-content: center;
}

.fa {
  display: inline-block;
  font-size: 15px;
  padding: 10px;
  margin-right: 5px;
  width: 35px;
  height: 35px;
  text-align: center;
  text-decoration: none;
  border-radius: 100px;
}


.fa:hover {
  opacity: 0.7;
}

.fa-facebook {
  background: #3b5998;
  color: white;
}

.fa-linkedin {
  background: #007bb5;
  color: white;
}

.fa-instagram {
  background-image: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
  color: white;
}

.fa-whatsapp {
  background: #25d366;
  color: white;
}

.submenu {
  font-size: 0.8em;
  background-color: #5353537a;
  margin-left: 50px;
}


@keyframes slideInRight {
  from {
    right: -100%;
    opacity: 0;
  }
  to {
    right: 0;
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .sidebar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 75%;
    padding-top: 0px;
  }
  .menu-toggle {
    display: none;
  }
  .nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 75%;
    height: 100%;
  }

  .nav li {
    display: inline-block;
    list-style: none;
  }

  .nav a {
    font-size: 15px;
    color: white;
    width: 100px;
    padding: 10px;
    margin: 5px;
    display: inline-block;
  }

  .submenu {
    display: none;
    position: absolute;
    font-size: 1em;
    background-color: #ffa500;
    margin-left: 0px;
    min-width: 150px;
    z-index: 1;
  }

  .dropdown:hover .submenu {
    display: block;
  }

  .submenu li {
    display: block;
    width: 100%;
  }

  .submenu li a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
    margin: 0px;
  }
  
  .submenu li a:hover {
    background-color: rgb(255, 188, 64);
  }
}

@media (min-width: 992px) {
  .header {
    flex-direction: column;
    justify-content: flex-start;
  }

  .title {
    height: 300px;
    justify-content: center;
    flex-direction: column;
  }

  .logo {
    width: 200px;
    height: 200px;
  }

  .sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
  }
  .menu-toggle {
    display: none;
  }

  .name {
    color: white;
    padding: 10px;
  }

  .nav {
    display: flex;
    width: 250px;
    justify-content: center;
  }

  .nav li {
    display: inline-block;
    width: 250px;
    list-style: none;
  }

  .nav a {
    color: white;
    padding: 10px;
    width: 250px;
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-align: center;
    font-size: 20px;
  }

  .nav a::before {
    content: "";
    position: absolute;
    width:95%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgb(255, 255, 255);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  .nav a:hover::before {
    transform: scaleX(1);
  }

  .fa {
    font-size: 20px;
    padding: 15px;
    margin-right: 10px;
    width: 50px;
    height: 50px;
    text-align: center;
    text-decoration: none;
    border-radius: 100px;
  }

  .submenu {
    left: 100%; /* Position to the right of the parent */
    top: 0;
  }

  .dropdown{
    position: relative;
    display: inline-block;
  }

  .dropdown:hover .submenu {
    display: block;
  }


}
