@font-face {
    font-family: 'poe';
    src: url('../fonts/poe/poe.eot'); /* IE9 Compat Modes */
    src: url('../fonts/poe/poe?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/poe/poe.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/poe/poe.woff') format('woff'), /* Pretty Modern Browsers */
    url('../fonts/poe/poe.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/poe/poe.svg#svgFontName') format('svg'); /* Legacy iOS */
}

@font-face {
    font-family: 'codropsicons';
    font-weight: normal;
    font-style: normal;
    src: url('../fonts/codropsicons/codropsicons.eot');
    src: url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'), url('../fonts/codropsicons/codropsicons.woff') format('woff'), url('../fonts/codropsicons/codropsicons.ttf') format('truetype'), url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #151912;
}

h1{
    color: white;
    font-family: poe;
    font-size: 4em;
    text-transform: uppercase;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #fff;
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIge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SA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

*,
*::after,
*::before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.clearfix::before,
.clearfix::after {
    content: '';
    display: table;
}

.clearfix::after {
    clear: both;
}

body {
    
}

.hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
}

/*--------------------------FRAME----------------------------------*/
.scrollArea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    overflow-x: hidden;
}

.frame {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1.5rem;
    z-index: 4;
}

.frame__title {
    font-size: inherit;
    font-weight: normal;
    margin: 0;
}

.frame__links {
    margin: 1rem 0;
}

.frame__link {
    color: white;
    font-family: poe;
    font-size: 2em;
}

.frame__link:not(:last-child) {
    margin-right: 1rem;
}

.frame__nav .frame__link:first-child {
    margin-right: 1.5rem;
}

.bottom-left {
    padding: 1.5rem;
    transform: translate3d(0, -100%, 0) !important;
}

@media screen and (min-width: 53em) {
    body {
        overflow: hidden;
    }

    .frame {
        display: grid;
        height: 100vh;
        padding: 2rem 3.7rem;
        pointer-events: none;
        align-content: space-between;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto auto auto;
        grid-template-areas: 'title links'
            '... ...'
            '... nav';
    }

    .frame__title {
        grid-area: title;
    }

    .frame__links {
        grid-area: links;
        justify-self: end;
        margin: 0;
    }

    .frame__link {
        pointer-events: auto;
    }

    .frame__nav {
        grid-area: nav;
        justify-self: end;
    }

    .bottom-left {
        padding: 0 0 2rem 3.7rem;
    }
}
/*--------------------------WATER----------------------------------*/
canvas#neuro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    opacity: .95;
    z-index: 0;
}


/*--------------------------TITLE----------------------------------*/
.title-wrap {
    height: 100vh;
    width: 100vw;
    z-index: 3;
    position: relative;
}
.main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .main-title ul.text-container {
        margin: 0;
        padding: 0;
        display: flex;
        font-family: poe;
    }

        .main-title ul.text-container li {
            list-style: none;
            color: #fff;
            font-size: 6em;
            font-weight: bold;
            letter-spacing: 10px;
            filter: blur(1px); /*  make the text blur */
            animation: animateSmoke 2s linear forwards;
        }

@media(max-width: 768px) {
    .main-title ul.text-container li {
        font-size: 2.5em;
    }
}


@keyframes animateSmoke {
    0% {
        transform: rotate(0deg) translateY(0px);
        opacity: 1;
        filter: blur(1px);
    }

    100% {
        transform: rotate(45deg) translateY(-200px);
        opacity: 0;
        filter: blur(20px);
    }
}

.main-title ul.text-container li:nth-child(1) {
    animation-delay: 2s;
}

.main-title ul.text-container li:nth-child(2) {
    animation-delay: 2.4s;
}

.main-title ul.text-container li:nth-child(3) {
    animation-delay: 2.8s;
}

.main-title ul.text-container li:nth-child(4) {
    animation-delay: 3.2s;
}

.main-title ul.text-container li:nth-child(5) {
    animation-delay: 3.3s;
}

.main-title ul.text-container li:nth-child(6) {
    animation-delay: 3.3s;
}

.main-title ul.text-container li:nth-child(7) {
    animation-delay: 3.6s;
}

.main-title ul.text-container li:nth-child(8) {
    animation-delay: 3.2s;
}

.main-title ul.text-container li:nth-child(9) {
    animation-delay: 3.2s;
}

.main-title ul.text-container li:nth-child(10) {
    animation-delay: 3.3s;
}

.main-title ul.text-container li:nth-child(11) {
    animation-delay: 3.4s;
}

.main-title ul.text-container li:nth-child(12) {
    animation-delay: 3.7s;
}

.main-title ul.text-container li:nth-child(12) {
    animation-delay: 3.6s;
}

.main-title ul.text-container li:nth-child(13) {
    animation-delay: 3.5s;
}

.storyboard-wrapper {
    position: absolute;
    top: 10vh;
    left: 0;
    width: 100%;
    height: 80vh;    
    display: flex;
    justify-content: center;
    align-items: end;
}

#castleCanvas {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;   
    border: solid black 10px;
}
#castleCanvas canvas {
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

ul.nav-panel{ 
    list-style: none;
    display: flex;
    position: relative;
    z-index: 3;
    font-family: poe;
    font-size: 3em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

ul.nav-panel li{
    margin: 1em;
}

ul.nav-panel li a, ul.nav-panel li a:visited, ul.nav-panel li a:hover  {
    color: #FFF;
    text-decoration: none;
}

/*--------------------------CARD----------------------------------*/
.card-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 2;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

@media(max-width: 980px){
    .card-grid {
        margin-top: 50px;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px){
    .card-grid {
        margin-top: 50px;
        grid-template-columns: repeat(1, 1fr);
    }
}

.card {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: relative;
    display: flex;
}
.card .field {
    stroke-dasharray: 1070;
    stroke-dashoffset: 0;
    -webkit-animation: strokeField 3s ease-out;
    -moz-animation: strokeField 3s ease-out;
    animation: strokeField 3s ease-out;
}

.card .castle {
    stroke-dasharray: 130;
    stroke-dashoffset: 0;
    -webkit-animation: strokeCastle 10s ease-in-out;
    -moz-animation: strokeCastle 10s ease-in-out;
    animation: strokeCastle 10s ease-in-out;
}


@-webkit-keyframes strokeCastle {
    from {
        stroke-dashoffset: 130;
        stroke-opacity: .5;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@-moz-keyframes strokeCastle {
    from {
        stroke-dashoffset: 130;
        stroke-opacity: .5;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCastle {
    from {
        stroke-dashoffset: 130;
        stroke-opacity: .5;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes strokeField {
    from {
        stroke-dashoffset: 1070;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@-moz-keyframes strokeField {
    from {
        stroke-dashoffset: 1070;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeField {
    from {
        stroke-dashoffset: 1070;
    }

    to {
        stroke-dashoffset: 0;
    }
}

.card .card-title {
    position: absolute;
    width: 100%;
    margin-left: -50%;
    text-align: center;
    top: 50%;
    margin-top: -55px;
    left: 50%;
    font-family: poe;
    font-size: 3em;
    color: #FFF;
}

.card svg {
    position: relative;
    height: 90%;
    top: 0;
    left: 5%;    
}

/*-------------------------------LETTER-----------------------------------*/
#letter {
    position: relative;
    z-index: 9;
    font-family: poe;
    width: 60vw;
    height: 80vh;
    overflow-y: scroll;
    background: rgba(237,225,182,1);
    background: -moz-linear-gradient(top, rgba(237,225,182,1) 0%, rgba(237,225,182,1) 28%, rgba(248,236,194,1) 92%, rgba(248,236,194,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(237,225,182,1)), color-stop(28%, rgba(237,225,182,1)), color-stop(92%, rgba(248,236,194,1)), color-stop(100%, rgba(248,236,194,1)));
    background: -webkit-linear-gradient(top, rgba(237,225,182,1) 0%, rgba(237,225,182,1) 28%, rgba(248,236,194,1) 92%, rgba(248,236,194,1) 100%);
    background: -o-linear-gradient(top, rgba(237,225,182,1) 0%, rgba(237,225,182,1) 28%, rgba(248,236,194,1) 92%, rgba(248,236,194,1) 100%);
    background: -ms-linear-gradient(top, rgba(237,225,182,1) 0%, rgba(237,225,182,1) 28%, rgba(248,236,194,1) 92%, rgba(248,236,194,1) 100%);
    background: linear-gradient(to bottom, rgba(237,225,182,1) 0%, rgba(237,225,182,1) 28%, rgba(248,236,194,1) 92%, rgba(248,236,194,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ede1b6', endColorstr='#f8ecc2', GradientType=0 );
}

@media(max-width: 768px) {
    #letter {
        width: 100%;
    }
}

.shadow {
    -moz-box-shadow: inset 8em 3em 11em #dbd071;
    -webkit-box-shadow: inset 8em 3em 11em #dbd071;
    box-shadow: inset 8em 3em 11em #dbd071;
}

.texture {   
    display: flex;
    padding: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    height: inherit;
    background: url("../img/paper.jpg");
    background-size: contain;
    opacity: 0.55;
    height: 200vh;
}

    .texture h1, .texture p {
        font-family: poe;
        font-weight: 400;
        font-size: 1.7rem !important;
        color: black;
    }

    .texture p {
        margin-top: 0.7em;
        font-size: 1.7em;
        width: 90%;
    }

.clue-image {
    max-width: 40vw;
    height: auto;
    border: solid 10px white;
    box-shadow: rgba(0, 0, 0, 0.85) 0px 54px 55px, rgba(0, 0, 0, 0.62) 0px -12px 30px, rgba(0, 0, 0, 0.62) 0px 4px 6px, rgba(0, 0, 0, 0.67) 0px 12px 13px, rgba(0, 0, 0, 0.59) 0px -3px 5px;
}
.mud-dialog-content {
    height: 100vh;
    overflow-y: scroll;
    background: #333;
    border-radius: 0 !important;
}
.mud-dialog-title {
    background: #333;
    border-radius: 0 !important;
}
.mud-icon-root.mud-svg-icon {
    fill: white !important;
}