@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

:root {
    --color-font: #FFF;
    --animate-delay: 0.5s;
}

*,
*:after,
*:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body {
    font-family: 'Anonymous Pro', monospace;    
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

canvas#letterFall {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}


.line-1 {
    position: relative;
    margin: 0 auto;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 3em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
    line-height: 3em;
    height: 3em;
}

@media(max-width: 768px) {
    .line-1 {
        font-size: 1em;
        line-height: 3em;
        height: 3em;
    }
}

@keyframes blinkTextCursor {
    from {
        border-right-color: rgba(255,255,255,.75);
    }

    to {
        border-right-color: transparent;
    }
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.justify-space-between{
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.full-width {
    width: 100vw;
}

.full-height {
    padding-bottom: 15vh;
}

.flex-column {
    flex-direction: column;
}


@media(max-width: 768px) {
    .d-flex {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding: 20px;
    }
}


body {
    color: var(--color-font);
    width: 100vw;
    overflow-x: hidden;
    height: 100vh;
}

main {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;    
    flex-direction: column;
    align-items: start;
    justify-content: space-between;    
}
/*------------------------------------------*/
/*-NAV--------------------------------------*/
/*------------------------------------------*/
.nav {
    height: 10vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
}



.stamp {
    color: #555;
    font-size: 2rem;
    font-weight: 700;
    border: 0.25rem solid #555;
    display: inline-block;
    padding: 0.25rem 1rem;
    margin: 0 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 1rem;
    font-family: 'Anonymous Pro', monospace;
    -webkit-mask-image: url('../img/grunge.png');
    -webkit-mask-size: 944px 604px;
    mix-blend-mode: difference;
    background: #000;
    cursor: pointer;
}

.is-nope {
    color: #D23;
    border: 0.5rem double #D23;
    transform: rotate(3deg);
    -webkit-mask-position: 2rem 3rem;
    font-size: 2rem;
}

.is-approved {
    color: #CCC;
    border: 0.5rem solid #CCC;
    -webkit-mask-position: 13rem 6rem;
    border-radius: 0;
}

.is-draft {
    color: #C4C4C4;
    border: 1rem double #C4C4C4;
    font-size: 3rem;
    font-family: "Open sans", Helvetica, Arial, sans-serif;
    border-radius: 0;
    padding: 0.5rem;
}

@media (max-width: 980px) {
    .stamp {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        height: 15vh;
    }
    .stamp {
        font-size: 1em;
    }
}


/*------------------------------------------*/
/*-BOOK-------------------------------------*/
/*------------------------------------------*/
.bookshelf {
    width: 100%;
    height: 63px;
    z-index: -1;
    margin-top: -25px;
    background: transparent url(../images/shelf.png) no-repeat center center;
    position: relative;
}
.bk-list {
    list-style: none;
    position: relative;
    width: 100%;    
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;    
    max-width: 1200px;
    margin-top: 80px;
}

@media (max-width: 768px) {
    .bk-list {
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

    .bk-list li {
        position: relative;
        width: 300px;
        float: left;
        z-index: 1;
        margin: 10px 10px 40px 10px;
        -webkit-perspective: 1800px;
        perspective: 1800px;
    }

.bk-info {
    position: relative;
    margin-top: 440px;
    display: flex;
    justify-content: center;
}

    .bk-info h3 {
        padding: 25px 0 10px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.3);
        font-size: 26px;
    }

        .bk-info h3 span:first-child {
            font-size: 14px;
            font-weight: 400;
            text-transform: uppercase;
            padding-bottom: 5px;
            display: block;
            color: #777;
        }

    .bk-info p {
        line-height: 24px;
        color: #444;
        min-height: 160px;
    }

    .bk-info button {
        background: #000;
        border: solid 1px var(--color-font);
        color: #fff;
        display: inline-block;
        padding: 3px 15px;
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        cursor: pointer;
        margin-right: 4px;
        box-shadow: 1px 1px 1px rgba(0,0,0,0.15);
    }

        .bk-info button.bk-active,
        .bk-info button:active {
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 1px rgba(0,0,0,0.2);
        }

        .no-touch .bk-info button:hover,
        .bk-info button.bk-active {
            background: #d0544e;
        }

.bk-list li .bk-book {
    position: absolute;
    width: 100%;
    height: 400px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform .5s;
    transition: transform .5s;
}

    .bk-list li .bk-book.bk-bookdefault:hover {
        -webkit-transform: rotate3d(0,1,0,35deg);
        transform: rotate3d(0,1,0,35deg);
    }

    .bk-list li .bk-book > div,
    .bk-list li .bk-front > div {
        display: block;
        position: absolute;
    }

.bk-list li .bk-front {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-transition: -webkit-transform .5s;
    transition: transform .5s;
    -webkit-transform: translate3d(0,0,20px);
    transform: translate3d(0,0,20px);
    z-index: 10;
}

    .bk-list li .bk-front > div {
        z-index: 1;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

.bk-list li .bk-page {
    -webkit-transform: translate3d(0,0,19px);
    transform: translate3d(0,0,19px);
    display: none;
    width: 295px;
    height: 390px;
    top: 5px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 9;        
    background: url('../img/page.jpg') !important;
}

.bk-list li .bk-front,
.bk-list li .bk-back,
.bk-list li .bk-front > div {
    width: 300px;
    height: 400px;
}

.bk-list li .bk-left,
.bk-list li .bk-right {
    width: 40px;
    left: -20px;
}

.bk-list li .bk-top,
.bk-list li .bk-bottom {
    width: 295px;
    height: 40px;
    top: -15px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bk-list li .bk-back {
    -webkit-transform: rotate3d(0,1,0,-180deg) translate3d(0,0,20px);
    transform: rotate3d(0,1,0,-180deg) translate3d(0,0,20px);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
    border-radius: 3px 0 0 3px;
    background-image: url('../img/coat-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    background-position: center;
}

.bk-list li .bk-cover-back {
    background-color: #000;
    -webkit-transform: rotate3d(0,1,0,-179deg);
    transform: rotate3d(0,1,0,-179deg);
}

.bk-list li .bk-right {
    height: 390px;
    top: 5px;
    -webkit-transform: rotate3d(0,1,0,90deg) translate3d(0,0,295px);
    -moz-transform: rotate3d(0,1,0,90deg) translate3d(0,0,295px);
    transform: rotate3d(0,1,0,90deg) translate3d(0,0,295px);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bk-list li .bk-left {
    height: 400px;
    -webkit-transform: rotate3d(0,1,0,-90deg);
    transform: rotate3d(0,1,0,-90deg);
}

.bk-list li .bk-top {
    -webkit-transform: rotate3d(1,0,0,90deg);
    transform: rotate3d(1,0,0,90deg);
}

.bk-list li .bk-bottom {
    -webkit-transform: rotate3d(1,0,0,-90deg) translate3d(0,0,390px);
    transform: rotate3d(1,0,0,-90deg) translate3d(0,0,390px);
}

/* Transform classes */

.bk-list li .bk-viewinside .bk-front {
    -webkit-transform: translate3d(0,0,20px) rotate3d(0,1,0,-160deg);
    transform: translate3d(0,0,20px) rotate3d(0,1,0,-160deg);
}

.bk-list li .bk-book.bk-viewinside {
    -webkit-transform: translate3d(0,0,150px) rotate3d(0,1,0,0deg);
    transform: translate3d(0,0,150px) rotate3d(0,1,0,0deg);
}

.bk-list li .bk-book.bk-viewback {
    -webkit-transform: translate3d(0,0,0px) rotate3d(0,1,0,180deg);
    transform: translate3d(0,0,0px) rotate3d(0,1,0,180deg);
}

/* Main colors and content */

.bk-list li .bk-page,
.bk-list li .bk-right,
.bk-list li .bk-top,
.bk-list li .bk-bottom {
    background-color: #fff;
}

.bk-list li .bk-front > div {
    border-radius: 0 3px 3px 0;
    box-shadow: inset 4px 0 10px rgba(0, 0, 0, 0.1);
}

.bk-list li .bk-front:after {
    content: '';
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: -1px;
    width: 1px;
}

.bk-list li .bk-cover:after,
.bk-list li .bk-back:after {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    bottom: 0;
    width: 3px;
    background: rgba(0,0,0,0.06);
    box-shadow: 1px 0 3px rgba(255, 255, 255, 0.1);
}

.bk-list li .bk-back:after {
    left: auto;
    right: 10px;
}

.bk-left h2 {
    width: 400px;
    height: 40px;
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transform: rotate(90deg) translateY(-40px);
    transform: rotate(90deg) translateY(-40px);
}

.bk-content {
    position: absolute;
    top: 30px;
    left: 20px;
    bottom: 20px;
    right: 20px;
    padding: 30px;
    overflow: hidden;
    
    opacity: 0;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
    cursor: default;
}

.bk-content-current {
    opacity: 1;
    pointer-events: auto;
}

.bk-content p {
    padding: 0 0 10px;
    -webkit-font-smoothing: antialiased;
    color: #000;
    font-size: 13px;
    line-height: 20px;
    text-align: justify;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bk-page nav {
    display: block;
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 100;
    cursor: pointer;
}

    .bk-page nav span {
        display: inline-block;
        width: 20px;
        height: 20px;
        color: #000;
        background: #f0f0f0;
        border-radius: 50%;
    }

/* Individual style & artwork */

/* Book 1 */
.book-1 .bk-front > div,
.book-1 .bk-back,
.book-1 .bk-left,
.book-1 .bk-front:after {
    background-color: #333;
}

.book-1 .bk-cover {
    background-image: url(../images/1.png);
    background-repeat: no-repeat;
    background-position: 10px 40px;
}

    .book-1 .bk-cover h2 {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        padding: 30px;
        background: rgba(255,255,255,0.2);
        color: #000;
        text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
    }

        .book-1 .bk-cover h2 span:first-child,
        .book-1 .bk-left h2 span:first-child {
            text-transform: uppercase;
            font-weight: 400;
            font-size: 10px;
            padding-right: 20px;
        }

        .book-1 .bk-cover h2 span:first-child {
            display: block;
        }

        .book-1 .bk-cover h2 span:last-child,
        .book-1 .bk-left h2 span:last-child {
            font-family: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif;
        }

.book-1 .bk-content p {
    font-family: 'Courier New';
    font-size: 8pt;
    line-height: 1.5;
}

.book-1 .bk-left h2 {
    color: #fff;
    font-size: 11px;
    line-height: 40px;
    padding-right: 10px;
    text-align: right;
}

.book-1 .bk-back p {
    color: #fff;
    font-size: 13px;
    padding: 40px;
    text-align: center;
    font-weight: 700;
}

/* Book 2 */

.book-2 .bk-front > div,
.book-2 .bk-back,
.book-2 .bk-left,
.book-2 .bk-front:after {
    background-color: #222;
}

.book-2 .bk-cover {
    background-image: url(../images/2.png);
    background-repeat: no-repeat;
    background-position: 98% 0%;
}

    .book-2 .bk-cover h2,
    .book-2 .bk-left h2 {
        color: #fff;
        font-family: 'the_godfatherregular', Georgia, serif;
        font-weight: 400;
    }

    .book-2 .bk-cover h2 {
        font-size: 138px;
        line-height: 102px;
        padding: 30px;
    }

        .book-2 .bk-cover h2 span:first-child {
            position: relative;
            display: block;
        }

            .book-2 .bk-cover h2 span:first-child:before {
                content: 'A novel';
                font-family: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif;
                text-transform: uppercase;
                position: absolute;
                color: red;
                font-size: 20px;
                right: -15px;
                bottom: -60px;
            }

        .book-2 .bk-cover h2 span:last-child {
            font-size: 100px;
            line-height: 80px;
            display: block;
            position: relative;
        }

            .book-2 .bk-cover h2 span:last-child:before {
                content: 'by';
                font-size: 16px;
                color: red;
                position: absolute;
                top: -32px;
                left: 62px;
                font-family: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif;
            }

            .book-2 .bk-cover h2 span:last-child:after {
                content: '';
                width: 20px;
                height: 20px;
                border-radius: 50%;
                background: #f9ed65;
                position: absolute;
                top: 5px;
                left: 101px;
            }

.book-2 .bk-left h2 {
    font-size: 20px;
    line-height: 40px;
    padding-right: 10px;
    text-align: right;
}

.book-2 .bk-back p {
    color: red;
    font-size: 13px;
    font-family: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif;
    padding: 40px;
    text-align: center;
}

/* Book 3 */

.book-3 .bk-front > div,
.book-3 .bk-back,
.book-3 .bk-left,
.book-3 .bk-front:after {
    background-color: #a4c19e;
}

.book-3 .bk-cover {
    background-image: url(../images/3.png);
    background-repeat: no-repeat;
    background-position: 100% 95%;
}

    .book-3 .bk-cover h2 {
        position: absolute;
        top: 40px;
        right: 40px;
        left: 40px;
        padding-top: 15px;
        color: #fff;
        text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
    }

        .book-3 .bk-cover h2 span:first-child,
        .book-3 .bk-left h2 span:first-child {
            text-transform: uppercase;
            font-weight: 400;
            font-size: 13px;
            padding-right: 20px;
        }

        .book-3 .bk-cover h2 span:first-child {
            display: block;
        }

        .book-3 .bk-cover h2 span:last-child,
        .book-3 .bk-left h2 span:last-child,
        .book-3 .bk-content p {
            font-family: Georgia, Times, "Times New Roman", serif;
        }

.book-3 .bk-left h2 {
    color: #fff;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
}

.book-3 .bk-back img {
    width: 200px;
    display: block;
    margin: 30px auto 0;
}

.book-3 .bk-back p {
    color: #fff;
    font-size: 13px;
    font-family: Georgia, Times, "Times New Roman", serif;
    padding: 40px;
    text-align: center;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.1);
}

/* Fallbacks */

.no-csstransforms3d .bk-list li .bk-book > div,
.no-csstransforms3d .bk-list li .bk-book .bk-cover-back {
    display: none;
}

    .no-csstransforms3d .bk-list li .bk-book > div.bk-front {
        display: block;
    }

.no-csstransforms3d .bk-info button,
.no-js .bk-info button {
    display: none;
}

/*------------------------------------------*/
/*-MAP--------------------------------------*/
/*------------------------------------------*/
.map {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 90vh;
}
    .map img.bg {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        object-fit: contain; /* ensures full image is visible, no cropping */
        mix-blend-mode: color-dodge;        
    }

    .map .bg-slate {        
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .map img.bg.current {
        position: absolute;
        z-index: 2;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        opacity: 1;
        mix-blend-mode: color-burn;
                
    }
ul.key {
    position: absolute;
    z-index: 3;
    bottom: 0;
    right: 0;    
    background: black;
    padding: 20px 30px;
    width: 40%;
    display: flex;
    flex-wrap: wrap;
}

ul.key li {
    display: inline;
    width: 30%;
    margin: 0.25em;
}

.map img.bg.current {
    opacity: 0;
    transition: opacity 1s ease-in-out; /* adjust speed as needed */
    position: absolute; /* ensure overlap */
    top: 0;
    left: 0;
}

    .map img.bg.current.show {
        opacity: 1;
    }


@media(max-width: 980px) {
    ul.key {
        position: relative;
        width: 100%;
        font-size: 10px;
    }

    ul.key li {
        width: 40%;
    }

    .map, .map img.bg, .map img.bg.current {
        height: auto;
    }
}

.map img.player {
    position: absolute;
    width: 40px;
    height: 100px;
    cursor: grab;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    z-index: 999999;
}

/*------------------------------------------*/
/*-CLUES------------------------------------*/
/*------------------------------------------*/
.clues {
    padding: 5em;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .clues {
        padding: 0.25em;
    }
}

.clue {
    width: 300px;
    border: 10px solid #333;
    display: inline-block;    
    margin: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Anonymous Pro', monospace;
/*    -webkit-mask-image: url('../img/grunge.png');
    -webkit-mask-size: 944px 604px;
    mix-blend-mode: difference;
    background: white;*/
}

.clue img {
    width: 100%;
    mix-blend-mode: hard-light;

}

.clue-image {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    max-width: 60vw;
    margin: 5em;
    display: flex;
    justify-content: center;        
}

    .clue-image img {
        object-fit: contain;
        width: 100%;        
    }

/*------------------------------------------*/
/*-PUZZLES----------------------------------*/
/*------------------------------------------*/
.puzzle-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-top: 0px;
    padding: 5em;
}

@media (max-width: 768px) {
    .puzzle-list {
        padding: 0.25em;
    }
}

.puzzle-tile {
    width: 300px;
    height: 300px;
    margin: 0.25em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 10px solid #333;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Anonymous Pro', monospace;
    -webkit-mask-image: url('../img/grunge.png');
    -webkit-mask-size: 944px 604px;
    mix-blend-mode: difference;
    background: white;
}

.puzzle-tile h2 {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.puzzle-tile img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.puzzle-tile a {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

#patternContainer {
    position: relative;
    width: 460px; /* you can change this */
    height: 460px; /* stays square */
    margin: 20px auto;
    background: #111;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    #patternContainer {
        width: 320px;
        height: 320px !important;
    }
}

.points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
}

.pattern-point {
    width: 60px;
    height: 60px;
    border: 3px solid #aaa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

    .pattern-point:hover {
        border-color: orange;
    }

    .pattern-point > div {
        width: 20px;
        height: 20px;
        background: orange;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .pattern-point.active > div {
        opacity: 1;
    }

.path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.line {
    position: absolute;
    height: 4px;
    background: orange;
    transform-origin: 0 50%;
    border-radius: 2px;
}

/*--------------------------------------------------*/
/*-PUZZLE GRID--------------------------------------*/
/*--------------------------------------------------*/

.puzzle-grid {
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    height: 40vh;
    max-height: 40vh;
    position: relative;
    z-index: 10;
    margin-top: 20px;
    margin-bottom: 20px;
}

.puzzle-key {
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    height: 30px;
    position: relative;
    z-index: 10;
}

    .puzzle-grid > div, .puzzle-key > div {
        border: solid 2px #333;
    }


.frame-border {
    position: relative;
    -moz-box-shadow: 20px 20px 36px rgba(0,0,0,0.2);
    -webkit-box-shadow: 20px 20px 36px rgba(0,0,0,0.2);
    box-shadow: 20px 20px 36px rgba(0,0,0,0.2);
    border: 11px solid #ededed;
    width: 100%;
    height: 100%;
    min-height: 30vh;
    margin: 0 auto;
    padding: 20px !important;
}

.frame-inset:before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    -moz-box-shadow: inset 10px 0 12px rgba(0,0,0,0.35);
    -webkit-box-shadow: inset 10px 0 12px rgba(0,0,0,0.35);
    box-shadow: inset 10px 0 12px rgba(0,0,0,0.35);
}

.frame-inset {
    -moz-box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
    -webkit-box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
    background-color: #DCE1E3;
    border: 32px solid #f5f5f5;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    padding: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: Ancient;
}