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

/* variables for beam color change */
:root {
    --percentage: 0;
    --color: hsl(0, 0%, calc(50% + var(--percentage) * 50%));
    --opacity: 0.25;
    --backgroundImage: url("../images/qiBackground.jpeg") no-repeat center center fixed;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--backgroundImage);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    /* MJG added to have webpage take up 100% of screen*/
    overflow: hidden;
}

body.no-background {
    background: none;
    overflow: scroll;
}

body.quizDemo {
    background: none;
    background-color: #1c2e30;
}

body.quizDemoScroll {
    background: none;
    background-color: #1c2e30;
    overflow: scroll;
}

.footer {
    display: flex;
    flex-direction: column;
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    margin-top: 50px;
}

.footer p a {
    color: #00FF29;
    font-family: 'Space Mono', monospace;
}

#demo-q {
    height: 30px;
    width: 30px;
    box-shadow: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    vertical-align: bottom;
    margin-left: 10px;
}

/*START STYLE FOR HOME SCREEN*/

.home-canvas {
    display: flex;
    min-height: 100vh;
}

.option {
    width: 33.33%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.option h1 {
    color: white;
}

#marketing {
    height: 172px;
    width: 100px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    transform: scale(var(--scale-factor));
}

#quantumbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    transform: scale(var(--scale-factor));
}

#quizdemo {
    height: 150px;
    width: 150px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    transform: scale(var(--scale-factor));
}

/*END STYLE FOR HOME SCREEN*/

.edit-header {
    display: flex;
    justify-content: center;
    color: #00FF29;
    font-family: 'Space Mono', monospace;
}

/*splash screen style*/

#splash-screen img {
    animation: growImage 3.5s linear forwards;
}

@keyframes growImage {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(2);
    }
}

/*end splash screen style*/

/* style the edit div */
.edit-div {
    display: flex;
    flex-direction: column;
    background-color: #41464b;
    width: 350px;
    position: absolute;
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    transform: perspective(900px) rotateX(0deg) rotateY(20deg);
    border-radius: 20px;
    box-shadow: 10px 5px 5px black;
}

.edit-div-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 5px 15px;
}

.edit-div-header p {
    width: 90%;
}

.edit-div-header button {
    width: 10%;
}

.tabs {
    display: flex;
    justify-content: space-around;
}

.inactive-tab {
    color: red;
    cursor: pointer;
    border-bottom: 1px solid black;
}
.active-tab {
    color: #00FF29;
    cursor: pointer;
    border-top: 1px solid black;
}

.inactive-tab, .active-tab {
    width: 50%;
    text-align: center;
}

.checkbox {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.nodes {
    height: 700px;
    width: 90%;
    position: relative;
}

.configs {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    overflow-y: auto;
}

/* style individual img nodes */

.login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh; 
    flex-direction: column;
}

#login-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: scale(var(--scale-factor));
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    background-color: black;
    margin-top: 75px;
    box-shadow: 10px 5px 5px black;
}

.email {
    margin-bottom: 5px;
}

.password {
    margin-bottom: 5px;
}

.email, .password {
    display: flex;
    flex-direction: column;
}

.email label, .password label {
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    font-size: 25px;
}

.email input, .password input {
    height: 43.5px;
    width: 400px;
    background-color: black;
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    padding-left: 10px;
}

.error {
    color: red;
    font-family: 'Space Mono', monospace;
    font-size: 25px;
}

.userinfo {
   margin-bottom: 30px;
   display: flex;
   flex-direction: column;
}

.userinfo h1 {
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    font-size: 20px;
}

h1:focus {
    outline: none;
}

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

/* QIEngine Css (Required)*/
.debugNodeParent {
    text-align: center;
    position: absolute;
    z-index: 3;
}

.selectionRadialDebug {
    border: solid 0.1em;
    border-color: green;
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.deselectionRadialDebug {
    border: solid 0.1em;
    border-color: red;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.animationRadialDebug {
    border: solid 0.1em;
    border-color: purple;
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.selectionLinearDebug {
    border: solid 0.1em;
    border-color: green;
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.deselectionLinearDebug {
    border: solid 0.1em;
    border-color: red;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.animationLinearDebug {
    border: solid 0.1em;
    border-color: purple; 
    position: absolute;
    z-index: 3; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



#nodeElement {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

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

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

.titleParent {
    position: relative;
}

.title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.0em;
    position: absolute;
    /* margin-top: 90vh; */
    transform: translate(0%, -50%);
    color: white;
}

.content h2:nth-child(1) {
    color: transparent;
    -webkit-text-stroke: 2px #00FF29;
}

.content h2:nth-child(2) {
    color: #00FF29;
    animation: animate 4s ease-in-out infinite;
}

@keyframes animate {
    0%, 100% {
        clip-path: polygon( 0% 45%, 16% 44%, 33% 50%, 54% 60%, 70% 61%, 84% 59%, 100% 52%, 100% 100%, 0% 100% );
    }

    50% {
        clip-path: polygon( 0% 60%, 15% 65%, 34% 66%, 51% 62%, 67% 50%, 84% 45%, 100% 46%, 100% 100%, 0% 100% );
    }
}

.button {
    width: 300px;
    height: 40px;
    text-align: center;
    font-family: 'Space Mono', monospace;
    background-color: black;
    color: #00FF29;
    border-radius: 20px;
    margin: 1%;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 0;
    position: relative;
    box-shadow: 10px 5px 5px black;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.button:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.button:active {
    color: #000
}

.button:active:after {
    background: transparent;
}

.button:hover:before {
    opacity: 1;
}

.button:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

.results {
    font-family: 'Space Mono', monospace;
    color: #00FF29;
}

.results-div {
    background-color: black;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1%;
    margin-bottom: 1%;
    padding: 2%;
    border-radius: 20px;
    min-height: 15vh;
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 0;
    position: fixed;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 10px 5px 5px black;
    /*fade out*/
    opacity: 1;
    -webkit-transition: opacity 700ms linear;
    transition: opacity 700ms linear;
    /*fade in*/
    animation: fadeIn 700ms;
    -webkit-animation: fadeIn 700ms;
    -moz-animation: fadeIn 700ms;
    -o-animation: fadeIn 700ms;
    -ms-animation: fadeIn 700ms;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-ms-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.results-div:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.results-div:active {
    color: #000;
}

.results-div:active:after {
    background: transparent;
}

.results-div:hover:before {
    opacity: 1;
}

.results-div:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.save-config-btn
{
    width: 150px;
    align-self: center;
    margin: 10px 0;
}

.config-input
{
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 20vh;
    width: 40vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #41464b;
    z-index: 9999;
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    text-align: center;
    justify-content: center;
    align-content: center;
    padding: 25px;
    box-shadow: 10px 5px 5px black;
    border-radius: 20px;
}

.config-input input
{
    margin: 10px 0;
    background-color: black;
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    padding: 5px;
}

.confirm-btns 
{
    display: flex;
}

.emess
{
    color: red;
    margin-top: 10px;
}

.dropdown-div
{
    display: flex;
    flex-direction: column;
}

.dropdown-info
{
    margin-bottom: 5px;
}

.dropdown-info select
{
    background-color: #111;
    color: #00FF29;
    font-family: 'Space Mono', monospace;
}

.dropdown-div button
{
    margin-bottom: 10px;
    align-self: center;
}

.frustum {
    position: absolute;
    background-color: red;
    width: 153px;
    height: 800px;
    transition: width 0.01s ease, height 0.01s ease, clip-path 0.01s ease;
    /* update the y value of the 5th item to update length of the beam */
    clip-path: polygon(50% 50%, 100% 0%, 50% 49.5%, 52% 47.5%, 52% 47.5%, 48% 47.5%, 0% 0%);
}

.beam
{
    position: absolute;
    background-color: var(--color);
    transition: background-color 0.01s ease;
    width: 153px;
    height: 800px;
    transition: height 0.01s ease;
    clip-path: polygon(48% 50%, 52% 50%, 52% 0%, 48% 0%);
}

.leftpoint, .rightpoint
{
    position: absolute;
    border-radius: 50%;
    height: 10px;
    width: 10px;
}
.leftpoint
{
    background-color: orange;
}
.rightpoint
{
    background-color: lime;
}

.reg-cb
{
    align-self: flex-end;
    display: flex;
    justify-content: space-between;
    width: 250px;
}

.reg-cb label, .reg-cb label
{
    color: #00FF29;
    font-family: 'Space Mono', monospace;
    font-size: 20px;
}
