.dropdown {
    position: relative;
    margin: 0 auto;
}

.dropdown > .outer-list {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.dropdown > .outer-list.top {
    align-items: flex-start;
    transform-origin: 50% 0;
}

.dropdown > .outer-list.left {
    justify-content: flex-start;
}

.dropdown > .outer-list.bottom {
    align-items: flex-end;
    transform-origin: 50% 100%;
}

.dropdown > .outer-list.right {
    justify-content: flex-end;
}

.dropdown > .outer-list > ul {
    list-style: none;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(238, 238, 238, 0.95);
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 1);
    border-radius: .2em;
    margin-right: 100px;
    min-width: 150px;
}

.dropdown > .outer-list > ul li {
    width: 100%;
    cursor: pointer;
    transition: background 0.35s ease;
    padding: 2px 10px;
}

.dropdown > .outer-list > ul li:hover {
    background: rgba(0, 0, 0, 0.07);
}

.area-dropdown {
    position: relative;
    display: block;
    text-align: center;
    border-radius: .15em;
    cursor: pointer;
    transition: all 0.35s ease;
    overflow: hidden;
}

.area-dropdown:active:after,
.area-dropdown.dropdown-open:after {
    width: 200%;
    height: 200%;
}

.area-dropdown.dropdown-open + .outer-list {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}