@font-face {
    font-family: TeXGyreHerosRegular;
    src: url(../fonts/texgyreheros-regular.otf);
}
@font-face {
    font-family: TeXGyreHerosBold;
    src: url(../fonts/texgyreheros-bold.otf);
}
@font-face {
    font-family: TeXGyreHerosCn;
    src: url(../fonts/texgyreheroscn-regular.otf);
}

:root {
    --main: black;
    --secondary: lightgray;
    --tertiary: rgb(247, 247, 247);
    --sans: TeXGyreHerosRegular;
    --bold: TeXGyreHerosBold;
    --condensedSans: TeXGyreHerosCn;
}
*, html {
    box-sizing: border-box;
}
body {
    background-color: #000000;
    margin: 0;
    display: flex;
    justify-content: center;
    font-family: var(--sans);
    color: var(--main);
    width: 100vw;
    height: 100vh;
    overflow: scroll;
}

#header {
    border-bottom: 1px solid var(--secondary);
    background-color: #ffffff;
    font-family: var(--condensedSans);
    position: fixed;
    padding: 8px;
    width: 440px;
    top: 0;
    z-index: 100;
    text-align: center;
    text-decoration: none;
    color: black;
}
#feed {
    position: fixed;
    width: 440px;
    height: 100vh;
    background-color: var(--tertiary);
    overflow: scroll;
    padding: 80px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;

    -ms-overflow-style: none;
    scrollbar-width: none;
}
#feed::-webkit-scrollbar {
    display: none;
}
/* POST FORMAT */
.post {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.profile-picture {
    display: block;
    width: 40px;
    height: 40px;
    background-color: lightgrey;
    border-radius: 100%;
}
.post-image {
    width: 100%;
    border: 1px solid rgb(188, 188, 188);
}
.username {
    font-family: var(--bold);
}
.post-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: border-box;
}
.post-date {
    font-size: 14px;
    color: gray;
    display: block;
    margin-top: 5px;
}
.likes-left {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.icon {
    width: auto;
    height: 20px;
}

/* Loader */
.loader {
  width: 60px;
  aspect-ratio: 4;
  background: radial-gradient(circle closest-side,#00000000 90%,#00000000) 0/calc(100%/3) 100% space;
  clip-path: inset(0 100% 0 0);
  animation: l1 1s steps(4) infinite;
}
@keyframes l1 {to{clip-path: inset(0 -34% 0 0)}}

/* LOAD POST BUTTON */
#load-post-button {
    width: 440px;
    position: fixed;
    bottom: 0;
    padding: 8px;
    color: var(--main);
    background-color: var(--secondary);
    z-index: 100;
    text-align: center;
    font-family: var(--condensedSans);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: none;
}

/* MOBILE */
@media (max-width: 650px) {
    #feed {
        width: 100vw;
    }
    #header {
        width: 100vw;
    }
    #load-post-button {
        width: 100vw;
    }
}