:root {
    --hue: 225;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    background-color: hsl(var(--hue), 15%, 10%);
    
    font-family: "Noto Sans", sans-serif;
    font-weight: 400;
    color: white;
}

#topBar {
    display: grid;
    grid-template-columns: 1fr 1fr 4fr 1fr 1fr;
    position: sticky; 
    align-items: center;
    justify-items: center;
    
    margin-bottom: 0.25rem;
    padding: 10px 1rem;
    z-index: 10;
    top: 0;
    
    background-color: hsl(var(--hue) 15% 20% / 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0px 3px 10px #0002;
    
    font-family: "Noto Sans", sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem); 
}

#prompt {
    grid-column: 3;
    display: flex;
}

#prompt input {
    padding: 5px;
    background: #0002;
    border: 1px solid #fff2;
    border-radius: 5px;
    height: 1em;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    field-sizing: content;
    color: inherit;
    appearance: textfield;
    align-self: center;
}

#promptText {
    font-weight: inherit;
    font-size: inherit;
    margin: 0;
}

#prompt form {
    display: flex;
}

#prompt form:after {
    content: ": ";
    white-space: pre-wrap;
}

#buttonHome {
    justify-self: start;
    margin-left: 1rem;
}

#date {
    font-family: "Rubik", sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #fffd;
    line-height: 1em;
    text-align: center;
    justify-self: end;
    margin-right: 1rem;
}

.navButton {
    cursor: pointer;
    height: 1em;
}

/* gallery stuff */

#gallery {
    column-width: 20rem;
    column-gap: 1.25rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
}

.submission {
    background-color: hsl(var(--hue) 15% 12%);
    border: 1px solid #fff2;
    
    width: 100%;
    box-sizing: border-box;
    height: auto;
    overflow: hidden;

    border-radius: 10px;
    display: flex;
    flex-direction:column;
    
    padding: 1.2rem;
    padding-bottom: 1rem; 
    margin-bottom: 1.25rem;

    box-shadow: 0 3px 10px #0003;
}

.submission .subImage {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background-color: hsl(var(--hue), 15%, 15%);
}

.submission .author,
.submission .subTitle {
    margin-left: 0.2rem;
    margin-top: 0.4rem;
}

.submission .subTitle{
    line-height: 1.3em;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0.75rem;
}

.submission .subAuthor {
    color: #fffd;
    font-size: 125%;
    font-weight: 300;
    margin-left: 0.5rem;
}

.submission .subAuthorPfp {
    width: 20px;
    border-radius: 50%;
    
    transform: translateY(3px);
}

.disabled {
    opacity: 0.4;
    pointer-events: none;
}

#homeContent {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 4rem 1rem;
    box-sizing: border-box;
}

#homeContent p {
    margin: 1em;
    font-size: 2rem;
    text-align: center;
}

#homeContent p img {
    height: 1.3em;
    transform: translateY(20%);
}

#buttonViewCurrent {
    padding: 1rem;
    border: none;
    border-radius: 20px;
    
    font-family: inherit;
    font-weight: 600;
    font-size: 125%;
    color: inherit;
    
    background-color: hsl(var(--hue), 50%, 50%);
    box-shadow: 0px 3px 10px #0002;
    cursor: pointer;
    
    transition-duration: 0.2s;
}
#buttonViewCurrent:hover {
    background-color: hsl(var(--hue), 50%, 60%);
}

/* --- mobile ---*/
@media (max-width: 650px) {
    #topBar {
        grid-template-columns: 1fr 1fr auto 1fr 1fr;
        grid-template-rows: auto auto;
        padding-bottom: 5px;
    }

    #prompt {
        display: contents;
    }
    
    .navButton {
        width: 1.3em;
        height: auto;
        margin: 0 0.5rem;
    }

    #prompt form {
        grid-column: 3;
        grid-row: 1;
    }
    
    #prompt form:after {
        content: "";
    }

    #promptText {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        text-align: center;
    }

    #buttonPrev {
        justify-self: right;
    }
    
    #buttonNext {
        justify-self: left;
    }
    
    
    #buttonHome {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    #date {
        grid-column: 5;
        grid-row: 1;
        justify-self: end;
        font-size: 0.7em;
    }
}