* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fffaf7;
  color: #333;
}

a {
  text-decoration: none;
}

header {
  background-color: #d67ba8;
  padding: 20px;
  border-bottom: 2px solid #d0c4b0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  z-index: 100;
  position: relative;
}

header h1 {
  font-family: "Great Vibes", cursive;
  font-size: 35px;
  color: #4b2e2e;
}

nav {
  width: 100%;
}

nav > ul {
  list-style-type: none;
  display: flex;
  justify-content: right;
  position: relative;
}

nav > ul > li {
  padding: 10px 20px;
  margin: 0 5px;
  position: relative;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li a {
  text-decoration: none;
  color: #ecdcdc;
  font-weight: bold;
  transition: color 0.3s;
  font-family: "Cairo";
}

nav ul li a:hover {
  color: #fff;
}

nav > ul > li:hover {
  background-color: #c06496;
  transform: translateY(-2px);
}

nav ul ul {
  display: none;
  position: absolute;
  right: 100%;
  top: 6%;
  list-style-type: none;
  min-width: 200px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

nav ul li:hover > ul {
  display: flex;
  width: 420px;
  opacity: 1;
  transform: translateY(0);
}

nav ul ul li {
  padding: 10px 20px;
  color: white;
  transition: background-color 0.3s ease;
}

nav ul ul li:hover {
  background-color: #c06496;
  transform: translateY(-2px);
  margin-right: 5px;
}

@media (max-width: 768px) {
  nav ul li:nth-child(2) ul {
    right: -20px;
    top: 100%;
    flex-direction: column;
    background-color: #d67ba8;
    transform: translateY(0);
    width: max-content;
    min-width: 130px;
  }
}
