.page {
  font-family: "Roboto", sans-serif;
  background-color: #BF7230;
}

.menu {
  display: flex;
  align-items: flex-end;
}

.menu__logo,
.menu__item {
  color: black;
  text-transform: uppercase;
  padding: 14px 16px;
  font-size: 1.5em;
  text-shadow:
    1px 1px 1px #A65C00,
    2px 2px 1px #A65C00;
}

.menu__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.menu__item {
  text-decoration: none;
  transition: color 0.3s;
}

.menu__item_selected {
  color: darkorange;
}

.menu__item:hover {
  color: #FF9840;
  text-decoration: underline;
}

.article-list {
  padding: 20px;
}

.post-view {
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.post-view__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.post-view__nav-slot {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.post-view__nav-slot--start {
  justify-content: flex-start;
}

.post-view__nav-slot--end {
  justify-content: flex-end;
}

.post-view__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  font-size: 1.75em;
  text-decoration: none;
  color: black;
  background-color: #FF9840;
  outline-style: groove;
  transition: color 0.3s, background-color 0.3s;
}

.post-view__arrow:hover {
  color: #2c3e50;
  background-color: #ffc078;
}

.post-view__article {
  margin: 0;
}

.error-post {
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.error-post__title {
  margin-top: 0;
}

.error-post__message {
  font-size: 1.1em;
}

.error-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.error-post__link {
  color: black;
  text-transform: uppercase;
  font-weight: bold;
}

.error-post__link:hover {
  color: #2c3e50;
}

.post-form-page {
  padding: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.post-form-page__title {
  margin-top: 0;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #FF9840;
  outline-style: groove;
  padding: 20px;
}

.post-form__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: bold;
}

.post-form__input,
.post-form__textarea {
  font: inherit;
  padding: 8px 10px;
  border: 2px solid #A65C00;
  border-radius: 4px;
}

.post-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.post-form__hint {
  font-weight: normal;
  font-size: 0.9em;
}

.post-form__submit {
  align-self: flex-start;
  font: inherit;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  background-color: #BF7230;
  border: 2px solid #A65C00;
}

.post-form__submit:hover {
  background-color: #ffc078;
}

.post {
  background-color: #FF9840;
  outline-style: groove;
  padding: 20px;
  margin: 20px;
}

.post__title {
  margin-top: 0;
}

.post__image {
  margin-top: 12px;
}

.post__content code:not([class*="language-"]) {
  background: #f4f4f4;
  color: #A65C00;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

pre[class*="language-"] {
  background: #2c3e50 !important;
  border: 2px solid #A65C00;
  border-radius: 5px;
  padding: 1rem;
  overflow-x: auto;
}

code[class*="language-"] {
  color: #FF9840;
  font-size: 0.9em;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #BF7230;
    border-bottom-color: #FFF;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    }


.footer {
  text-align: center;
  font-weight: 900;
}

.footer__like {
  text-decoration: none;
}

.footer__like:hover {
  color: pink;
}
