/* CSS for oli.show */

body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;

    font-family: Barlow;
    font-weight: 400;
    background-color: #090A0F;
}

#stats {
    position: fixed;
    left: 0px;
    bottom: 0px;
    opacity: 0.9;
    cursor: pointer;
    z-index: 10000;
    display: none;
}

#stats_btn {
    padding: 10px 20px 10px 20px;
    background: #97c2b9;
    text-align: center;
    font-size: 12pt;
    cursor: pointer;
    border-radius: 10px;
}

#stats_btn:hover {
    background: #f8ae0099;
}

#scene_container {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #090A0F;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#overlay {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
}

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.annotation {
    position: absolute;
    color: #fafafa;
    will-change: transform;
}

.annotation-title {
    margin-left: -11px;
    height: 34px;
    white-space: nowrap;
    font-size: 18pt;
    cursor: pointer;
    z-index: 100;
    pointer-events: all;
}

.annotation-line { background-image: linear-gradient(#fafafa66, #fafafa01); 
    width: 2px;
    left: -2px;
    /* Stretched to length with a transform from annotation.ts */
    height: 1px;
    transform-origin: 0 0;
    will-change: transform;
    pointer-events: none;
}

#hidden {
    display: none;
}

#center_label {
    position: absolute;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13pt;
    color: #fafafa;
    text-shadow: #000 0px 0px 2px,   #000 0px 0px 2px,   #000 0px 0px 2px,
             #000 0px 0px 2px,   #000 0px 0px 2px,   #000 0px 0px 2px;
}

@keyframes fadein {
    from { opacity: 0;}
    to   { opacity: 1;}
}

@keyframes fadeout {
    from { opacity: 1;}
    to   { opacity: 0;}
}

#info_box {
    color: #090A0F;
    background-color: #fafafaee;
    position: relative;
    opacity: 0;
    border-radius: 10px;
}

#info_title {
    font-family: Montserrat;
    font-size: 22pt;
    margin-bottom: 25px;
    font-weight: 500;
}

.side_by_side {
    display: flex;
    flex-direction: row;
}

#info_left {
    flex: 1 0;
    margin-right: 20px;
}

#info_right {
    flex: 0 300px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
}

#info_media {
    flex: 1 1 0px;
}

#info_description {
    font-size: 14pt;
}

.media-img {
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
    opacity: 0;
    transition: all 2.5s ease;
    -webkit-transition: all 2.5s ease; 
    -moz-transition: all 2.5s ease; 
    -ms-transition: all 2.5s ease; 
    -o-transition: all 2.5s ease; 
}

#info_extras {
    margin-top: 28px;
    padding: 26px;
    border: 2px solid #252525;
    border-radius: 14px;
}

#info_technologies {
    display: flex;
    flex-direction: row;
}

ul {
    margin: 30px 0px 0px 0px;
    padding-left: 30px;
}

li {
    margin: 10px 0;
}

.technology {
    flex: 1 1 0px;
    text-align: center;
}

.technology-icon {
    width: 32px;
}

.technology-title {
    margin-top: 5px;
    font-size: 12pt;
}

#info_link {
    padding: 10px;
    background: #97c2b9;
    text-align: center;
    font-size: 18pt;
    cursor: pointer;
    width: 280px;
    border-radius: 10px;
    position: relative;
    margin-top: 20px;
    flex-grow: 0;
}

#info_link:hover {
    background: #f8ae0099;
}

#info_hide {
    position: absolute;
    top: 14px;
    right: 24px;
    cursor: pointer;
    font-size: 21pt;
    font-weight: 400;
    font-family: sans-serif;
    width: 30px;
    height: 30px;
    text-align: right;
    line-height: 22px;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

#info_hide:hover {
    color: #88A47C;
}

/* --- 14: keyboard focus needs to be visible everywhere it can land --- */
#info_hide:focus-visible,
#info_link:focus-visible,
#text_version:focus-visible,
.annotation-title:focus-visible {
    outline: 2px solid #f8ae00;
    outline-offset: 3px;
    border-radius: 4px;
}

#text_version:focus-visible {
    opacity: 0.9;
}

/* --- 11: cover the gap between first paint and the scene appearing --- */
/* A transition rather than an animation: the hidden state is a real specified
   value, so the loader still disappears if the transition never runs. */
#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fafafa;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 15pt;
    letter-spacing: 0.15em;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

#loader.loaded {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    #loader {
        transition: none;
    }

    #info_box,
    #center_label {
        animation: none !important;
        opacity: 1 !important;
    }

    .media-img {
        transition: none;
    }
}

/* Change info box on mobile */
@media (max-width: 740px) {
    #info_box{
        width: 86vw;
        padding: 10px 5vw 10px 5vw;
        top: 2.5vh;
        max-height: 93vh;
        margin-left: 2vw;
        margin-right: 2vw;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .side_by_side {
        flex-direction: column;
    }

    #info_description {
        margin-right: 0px;
        font-size: 12pt;
    }

    #info_media {
        height: 220px;
        width: 220px;
        flex: 0 220px;
        margin-left: calc((90vw - 220px) / 2);
    }

    #info_left {
        margin: 0px;
    }

    #info_right {
        margin-left: 0px;
        margin-top: 20px;
    }

    #info_link {
        width: 100%;
        margin-top: 20px;
        padding: 10px 0px 10px 0px;
        font-size: 16pt;
    }

    #info_hide {
        right: 14px;
    }

    #info_title {
        font-size: 18pt;
    }

    #info_extras {
        margin-top: 20px;
    }
}

@media all and (min-width: 741px) {
    #info_box {
        left: calc(50vw - 350px);
        bottom: 10vh;
        position: absolute;
        width: 700px;
        padding: 26px;
        padding-bottom: 22px;
    }
}

.noscript {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0%);
    font-size: 24pt;
    color: #fafafa;
}

#text_version {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 10pt;
    color: #fafafa;
    opacity: 0.35;
    text-decoration: none;
    z-index: 50;
}

#text_version:hover {
    opacity: 0.9;
}