/*
  Copyright 2025 Imago Veritatis (Timoh de Solarys)

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1e23;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 0.5%;
    padding-right: 0%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2e35;
    padding: 10px 20px;
    margin-right: 0.5%;
    border-radius: 8px;
    position: relative;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    z-index: 10;
}

.main-header .logo {
    height: 40px;
    width: auto;
}

.main-header .category {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
    color: #ffffff;
    text-align: center;
    flex-grow: 1;
}

.header-button {
    font-size: 1rem;
    color: #66aaff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #333;
    transition: background-color 0.3s ease;
    margin-left: 5px;
    border: none;
    cursor: pointer;
}

.header-button:hover {
    background-color: #444;
}

#article-container {
    width: 100%;
    max-width: 1200px;
    background-color: #313338;
    border-radius: 8px;
    padding: 20px;
    margin-top: 0.5%;
    margin-right: 0.5%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1920px) {
    #article-container {
        margin-right: 1%;
        margin-top: 1%;
    }

    .main-header{
        margin-right: 1%;
    }

    body {
        padding: 1%;
        padding-right: 0%;
    }
}

@media screen and (max-width: 960px) {
    #article-container {
        margin-right: 1.5%;
        margin-top: 1.5%;
    }

    .main-header{
        margin-right: 1.5%;
    }

    body {
        padding: 1.5%;
        padding-right: 0%;
    }
}

@media only screen and (max-width: 600px) {
    #article-container {
        margin-right: 2%;
        margin-top: 2%;
    }

    .main-header{
        margin-right: 2%;
    }

    body {
        padding: 2%;
        padding-right: 0%;
    }
}

.article-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.article-image {
    height: auto;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 8px;
}

.article-body {
    font-size: 1rem;
    color: #d0d0d0;
    line-height: 1.8;
}

.article-body h2, .article-body h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #f0f0f0;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body blockquote {
    background-color: #3b3f46;
    padding: 10px 20px;
    margin: 20px 0;
    font-style: normal;
    color: #d0d0d0;
    border-radius: 8px;
}

.article-body code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #444;
    padding: 3px 5px;
    border-radius: 5px;
    color: #f0f0f0;
}

.article-body pre {
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    color: #f0f0f0;
}

.article-body a {
    color: #66aaff;
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body ul, .article-body ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.article-body li {
    margin-bottom: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #313338;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 100;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #444848;
}

.dropdown-separator {
  border: none;
  border-top: 1px solid #555;
  margin: 8px 0;
}