@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --light-bg-color: #ececec;
  --grey-bg-color: #c5c5c5;
}

html {
    min-height: 100%;
    height: 100%;
}

body {
    display: block;
    font-family: "DM Mono", "monospace", Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#app {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.no-select {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard syntax */
}

nav {
    background-color: white;
    display: flex;
    flex-direction: column;
    padding-top: 5em;
    padding-bottom: 40px;
    padding-left: 2em;
    padding-right: 2em;
    width: 25%;
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    overflow-y: hidden;
    z-index: 1001;
    border-right: 1px solid var(--grey-bg-color);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.5s ease-in-out;
}

.nav-button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    font-size: 18px;
}

.nav-button-text * {
    text-decoration: none;
    color: inherit;
}

.nav-button-text .url-active {
    color: rgb(54, 134, 255);
}

.nav-button-line.url-active {
    border-bottom: 2px solid rgb(54, 134, 255);
}

.nav-button-line {
    border-bottom: 2px solid transparent;
    background-color: transparent;
    width: 100%;
    transition: all 0.2s ease-out;
}

.nav-button-text:hover .nav-button-line.url-inactive  {
    animation-name: border-bottom-fill;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    background-color: rgb(54, 134, 255);
}

@keyframes border-bottom-fill {
    0% {
        border-bottom: 2px solid rgb(54, 134, 255);
        width: 0%;
    }

    50% {
        border-bottom: 2px solid rgb(54, 134, 255);
        width: 130%;
    }

    100% {
        border-bottom: 2px solid rgb(54, 134, 255);
        width: 100%;
    }
}

main {
    flex: 1;
    margin-left: 25%; 
    padding: 0px 10px;
    width: 60%;
    transition: all 0.5s cubic-bezier(1, 0, 0, 1);
    min-height: 100vh;
}

.title-url {
    text-decoration: none;
    color: black;
}

article.post-list {
    display: flex;
    padding: 30px;
    align-items: center;
}

article.post-view {
    display: block;
    padding: 50px 10%;
}

.post-content span {
    color: #7e7e7e;
}

.post-content p {
    padding: 10px 0;
}

.post-header {
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
}


img.circle {
    clip-path: circle();
    max-width: 200px;
}

img.medium {
    max-width: 120px;
}

img.small {
    max-width: 65px;
}

img.full {
    max-height: 50vh;
    max-width: 100%;
}

.post-header::before {
  content: "";
  position: absolute;
  top: 0;
  z-index: -1;

  display: block;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px);
  
  animation: fadeInBackground 2s ease-in-out forwards;
}

@keyframes fadeInBackground {
  0% {
    opacity: 0;
    background-position: unset;
  }
  80% {
    opacity: 0.95;
  }

  100% {
    opacity: 1;
  }
}

.post-list .post-header {
    padding: 0 20px;
}

a .post-meta-item {
    background-color: red; 
    text-decoration: none;
    color: rgb(54, 134, 255);
    transition: all 0.1s ease-out;
}

.post-content .post-read-more {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(54, 134, 255);
    transition: all 0.1s ease-out;
}

a .post-meta-item:hover {
    color: rgb(30, 26, 226);
}

.post-content .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.post-content .post-meta .post-meta-item {
    padding-right: 0;
}

.post-content .post-meta .post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--light-bg-color);
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #555;
    text-decoration: none;
}

.post-content .post-meta a.post-meta-item {
    color: rgb(54, 134, 255);
}

.post-content .post-meta a.post-meta-item:hover {
    background-color: #e0e0e0;
    color: rgb(30, 26, 226);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    padding: 30px;
    background-color: var(--light-bg-color);
}

.post-footer div {
    margin-right: 30px;
}

footer {
    background-color: var(--light-bg-color);
    width: 350px;
    word-wrap: break-word;
}

@media screen and (max-width: 800px) {
    #app {
        flex-direction: column;
        width: 100%;
    }

    nav {
        position: fixed;
        width: 100%;
        padding: 1vh;
        overflow-y: visible;
        border-right: none;
        border-bottom: 1px solid var(--grey-bg-color);
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        top: 0;
        bottom: unset;
    }

    main {
        margin: 0;
        width: 100%;
        padding: 0;
        text-align: center;
        background: unset;
    }
    

    .post-meta {
        justify-content: center;
    }

    article.post-list {
        flex-direction: column;
        padding: 15px;
    }

    article {
        text-align: left;
    }

    article.post-view {
        padding: 0px;
    }


    .post-content h2 {
        text-align: center;
    }

    .post-list .post-header {
        padding: 20px 0;
    }

    footer {
        word-wrap: break-word;
    }
}

.about-page {
    padding: 40px;
    text-align: center;
}

.about-logo {
    width: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--light-bg-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-page h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.8;
    font-size: 1.1em;
    color: #555;
}

.about-content p {
    margin-bottom: 20px;
}

