@import url('https://fonts.googleapis.com/css2?family=Lemon&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

select,
select:active {
    outline: none;
    box-shadow: none;
}

body{
    width: 99vw;
    height: 100vh;
    margin: 0px;
    overflow-x: hidden;
    /*background-color: gainsboro;*/
    background-color: #2c2f31;
    font-family: 'Lemon', serif;
}

main {
    opacity: 1;
    transition: opacity 400ms ease;
    background-color: #2c2f31;
}

body[data-fullscreen="true"] > main{
    opacity: 0;
}

body::-webkit-scrollbar {
    width: 16px;
}
  
body::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 100px;
}

body::-webkit-scrollbar-thumb {
    background-color: #77553d50;
    border-radius: 100px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #77553d;
    border-radius: 100px;
}

#invisible {
    position: fixed;
    opacity: 0;
}

#banner {
    position: relative;
    left: 50%;
    width: 500px;
    height: 400px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    backdrop-filter: blur(20px);
    padding: 5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 0 30px rgba(0,0,0, 0.5);
}

#logo {
    position: fixed;
    z-index: 3;
    display: flex;
    align-items:flex-start;
    padding-top: 15px;
    padding-left: 15px;
    opacity: 0.5;
    transition: opacity 500ms ease;
    animation: slide-in-above 1000ms ease;
}

@keyframes slide-in-above{
    from{
        transform: translate(0, -100%);
    }
    to{
        transform: translate(0, 0);
    }
}

#logo:hover{
    opacity: 1;
}

body[data-fullscreen="true"] > #logo
{
    opacity: 0;
}

header img {
    display: block;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    align-content: center;
    box-shadow: 0rem 0rem 2rem rgba(0, 0, 0, .2);
}

header p {
    position: fixed;
    align-content: center;
    padding: inherit;
    transform: translate(25px, -4.5px);
    font-size: x-small;
    color: gray;
}

#fullscreen-overlay
{
    opacity: 0;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-color: transparent;
    transition: all 500ms ease;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.loading-graphic{
    position: fixed;
    object-position: center;
    height: 80px;
    width: 80px;
    border: 6px solid;
    border-color: rgba(182, 142, 113, 0.5) transparent rgba(182, 142, 113, 0.5) transparent;
    border-radius: 50%;
    z-index: 4;
    transition: all 250ms ease;
    animation: spin 2s linear infinite;
    pointer-events: none;
}

#fullscreen-image[loaded="true"] + .loading-graphic{
    border-color: transparent;
}

@keyframes spin {
    to{
        transform: rotate(360deg)
    }
}

body[data-fullscreen="true"] > #fullscreen-overlay
{
    pointer-events: all;
}

#fullscreen-image {
    display: block;
    padding: 0.5%;
    width: 100vw;
    opacity: 1;
    height: 100vh;
    object-position: center;
    object-fit: contain;
    overflow: hidden;
    border-radius: 1%;
    cursor: pointer;
    filter: blur(10px);
    transition: filter 500ms ease;
    position: relative;
}

.share-btn{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: fixed;
    z-index: 3;
    transform: translateY(35vh);
}

body[data-fullscreen="true"]{
    background-color: black;
}

body[data-fullscreen="true"] > #fullscreen-overlay{
    opacity: 1;
    background-color: black;
    /* transform: translateY(0px); */
}

body[data-fullscreen="false"] > #fullscreen-overlay {
    opacity: 0;
    /* transform: translateY(100%); */
}

#feed-grid {
    display: grid;
    grid-template-columns:
    repeat(1, 1fr)
}

.box{
    overflow: hidden;
    height: fit-content;
}

.blur-load {
    position: relative;
    display: block;
    padding: 2%;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    box-shadow: 100px;
}

div img {
    display: flex;
    padding: 2%;
    width: 100%;
    height: 40vw;
    min-height: 400px;
    object-position: center;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    filter: blur(0px);
    transition: filter padding transform 250ms ease-in-out;
    position: relative;
}

div img[data-blur="true"] {
    filter: blur(5px);
    /* box-shadow: 0rem 0rem 2rem rgba(0, 0, 0, .2); */
}

#fullscreen-image[data-blur="false"] {
    filter: none;
    transition: all 500ms ease;
    transition-delay: 500ms;
}

#fullscreen-image[data-blur="true"] {
    filter: blur(10px);
    transition: none;
}

div img:hover{
    padding: 1%
}

/* NAV BAR */
#nav-toggle {
    height: 5rem;
    width: 5rem;
    position: fixed;
    z-index: 3;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    background-color: rgb(182, 142, 113);
    border: none;
    border-radius: 5rem;
    outline: none;
    box-shadow: 0rem 0rem 2rem rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: transform, background-color, box-shadow;
    transition-timing-function: ease;
    transition-duration: 300ms;
}

#nav-toggle:hover {
    transform: translateX(-50%) scale(1.04);
}

#nav-toggle:active {
    transform: translateX(-50%) scale(0.96);
}

body[data-fullscreen="true"] > #nav-toggle {
    background-color: rgba(182, 142, 113, 0);
    box-shadow: none;
}

body[data-nav="true"] > #nav-toggle {
    background-color: rgb(85, 130, 149);
}

body:not([data-nav="true"]) > #nav-toggle:hover > .open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#nav-toggle[data-slidein="true"] {
    animation: 1s cubic-bezier(0.075, 0.82, 0.165, 1) 0s 1 slideIn;
}
  
@keyframes slideIn {
    0% {
        transform: translate(-50%, 200%) scale(0);
    }
    100% {
        transform: translate(-50%, 0%) scale(0.9);
    }
}
#nav-toggle > i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    color: rgb(246, 231, 224);
    font-size: 1.75rem;
    opacity: 0;
    transition: transform, opacity;
    transition-timing-function: ease;
    transition-duration: 400ms;
}

body[data-nav="true"] > #nav-toggle > .close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav-button > i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: rgb(246, 231, 224);
    opacity: 0;
    font-size: 1.5rem;
    transition: transform, opacity;
    transition-timing-function: ease;
    transition-duration: 400ms;
}

body[data-nav="true"] > .nav-button > i {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav-button {
    height: 4rem;
    width: 4rem;
    position: fixed;
    left: 50%;
    bottom: 2rem;
    z-index: 2;
    transform: translateX(-50%);
    background-color: rgb(85, 130, 149);
    border: none;
    opacity: 0;
    border-radius: 5rem;
    outline: none;
    box-shadow: 0rem 0rem 2rem rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: transform, scale, background-color, opacity;
    transition-timing-function: ease;
    transition-duration: 300ms;
}

.nav-button:hover {
    scale: 1.04;
}

.nav-button:active {
    scale: 0.96;
}

/* NAV BUTTON 1 */
body[data-nav="true"] > #nav-button-1 {
    opacity: 1;
    transform: translateX(-100px) translateY(-70px) scale(1);
}

body:not([data-nav="true"]) > #nav-button-1 {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%) scale(0);
}

/* NAV BUTTON 2 */
body[data-nav="true"] > #nav-button-2 {
    opacity: 1;
    transform: translateX(-50%) translateY(-90px) scale(1);
}

body:not([data-nav="true"]) > #nav-button-2 {
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) scale(0);
}

/* NAV BUTTON 3 */
body[data-nav="true"] > #nav-button-3 {
    opacity: 1;
    transform: translateX(36px) translateY(-70px) scale(1);
}

body:not([data-nav="true"]) > #nav-button-3 {
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) scale(0);
}

/* Media Queries */
@media screen and (min-width: 350px) {
    #feed-grid {
        display: grid;
        grid-template-columns:
        repeat(2, 1fr)
    }
}

/* @media screen and (min-width: 700px) {
    #feed-grid {
        display: grid;
        grid-template-columns:
        repeat(3, 1fr)
    }
} */

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-10%);
    transition: all 0.5s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

@media screen and (min-width: 950px) {
    #feed-grid {
        display: grid;
        grid-template-columns:
        repeat(4, 1fr)
    }
}