/* Inspired by https://codepen.io/dmendozaec/pen/vwjRvw and https://codepen.io/dmendozaec/pen/vwjRvw */

/* Dropup Button */
.dropup {
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 2em;
    left: 2em;
    background-color: #fff;
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(0,0,0,.2);
    display: flex;
}

.dropup input {
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0;
}

/* Display of hamburger menu */
.dropup span {
    position: absolute;
    left: 30px;
    width: 30px;
    height: 4px;
    border-radius: 50px;
    background-color: #666;
    pointer-events: none;
    transition: 0.5s;
}

/* Change display of hamburger menu when input is clicked */
.dropup input:checked ~ span {
    background-color: #6851a2;
}

.dropup span:nth-child(2) {
    transform: translateY(-8px);
}

.dropup input:checked ~ span:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
}
.dropup span:nth-child(3) {
    transform: translateY(8px);
}

.dropup input:checked ~ span:nth-child(3) {
    transform: translateY(0) rotate(45deg);
}

/* Show the dropup menu on click */
.dropup input:checked ~ .dropup-content {
    display: block;
}

/* Dropup content (Hidden by Default) */
.dropup-content {
    display: none;
    position: absolute;
    bottom: 56px;
    background-color: #fff;
    width: 100%;
    margin-bottom: 2em;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropup */
.dropup-content a {
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.5s;
}

/* Change color of dropup links on hover */
.dropup-content a:hover {
    color: #fdb813;
}

.dropup-content li {
    border-bottom: 1px solid #bfbbbb45;
    list-style: none;
}

.dropup-content li:last-child {
    border-bottom: none;
}