
/* --- general --- */

@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    src: url('./assets/Raleway-VariableFont_wght.ttf') format('truetype');
}

:root {
    --bg-color: #000;
    --text-color: #fff;
    --link-color: #84e1ff;
    --overlay-color: #262626;
    --black-color: #000;
    --white-color: #fff;
    --hint-color: rgb(48, 227, 255);
}

body, html {
    -webkit-tap-highlight-color: rgba(0,0,0,0);

    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
}

body {
    background: var(--bg-color);
    margin: 0;
    overflow: hidden;
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
}

a {
    color: var(--link-color);
    transition: color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    text-decoration: underline;
    cursor: pointer;
}
a:hover {
    color: var(--text-color);
}


label {
    cursor: pointer;
}


/* --- button --- */
.icon-button {
    background: var(--overlay-color);
    color: var(--text-color);
    border: none;
    border-radius: 1em;
    font-size: 1.5em;
    cursor: pointer;
    user-select: none;
    padding: 0.5em;
}

.icon-button:active {
    background: var(--black-color);
    border: none;
    filter: invert(1);
}

.icon-button:focus {
    outline: none;
}


/* --- glyphs --- */
.glyph-bitbof, .glyph-plus, .glyph-minus, .glyph-x, .glyph-previous, .glyph-next,
.glyph-lt, .glyph-music, .glyph-about, .glyph-search {
    width: 1em;
    height: 1em;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


.glyph-bitbof {
    width: 1.2em;
    height: unset;
    background-image: url(assets/glyph-bitbof.svg?v=1854f904c15);
}

.glyph-plus {
    background-image: url(assets/glyph-plus.svg?v=1854f904c15);
}

.glyph-minus {
    background-image: url(assets/glyph-minus.svg?v=1854f904c15);
}

.glyph-x {
    background-image: url(assets/glyph-x.svg?v=1854f904c15);
}

.glyph-previous {
    background-image: url(assets/glyph-previous.svg?v=1854f904c15);
}

.glyph-next {
    background-image: url(assets/glyph-next.svg?v=1854f904c15);
}

.glyph-lt {
    background-image: url(assets/glyph-lt.svg?v=1854f904c15);
    display: inline-block;
}

.glyph-music {
    background-image: url(assets/glyph-music.svg?v=1854f904c15);
    display: inline-block;
}

.glyph-about {
    background-image: url(assets/glyph-about.svg?v=1854f904c15);
    display: inline-block;
}

.glyph-search {
    background-image: url(assets/glyph-search.svg?v=1854f904c15);
    display: inline-block;
}


/* --- animation --- */
@keyframes hintIn {
    from {
        opacity: 0.0;
        transform: translate(0, 40px);
    }
    to {
        opacity: 1.0;
        transform: none;
    }
}

/* --- top bar --- */
.top-bar-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    z-index: 2;
    height: 0;
}

.top-bar-inner {
    margin-left: auto;
    margin-right: auto;
    width: 350px;
    background: var(--overlay-color);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.top-bar-inner-nav {
    display: flex;
    justify-content: space-around;
}

.nav-link {
    padding: 7px 0;
    font-size: 1.1em;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-link > span {
    margin-right: 2px;
    font-size: 1.2em;
}

.nav-link:hover {
    box-shadow: inset 0 -2px var(--white-color);
}

.nav-link:hover > span {
    filter: brightness(2);
}


/* --- search --- */

.top-bar-inner-search {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    min-height: 34px;
    align-items: center;
}

.top-bar-inner-search input {
    font-size: 1.2em;
    width: 290px;
}
::placeholder {
    color: #aaa;
}

.search-results {
    width: 100%;
}

.search-result {
    display: flex;
    padding: 4px 8px;
    align-items: center;
    text-decoration: none;
    transition: none;
    border-bottom: 1px solid rgba(0,0,0,0.5);
}
.search-result:focus {
    box-shadow: inset 2px 0 var(--white-color);
    background: var(--black-color);
    outline: none;
    color: var(--text-color);
}
.search-result:hover {
    background: var(--black-color);
}

.search-result > * {
    margin-right: 8px;
}

.search-result-map {
    position: relative;
    display: inline-block;
    background: #505050;
    overflow: hidden;
}

.search-result-map-pin {
    position: absolute;
    background: var(--link-color);
    width: 2px;
    height: 2px;
    box-shadow: 0 0 5px 1px var(--white-color);
}


/* --- detail overlay --- */

.detail-title-wrapper {
    position: absolute;
    user-select: none;
}

.detail-title {
    font-size: 2em;
    text-align: center;
}

.detail-title span {
    background: var(--overlay-color);
    padding: 0 4px;
}

.detail-title-x {
    position: absolute;
    top: -0.25em;
    right: -2.5em;
}

.detail-audio-wrapper {
    position: absolute;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.detail-audio {
    width: 100%;
    margin-bottom: 10px;
}

.radio-label {
    margin-right: 10px;
    background: var(--overlay-color);
    display: flex;
    align-items: center;
}

/* --- map overlay --- */

.map-hints {
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: 220px;
    padding: 10px;
    margin-left: -110px;
    background: var(--hint-color);
    color: var(--black-color);
    animation-name: hintIn;
    animation-duration: 0.5s;
    animation-timing-function: ease-out;
    transition: opacity 0.3s ease-out 0s;
    border-radius: 5px;
    font-size: 1.2em;
}

/* --- zoom controls --- */
.zoom-controls {
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

.zoom-controls button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* --- credits --- */
.credits {
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    padding: 4px 7px;
    display: flex;
    border-top-right-radius: 5px;
}

/* --- about --- */

.about-page {
    max-width: 700px;
    margin: 60px auto 50px auto;
    padding: 0 20px;
}

.about-page p {
    text-align: justify;
    font-size: 1.1em;
    line-height: 1.5em;
}

.about-page img {
    width: 100%;
}

.about-footer {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
}

