@import url('https://fonts.googleapis.com/css?family=Roboto:700&display=swap');
:root {
    --pos: 100%;
}
html {
  scrollbar-color: rgba(175, 175, 175, .5) #1d1d1d;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background-color: #121212;
}
* {
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
a:focus {
  outline: none;
}


navbar {
    font: 2rem 'Roboto', sans-serif;
    background-color: #121212;
    display: block;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 4px;
}
button {
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
}
button, #slider, #select {
    cursor: pointer;
}
button:active {
    border: 1px solid transparent;
}
button svg {
    height: 75%;
}
#date {
    font: inherit;
    background: none;
    color: white;
    border: none;
    width: 224px;
}
#shots {
    white-space: nowrap;
    margin-left: .5rem;
}
#select {
    vertical-align: middle;
    margin-left: .25rem;
}
#info {
    font-size: 1rem;
    vertical-align: middle;
    white-space: nowrap;
    margin-left: .5rem;
}

/* Views Webcam */
#views-webcam {
    padding: 0 .5rem .5rem;
    display: grid;
    grid-gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,400px), 1fr));
}
.view-webcam {
    height: 400px;
    width: 100%;
    background-color: #282828;
    overflow: hidden;
}
.view-webcam img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: var(--pos) bottom;
    transform: translateY(-19px);
}
.view-webcam .time {
    position: relative;
    top: 4px;
    left: 4px;
    color: #06c;
    z-index: 1;
}

/* Views Panorama */
#views-panorama {
    margin-top: 4px;
}
.view-panorama {
    background-color: #282828;
    overflow: hidden;
    margin-top: -23px;
}
.view-panorama img {
    width: 100%;
    height: 100%;
}
.view-panorama .time {
    position: relative;
    top: 23px;
    left: 4px;
    color: #06c;
}

/* Views 16/9 TODO REDO*/
#views {
    padding: 0 .5rem .5rem;
    display: grid;
    grid-gap: .5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,400px), 1fr));
}
.view {
    height: 400px;
    width: 100%;
    background-color: #282828;
    overflow: hidden;
}
.view img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% bottom;
}
.view .time {
    position: relative;
    top: -400px;
    left: 4px;
    color: #06c;
}

@media (max-width: 600px) {
    #views, #views-webcam {
        padding: 0;
    }
    navbar {
        font-size: 1.5rem;
    }
    button {
        width: 1.8rem;
        height: 1.8rem;
        vertical-align: middle;
    }
    #date {
        width: 170px;
    }
    #slider {
        width: 140px;
    }
}
/* @media (max-width: 400px) {
    .view-webcam img {
        object-position: 95% bottom;
    }
}
@media (max-width: 300px) {
    .view-webcam img {
        object-position: 90% bottom;
    }
} */
@media (min-width: 1200px) {
    #views-webcam {
        grid-template-columns: repeat(auto-fit, minmax(min(100%,450px), 1fr));
    }
    #views {
        grid-template-columns: repeat(auto-fit, minmax(min(100%,450px), 1fr));
    }
}