*, *:before, *:after { box-sizing: border-box; }

html {
    background-color: #78b800;
}
body {
    margin: 0;
    padding: 0;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
    -webkit-text-size-adjust: none;
}

video {
    height: 100dvh;
    width: 100dvw;
    object-fit: cover;
}

#time {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 0;
    margin: 10px;
    border-radius: 100%;
    padding: 10px;
    width: 40px;
    height: 40px;
    color: #fff;
    background-color: #78b800;
    font-size: 20px;
}
#caption {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 100;
    text-align: right;
    font-size: 13px;
    line-height: 19px;
    color: #fff;
    font-family: Arial;
}
#caption a {
    color: #fff;
    text-decoration: underline;
}
#info-button {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 10px;
    left: 10px;
    background-color: yellow;
    color: blue;
    width: 20px;
    height: 20px;
    text-decoration: none;
    font-style: italic;
    font-size: 20px;
}

#loading {
    font-family: Arial, Helvetica, sans-serif;
    font-style: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
#controls {
    justify-content: center;
    align-self: center;
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 3px;
}
#controls button {
    cursor: pointer;
}
/* #metadata span {
    background-color: #000;
    padding: 3px;
} */

#controls button#mute {
    border: 0;
    background: transparent;
    background-image: url('images/sound-off.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    outline: none;
    opacity: .7;
}
#controls button#mute:hover {
    opacity: 1;
}
#controls button#mute.sound-on {
    background-image: url('images/sound-on.svg');
}

#controls a#open-instructions {
    display: block;
    background: transparent;
    background-image: url('images/question-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .7;
    width: 25px;
    height: 23px;
    cursor: pointer;
}
#controls a#open-instructions:hover {
    opacity: 1;
}

#instructions {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    color: #fff;
    background-color: #689b09e6;
    z-index: 1000;
    /* -webkit-font-smoothing: initial;
    -moz-osx-font-smoothing: initial; 
    -webkit-text-size-adjust: initial; */
    overflow-y: auto;
    display: none;
}
#instructions #inner {
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    padding: 15px;
}
#instructions #inner img {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    display: block;
}
#instructions #inner ol, #instructions #inner p, #instructions #inner h2 {
    max-width: 700px;
    margin: 20px auto;
}
#instructions #inner a {
    color: #fff;
}
#instructions #inner h2, #instructions #inner p, #instructions #inner li {
    font-size: 24px;
    line-height: 32px;
}
#instructions #inner h2 {
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 60px;
}
#instructions #inner ol {
    padding: 0;
    padding-left: 24px;
}
#instructions #inner li {
    margin-bottom: 20px;
}
#instructions #inner img {
    width: 100%;
}
a#close-instructions {
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
}




#index {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    background-color: #062002;
    z-index: 1500;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

#index-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 15px 10px;
}
.park {
    cursor: pointer;
    color: white;
    text-align: center;
}
.park .park-title {
    font-size: 12px;
    line-height: 15px;
}
.park img {
    width: 100%;
    height: auto;
}
button#index-toggle, button#close-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    font-size: 12px;
    color: #fff;
    background-color: transparent;
    border: 1px solid #fff;
    padding: 3px 4px;
    border-radius: var(--rounded-corners);
    text-decoration: none;
    cursor: pointer;
    font-weight: normal;
    border-radius: 2px;
}
button#index-toggle {
    opacity: .7;
    margin-right: 10px;
    margin-top: 3px;
}
button#index-toggle:hover {
    opacity: 1;
}
button#close-index {
    margin-bottom: 10px;
}


@media (max-width: 700px) {
    #loading {
        font-size: 12px;
    }
    #caption {
        font-size: 9px;
        line-height: 14px;
        transform: rotate(-90deg) translateX(100%);
        transform-origin: bottom right;
        margin: 0;
        right: 10px;
        text-align: left;
        width: max-content;
    }
    #instructions #inner h2, #instructions #inner p, #instructions #inner li {
        font-size: 16px;
        line-height: 20px;
    }
    #instructions #inner h2 {
        margin-top: 40px;
    }
}
