@font-face {
    font-family: "Adwaita Sans";
    src: url('../fonts/AdwaitaSans-Regular.ttf');
}

@font-face {
    font-family: "Adwaita Mono";
    src: url('../fonts/AdwaitaMono-Regular.ttf');
}

body {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0;
    background-color: #e0e0e0;
    min-height: 100vh;
    color: #3f3f3f;
    font-family: "Adwaita Sans", serif;
    font-size: 1rem;
}

code {
    font-family: "Adwaita Mono", monospace;
    font-size: 0.9rem;
    color: #475ca7;
}

pre {
    font-family: "Adwaita Mono", monospace;
    font-size: 0.9rem;
    color: #475ca7;
    background-color: #d4d4d4;
    padding: 2px;
    border: 1px solid #c0c0c0;
    border-radius: 5px;
    overflow-x: scroll;
}

hr {
    width: 100%;
    color: #d8d8d8;
}

a {
    color: #916aad;
}

.site-brand {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 2.5rem;
    margin: 0;
}

.controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: #c0c0c0;
    padding: 5px;
}

.control-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    padding: 5px;
}

.contents {
    display: flex;
    flex: 1 1;
    gap: 5px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    
    @media screen and (max-width: 768px) {  
        flex-direction: column;

        .blog-card-list {
            width: 90%;
            max-width: 90%;
        }

        .blog-cards {
            width: 100%;
            padding: 5px;
        }
    }
}

.contents-admin {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

.blog-card-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex: 1 1;
    max-width: 800px;
    margin: 0 auto;
}

.blog-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1;
    width: 90%;
    max-width: 800px;
    align-content: flex-start;
    margin: 0 auto;
    padding: 10px;
    gap: 30px;
}


.blog-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    max-width: 100%;
    justify-content: space-between;
    height: 10rem;
    background-color: #e8e8e8;
    text-decoration: none;
    color: #3f3f3f;
    border: 1px solid #a0a0a4;
    border-radius: 5px;
    padding: 5px;
    transition: box-shadow 0.5s ease;
    cursor: pointer;
}


.blog-card:hover {
    box-shadow: #c0c0c0 5px 5px 20px;
}

.blog-card-title {
    text-align: center;
    font-weight: bold;
    margin: 0 0 3px 0;
}

.blog-card-image {
    padding-top: 5px;
}

.blog-card-contents {
    flex: 1 1;
    padding-top: 5px;
}

.blog-card-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.89em;
    margin-top: 10px;
}

.comments-number {
    color: #475ca7;
}

.comments-text {
    color: #919191;
}

.date {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    color: #475ca7;
}

.blog-options {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex: 1 1;
    justify-content: center;
    overflow-wrap: break-word;
    word-break: break-word;
    background-color: #c0c0c0;
    max-width: clamp(200px, 10vw, 400px);
    padding: 5px;

    @media screen and (max-width: 768px) {  
        flex-direction: row;  
        max-width: 100%  
    }
}

.blog-option {
    display: flex;
    flex-direction: column;
    flex: 1 1;
    background-color: #e0e0e0;
    border: 1px solid #a0a0a4;
    border-radius: 5px;
    padding: 5px;

    @media screen and (max-width: 768px) {  
        max-width: 45%  
    }
}

.blog-option-title {
    text-align: center;
    font-weight: bold;
    margin: 0 0 3px 0;
}

.blog-option-dates {
    display: flex;
    flex-direction: column;
}

.blog-option-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #c0c0c0;
    padding: 10px;
}

.footer-language {
    display: flex;
    gap: 5px;
    align-items: center;
    max-width: 100%;
    height: auto;
}

.text {
    /*display: flex;
    flex-direction: column;
    flex: 1 1;
    overflow-wrap: break-word;
    word-break: break-word;*/
    max-width: 1000px;
    /*justify-content: flex-start;
    align-content: flex-start;*/
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.text-title {
    display: flex;
    flex-direction: row;
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0;
    padding-bottom: 30px;
    font-size: 2rem;
}

.text-heading {
    display: flex;
    flex-direction: row;
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 0;
    padding-bottom: 15px;
    padding-top: 15px;
    font-size: 1.5rem;
}

.post-content {
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    
    img {
        max-width: 100%;  
        height: auto;
    }
}

.button {
    background-color: #c6c6c6;
    color: #3f3f3f;
    border: 2px solid #aaaaaa;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    padding: 1rem;
    min-width: 4rem;
    transition: background-color 0.5s;
    cursor: pointer;
}

.button:hover {
    background-color: #e0e0e0;
}

.active {
    background-color: #93c2e4;
}

.blog-post-writer {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex: 0 1;
    width: 60%;
    align-content: flex-start;
    margin: 0 auto;
    padding: 10px;
    gap: 30px;
}

.contents-text-box {
    width: 80%;
    height: 600px;
}

.tags {
    display: flex;
    flex-direction: row;
    /*flex: 0 0;*/
}

.tag {
    color: white;
    text-decoration: none;
    background-color: #916aad;
    border: 1px solid #916aad;
    border-radius: 5px;
    padding: 2px;
    margin: 2px 2px;
}