﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');


.menu {
}

.toggle {
  all: unset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
  cursor: pointer;
}

.toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-width: 0 3px 3px 0;
  border-style: solid;
  transform: rotate(45deg);
  transition: 0.4s;
  margin-left: 7px;
}

.list {
  background-color: white;
  position: absolute;
  color: #444;
  list-style: none;
  margin-top:20px;
  padding-left: 0;
  width:90%;
  grid-template-rows: repeat(4, 40px);
  border-radius: 5px;
  overflow: hidden;
  height: 0;
  left:18px;
  transition: 0.4s;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 10px;
  /*transition: 0.4s, transform 0.4s var(--delay);
  transform: translateX(-100%);*/
  user-select: none;
  cursor: pointer;
}

.list-item:hover {
  background-color: dodgerblue;
  color: #fff;
}

.toggle:focus::after {
  transform: rotate(225deg);
}

.toggle:focus ~ .list {
  height: auto;
}

.toggle:focus ~ .list .list-item {
  transform: translateX(0);
}