
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#header {
    position: fixed;
    top: 1em;
    left: 1em;
}

#header h1 {
    background: url(./logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    min-height: 100px;
    direction: rtl;
    text-indent: -9999em;
    min-width: 150px;
    float: left;
    margin: 0;
}

#header h2 {
    float: left;
    color: #6e8795;
    vertical-align: middle;
    display: inline-block;
    padding-left: 33px;
    padding-top: 33px;
    margin: 0;
}

@media (max-width: 670px) {
  #header h2 {
      font-size: 1.1em;
      padding-top: 38px;
      padding-left: 1em;
  }
}

@media (max-width: 400px) {
  #header h1 {
      min-width: 120px;
  }
  #header h2 {
    font-size: 0.8em;
  }
}

#tapestry {
    margin-top: 100px;
}

#tapestry .node {
    outline: none;
}

#footer {
    width: 100%;
    font-size: 0.7em;
    color: #666;
    text-align:center;
}

#spotlight-content {
    position: absolute;
    z-index: 2;
    background-position: 0 0;
    background-size: cover;
    border-radius: 100%;
    opacity: 1;
    transition: all 1s;
    transition-timing-function: ease-in;
    overflow: hidden;
}

.progress-meter .background {
    fill: #333333;
}

.progress-meter .foreground {
    fill: #11a6d8;
}

.title {
    font-size: 20px;
    text-shadow: 1.5px 1.5px #333333;
}

.imageOverlay {
    opacity: 0.5;
    transition: 0.2s all;
}

.links,
.node:not(#node-1) {
    --display: none;
}

.node .expandGrandchildren {
    fill: #999;
}

.node:hover .expandGrandchildren {
    transform: scale(1.2);
    transition: 0.2s all;
}

.node:hover .imageOverlay {
    opacity: 0;
}

text {
    transition: 0.2s all;
}

.node:hover text {
    display: none;
}

.links line {
    stroke-opacity: 5;
}

.mediaButton {
    transition: all 0.25s ease;
    cursor: pointer;
    color: #666666;
    overflow: hidden;
    border-radius: 100%;
}

.mediaButton:hover,
.mediaButton:active {
    transform: scale(1.15) translate(0, 21px);
    color: #11a6d8;
}

.mediaButton > i:not(.mediaButtonLoading) {
    font-size: 55px;
    background: #fff;
    border: solid 1px #fff;
    padding: 2px;
}

.mediaButtonLoading {
    color: transparent;
    background-image: url(https://beta.tapestry-tool.com/wp-content/uploads/2018/11/loading-eclipse.svg);
    background-color: #666;
    border-radius: 100%;
    margin: 2% 2% 2% 3%;
    width: 94%;
    height: 94%;
    background-size: 98%;
    box-shadow: 0 0 0 2px #666 inset;
}

i {
    background-color: white;
    border-radius: 100%;
}

.lightbox {
    background-color: rgba(0, 0, 0, 0.8);
    overflow: scroll;
    position: fixed;
    display: none;
    opacity: 0;
    z-index: 1;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    transition: all 1s !important;
}

.lightbox-container {
    position: relative;
    max-width: 960px;
    margin: 7% auto;
    display: block;
    height: auto;
    z-index: 10;
}

@media screen and (max-width: 768px) {
    .lightbox-container {
        margin-top: 10%;
    }
}

@media screen and (max-width: 414px) {
    .lightbox-container {
        -webkit-backface-visibility: hidden;
        margin-top: 13%;
    }
}

.lightbox-content {
    -webkit-backface-visibility: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    text-transform: uppercase;
    background: transparent;
    position: absolute;
    font-weight: 300;
    font-size: 12px;
    display: block;
    border: none;
    color: white;
    top: -22px;
    right: 3%;
}

.video-container {
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    height: 0;
    -webkit-backface-visibility: hidden;
}

.video-container video,
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    -webkit-backface-visibility: hidden;
}

.video-player {
    width: 960px;
    height: 540px;
    frameborder: 0;
    -webkit-backface-visibility: hidden;
}

.video-player.is-fullscreen {
    width: 100%;
    height: auto;
}

#instructions-wrapper {
    max-width: 430px;
    border: solid 1px #CCC;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 8px;
    text-align:center; 
    color: #666; 
    margin: 0 auto 1em; 
    float: none;
    font-size: 0.8em;
}

@media (min-width:700px) {
    #--instructions-wrapper:after {
        content: 'x';
        position: absolute;
        top: -8px;
        right: -8px;
        background: #000;
        line-height: 12px;
        padding: 0px 3px 1px;
        border-radius: 100%;
        color: #fff;
        border: solid 1px #fff;
    }
    #instructions-wrapper {
        max-width: 230px;
        position: absolute;
        top: 45px;
        right: 10px;
    }
}

@media (min-width:900px) {
    #instructions-wrapper {
        max-width: 430px;
        right: 45px;
    }
}