@font-face {
    font-family: 'Overpass Mono';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../../static/font/overpass-mono.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Overpass Mono';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../../static/font/overpass-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body, html {
    padding: 0;
    margin: 0;
    background-color: #1f1f1f;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#splitFlapCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.splitFlapScaleLayer {
    float: left;
}

.splitFlapContainer {
    transform-origin: top left;
    font-family: 'Overpass Mono', monospace;
    position: relative;
    color: #a6aaaa;
    text-align: center;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.splitFlapContainerChar,
.splitFlapContainerBottom,
.splitFlapContainerNextHalf,
.splitFlapContainerNextChar {
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

/* .top */
.splitFlapContainerChar {
    height: 50%;
    background-color: #212121;
    overflow: hidden;
    z-index: -1;
    border-bottom: #151515 1px solid;
}

/* .bottom */
.splitFlapContainerBottom {
    height: 100%;
    margin-top: -30px; /* scale */
    z-index: -2;
    background-color: #212121;
    //background-image: linear-gradient(rgba(59, 182, 235, 0), #212121);
    transform-origin: center;
}

/* .nextHalf */
.splitFlapContainerNextHalf {
    height: 50%;
    margin-top: -60px; /* scale */
    overflow: hidden;
    z-index: 2;
    background-color: #212121;
    //background-image: linear-gradient(#212121, rgba(59, 182, 235, 0));
    transform-origin: bottom;
    border-bottom: #151515 1px solid;
}

/* .nextFull */
.splitFlapContainerNextChar {
    height: 100%;
    background-color: #212121;
    margin-top: -30px; /* scale */
    z-index: -3;
}

.flip2 {
    animation: flip1 ease-in 1;
    animation-duration: .12s;
}

.flip1 {
    animation: flip2 ease-out 1;
    animation-duration: .12s;
}

@keyframes flip1 {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(-90deg);
    }
}

@keyframes flip2 {
    0% {
        transform: rotateX(90deg);
    }
    50% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.linkLeft, .linkRight {
    position: absolute;
    width: 3px;
    height: 22px; /* scale */
    background-color: #1d1d1d;
    top: 18px; /* scale */
    z-index: 7;
    border-radius: 1px;
    box-shadow: inset 0 10px 6px -5px #161616,
                inset 0 -10px 6px -5px #161616;
}

.linkLeft {
    left: -1px;
}

.linkRight {
    right: -1px;
}

.splitFlapContainerDividerBase > div {
    background-color: #161616;
    position: absolute;
}

.splitFlapContainerDivider {
    width: 100%;
    height: 2%;
    top: 49%;
}

.splitFlapContainerDividerLinkLeft {
    width: 4%;
    height: 10%;
    top: 45%;
}

.splitFlapContainerDividerLinkRight {
    width: 4%;
    height: 10%;
    top: 45%;
    right: 0;
}

.splitFlapContainerSplitFlap
{
    position: relative;
    width: 45px; /* scale */
    height: 60px; /* scale */
    line-height: 72px; /* scale */
    font-size: 65px; /* scale */
    z-index: -1;
    text-align: center;
    overflow: hidden;
}

.shadow {
    position: absolute;
    box-shadow: inset 0 0 10px -3px black;
    z-index: 5;
    height: 100%;
    width: 100%;
}

/*
.splitFlapContainerChar, .splitFlapContainerNextChar {
    font-size: 140px;
    display: inline-block;
    margin-top: -15px;
}*/



/*
.splitFlapCharBrackets {
    font-size: 120px;
    margin-top: -25px;
}

.splitFlapCharSpecial {
    font-size: 110px;
    margin-top: -15px;
}

.splitFlapCharExtremes {
    margin-top: -55px;
}

.splitFlapCharTilde {
    margin-top: -30px;
    margin-left: -10px
}

.splitFlapCharAsterisk {
    font-size: 110px;
    margin-top: -40px;
}
*/
.splitFlapCharColourBase {
    text-indent: 100%;
    white-space: nowrap;
}

.splitFlapCharColourRed {
    background-color: lightcoral;
}
.splitFlapCharColourBlue {
    background-color: lightsteelblue;
}
.splitFlapCharColourGreen {
    background-color: lightgreen;
}
.splitFlapCharColourYellow {
    background-color: lightgoldenrodyellow;
}
.splitFlapCharColourOrange {
    background-color: lightsalmon;
}
.splitFlapCharColourWhite {
    background-color: whitesmoke;
}
