html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.svgcontainer {
    height: 100vh;
    max-width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    flex-flow: column wrap;
    margin: 0;
    padding: 0;
    background-color: black;
}

#bridge-svg {
    display: block;
    position:absolute;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

#crew-select {
    display: block;
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 0;
}

#crew-select ul {
    margin: 0;
    padding: 0;
    position: static;
    list-style: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    background-color: #333;
    width: 100%;
}

#crew-select ul li {
    margin: .1em;
    padding: 0;
    width: 4em;
    height: 8em;
    display: flex;
    flex-flow: column nowrap;
}

#crew-select ul li img {
    display: block;
    object-fit: contain;
    height: 85%;
    background-color: #666;
}

#crew-select ul li p {
    margin: 0;
    padding: 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    font-size: .75em;
    display: block;
    height: 15%;
    background-color: yellow;
}

.bar {
    display: flex;
    width: 100%;
    max-width: 800px;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: white;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    height: 1.5em;
    margin-top: -1.5em;
    position: fixed;
    z-index: 102;
}

#openLink {
    cursor: pointer;
    padding: 0 1em;
}

#closeLink {
    cursor: pointer;
    padding: 0 1em;
    font-weight: 800;
}

.pop-contain {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

#popup {
    position: absolute;
    display: block;
    width: 100%;
    align-self: center;
    max-width: 800px;
    height: 18em;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    z-index: 101;
}

#popup::-webkit-scrollbar {width: 12px;}
#popup::-webkit-scrollbar-track {background-color: #666;}
#popup::-webkit-scrollbar-thumb {box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);}

#action-menu {
    position: fixed;
    z-index: 1000;
    width: 150px;
    background: #1b1a1a;
    color: white;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    list-style: none;
    border-radius: 5px;
    padding: .2em .5em .5em;
    transform: scale(0);
    transform-origin: top left;
}

#action-menu.visible {
    transform: scale(1);
    transition: transform 150ms ease-in-out;
}

#action-menu li ul {
    padding-left: 20px;
    list-style: none;
}

#action-menu li ul li {
    cursor: pointer;
}
#action-menu li ul li:hover {
    background-color: #333;
}