* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  padding: 20px;
}

.burger {
  display: none;
  cursor: pointer;
}

.line {
  width: 30px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: transform 0.3s ease-in-out;
}

.menu {
  list-style: none;
  display: flex;
}

.menu li {
  margin: 0 10px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

.menu a:hover {
  color: yellow;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .menu.active {
    transform: translateY(0);
  }

  .menu li {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #555;
  }
}
