/* Variables */

:root {

    /* Dimensions */
    --page-width: 1024px;
    --page-margin: 200px;

    /* Base colors */
    --fg-color: #ffffff;
    --bg-color: #262626;
    --key-color: rgb(0, 214, 252); /* sharp blue: #00d6fc baby blue: #89CFF0 */
    --key-color-trans: rgba(0, 214, 252, 0.13);

    /* Node colors */
    --front-color: rgb(245, 245, 245);
    --front-color-reverse: #262626;

}

/* Fonts */

@font-face {
  font-family: Mulish;
  src: url('media/Mulish-Regular.ttf') format('ttf');
}

/* Reset */

html, body {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    cursor: normal;
    background-color: var(--bg-color);
    font-family: Mulish, Helvetica, Arial, sans-serif;
}

a, a:visited {
    color: unset;
    text-decoration: none;
}

/* Header */

header {
    display: flex;
    align-items: center;
    width: var(--page-width);
    margin: 0 auto var(--page-margin) auto;
}

header .company-logo {
    width: 108px;
    height: 32px;
}

header nav {
    width: calc(100% - 108px);
}

header nav ul {
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    display: flex;
}

header nav ul li a,
header nav ul li a:visited {
    color: var(--fg-color);
    background-color: transparent;
    border: 2px solid transparent;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.5s, background-color 0.5s;
    margin: 0 4px;
}

header nav ul li a:hover {
    color: var(--key-color);
    background-color: var(--key-color-trans);
    cursor: pointer;
    transition: color 0.5s, background-color 0.5s;
}

header nav ul li.special a {
    border: 2px solid var(--key-color);
    margin-top: -2px;
}

header nav ul li:not(:last-child) {
    margin-right: 0px;
}

header nav ul li:last-child {
    margin-left: auto;
}

/* Headlines */

.headlines {
    width: var(--page-width);
    margin: var(--page-margin) auto;
}

.headlines h2,
.headlines h3 {
    font-size: 2em;
    letter-spacing: 0.05em;
    word-spacing: 4px;
    margin: 0.3em 0;
    background-image: linear-gradient(90deg, var(--key-color) 0%, white 50%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.headlines h3 sup {
    font-size: 0.5em;
    color: white;
}

/* Article */

article {
    width: var(--page-width);
    margin: var(--page-margin) auto;
    color: var(--front-color);
}

/* Diagram area */

.diagram {
    position: relative;
    width: var(--page-width);
    margin: var(--page-margin) auto;
}

.diagram-title {
    position: absolute;
    color: var(--front-color);
    text-align: center;
    font-size: 32px;
}

.diagram-subtitle {
    position: absolute;
    color: var(--front-color);
    text-align: center;
    font-size: 20px;
}

/* Generic button */

.button {
    display: inline-block;
    color: var(--fg-color);
    background-color: transparent;
    font-size: 14px;
    border-radius: 6px;
    transition: color 0.5s, background-color 0.5s;
    border: 2px solid var(--key-color);
}

.button:hover {
    color: var(--key-color);
    background-color: var(--key-color-trans);
    cursor: pointer;
    transition: color 0.5s, background-color 0.5s;
}

.button a {
    display: inline-block;
    padding: 8px 12px;
}

/* Socket */

.socket {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--front-color-reverse);
    border-radius: 50%;
    background-color: var(--key-color);
}

.socket.right {
    right: -10px;
    top: calc(50% - 8px);
}

.socket.left {
    left: -10px;
    top: calc(50% - 8px);
}

.socket.top {
    left: calc(50% - 8px);
    top: -10px;
}

.socket.bottom {
    left: calc(50% - 8px);
    bottom: -10px;
}

/* Link */

.link {
    position: absolute;
    left: 0;
    top: 0;
    overflow: visible;
    z-index: -1;
}

.link path {
    pointer-events: none;
    fill: none;
    stroke: var(--front-color);
    stroke-width: 2;
}

/* Node Group */

.metaviz-node-group {
    position: absolute;
    border: 3px solid var(--front-color);
    border-radius: 28px;
}

.metaviz-node-group > .metaviz-control-input-name {
    text-align: center;
    border: 2px solid var(--front-color);
    border-radius: 20px;
    font-size: 16px;
    margin-left: 6px;
    margin-top: 5px;
    width: calc(100% - 15px);
    height: 35px;
    line-height: 34px;
    position: relative;
}

.metaviz-node-group.color-0 {
    border-color: var(--front-color);
    background-color: rgba(75, 75, 75, 0.1);
}

.metaviz-node-group.color-0 > .metaviz-control-input-name:first-child {
    color: var(--front-color-reverse);
    background-color: var(--front-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.metaviz-node-group.color-0 > .metaviz-control-input-name {
    color: var(--front-color);
    background-color: transparent;
    transition: color 0.5s, background-color 0.5s;
}

.metaviz-node-group.color-0 > .metaviz-control-input-name.selected {
    color: var(--front-color-reverse);
    background-color: var(--key-color);
    border: 2px solid var(--key-color);
}

.metaviz-node-group.color-0 > .metaviz-control-input-name:hover {
    color: var(--front-color-reverse);
    background-color: var(--front-color);
    cursor: pointer;
    transition: color 0.5s, background-color 0.5s;
}

/* Node Generic */

.metaviz-node-generic {
    position: absolute;
    color: var(--key-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px dashed var(--front-color);
    border-radius: 20px;
    text-align: center;
}

/* Metaviz UI Design Node Grid */

.metaviz-node-uidesign-grid {
    width: var(--page-width);
    margin: var(--page-margin) auto;
    color: var(--front-color);
}

.metaviz-node-uidesign-grid .grid-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.metaviz-node-uidesign-grid .grid-element {
    width: calc(33.333% - 30px);
    flex: 0 0 calc(33.333% - 30px);
    box-sizing: border-box;
    padding: 25px 15px 20px 15px;
    margin: 15px;
    background: var(--front-color);
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}

.metaviz-node-uidesign-grid .grid-element > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.metaviz-node-uidesign-grid .grid-element img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.metaviz-node-uidesign-grid .grid-element h3 {
    margin: 0;
    color: var(--front-color-reverse);
}

.metaviz-node-uidesign-grid .grid-element p {
    color: #555;
    font-size: 0.925em;
}

.metaviz-node-uidesign-grid .grid-element a {
    font-weight: 600;
    transition: color 0.5s;
}

.metaviz-node-uidesign-grid .grid-element a:hover {
    color: var(--key-color);
    transition: color 0.5s;
}

.metaviz-node-uidesign-grid .grid-element {
    border-bottom: 2px solid transparent;
}

.metaviz-node-uidesign-grid .grid-element:hover {
    border-bottom: 2px solid var(--web-keycolor);
}

/*
@media only screen and (max-width: 720px) {
    .grid-element {
        width: calc(50% - 30px);
        flex: 0 0 calc(50% - 30px);
    }
}

@media only screen and (max-width: 400px) {
    .grid-element {
        width: calc(100% - 30px);
        flex: 0 0 calc(100% - 30px);
    }
}
*/

/* Banner */

.banner {
    width: 100%;
    color: var(--front-color-reverse);
    background-color: var(--front-color);
    margin: var(--page-margin) auto;
}

.banner .wrapper {
    width: var(--page-width);
    margin: 0 auto;
    padding: 30px 0;
}

/*.banner p {
    width: var(--page-width);
    poadding-top: 20px;
    margin: 20px auto;
}

.banner h2 {
    width: var(--page-width);
    margin: 20px auto;
}
*/
/* Metaviz UI Design Node Footer */

.metaviz-node-uidesign-footer.metaviz-control-uidesign-html {
    width: 100%;
    padding: 50px 30px 50px 20px;
    box-sizing: border-box;
    background: #1a1a1a;
}

.metaviz-node-uidesign-footer.metaviz-control-uidesign-html > div:first-child {
    display: flex;
    padding-bottom: 25px;
    border-bottom: 2px solid #222;
}

.metaviz-node-uidesign-footer.metaviz-control-uidesign-html > div:first-child > div {
    display: flex;
}

.metaviz-node-uidesign-footer .footer-nav-column {
    display: flex;
    flex-direction: column;
    margin-right: 125px;
}

.metaviz-node-uidesign-footer .footer-nav-column > p {
    margin: 0 0 10px 0;
    color: #ccc;
    font-size: 1.2em;
    font-weight: 700;
}

.metaviz-node-uidesign-footer .footer-nav-column > a,
.metaviz-node-uidesign-footer .footer-nav-column > div {
    margin: 10px 0;
    color: #777;
    text-decoration: none;
    font-size: 0.9em;
}

.metaviz-node-uidesign-footer .footer-counter {
    display: flex;
    flex-direction: column;
}

.metaviz-node-uidesign-footer .footer-counter > img {
    width: 250px;
    height: 75px;
    object-fit: cover;
    margin-bottom: 30px;
}

.metaviz-node-uidesign-footer .footer-counter > div {
    display: flex;
    justify-content: space-between;
}

.metaviz-node-uidesign-footer .footer-counter > div p:first-child {
    margin: 0;
    color: #ccc;
    font-weight: 600;
}

.metaviz-node-uidesign-footer .footer-counter > div p:nth-child(2) {
    margin: 0;
    color: #777;
    font-weight: 600;
    font-size: 0.9em;
}

.metaviz-node-uidesign-footer .metaviz-control-uidesign-html > div:nth-child(2) {
    display: flex;
    margin-top: 25px;
}

.metaviz-node-uidesign-footer .footer-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9em;
}

.metaviz-node-uidesign-footer .footer-info > div {
    display: flex;
}

.metaviz-node-uidesign-footer .footer-info a {
    text-decoration: none;
    color: #ccc;
    margin-right: 25px;
}

.metaviz-node-uidesign-footer .footer-info > p {
    color: #777;
    margin: 15px 0 0 0;
}

.metaviz-node-uidesign-footer .footer-socials {
    display: flex;
    margin-top: 10px;
}

.metaviz-node-uidesign-footer .footer-socials img {
    width: 35px;
    height: 35px;
    object-fit: cover;
}

.metaviz-node-uidesign-footer .footer-socials a {
    width: 35px;
    height: 35px;
    border-radius: 2px;
    margin-right: 15px;
    color: #ccc;
    font-size: 35px;
}

/*
@media only screen and (max-width: 1024px) {
    .footer-nav-column {
        margin-right: 70px;
    }
}

@media only screen and (max-width: 740px) {
    .footer-nav-column {
        margin-right: 20px;
    }
}

@media only screen and (max-width: 600px) {
    #footer > div:first-child {
        flex-direction: column;
        align-items: center;
    }

    #footer > div:first-child > div {
        margin-bottom: 30px;
    }

    #footer > div:last-child {
        flex-direction: column;
    }
}
*/

/* Bubble */

.bubble {
    position: fixed;
    margin: 20px;
    padding: 12px 20px;
    color: white;
    background-color: #444;
    border: 2px solid white;
    border-radius: 20px;
}

.bubble a {
    text-decoration: underline;
}

.bubble .x {
    position: absolute;
    right: -5px;
    top: -5px;
    color: white;
    background-color: #444;
    border: 2px solid white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    text-align: center;
    font-size: 16px;
    line-height: 15px;
    transition: background-color 0.5s;
}

.bubble .x:hover {
    background-color: #777;
    cursor: pointer;
    transition: background-color 0.5s;
}