/* ===========================
   Mirror 2.0
   Base Styles
=========================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: "Inter", sans-serif;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    position: relative;
}

/* ===========================
   Camera
=========================== */

#camera {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;

    background: #000;

    opacity: 0;

    transition: opacity .8s ease;

    z-index: 1;
}

/* ===========================
   Black loading screen
=========================== */

#loading {
    position: fixed;
    inset: 0;

    background: #000;

    z-index: 9999;

    transition: opacity .8s ease;
}

/* ===========================
   Overlay
=========================== */

#overlay {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.25);

    pointer-events: none;

    opacity: 0;

    transition: opacity .6s ease;

    z-index: 5;

}

/* ===========================
   Message
=========================== */

#message {

    position: fixed;

    left: 50%;

    bottom: 9vh;

    transform: translateX(-50%);

    width: min(90%,700px);

    color: #ffffff;

    text-align: center;

    font-size: clamp(28px,4vw,52px);

    font-weight: 600;

    line-height: 1.3;

    letter-spacing: -.03em;

    opacity: 0;

    z-index: 20;

    text-shadow:
        0 3px 15px rgba(0,0,0,.75);

    transition: opacity .8s ease;

    pointer-events:none;

}

/* ===========================
   Error
=========================== */

.error {

    color:#ffb4b4;

    font-size:20px;

}

/* ===========================
   Utility
=========================== */

.hidden{

    display:none;

}
