﻿@font-face {
    font-family: icons;
    src: url('icons.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: merriweather;
    src: url('merriweather.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: Parastoo;
    src: url('Parastoo-WOL.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: Parastoo;
    src: url('Parastoo-Bold-WOL.woff2') format('woff2');
    font-weight: 700;
}

:root {
    --maxWidth: 700px;
    --cP: #1179a7;
    --cS: #cfd5e5;
    --cL: #006fb7;
    --cLog1: #eee7cb;
    --cLog2: #6d6856;
    --cBorder: #eee;
    --cSuccess: #2c662d;
    --cSuccessBG: #fcfff5;
    --cSuccessBR: #a3c293;
    --cNegative: #9f3a38;
    --cNegativeBG: #fff6f6;
    --cNegativeBR: #e0b4b4;
    --cInfo: #276f86;
    --cInfoBG: #f8ffff;
    --cInfoBR: #a9d5de;
    --cWarning: #ccb200;
    --cWarningBG: #fffaf3;
    --cWarningBR: #c9ba9b;
}

html {
    scroll-behavior: smooth;
}

body,
button,
input,
optgroup,
select,
textarea {
    font-family: 'Parastoo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    font-size: 16px;
    color: #2a2a2a;
}

textarea {
    unicode-bidi: plaintext;
}

a {
    text-decoration: none;
    color: var(--cL);
}

p {
    line-height: 2;
    margin-top: 0;
    margin-bottom: 5px;
    text-align: justify;
}

h1 {
    text-align: start;
    font-size: 24px;
    margin: 10px 0 5px;
}

h2 {
    font-family: 'Parastoo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    margin: 25px 0 10px 0;
    border-bottom: 1px solid var(--cBorder);
}

h3 {
    margin: 15px 0 0;
}

ul {
    margin: 0;
}

iframe {
    border: none;
    border-radius: 2px;
}

    iframe.full {
        width: 100%;
        height: 400px;
    }
/*home*/
.home-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 50px 10px;
}

@media screen and (max-width: 600px) {
    .home-logo {
        flex-direction: column;
        justify-items: center;
    }

        .home-logo > div:nth-child(2) {
            order: 1;
        }
}

.home-logo > div {
    font-size: 24px;
    padding: 10px;
    color: var(--cP);
    font-weight: bold;
    text-align: center;
}

    .home-logo > div > img {
        width: 200px;
    }

.home-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

.home-socialmedia {
    padding: 20px;
}

    .home-socialmedia > a {
        color: var(--cP);
        padding: 0 10px;
    }

ul.home-langs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-inline-start: 0;
    padding: 10px 0;
}

    ul.home-langs > li {
        display: block;
        margin: 5px;
        font-size: 20px;
        border-radius: 5px;
    }

        ul.home-langs > li:hover {
            background: var(--cP);
        }

        ul.home-langs > li > a {
            border: 1px solid var(--cP);
            border-radius: 5px;
            padding: 5px 10px;
            display: block;
            color: var(--cP);
        }

            ul.home-langs > li > a:hover {
                color: #fff;
            }
/**/
header {
}

nav {
    max-width: var(--maxWidth);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px 0;
}

@media screen and (max-width: 600px) {
    nav {
        display: grid;
        justify-content: center;
    }

    .navLinks {
        padding: 10px 0;
    }
}


div.logo > a {
    display: flex;
    align-items: center;
    color: var(--cP);
    font-weight: bold;
    font-size: 22px;
}

img.logo {
    height: 35px;
    padding-inline-end: 5px;
    padding-bottom: 5px;
}

.navLinks {
    display: flex;
}

    .navLinks > div {
        padding-inline-start: 10px;
    }

.navigation {
    background: var(--cP);
    color: #fff;
}

    .navigation > .wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
    }


.quickSearch {
    background-color: #fff;
    border-radius: 5px;
    padding: 1px 5px;
}

input.quickSearch {
    background-color: #fff;
    border: none;
    margin: 0;
    padding: 5px;
    word-wrap: break-word;
    outline: none;
}

    input.quickSearch:focus {
        border: none;
    }

.quickSearch > button {
    color: #444;
    background: #fff;
    border: 0;
    cursor: pointer;
    padding: 0;
}

    .quickSearch > button:focus {
        border: 0;
    }

/**/
main {
    padding: 10px;
}

.wrapper {
    max-width: var(--maxWidth);
    margin: 0 auto;
    padding: 5px;
}

.contents-nav {
    position: relative;
    max-width: var(--maxWidth);
    margin: 0 auto;
}

.contents-btn {
    cursor: pointer;
    font-weight: bold;
    padding-inline-start: 10px;
}

.contents-menu {
    position: absolute;
    z-index: 9;
    background: #fff;
    padding: 5px;
    border: var(--cBorder) solid 1px;
    column-count: 4;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    display: grid;
}

@media screen and (max-width: 600px) {
    .contents-menu {
        display: grid;
    }
}


ul.contents-menu > li {
    display: block;
    padding: 5px;
    border-inline-start: 3px solid transparent;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    min-width: 150px;
}

    ul.contents-menu > li:hover {
        background: #f1f1f1;
        border-inline-start: 3px solid var(--cP);
    }

    ul.contents-menu > li > a {
        display: block;
    }
/**/
.index-section {
    text-align: center;
    padding: 30px;
}

    .index-section > h1 {
        color: var(--cP);
        font-size: 30px;
        text-align: center;
    }

.category-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.category-card {
    margin: 5px;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
    width: 120px;
}

    .category-card:hover {
        background: var(--cP);
        color: #fff;
        transition: background-color 0.4s ease;
    }

    .category-card > .card-title {
        font-size: 22px;
    }

.index-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    margin-bottom: 50px;
}

.index-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100px;
    margin: 5px;
    padding: 10px 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
}

    .index-card > .card-title {
        font-weight: bold;
        font-size: 18px;
    }

    .index-card > .card-type {
        align-self: start;
        font-size: 12px;
        border: 1px solid var(--cL);
        border-radius: 5px;
        padding: 0 5px;
        color: var(--cP);
    }

ul.card-tags {
    list-style: none;
    display: inline-flex;
    padding-inline-start: 0;
    padding: 10px 0;
}

    ul.card-tags > li {
        display: inline-block;
        font-size: 12px;
        border: 1px solid var(--cL);
        border-radius: 5px;
        padding: 0 5px;
        margin-inline-end: 5px;
    }
/**/
footer {
    border-top: 1px solid var(--cS);
    padding: 20px 10px;
}

.footer {
    max-width: var(--maxWidth);
    margin: 0 auto;
    font-size: 14px;
}

.footer-links {
    padding-top: 15px;
}

    .footer-links > a {
        padding-inline-end: 10px;
        color: #111;
    }

.socialmedia {
    padding-top: 15px;
}

    .socialmedia > a {
        padding-inline-end: 20px;
        color: #666;
    }

/*dropdown*/
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdownb {
    cursor: pointer;
    user-select: none;
    padding: 5px 10px;
    border: 1px solid var(--cBorder);
    border-radius: 5px;
    margin: 2px;
}

    .dropdownb::after {
        content: ' ▼';
        font-size: 12px;
        color: #888;
    }

.dropdownm {
    visibility: hidden;
    position: absolute;
    z-index: 10;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    text-align: start;
    white-space: nowrap;
    user-select: none;
    right: auto;
    left: 0;
}

.dropdown:hover .dropdownm {
    visibility: visible;
}

.dropdownm a {
    color: #888;
    display: block;
    cursor: pointer;
    background-color: #fff;
    padding: 5px 15px;
    text-decoration: none;
    user-select: none;
    transition: background-color 0.1s ease;
}

    .dropdownm a:hover {
        background-color: var(--cP);
        color: #fff;
    }

.dropdownm.rtl {
    right: auto;
    left: 0;
}

.dropdownm.ltr {
    right: 0;
    left: auto;
}

/* file manager*/
table.fileList {
    border-collapse: collapse;
    margin: 10px 5px;
    width: 100%;
    text-align: start;
}

.fileList tr td, .fileList tr th {
    padding: 0 5px;
    border-bottom: 1px solid var(--cBorder);
}

    .fileList tr td:not(.n), .fileList tr th:not(.n) {
        width: 1%;
    }

td.n > div {
    display: flex;
}

/*tags*/
table.tags {
    border-collapse: collapse;
    margin: 10px 5px;
    width: 100%;
    text-align: center;
}


.tag > td {
    padding: 0 5px;
    border: 1px solid var(--cBorder);
}

.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}

.tag:nth-child(even) {
    background: #fafafa;
}

/* Forms */

.bigbutton {
    padding: 5px 15px;
    color: #fff;
    background: var(--cP);
    border-radius: 5px;
    font-size: 16px;
    transition: text-shadow 0.2s;
}

    .bigbutton:hover {
        text-shadow: 0 0 5px #fff;
        font-weight: bold;
    }

.fields {
    padding: 5px;
}

    .fields > .field {
        margin: 2px;
        padding: 2px;
        display: flex;
    }

    .fields > .field-block {
        margin: 5px;
    }

.field-block textarea, .field-block input, .field-block label {
    width: 100%;
    display: block;
}

.field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.field.center {
    justify-content: center;
}

.fields > .field > label {
    padding: 5px;
}

.required:after {
    content: " *";
    color: red;
}

select, input, textarea {
    border: 1px solid #eee;
    border-radius: 5px;
    line-height: 2;
    padding: 1px 5px;
    outline: none;
}

select {
    width: 100%
}

    select:focus, input:focus, textarea:focus {
        border: 1px solid var(--cL);
    }

textarea {
    width: 100%;
    box-sizing: border-box;
}

select, input[type="text"], input[type="password"], input[type="email"] {
    flex: 1;
    box-sizing: border-box;
    unicode-bidi: plaintext;
}

button, a.button {
    background-color: var(--cP);
    border: 1px solid var(--cBorder);
    border-radius: 5px;
    color: #fff;
    padding: 1px 10px;
    border: none;
    cursor: pointer;
    margin: 5px;
}

a.download-button {
    font-size: 16px;
    background-color: var(--cP);
    border: 1px solid var(--cBorder);
    border-radius: 5px;
    color: #fff;
    padding: 1px 10px;
    border: none;
    cursor: pointer;
    margin: 5px;
}

input[type=checkbox] {
    transform: scale(1.5);
    padding: 10px;
}

.link {
    text-align: center;
    font-size: 16px;
    padding: 5px;
}

.captcha {
    text-align: center;
}

    .captcha > img {
        border: 1px solid var(--cBorder);
        border-radius: 5px
    }

/* Bn */
input.Bn, button.Bn, .Bn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 50px;
    height: 36px;
    padding: 0 10px;
    margin: 0 5px;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: var(--cL);
    transition: background-color 0.4s ease;
}

    .Bn.small {
        min-width: 30px;
        height: 36px;
        padding: 0 3px;
        margin: 0 3px;
    }

    .Bn.delete {
        color: red;
    }

    .Bn:hover {
        background: #f2f2f2;
    }

    .Bn:active {
        background: #ddd;
        border: none;
    }

    .Bn:focus {
        background: #f2f2f2;
        border: none;
    }
/* entry */
#fileWrapper {
}

.entry-desc {
    padding: 5px;
}

.entry-files {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding-inline-start: 0;
    padding-block-end: 10px;
}

.entry-file {
    text-align: start;
    color: #000;
    margin: 10px 0;
    border-radius: 0;
    padding: 5px;
    background: #c0dee9;
    border-inline-start: 3px solid var(--cP);
    transition: background-color 0.4s ease;
    text-align: center;
}

.entry-filePreview {
    padding: 5px;
}

    .entry-filePreview audio {
        width: 100%;
    }

    .entry-filePreview .image {
        width: 100%;
    }

.entry-fileTitle {
    padding: 5px;
    font-size: 18px;
}

.entry-fileDesc {
    padding: 5px 0;
    font-size: 12px;
    font-weight: normal;
    color: #777;
}

    .entry-fileDesc > i.icon {
        font-size: 18px;
    }

#report {
    background: var(--cNegativeBG);
}

.entry-props {
    display: flex;
    flex-wrap: wrap;
    border-radius: 5px;
    font-size: 14px;
    padding: 5px;
    background: #f8f8f8;
    color: #666;
    margin: 10px 0;
}

    .entry-props .prop {
        padding: 10px 15px;
    }

        .entry-props .prop span {
            margin-inline-end: 3px;
            font-weight: bold;
        }

.prop span i.icon {
    color: #aaa;
    font-size: 16px;
}

ul.entry-tags {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    padding-inline-start: 0;
}

    ul.entry-tags > li {
        margin: 5px 10px;
    }

        ul.entry-tags > li > a {
            font-size: 14px;
            border-radius: 5px;
            padding: 0 5px;
            border: 1px solid var(--cP);
            color: var(--cP);
        }

            ul.entry-tags > li > a:hover {
            }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-window {
    max-width: 700px;
    margin: auto;
    border-radius: 5px;
    width: 95%;
    background-color: #fff;
    padding: 10px;
}
/*alerts*/
.alert {
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    text-align: center;
}

    .alert > .header {
        font-weight: 700;
    }

    .alert.success {
        color: var(--cSuccess);
        border: 1px solid var(--cSuccessBR);
        background-color: var(--cSuccessBG);
    }

    .alert.negative {
        color: var(--cNegative);
        border: 1px solid var(--cNegativeBR);
        background-color: var(--cNegativeBG);
    }

    .alert.info {
        color: var(--cInfo);
        border: 1px solid var(--cInfoBR);
        background-color: var(--cInfoBG);
    }

    .alert.warning {
        color: var(--cWarning);
        border: 1px solid var(--cWarningBR);
        background-color: var(--cWarningBG);
    }

.search-input {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    position: relative;
    background-color: #fff;
    border: 1px solid var(--cBorder);
    border-radius: 5px;
    margin: 0 8px;
}

    .search-input > button {
        padding: 0 10px;
        background-color: #fff;
        color: #333;
    }

    .search-input > .toggleKeyboard {
        cursor: pointer;
        padding: 1px;
    }

.toggleKeyboard > i {
    font-size: 24px;
    color: #333;
}

input.search {
    font-size: 16px;
    border-radius: 5px;
    background-color: #fff;
    border: none;
    margin: 0;
    padding: 5px;
    word-wrap: break-word;
    outline: none;
}

.noResults {
    line-height: 1;
    color: var(--cNegative);
    border: 1px solid var(--cNegativeBR);
    background-color: var(--cNegativeBG);
    padding: 5px 10px;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    margin: 20px;
}

.haveResults {
    line-height: 1;
    color: var(--cSuccess);
    border: 1px solid var(--cSuccessBR);
    background-color: var(--cSuccessBG);
    padding: 5px 10px;
    margin: 10px;
    font-size: 14px;
    border-radius: 5px;
}

.results {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

    .results > .result {
        padding: 10px 5px;
        border-top: 1px solid #ddd;
        border-inline-start: 3px solid transparent;
    }

        .results > .result:hover {
            background: #fafafa;
            border-inline-start: 3px solid var(--cP);
        }

.result-type {
    font-size: 12px;
    border: 1px solid var(--cL);
    border-radius: 5px;
    padding: 0 5px;
    color: var(--cP);
}

a.result-head {
    font-size: 20px;
    padding-inline-start: 5px;
    font-weight: bold;
}

.result-desc {
    color: #444;
    padding: 10px 0;
}

.prev-next {
    padding: 5px;
}

    .prev-next > .next {
        text-align: end;
    }

    .prev-next > .prev {
        text-align: start;
    }
/* virtual keyboard */
.keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    direction: ltr;
}

.key {
    flex: 1;
    user-select: none;
    display: inline-block;
    background-color: #adf;
    border-color: #e2e2e2;
    border-radius: 5px;
    min-width: 21px;
    margin: 1px;
    height: 24px;
    padding: 3px 1px;
    cursor: pointer;
}

    .key:hover {
        box-shadow: 0 0 2px #888;
    }

    .key.func {
        background-color: #1179a7;
        color: #fff;
    }

/* Page */
.metas {
    display: flex;
    justify-content: end;
    color: #888;
    font-size: 14px;
    padding-bottom: 15px;
}

    .metas > div {
        padding: 0 10px;
    }

.toolbar {
    display: flex;
}

    .toolbar > .tool {
        font-size: 11px;
        cursor: pointer;
        margin: 2px;
        padding: 2px 10px;
        border-radius: 3px;
        background-color: #eee;
    }

        .toolbar > .tool:hover {
            background-color: #ee5;
        }

/* ===== Added in the 2026 rewrite ===== */
/* Honeypot field for spam bots: invisible to people and screen readers. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
details.advanced-search { background: #eee; border-radius: 5px; margin: 5px; padding: 5px; }
/* Keyboard toggle and keys are real buttons now (keyboard accessible); keep the old look. */
button.toggleKeyboard, button.key { border: 0; font: inherit; cursor: pointer; }
button.toggleKeyboard { background: transparent; padding: 0 6px; }
.keyboard > div { display: flex; }
.prev-next a.button { display: inline-block; text-decoration: none; }
.dropdown:focus-within .dropdownm { visibility: visible; }
