/* 1. Public components */
body {
    background-color: #F6F2E0;
    /* background-color: #F5F3F0;*/
    /* background-color: #F0ECE0;*/
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    /* line-height: 20px;*/
    color: #333333;
}

a {
    color: #333333;
    text-decoration: none;
}

button, input[type="submit" i] {
    font-family: 'Roboto', sans-serif;
}

section {
    line-height: normal;
    padding-block-start: 4px;
    padding-block-end: 12px;
    white-space: pre-wrap;
}

textarea {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
}

a.link:visited {
    color: #999;
}

.content-wrapper {
    margin: 10px;
    display: flex;
    justify-content: center;
}

.content {
    min-height: 100px;
    justify-content: center;
    width: 75%;
}

.host {
    color: #808080;
    font-size: 12px;
 }

.anchor-active {
    color: #ff6600;
    text-decoration-line: none;
}

hr {
    margin: 20px;
}

.prompt-message {
    display: inline-block;
    color: #ff6600;
}

.error-message {
    color: #ff0000;
}

.hidden {
    display: none;
}

.span-arrow {
    display: inline-block;
    color: #ff6600;
    margin-right: 8px;
}

@media (max-width: 767px) {
.content-wrapper {
    margin-left: 5px;
    margin-right: 5px;
}

.content {
    width: 95%;
}
}

/* 1. Public components end */

/* 2. Header section */
header {
    border-bottom: thin dashed #808080;
    border-bottom
    padding-top: 24px;
    padding-bottom: 12px;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: space-around;
}

header h1 {
    font-size: 24px;
    line-height: 24px;
    font-weight: bolder;
}
header h1 a {
    text-decoration: none;
}
header h3 {
    font-weight: normal;
    font-size: 12px;
    line-height: 12px;
}

header a {
  text-decoration: none;
}

header span {
    font-size: small;
}

.logo {
    margin-left: 10px;
    align-items: center;
    flex: 7;
}

.menu {
    margin-left: 20%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 3;
}

.menu-item {
    margin: 4px;
}

.menu-item:hover, .menu-item a:hover {
    color: #ff6600;
    text-decoration-line: none;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-menu {
  display: none;
  position: absolute;
  left: -10px;
  box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.2);
  min-width: max-content;
  z-index: 1;
  background-color: #F6F2E0;
}

/* Links inside the dropdown */
.dropdown-menu a, #logout-button {
  color: black;
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border: none;
}

/* Change color of dropdown links on hover */
.dropdown-menu a:hover {
    color: #ff6600;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {display: block;}

#logout-button:hover {
    cursor: pointer;
    background-color: #ddd;
}
@media (max-width: 767px) {
.logo, .menu {
	margin-left: 10px;
}

.logo {
    flex: 6;
}

.menu {
    flex: 4;
}
}
/* 2. Header section end */

/* 3. Index page section */
#table-header, #table-content {
    display: flex;
}

#table-header {
    font-size: 10px;
}

.span-table-header-views-col {
    flex: 1;
    text-align: right;
    margin-right: 16px;
}

.span-table-header-subject-col {
    flex: 9;
}

.entries {
    list-style: none;
    padding-inline-start: 0;
    width: 100%;
    margin-block-start: 0;
}

.entry {
    display: flex;
    /* line-height: 24px;*/
    padding-bottom: 8px;
    counter-increment: index;
}

.entry::before {
    /* width: 1ch;*/
    content: counter(index) ".";
    line-height: 1.2;
    margin-right: 1ch;
    text-align: right;
}

.ul-upvote {
    list-style: none;
    padding-inline-start: 0;
    margin-right: 8px;
}

.ul-subject-stats {
    list-style: none;
    padding-inline-start: 0;
    /*line-height: 24px;*/
    width: 100%;
}

.li-entry-arrow-col {
    text-align: center;
    margin-right: 4px;
}

.li-subject {
    line-height: 1.2;
}

.li-stats {
    color: #808080;
    font-size: 12px;
    line-height: 24px;
}

.li-stats-smaller {
    color: #808080;
    font-size: 10px;
}

.anchor-inline {
    color: #808080;
}

.anchor-color-arrow {
    color: #FF6600;
}

.anchor-nocolor-arrow {
    color: #808080;
}

.anchor-inline:hover, .anchor-color-arrow:hover {
    text-decoration: underline;
}

.span-entry-views {
    color: #ff6600;
}

/* 3. Index page section end */

/* 4. Item page section */
.item-entry {
    display: flex;
    /* line-height: 24px;*/
    padding-bottom: 8px;
    counter-increment: index;
}

.ul-item {
    list-style: none;
    padding-inline-start: 0;
    margin-block-start: 0;
    width: 100%;
}

.ul-upvote-no-wraping-ul {
    list-style: none;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
}

#ul-comments-list {
    padding-inline-start: 0;
}

.ul-reply-list {
    padding-inline-start: 10px;
}

.ul-comment-block {
    list-style: none;
    padding-inline-start: 4px;
    /*line-height: 24px;*/
    width: 100%;
    border-left: thin dotted #808080;
}

/* 4. Item page section end */

/* 5. Signin page section */
.loginfield {
    height: 32px;
    width: 100%;
}

#signin-content, #signup-content, #reset-password-content {
    width: calc(100% / 5 * 2);
}
.error-message {
    color: #ff0000;
}

@media (max-width: 767px) {
#signin-content, #signup-content, #reset-password-content {
    width: 100%;
    margin-left: 20%;
}
}
/* 5. Signin page section end */

/* 6. Profile page section */
.form-group {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
}

#form-password {
    display: block;
    width: 100%;
}

.label-tips {
    display: inline;
    position: relative;
    width: calc-size(100%, size / 3);
    text-align: right;
    font-weight: bold;
    margin-right: 2ch;
}

.label-info {
    display: inline;
    position: relative;
    width: calc(100%/3);
    text-align: left;
    margin-right: 2ch;
    padding-left: 2px;
    padding-right: 2px;
}

.input-field {
    position: relative;
    width: calc(100% / 3);
    margin-right: 2ch;
}

/* Change password form, hidden by default */
#change-password-div {
    display: none;
}
/* 6. Profile page section end */

/* 7. Submissions page section */
.anchor-itemop {
    color: #ff6600;
    margin-left: 2px;
    margin-right: 2px;
}

.fullscreen-container {
    display:none;
    height: 100%;
    width: 100%;
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #F6F2E0;
}

.fullscreen-editor {
    position: relative;
    top: 30%;
    width: 80%;
    margin-top: 30px;
    margin: auto;
}

.item-field {
    display: block;
    padding: 4px;
}

.span-label-4em {
    display: inline-block;
    color: #ff6600;
    width: 5em;
}

.tall-entry {
    display: flex;
    line-height: 32px;
}
/* 7. Submissions page section end */

/* 8. New item page section */

#newpost-content {
    width: 80%;
}
/* 8. New item page section end*/

/* 9. Footer section */
footer {
    font-size: 12px;
    margin: 8px;
    text-align: center;
    line-height: 1;
}
/* 9. Footer section end */
