* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;}
html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    height: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    padding-top: 102px;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}
ul, ol {list-style: none;}
a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;}
img {
    max-width: 100%;
    height: auto;}
table {
    border-collapse: collapse;
    width: 100%;}
button {
    border: none;
    background: none;
    cursor: pointer;
    -webkit-appearance: none;}

@font-face {
    font-family: "Natasha";
    src: url("../assets/fonts/Natasha/Natasha.woff") format("woff2"),
    url("../assets/fonts/Natasha/Natasha.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --white: #ffffff;
    --black: #000000;

    --gray: #cccccc;
    --gray-light: #f5f5f5;
    --orange: #E55137;
    --red_usssr: #b02d23;
    --red_light: #c93227;
}

main {
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: fit-content;
    overflow: hidden;
    padding-bottom: 100px;
}

.all-posts {
    width: 80%;
    max-width: 740px;
}

.nav-wrap {
    border-bottom: 2px solid var(--gray);
    position: fixed;
}

.nav-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    box-shadow: inset 0 0 0 3000px rgba(150, 150, 150, 0.192);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.publication-wrap {
    will-change: transform;
    transform: translateZ(0);
    overflow: hidden;
    margin: 40px auto auto;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    /*width: 70%;*/
    max-width: 676px;
    /*max-width: 576px;*/
    /*min-width: 360px;*/
    height: auto;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.publication-wrap:hover {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
}

.publication-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    box-shadow: inset 0 0 0 3000px rgba(150, 150, 150, 0.192);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.publication-wrap .publication-header {
    text-align: left;
    width: 100%;
    height: 100%;
    margin: 10px 0 10px 18px;
    padding: 0;
}

.publication-wrap .publication-header #publication-title {
    font-family: 'Natasha', Arial, sans-serif;
    font-size: 1.3em;
    color: var(--black);
    margin-bottom: 10px;
    margin-left: 0;
    display: block;
    text-align: left;
}

.publication-wrap .publication-header h1 #publication-author {
    font-size: 1em;
    font-family: 'Gotham Pro Bold', Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    margin: 30px 0;
    color: rgb(205,19,45);
    text-align: center;
    padding-right: 7px;
    border-right: 2px solid var(--black);
}

.publication-content-wrap {
    max-width: 676px;
}

.publication-wrap .publication-content #publication-image {
    display: block;
    margin: 20px auto;
    max-height: 636px;
    min-height: 100px;
    border: 3px groove hsla(316, 0%, 50%, 0.5);
}

.publication-wrap .publication-content #publication-description {
    /*font-size: 1.2em;*/
    color: var(--black);
    margin: 15px 20px;
    text-wrap: pretty;
}

.publication-wrap .publication-footer {
    display: flex;
    align-items: center;
    margin: 20px 30px;
}

.publication-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.publication-wrap #publication-tag {
    font-size: 1.1em;
    color: rgb(205,19,45);
    text-align: center;
    margin: 0 4px;
    font-family: 'Gotham Pro Bold', Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-wrap: nowrap;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.7px;
}

.publication-wrap #publication-link {
    margin-left: auto;
    letter-spacing: 0.7px;
    font-family: 'Natasha', Arial, sans-serif;
    color: var(--white);
    background-color: var(--black);
    padding: 10px 20px;
    /*font-size: 1.3em;*/
    transition: background-color 0.15s ease;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.publication-wrap #publication-link:hover {
    background-color: rgb(205,19,45);
}

.publication-wrap #publication-title {
    font-family: 'Natasha', Arial, sans-serif;
    /*font-size: 2em;*/
    color: var(--black);
    margin-bottom: 10px;
    display: block;
    text-align: left;
    /*text-wrap: balance;*/
}
.publication-wrap #publication-author {
    font-size: 1em;
    color: rgb(205,19,45);
    font-family: 'Gotham Pro Bold', Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    padding-right: 7px;
    border-right: 2px solid var(--black);
    margin-right: 8px;
}
.publication-wrap #publication-date {
    font-size: 1em;
    color: var(--black);
    margin-left: 8px;
}
.publication-wrap #publication-description {
    color: #222;
    margin: 18px 0 10px 0;
    text-align: justify;
    line-height: 1.4;
    -webkit-text-wrap: balance;
    text-wrap: balance;
}
.publication-tags-container #publication-tag {
    font-size: 1.08em;
    color: rgb(205,19,45);
    margin: 0 6px 0 0;
    font-family: 'Gotham Pro Bold', Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.7px;
    transition: color 0.15s;
    -webkit-transition: color 0.15s ease;
}
.publication-tags-container #publication-tag:hover {
    color: var(--black);
}
#publication-link {
    margin-left: auto;
    font-family: 'Natasha', Arial, sans-serif;
    color: var(--white);
    background-color: var(--black);
    padding: 10px 22px;
    font-size: 1.15em;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.12);
    transition: background-color 0.18s, color 0.18s;
    -webkit-transition: background-color 0.18s ease, color 0.18s ease;
    font-weight: bold;
    letter-spacing: 0.7px;
}
#publication-link:hover {
    background: rgb(205,19,45);
    color: var(--white);
}
.publications-loader {
  text-align: center;
  color: #c93227;
  margin: 18px 0;
}
.publications-end {
  text-align: center;
  color: #888;
  margin: 18px 0;
}
.publications-error {
  text-align: center;
  color: #c93227;
  margin: 18px 0;
}

.search-results-header {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background-color: rgba(192, 192, 192, 0.75);
  border-radius: 10px;
  border-left: 4px solid rgb(205,19,45);
}

.search-results-header h2 {
  font-family: 'Natasha', Arial, sans-serif;
  font-size: 1.5em;
  color: var(--black);
  margin: 0;
}

.no-search-results {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background-color: rgba(192, 192, 192, 0.5);
  border-radius: 15px;
  border: 1px solid rgba(192, 192, 192, 0.2);
}

.no-search-results h3 {
  font-family: 'Natasha', Arial, sans-serif;
  font-size: 1.4em;
  color: rgb(205,19,45);
  margin-bottom: 15px;
}

.no-search-results p {
  font-size: 1.1em;
  color: var(--black);
  line-height: 1.4;
}

.no-posts-message {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background-color: rgba(192, 192, 192, 0.5);
  border-radius: 15px;
  border: 1px solid rgba(192, 192, 192, 0.2);
}

.no-posts-message h3 {
  font-family: 'Natasha', Arial, sans-serif;
  font-size: 1.4em;
  color: rgb(205,19,45);
  margin-bottom: 15px;
}

.no-posts-message p {
  font-size: 1.1em;
  color: var(--black);
  line-height: 1.4;
}

.d-none {
  display: none;
}
