/*****************************************************/
/*                     Fonts                         */
/*****************************************************/
@font-face {
    font-family: 'Swiss-721';
    src: url('../fonts/Swiss721Light.eot');
    src: url('../fonts/Swiss721Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Swiss721Light.woff2') format('woff2'),
         url('../fonts/Swiss721Light.woff') format('woff'),
         url('../fonts/Swiss721Light.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swiss-721';
    src: url('../fonts/Swiss721Roman.eot');
    src: url('../fonts/Swiss721Roman.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Swiss721Roman.woff2') format('woff2'),
         url('../fonts/Swiss721Roman.woff') format('woff'),
         url('../fonts/Swiss721Roman.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swiss-721';
    src: url('../fonts/Swiss721Medium.eot');
    src: url('../fonts/Swiss721Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Swiss721Medium.woff2') format('woff2'),
         url('../fonts/Swiss721Medium.woff') format('woff'),
         url('../fonts/Swiss721Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swiss-721';
    src: url('../fonts/Swiss721Bold.eot');
    src: url('../fonts/Swiss721Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Swiss721Bold.woff2') format('woff2'),
         url('../fonts/Swiss721Bold.woff') format('woff'),
         url('../fonts/Swiss721Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Swiss-721-Condensed';
    src: url('../fonts/Swiss721-Condensed.eot');
    src: url('../fonts/Swiss721-Condensed.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Swiss721-Condensed.woff2') format('woff2'),
         url('../fonts/Swiss721-Condensed.woff') format('woff'),
         url('../fonts/Swiss721-Condensed.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Swiss-721-Condensed';
    src: url('../fonts/Swiss721-BoldCondensed.eot');
    src: url('../fonts/Swiss721-BoldCondensed.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Swiss721-BoldCondensed.woff2') format('woff2'),
         url('../fonts/Swiss721-BoldCondensed.woff') format('woff'),
         url('../fonts/Swiss721-BoldCondensed.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@CHARSET "UTF-8";

/*****************************************************/
/*                     Reset & Base                  */
/*****************************************************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body, html {
    font-family: 'Swiss-721';
    cursor: default;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ol, ul, li {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

textarea, input, button {
    outline: none;
}

input.hidden {
    display: none;
}

:focus {
    outline-color: transparent;
    outline-style: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}


/*****************************************************/
/*                 Split Flap dir 1                  */
/*****************************************************/

#split-flap-container{
    display: flex;
    padding: 40px;
    box-sizing: border-box;
    border-bottom: solid 1px #ededed;
}
    #split-flap-container .info{ 
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex: 0 0 25%;
        box-sizing: border-box;
        font-size: 12.5px;
        margin-bottom: 20px;
    }
        #split-flap-container .name{ 
            font-weight: 500;
            width: auto;
            border-bottom: solid 2px black;
        }
        #split-flap-container .description{ 
            font-weight: 300;
            letter-spacing: 0.015em;
            max-width: 380px;
        }


#toggleButton{
    display: block;
    height: 20px;
}

/*****************************************************/
/*                 Split Flap dir 1                  */
/*****************************************************/

.dir_1 #container {
    position: relative;
    display: flex;
    grid-gap: 2px;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100vw;
    height: auto;
/*    background-color: aqua;*/
}

.dir_1 .character-parent {
    width: 220px;
    height: 310px;
}

.dir_1 .character {
    perspective: 800px;
    position: absolute;
    font-size: 20em;
    font-weight: 500;
    color: white;
    width: auto;
    z-index: 1; /* default stacking */
}

.dir_1 .character.visible {
  z-index: 2;
}

.dir_1 .top-half,
.dir_1 .bottom-half {
    text-align: center;
    height: 155px;
    width: 220px;
    overflow: hidden;
    background-color: #061206;
}

/* Top-half rotates from its bottom edge */
.dir_1 .top-half {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transform-origin: bottom;
    transform: rotateX(0deg);
    transition: transform 3s linear;
}

/* Bottom-half rotates from its top edge */
.dir_1 .bottom-half {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;

    transform-origin: top;
    transition: transform 3s linear;
}

/* For the visible character (e.g. '2'), the bottom-half should be facing forward */
.dir_1 .character.visible .bottom-half {
  transform: rotateX(0deg);
}

/* For non-visible characters (e.g. '4'), the bottom-half starts rotated upward */
.dir_1 .character:not(.visible) .bottom-half {
  transform: rotateX(180deg);
}

.dir_1 .top-half .inner {
  position: relative;
  bottom: .12em;
}

.dir_1 .bottom-half .inner {
  position: relative;
  top: -0.61em;
}

.dir_1 .top-half.shadow-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Use a CSS variable for height (default 20%) */
  height: var(--shadow-height, 20%);
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
  pointer-events: none;
  /* Use a CSS variable for opacity (default 1 if not specified) */
  opacity: var(--shadow-opacity, 1);
  transition: opacity 200ms linear, height 200ms linear;
}

.dir_1 .bottom-half.shadow-top::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--shadow-height, 20%);
  background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,1));
  pointer-events: none;
  opacity: var(--shadow-opacity, 1);
  transition: opacity 200ms linear, height 200ms linear;
}

/*****************************************************/
/*                 Split Flap dir 2                  */
/*****************************************************/
.dir_2 button{ 
    display: block;
    height: 20px;
}

.dir_2 #container{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: yellow;
    grid-gap: 2em;
}
        /* Container that provides perspective */
    .dir_2 .flip-container {
        perspective: 1000px;
        width: 220px;
        height: 310px;
        position: relative;
    }

        /* Inner element that will flip */
        .dir_2 .flap {
            position: absolute;
            width: 100%;
            height: 50%;
            transform-style: preserve-3d;
            transition: transform 800ms ease;
        }
.dir_2 .flap.inactive .character{ background-color: hotpink;}

        /* Flip the flap on hover */
        .dir_2 .flip-container .flap.top{ 
            top: 0;
            z-index: 2;
            transform-origin: bottom;
        }
        .dir_2 .flip-container .flap.bottom{
            bottom: 0;
            z-index: 1; 
            transform-origin: top;
        }

        /* Front and back faces */
        .dir_2 .front, .back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            overflow: hidden;
            pointer-events: none;
        }
            .dir_2 .character{
                pointer-events: none;
                font-size: 20em;
                color: white;
            }
                .dir_2 .flip-container .flap.top .front .character{
                    position: relative;
                    top: -50px;
                }
                .dir_2 .flip-container .flap.top .back .character {
                    position: relative;
                    top: -205px;
                }

                .dir_2 .flip-container .flap.bottom .front .character {
                    position: relative;
                    top: -205px;
                }
                .dir_2 .flip-container .flap.bottom .back .character{
                    position: relative;
                    top: -205px;
                }

        /* Front face style */
        .dir_2 .front {
          background-color: lime;
        }

        /* Back face style: pre-rotated so it appears correctly when flipped */
        .dir_2 .back {
          background-color: blue;
          transform: rotateX(180deg);
        }
/*****************************************************/
/*                 Split Flap dir 3                  */
/*****************************************************/
.dir_3 button{ 
    display: block;
    height: 20px;
}

.dir_3 #container{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: yellow;
    grid-gap: 2em;
}
        /* Container that provides perspective */
    .dir_3 .flip-container {
        perspective: 1000px;
        width: 220px;
        height: 310px;
        position: relative;
    }

        /* Inner element that will flip */
        .dir_3 .flap {
            position: absolute;
            top: 0;
            width: 100%;
            height: 50%;
            transform-origin: bottom;
            transform-style: preserve-3d;
        }
.dir_3 .flap.inactive .character{ background-color: hotpink;}


        /* Front and back faces */
        .dir_3 .front, .back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            overflow: hidden;
            pointer-events: none;
        }
            .dir_3 .character{
                pointer-events: none;
                font-size: 20em;
                color: white;
            }
                .dir_3 .flip-container .flap .front .character{
                    position: relative;
                    top: -50px;
                }
                .dir_3 .flip-container .flap .back .character {
                    position: relative;
                    top: -205px;
                }


        /* Front face style */
        .dir_3 .front {
          background-color: aqua;
        }

        /* Back face style: pre-rotated so it appears correctly when flipped */
        .dir_3 .back {
          background-color: orangered;
          transform: rotateX(180deg);
        }

/*****************************************************/
/*                 Split Flap dir 4                  */
/*****************************************************/
.dir_4 button{ 
    display: block;
    height: 20px;
}

.dir_4 #container{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: yellow;
    grid-gap: 2em;
}
        /* Container that provides perspective */
    .dir_4 .flip-container {
        perspective: 1000px;
        width: 240px;
        height: 360px;
        position: relative;
    }

        /* Inner element that will flip */
        .dir_4 .flap {
            position: absolute;
            top: 0;
            width: 100%;
            height: 50%;
            transform-origin: bottom;
            transform-style: preserve-3d;
        }

        .dir_4 .flap.visible.top { }
        .dir_4 .flap.visible.bottom { transform: rotateX(-180deg) }

        .dir_4 .flap.inactive .character{ background-color: hotpink;}


        /* Front and back faces */
        .dir_4 .front, .dir_4 .back {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            overflow: hidden;
            pointer-events: none;
        }
            .dir_4 .character{
                font-family: 'Swiss-721-Condensed';
                font-weight: 700;
                pointer-events: none;
                font-size: 20em;
                color: white;
            }
                .dir_4 .flip-container .flap .front .character{
                    position: relative;
                    top: -55px;
                }
                .dir_4 .flip-container .flap .back .character {
                    position: relative;
                    top: -235px;
                }


        /* Front face style */
        .dir_4 .front {
          background-color: hotpink;
        }

        /* Back face style: pre-rotated so it appears correctly when flipped */
        .dir_4 .back {
          background-color: dodgerblue;
          transform: rotateX(180deg);
        }

/*****************************************************/
/*                 Split Flap dir 5                  */
/*****************************************************/
.dir_5 button, .dir_5 input{ 
    display: block;
    height: 20px;
}

.dir_5 #container{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: white;
    grid-gap: 4px;
}
        /* Container that provides perspective */
    .dir_5 .flip-container {
        perspective: 1000px;
        width: 240px;
        height: 360px;
        position: relative;
    }

        /* Inner element that will flip */
        .dir_5 .flap {
            position: absolute;
            display: flex;
            justify-content: space-between;
            top: 0;
            width: 100%;
            height: 50%;
            will-change: transform;
            transform-origin: bottom;
            transform-style: preserve-3d;
        }

        .dir_5 .flap.visible.top { }
        .dir_5 .flap.visible.bottom { transform: rotateX(-180deg) }

        .dir_5 .flap.inactive .character{ background-color: hotpink;}


        /* Front and back faces */
        .dir_5 .front, .dir_5 .back {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            position: absolute;
            width: 100%;
            height: calc(100% - 2px);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            overflow: hidden;
            pointer-events: none;
        }
            .dir_5 .character{
                font-family: 'Swiss-721-Condensed';
                font-weight: 700;
                pointer-events: none;
                font-size: 20em;
                color: #ffe200;
            }
                .dir_5 .flip-container .flap .front .character{
                    position: relative;
                    top: -55px;
                }
                .dir_5 .flip-container .flap .back .character {
                    position: relative;
                    top: -235px;
                }


        /* Front face style */
        .dir_5 .front {
            border-top-left-radius: 18px;
            border-top-right-radius: 18px;
            background-color: #072207;
        }

        /* Back face style: pre-rotated so it appears correctly when flipped */
        .dir_5 .back {
            border-bottom-left-radius: 18px;
            border-bottom-right-radius: 18px;
            background-color: #072207;
            transform: rotateX(180deg);
        }
.dir_5 .front::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* Use a CSS variable for height (default 20%) */
  height: var(--shadow-height, 35%);
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
  pointer-events: none;
  /* Use a CSS variable for opacity (default 1 if not specified) */
  opacity: var(--shadow-opacity, 1);
  transition: opacity 200ms linear, height 200ms linear;
}

.dir_5 .back::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--shadow-height, 35%);
  background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,1));
  pointer-events: none;
  opacity: var(--shadow-opacity, 1);
  transition: opacity 200ms linear, height 200ms linear;
}
