html {
    background: rgb(14, 2, 117);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 15pt;
    color: white;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    height: 100vh;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-content: start;
}

header {
    background-color: white;
    color: #2c3e50;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: row;
}

    header img {
        height: 50px;
    }

.headertitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 30px;
    margin-top: auto;
    margin-bottom: auto;
}

header a {
    text-decoration: none;
}

.headerleft {
    display: flex;
    flex-direction: row;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-left: auto;
    text-align: center;
}

    nav a {
        font-size: 1rem;
        text-decoration: none;
        margin: auto;
    }

        nav a:hover {
            text-decoration: underline;
        }
a {
    color: #2c3e50;
}
a:visited {
    color: #2c3e50;
}
button {
    color: #2c3e50;
    background-color: white;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}
    button:hover {
        text-decoration: underline;
    }

#comment-section {
    max-width: 100%;
    border-top: 1px solid #ccc;
    padding: 10px;
    font-size: .875rem;
    /*line-height: 1.25rem;*/
    /*background: #f9f9f9;*/
}



.comment-input {
    width: 100%;
    min-height: 50px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius:10px;
    box-sizing: border-box;
    padding: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: block;
}
.btns-post-comment{
    display:flex;
}
.btn-post-comment {
    background-color: #0045AC;
    color: white;
    padding: 10px;
    border-radius: 25px;
    margin: 5px;
    margin-left: auto;
}

    .btn-post-comment:hover {
        background-color: #003584;
        text-decoration: none;
    }
[contenteditable=true]:empty:before {
    content: attr(placeholder);
    pointer-events: none;
    display: block; /* For Firefox */
}

.comment-list {
    padding: 5px;
    border-top: 1px solid #ccc;
}

/*.comment {
    background: #fff;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 3px;
    border: 1px solid #ddd;
    word-wrap: break-word;
    white-space: pre-wrap;*/ /* Preserve line breaks */
/*}*/
.comment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

/*.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: gray;
    margin-right: 10px;
}*/

.comment-content {
    flex: 1;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    width: calc(100% - 20px);
    
}
    .comment-content p{
        margin: 0px;
    }

    .username {
        font-weight: bold;
        color: #0079d3;
    }

.timestamp {
    font-size: 12px;
    color: gray;
    margin-left: 5px;
}

.reply {
    color: #0079d3;
    font-size: 12px;
    cursor: pointer;
    background-color: #f1f1f1;
}

    .reply:hover {
        text-decoration: underline;
    }

.replies {
    margin-left: 50px;
    border-left: 2px solid #ddd;
    padding-left: 10px;
}









#profile {
    display:flex;
    flex-direction: row;
    cursor: pointer;
    border-radius: 25px;
    width:150px;
}
#profile:hover {
    background-color: lightgray;
}
    #profilepic{
        border-radius:25px;
    }
#profilename {
    margin: auto 10px;
}
    #profilename #logout {
        display: none;
    }
    #profile:hover #profilename #profname {
        display: none;
    }
#profile:hover #profilename #logout {
    display: inline;
}
#logout {
    background-color: lightgray;
}
h1, h2 {
    color: #2c3e50;
}

p {
    margin-bottom: 15px;
}

#container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    flex: 1;
}

.tile {
    width: 375px;
    height: 400px;
    margin: 10px;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    font-weight: bold;
}

    .tile img {
        width: 375px;
        height: 300px;
        border-radius: 10px 10px 0px 0px;
    }

    .tile p a {
        text-decoration: none;
        margin: 5px;
    }

        .tile p a:hover {
            text-decoration: underline;
        }

footer {
    background-color: #333;
    color: white;
    padding: 10px;
    margin-top: auto;
}

.blog {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    color: #333;
    text-align: left;
    line-height: 1.6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.blogtext {
    padding: 20px;
}

.blog img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0px 0px;
}

.author {
    color: gray;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-bottom: solid;
        padding-bottom:0px;
    }

    nav {
        margin-left: 0px;
        margin-bottom: 10px;
    }

    #container {
        padding: 0px;
    }

    .blog {
        max-width: 100%;
        margin: 0px;
        border-radius: 0px;
    }
    .blog img {
        border-radius: 0px;
    }
/*    #profile {
        width: 100px;
    }*/
/*    #profilename {
        display: none;
    }*/
}

.words {
    width: calc(100% - 50px);
    font-size: 20pt;
    margin: 25px auto;
    padding: 25px;
    cursor: pointer;
    box-sizing: border-box;
    flex: 1;
}

.btns {
    display: flex;
    flex: 0.2;
    width: calc(100% - 50px);
    margin: 25px 25px 5px 25px;
}

.info {
    display: flex;
    align-content: space-around;
    flex: 0.1;
    width: calc(100% - 50px);
    margin: 5px 25px 25px 25px;
}

.translation {
    text-align: center;
}

.btn {
    background-size: 57px 57px;
    width: 60px;
    height: 60px;
}

.btn-ok {
    background-color: green;
    color: white;
}

.btn-nok {
    background-color: red;
    color: white;
}

.btn-fetch {
    background-color: mediumvioletred;
    color: white;
}

.btn-switch {
    background-color: orange;
}

#index {
    font-size: 12pt;
}

input {
    width: 30px;
    height: 20px;
    align-self: flex-end;
    font-size: 12pt;
}

.invisible {
    color: rgb(14, 2, 117);
}
