/* ==========================================================================
   Pocket Cursor - showcase.css (all project demos in /projects)
   The "Back to Pocket Cursor" button every demo shows in its corner, and the
   instant phone-menu close used by showcase.js.
   Self-contained: the demos keep their own look, so this file sets its own
   font and colours instead of relying on the main site's common.css.
   ========================================================================== */
.pc-back {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040; /* over the demo, under Bootstrap modals */
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0.3rem;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #6c757d;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 50rem;
    box-shadow: 0 0.5rem 1.5rem rgba(108, 92, 231, 0.25);
    -webkit-transition: -webkit-transform 0.2s ease, box-shadow 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-back:hover,
.pc-back:focus {
    color: #6c757d;
    text-decoration: none;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.75rem rgba(108, 92, 231, 0.35);
}

.pc-back:focus-visible {
    outline: 3px solid rgba(108, 92, 231, 0.5);
    outline-offset: 2px;
}

/* purple circle with the back arrow */
.pc-back-arrow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    color: #ffffff;
    background-color: #6c5ce7;
    border-radius: 50%;
    -webkit-transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
}

.pc-back:hover .pc-back-arrow,
.pc-back:focus .pc-back-arrow {
    -webkit-transform: translateX(-2px);
    transform: translateX(-2px);
}

.pc-back-arrow svg {
    display: block;
}

/* phones: the arrow and the Pocket Cursor mark */
.pc-back-mark {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 0.35rem 0 0.5rem;
}

.pc-back-label {
    display: none;
}

/* larger screens: the Pocket Cursor logo with "Back to projects" under it */
@media (min-width: 576px) {
    .pc-back {
        right: 1.5rem;
        bottom: 1.5rem;
        padding-right: 1rem;
    }

    .pc-back-mark {
        display: none;
    }

    .pc-back-label {
        display: block;
        margin-left: 0.65rem;
    }

    .pc-back-label img {
        display: block;
        width: 7.5rem;
        height: auto;
        margin-bottom: 0.15rem;
    }
}

/* a link in an open phone menu closes it without the animation (showcase.js closeMenuFirst),
   so the page scrolls to the right place */
.navbar-collapse.pc-nav-instant {
    -webkit-transition: none !important;
    transition: none !important;
}

@media print {
    .pc-back {
        display: none;
    }
}
