/**
 * Back to Top Button in header section
*/

#back-top {
    display: none;
    border-radius: 50px;
    bottom: 10px;
    left: 20px;
    text-align: center;
    background: #f2f2f2;
    box-shadow: 1px 1px 3px 0 #cacaca;
    cursor: pointer;
    overflow: hidden;
    position: fixed;
    z-index: 1;
    transition: opacity 0.5s ease, background-color 0.5s ease;
}

#back-top.backTopDark {
    color: white;
    background: #369;
}

#back-top:hover {
    background: #e8e8e8;
}

#back-top.backTopDark:hover {
    background: #295582;
}

#backTopInner {
    display: flex;
    justify-content: center;
}

#back-top i {
    width: 45px;
    height: 45px;
    line-height: 44px;
    font-size: 25.6px;
}

#back-top span {
    white-space: nowrap;
    font-weight: 600;
    padding-top: 1px;
    transition: max-width .3s ease-in-out;
    margin: auto;
    font-size: 14px;
    max-width: 0;
}

#back-top:hover span {
    max-width: 200px;
    margin-right: 15px;
}

/**
 * Back to Top Button in footer section
*/

#backToTopFooter {
    position: relative;
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
    padding-top: 20px;
    padding-left: 25px;
    padding-right: 25px;
    margin-top: 20px;
    border-top: 1px solid transparent;
    visibility: visible;
}

#backToTopFooter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    border-top: 1px solid #ddd;
}

footer #backToTopFooter button {
    background: none;
    border: none;
    font-weight: 600;
    color: #333;
    display: flex;
    flex-direction: column;
    border-radius: 50px;
    -webkit-tap-highlight-color: transparent;
    padding: 10px 25px;
    font-size: 14px;
    font-family: Roboto, sans-serif;
}

footer #backToTopFooter button:hover {
    background-color: transparent !important;
    box-shadow: none;
}

footer #backToTopFooter i {
    font-size: 22px;
    margin: auto;
}

@media (min-height: 741px) {
    #back-top {
        left: 40px;
        bottom: 40px;
    }
}

@media screen and (min-width: 768px) {
    #back-top {
        display: flex;
    }
}

@media screen and (min-width: 768px) {
    footer #backToTopFooter {
        display: none;
        visibility: hidden;
    }
}
