@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root{
    --grid-color-one: rgb(0, 0, 0);
    --grid-color-two: rgb(10, 10, 10);
    --grid-size: 100px 100px;
    --grid-speed: 300s;

}

html {
  scrollbar-color: #0f83ff black;
  scrollbar-width: thin;
}

@keyframes scroll {
    100%{
        background-position: 500% -1000%;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;   /* keeps it horizontally centered */
    align-items: flex-start;   /* push content to the top instead of center */

    background-size: var(--grid-size);
    animation: scroll var(--grid-speed) linear infinite;
    background-image: repeating-conic-gradient(
      var(--grid-color-two) 0% 25%, 
      var(--grid-color-one) 0% 50%
    );
    overflow-y: visible; 
    overflow-x: hidden; 

    border-color: #0f83ff;
    border-style: solid;
    border-left-width: 0.6em;
    border-right-width: 0.6em;
    border-top-width: 0;
    border-bottom-width: 0;

    scrollbar-width: none;
}

.container {
    display: flex;
    width: 800px;
    padding: 1em 0;
    justify-content: center; 
    align-items: stretch; 
    flex-direction: column; 
    flex-wrap: nowrap; 
    align-content: stretch;
    /* min-height: 100vh; <- remove this so it doesn't force middle alignment */
    font-size: 2em;
    font-family: 'Montserrat';
    font-weight: 500;
    color: #151515;
}

main{
    color: white;
    font-family: 'Montserrat';
    text-align: left;
}

h1{
    font-family: 'Montserrat';
    text-align: center;
    text-transform: uppercase;
    font-size: 3em;
    font-weight: 900;
    color: #ffffff;
    filter: drop-shadow(-0.04em -0.04em 0px #0f83ff);
}

h2{
    font-family: 'Montserrat';
    text-align: left;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 900;
    color: #ffffff;
}

h2:hover {
    color: #0f83ff;
}

.post-card a {
    text-decoration:none;
}

h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    line-height: 0.6em;
}

#blog-logo{
    padding:0;
    margin: 0;
    text-align: center;
    margin: 0 0 1.5em 0;
}

#blog-logo ul {
    /*border-radius: 10em;*/
    background: #0f83ff;
    text-align: center;
    font-size: 0.5em;

    width: 95%;
    margin: 0 auto;
    padding: 0;
}

#blog-logo li {
    font-family: 'Bebas Neue';
    font-size:1.6rem;
    display: inline-block;
    margin: 0.35em 1em 0.2em 1em;
}

#blog-logo li a {
  color: white;
  text-decoration: none;
}

#blog-logo li a:hover {
  text-decoration: underline;
}

/*------------------------------------------*/

.post-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;

    margin: 0.8em 0;
    padding: 0.5em;
    overflow: hidden;

    border-color: white;
    border-style:solid;
    border-width:0.07em;
}

.post-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin:0 0.5em 0 0;
}
.post-title {
    margin: 0;
}

.post-date,
.post-tags {
    font-size: 0.6em;
    padding: 0.1em 1em 0em 1em;
    font-family: 'Bebas Neue';
}

.post-meta {
  display: flex;
  gap: 1rem;
}

.post-meta p {
    margin: 0;
    background: #0f83ff;
    text-align: center; 
}

.post-description {
    border-radius: 12px;
    margin: 8px 0 0;
    font-size: clamp(0.5rem, 2.5vw, 1rem);
}

.post-cover {
    width: 200px;
    object-fit: cover;

    filter: grayscale(100%);
}
