*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
    font-family: 'Roboto', sans-serif;
}
:root{
    --material-borderRadius: 1.2rem;
    --theme-primary: #012456;
    --line-height: calc(1.2 * 1em);
}
a{
    color: var(--theme-primary);
    font-weight: bold;
    text-decoration: none;
}
main{
    height: 100vh;
    overflow-y: scroll;
    -ms-scroll-snap-type: y mandatory;
    scroll-snap-type: y mandatory;
}
main[data-empty]{
    overflow-y: hidden;
}
#options[data-empty=true] > a {
    display: none;
}
#options:not([data-empty=true]) > span::after{
    content: ", or";
}
section{
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.form-group {
    margin: 1em 0 !important;
    flex-direction: column;
}
.disabled{
    opacity: .1;
    pointer-events: none;
}
label.filled-button{
    position: relative;
    opacity: 90%;
    background: #012456;
    color: #e2e2e2;
    border-style: none;
    height: calc(var(--line-height) + 40px);
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--material-borderRadius);
    transition: opacity .2s linear;
    cursor: pointer;
}
label.filled-button.prompt::after{
    content: "";
    position: absolute;
    left: calc(50% - .5em);
    top: calc(100% - 1.5em);
    width: 1em;
    height: 1em;
    background: linear-gradient(45deg, var(--theme-primary) 50%, transparent 50%);
    z-index: -1;
}
label.filled-button.prompt::before{
    content: "";
    position: absolute;
    left: calc(50% - .4em);
    top: calc(100% - 1.5em);
    content: "";
    height: .8em;
    width: .8em;
    background: linear-gradient(45deg, var(--theme-primary) 50%,transparent 50%);
}
label.filled-button.prompt::before,
label.filled-button.prompt::after{
    transform: rotate(-45deg);
    animation: prompt 1s linear 3;
    z-index: -1; 
}
@keyframes prompt{
    to { 
        top: 100%;
        opacity: 0;
        /* display: none; */
     }
}
label.disabled + input{
    pointer-events: none;
}
label.text-button{
    cursor: pointer;
}
label.filled-button:hover{
    opacity: 100%;
}
.text-button{
    display: block;
    font-size: .99rem;
    font-weight: bold;
    transition: opacity linear .2s;
}
input[type=file]{
    display: none;
}
input[type=color]{
    opacity: 0;
    height: 0;
}
.image-container{
    position: relative;
    max-height: 80%;
    max-width: 80%;
    z-index: 999 !important;
}
.image-container::after{
    content: " ";
    position: absolute;
    left: 0;
    bottom: -.8em;
    width: 100%;
    height: 2em;
    background: #000;
    border-radius: 100%;
    filter: blur(15px);
    z-index: -1;
}
.image-container img{
    max-height: 100%;
    max-width: 100%;
    z-index: 2;
}
#history{
    /* background: #333; */
    max-height: 100%;
    overflow-y: auto;
}
#history-grid{
    flex: 1;
    max-height: 90vh;
    width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-column-gap: 1em;
    grid-row-gap: 1em;
    grid-auto-rows: 100px;
    justify-content: initial;
    align-items: initial;
    overflow-y: auto;
}
.history-grid__item {
    max-height: 12vh;
    height: 100%;
    border-radius: 5px;
    /* background: #c5c5c5; */
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden;
}
.history-grid__item > img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
/* .history-grid__item .preview-container{
    height: 90%;
    max-width: 90%;
}
.history-grid__item > .preview-container img{
    object-fit: contain;
    max-width: 100%;
    height: 100%;
}
.history-grid__item > * {
    text-align: center;
} */