/*header accomodation*/
.gh-social {
    display: flex;
    margin-right: 2px;
    height: 2.5rem;
}

/*dark mode toggle switch*/
.dmlabel {
    display: none;
}

.toggle {
    margin-left: 8px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.2s;
    border-radius: 50%;
    cursor: pointer;
    width: 25px;
    height: 25px;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}
.toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

html.dark-mode .toggle {
    background: rgba(0, 0, 0, 0.1);
}

html.dark-mode .toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.toggle:before {
    background: white;
    border-radius: 50%;
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    transition: background 0.2s, box-shadow 0.4s;
}

html.dark-mode .toggle:before {
    background: transparent;
    box-shadow: inset -5px 0 white;
}

@media only screen and (max-width: 900px) {
    .toggle{
        overflow: visible;
        height: 40px;
        width: 40px;
    }
    .toggle:before{
        position: absolute;
        height: 25px;
        width: 25px;
    }
    html.dark-mode .toggle:before {
    box-shadow: inset -10px 0 white;
    }
}
    
@media only screen and (max-width: 800px) {
    .toggle{
        overflow: visible;
        height: 25px;
        width: 25px;
    }
    .toggle:before{
        position: absolute;
        height: 15px;
        width: 15px;
    }
    html.dark-mode .toggle:before {
    box-shadow: inset -5px 0 white;
    }
}

/*dark mode bugfixes*/
.footer-cta-button {
    background: transparent;
}

html.dark-mode .post-full-content a {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.0) !important;
}

/*progress bar*/
.reading-progress[value] {
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    border: none;
    height: 5px;
    background: transparent;
    color: var(--ghost-accent-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.reading-progress[value]::-webkit-progress-bar {
    background-color: transparent;
}

.reading-progress[value]::-webkit-progress-value {
    background: var(--ghost-accent-color);
}

.reading-progress[value]::-moz-progress-bar {
    background: var(--ghost-accent-color);
}

/*scroll to top button*/
html {
    scroll-behavior: smooth;
}

#scrolltotop {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 50px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 25px 25px 0 0;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    background-color: var(--ghost-accent-color);
    transform: translateY(40px);
    transition: transform 0.25s, height 0.1s;
    z-index: 101;
}

#scrolltotop:hover {
    height: 45px;
}

#scrolltotop svg {
    padding: 0;
    height: 25px;
    width: 25px;
    fill: white;
}