/* Colours */
:root {
  --kaworu-red: #C54343;
  --kaworu-red-light: #f06b6b;
  --kaworu-gray-hair: #b3b1b6;
}

/* Blog Fonts */
@font-face {
  font-family: Alagard;
  src: url(/css/fonts/alagard.ttf);
}

@font-face {
  font-family: PixelOperator;
  src: url(/css/fonts/PixelOperator.ttf);
  font-weight: normal;
}

@font-face {
  font-family: PixelOperator;
  src: url(/css/fonts/PixelOperator-Bold.ttf);
  font-weight: bold;
}

/* Contenedor principal */
.blogspace {
    font-family: PixelOperator !important;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;

    width: 80%;
    margin: 30px auto;
    border: 2px solid #00ff66;
}

/* Barra superior */
.window-bar {
    background: #00ff66;
    color: black;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.blog-close-btn{
    text-decoration: none;
    color: black;
}

/* Layout */
.content {
    display: flex;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0px;
    width: 30%;
    height: fit-content;
    padding: 20px;
}

a.sidebar-title {
    text-decoration: none;
    font-family: Alagard !important;
    width: 100%;
    font-size: 9vw;
    text-align: center;
    color: #00ff66;
    margin: auto;
}

.blog-desc {
    background: #00ff66;
    color: black;
    padding: 10px;
    margin: 0 0 15px 0;
}

.categories {
    border: 2px solid #00ff66;
    background-color: #1B3B24;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

/* Posts */

hr{
    margin: 24px 0;
    border: 1px #00ff66 solid;
}

.blog-content {
    width: 70%;
    padding: 20px;
}

.post {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 40px;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.post-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    vertical-align: center;
    margin-top: 10px;
}

.post-text{
    font-size: 18px;
}

.post-text strong{
    font-weight: bold;
    color: #00ff66;
}

.post-text h2{
    font-size: 28px;
    margin-top: 2em;
}

.thumbnail {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
    background: #00ff66;
    margin-right: 20px;
}

img{
    width: 100%;
}

.date {
    font-size: 18px;
    opacity: 0.7;
}

.title {
    font-family: Alagard !important;
    font-size: 32px;
    margin: 5px 0;
}

.desc {
    font-size: 18px;
    opacity: 0.8;
}

.tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    border: 1px solid #00ff66;
    padding: 3px 8px;
    margin-right: 5px;
    border-radius: 10px;
    font-size: 16px;
    text-decoration: none;
}

.tag:hover{
    background-color: #1B3B24;
}

.read {
    margin-top: 10px;
    display: inline-block;
    background: #00ff66;
    color: black;
    padding: 5px 10px;
    font-weight: bold;
}

.index-nav{
    width: 100%;
    vertical-align: center;
}

.index-nav ul{
    display:flex; gap:10px; list-style:none;width:fit-content;margin: auto;
}

.categories {
    border: 2px solid #00ff66;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.categories-menu {
    border: 2px solid #00ff66;
    border-top: none;
    padding: 10px;
    display: none;
    animation: fadeIn 0.2s ease-in-out;
}

.categories-menu .tag {
    display: inline-block;
    margin: 5px 5px 0 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width:768px){
    .content{
        display: flex !important;
        flex-direction: column !important;
    }
    
    .blog-content {
    width: 100%;
    padding: 20px;
    }

    .sidebar{
        position:static;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    a.sidebar-title {
    font-size: 30vw;

}
}