*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: monospace;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
}

.content {
  max-width: 900px;
  > * {
    margin-bottom: 20px;
  }
}

.over {
  position: relative;
  z-index: 2;
}

/* Dropdown Menu 1 */
.dropdown {
  display: inline-block;
  position: relative;
  > * {
    color: #eee;
  }
}

.dropdown-button {
  position: relative;
  z-index: 1;
  font-weight: 600;
  background-color: hsl(240, 50%, 50%);
  padding: 10px 15px;
  box-shadow: 10px -20px white, 10px -40px white, 10px -60px white,
    10px -80px white, -10px -20px white, -10px -40px white, -10px -60px white,
    -10px -80px white;
  cursor: pointer;
  border-radius: 5px;
  transition: border-radius 0.5s;
}
.dropdown-button:hover {
  background-color: hsl(240, 55%, 40%);
}
.dropdown-button:active {
  background-color: hsl(240, 50%, 50%);
}
.dropdown-button-visible {
  border-radius: 5px 5px 0 0;
}

.dropdown-content {
  position: absolute;
  top: -200%;
  transition: 0.3s;
  width: 100%;
}
.dropdown-content-visible {
  top: 100%;
  cursor: pointer;
}

.dropdown-item {
  background-color: hsl(220, 60%, 60%);
  text-align: center;
  padding: 10px 15px;
}
.dropdown-item:last-child {
  border-radius: 0 0 5px 5px;
}
.dropdown-item:hover {
  background-color: hsl(240, 55%, 40%);
}
.dropdown-item:active {
  background-color: hsl(240, 50%, 50%);
}

/* Dropdown Menu 2 */
.dropdown-2 {
  display: inline-block;
  position: relative;
  > * {
    color: #eee;
  }
}

.dropdown-button-2 {
  position: relative;
  z-index: 1;
  font-weight: 600;
  background-color: hsl(240, 50%, 50%);
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  transition: border-radius 0.5s;
}
.dropdown-button-2:hover {
  background-color: hsl(240, 55%, 40%);
}
.dropdown-button-2:active {
  background-color: hsl(240, 50%, 50%);
}
.dropdown-button-visible-2 {
  border-radius: 5px 5px 0 0;
}

.dropdown-content-2 {
  position: absolute;
  top: 0;
  opacity: 0;
  transition: 0.3s;
  width: 100%;
}
.dropdown-content-visible-2 {
  top: 100%;
  opacity: 1;
  cursor: pointer;
}

.dropdown-item-2 {
  background-color: hsl(220, 60%, 60%);
  text-align: center;
  padding: 10px 15px;
}
.dropdown-item-2:last-child {
  border-radius: 0 0 5px 5px;
}
.dropdown-item-2:hover {
  background-color: hsl(240, 55%, 40%);
}
.dropdown-item-2:active {
  background-color: hsl(240, 50%, 50%);
}
