@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  width: 200px;
  position: relative;
  margin-top: 50px;
}
.btn {
  width: 100%;
  height: 35px;
  cursor: pointer;
  position: relative;
  display: flex;
}
.btn::before {
  content: "Drop Down";
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.062);
  border: 2px solid #ff5f6d;
  padding-left: 1em;
  background: linear-gradient(to right, white 80%, #ff5f6d 20%);
}
.btn::after {
  content: "\f062";
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  width: 20%;
  height: 110%;
  color: white;
  transform: rotate(180deg);
  transition: all 0.4s;
}
.btn:checked::after {
  transform: rotate(0deg);
}
.list {
  position: absolute;
  margin-top: 0.5em;
  width: 100%;
  height: 175px;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  display: flex;
  flex-direction: column;
  transition: all 0.4s;
}
input:checked ~ .list {
  clip-path: none;
}
.list a {
  height: 25%;
  display: flex;
  align-items: center;
  padding: 0.3em 0 0.3em 1em;
  text-decoration: none;
  margin: 0.3em 0;
  background: white;
  color: rgb(36, 36, 36);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.062);
  transition: background 0.4s;
}
.list a:hover {
  background: #ff5f6d;
  color: white;
}
