﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
/*    position:relative;*/
}

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

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


:root {
    --c1: rgb(108, 193, 90);
    --c2: rgb(203, 228, 83);
    --c3: rgb(254, 247, 216);
    --c4: rgb(254, 115, 124);
    --c5: rgb(250, 148, 124);
    --c6: rgb(249, 214, 107);
}


.puzzel-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    background-color: rgba(224,213,204,0.7);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-radius: 20px;
}

.inner {
    width: var(--base-sizeX);
    height: var(--base-sizeY);
    margin: auto;
}

.ppiece path {
    transform: rotate(15deg);
    transform-origin: 50% 50%;
}
.nc2o {

    position: relative;
    overflow: hidden;
    clip-path: var(--clippath);
}
    .nc2o::before {
        content: "";
        position: absolute;
        inset: 0px;
        /*width: 100%;
        height: 100%;*/

        background-image: var(--puzzel-img-url);
        background-position: var(--bg-x) var(--bg-y);
        
        background-size: var(--bg-width) var(--bg-height) ;
        background-repeat: no-repeat;
        background-color: darkred;
    }
    /*.nc2o:not([flip]) {
        width: calc(var(--base-sizeX) * (1.0/0.62)*/ /*+ 1px*/ /*);
        height: calc(var(--base-sizeY) * (1.0/0.62)*/ /*+ 1px*/ /*);
        transform: rotate(var(--rot));
    }
        .nc2o:not([flip])::before {
            width: calc(var(--base-sizeX) * (1.0/0.62)*/ /*+ 1px*/ /*);
            height: calc(var(--base-sizeY) * (1.0/0.62)*/ /*+ 1px*/ /*);
            transform: rotate(calc(-1 * var(--rot)));
        }

    .nc2o[flip] {
        height: calc(var(--base-sizeX) * (1.0/0.62)*/ /*+ 1px*/ /*);
        width: calc(var(--base-sizeY) * (1.0/0.62)*/ /*+ 1px*/ /*);
        transform: rotate(calc(var(--rot)*/ /* + 90deg*/ /*));
    }
        .nc2o[flip]::before {
            height: calc(var(--base-sizeX) * (1.0/0.62)*/ /*+ 1px*/ /*);
            width: calc(var(--base-sizeY) * (1.0/0.62)*/ /*+ 1px*/ /*);
            transform: rotate(calc(-1 * var(--rot)));*/

            /*transform: rotate(calc(-1 * var(--rot)*/ /*- 90deg- 180deg*/ /*));*/
        /*}

    .ppiece:not([flip]) {
        width: calc(var(--base-sizeX) * (1.0/0.62)*/ /*+ 1px*/ /*);
        height: calc(var(--base-sizeY) * (1.0/0.62)*/ /*+ 1px*/ /*);
    }

.ppiece[flip] {
    height: calc(var(--base-sizeX) * (1.0/0.62)*/ /*+ 1px*/ /*);
    width: calc(var(--base-sizeY) * (1.0/0.62)*/ /*+ 1px*/ /*);
}*/


.ppiece {
    position: absolute;
    display: flex;
    width: calc(var(--base-sizeX) * (1.0/0.62) /*+ 1px*/ );
    height: calc(var(--base-sizeY) * (1.0/0.62) /*+ 1px*/ );
}

.ppiece:hover {
    cursor: pointer;
}

    .ppiece.dragging {
        outline: 10px solid red;
        outline:revert;
    }

.buddy {
    outline: 2px dashed mediumorchid;
}

.snapping-region {
    position: absolute;
    /*background-color: var(--c4);*/
    z-index: 999999;
    opacity : 0.5;
}

/* Select puzzel navigation */
.puzzel-categories-container {
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(224,213,204,0.7);
    width: min(100% - 2rem, 900px);
    padding-top: 2em;
    padding-bottom: 1em;
    margin-inline: auto;
    border-radius: 20px;
    justify-content: center;
}
#category-name-container {
    margin-top: 2rem;
    text-align: center;
    font-weight: bold;
    font-size: 50px;
}
.puzzel-app-container {
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
}
body {
    background-color: var(--c1);
}
.puzzel-pictures-container {
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(224,213,204,0.7);
    padding-top: 2em;
    padding-bottom: 2em;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    border-radius: 20px;
    justify-content: center;
}

.category-tile {
    background-color: var(--c5);
    color: white;
    height: 150px;
    width: 220px;
    margin: 20px;
    margin-bottom: 2em;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    outline: 2px solid var(--c5);
    transition: transform ease-in-out 125ms, outline ease-in-out 125ms, background-color ease-in-out 125ms;
}

    .category-tile.selected {
        transform: scale(1.1);
        outline: 5px solid var(--c1);
        background-color: var(--c4);
    }
.category-tile:hover { 
    transform: scale(1.1);
    cursor:pointer;
}
    .category-tile img {
      
        max-width: 100%;
        max-height: 85%;
        border-radius: 20px;
    }
    .category-tile p {
        margin-left: auto;
        margin-right: auto;
    }

.main-container {
    width: 100%;
    height: 100%;
    padding-top: 2em;
    padding-bottom: 2em;
}

.mysvgpath {
    transform: rotate(var(--rot)); 
    transform-origin: 0.5px 0.5px;
}

.mybutton-container {
    width: fit-content;
    margin:auto;
}
.mybutton {
    border: 1px solid var(--c4);
    border-radius: 5px;
    margin: 1rem;
    width: 5rem;
    height: 5rem;
    font-size: 48px;
    /*background-color: var(--c5);
    color: white;*/
    transition: transform ease-in-out 125ms, outline ease-in-out 125ms
}

    .mybutton :hover {
        transform: scale(1.1);
        cursor: pointer;
    }

.mybutton.selected{
    outline: 10px solid var(--c3);
    transform: scale(1.1);
}
/* Fireworks */
.pyro {
}

    .pyro > .before, .pyro > .after {
        position: absolute;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        z-index: 999999;
        box-shadow: -120px -218.66667px blue, 248px -16.66667px #00ff84, 190px 16.33333px #002bff, -113px -308.66667px #ff009d, -109px -287.66667px #ffb300, -50px -313.66667px #ff006e, 226px -31.66667px #ff4000, 180px -351.66667px #ff00d0, -12px -338.66667px #00f6ff, 220px -388.66667px #99ff00, -69px -27.66667px #ff0400, -111px -339.66667px #6200ff, 155px -237.66667px #00ddff, -152px -380.66667px #00ffd0, -50px -37.66667px #00ffdd, -95px -175.66667px #a6ff00, -88px 10.33333px #0d00ff, 112px -309.66667px #005eff, 69px -415.66667px #ff00a6, 168px -100.66667px #ff004c, -244px 24.33333px #ff6600, 97px -325.66667px #ff0066, -211px -182.66667px #00ffa2, 236px -126.66667px #b700ff, 140px -196.66667px #9000ff, 125px -175.66667px #00bbff, 118px -381.66667px #ff002f, 144px -111.66667px #ffae00, 36px -78.66667px #f600ff, -63px -196.66667px #c800ff, -218px -227.66667px #d4ff00, -134px -377.66667px #ea00ff, -36px -412.66667px #ff00d4, 209px -106.66667px #00fff2, 91px -278.66667px #000dff, -22px -191.66667px #9dff00, 139px -392.66667px #a6ff00, 56px -2.66667px #0099ff, -156px -276.66667px #ea00ff, -163px -233.66667px #00fffb, -238px -346.66667px #00ff73, 62px -363.66667px #0088ff, 244px -170.66667px #0062ff, 224px -142.66667px #b300ff, 141px -208.66667px #9000ff, 211px -285.66667px #ff6600, 181px -128.66667px #1e00ff, 90px -123.66667px #c800ff, 189px 70.33333px #00ffc8, -18px -383.66667px #00ff33, 100px -6.66667px #ff008c;
        animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    }

    .pyro > .after {
        animation-delay: 1.25s, 1.25s, 1.25s;
        /*z-index: 999999;*/
        animation-duration: 1.25s, 1.25s, 6.25s;
    }

@keyframes bang {
    from {
        box-shadow: 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white, 0 0 white;
    }
}

@keyframes gravity {
    to {
        transform: translateY(200px);
        opacity: 0;
    }
}

@keyframes position {
    0%, 19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }

    20%, 39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }

    40%, 59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }

    60%, 79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }

    80%, 99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}
