/* Marigold font */
@font-face {
    font-family: 'Marigold';
    font-style: normal;
    src: url("fonts/Marigold.otf") format('opentype');
}

/* Lato font */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url("fonts/Lato.woff2") format('woff2');
}

/* body */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', Arial, sans-serif;
    font-size: 1em;
    line-height: 1.5;
}

/* heading */
h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h2, h3 {
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* paragraph */
p {
    margin: 0;
    padding: 0;
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* links */
a,
a:active,
a:hover {
    color: #475557;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.inlinelinks{
	color: #0000EE;
}

/* Marigold */
.text-marigold {
    font-family: 'Marigold', 'Times New Roman', serif;
}

/* container */
.container-header {
    position: relative;
    margin-bottom: 2rem;
    line-height: 1.25;
}

.container-main {
    margin-bottom: 3rem;
}

.container-footer {
    margin-bottom: 3rem;
    line-height: 2;
}

/* image */
.header-img {
    position: absolute;
    right: 0;
}

/* title */
.header-title {
    margin-bottom: 1.5rem;
    text-shadow: 0 0 1px #ffffff, 0 0 2px #ffffff, 0 0 3px #ffffff;
}

/* nav menu */
.rcna-nav {
    background-color: rgba(71, 85, 87, 0.659) !important;
    color: rgba(255, 255, 255, 1) !important;
    position: relative;
    margin-top: -2.75rem;
    text-transform: uppercase;
}

.rcna-nav a {
    color: #ffffff !important;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
}

.nav-menu > div {
    padding: 0.75rem 1rem;
    position: relative;
    width: 14%;
    min-width: 9rem;
    white-space: nowrap;
}

.rcna-nav .sub-menu {
    position: absolute;
    z-index: 500;
    top: 0;
    left: 0;
    background-color: #868f90;
    box-shadow: 3px 3px 3px #475557;
    border-radius: 0.25rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: 0;
}

.submenu-title {
    display: none;
}

.rcna-nav .submenu-title {
    display: block;
    padding: 0.75rem 1rem;
}

.submenu-links {
    padding-left: 0.5rem;
}

.rcna-nav .submenu-links {
    padding-left: 1rem;
    padding-right: 1rem;
    line-height: 2;
}

a.nav-link {
    background-color: rgba(71, 85, 87, 0.659);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
}

/* columns */
.col-content {
    margin-bottom: 2rem;
}

.col-content:last-child {
    margin-bottom: 0;
}

.col-copyright {
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    line-height: 1.5;
    align-self: flex-end;
}

/* left border */
.col-border {
    border-left: none;
}
@media (min-width: 576px) {
    .col-border {
        border-left: 2px solid #475557;
    }
}

/* top border */
.border-top {
    border-top: 2px solid #475557;
    padding-top: 2rem;
}

/* bottom border */
.border-bottom {
    border-bottom: 2px solid #475557;
}

/* circle border */
.border-circle {
    border: 2px solid #475557;
    border-radius: 50%;
    width: 120px;
    padding: 0.5em;
    margin: 0 auto;
}

/* full border */
.border-full {
    border: 2px solid rgba(71, 85, 87, 0.659);
    border-radius: 0.2em;
    padding: 1em;
}

/* text */
.text-nowrap {
    white-space: nowrap;
}

.text-success {
    color: #228b22;
}

.text-error {
    color: #b22222;
}

.text-center {
    text-align: center;
}

/* text content */
.text-content {
    margin-bottom: 1rem;
}
.text-content:last-child {
    margin-bottom: 0;
}
.text-heading {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

/* address */
.text-address {
    line-height: 1.5;
    margin-bottom: 1.15rem;
    white-space: nowrap;
}

/* vertical list */
.list-v {
    line-height: 2;
}
.list-v > div {
    white-space: nowrap;
}

/* horizontal list */
.list-h {
    display: flex;
    flex-wrap: wrap;
}
.list-h > div {
    padding: 0.75rem 1.5rem;
	width: 15%;
	min-width: 7em;
    padding-left: 0;
    white-space: nowrap;
}
.list-h > div > a {
    color: #ffffff !important;
}

/* header size */
.header-size {
    height: 225px;
}
@media (min-width: 576px) {
    .header-size {
        height: 262px;
    }
}
@media (min-width: 768px) {
    .header-size {
        height: 344px;
    }
}
@media (min-width: 992px) {
    .header-size {
        height: 428px;
    }
}
@media (min-width: 1200px) {
    .header-size {
        height: 469px;
    }
}

/* table */
.table-admin {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    border-collapse: separate;
    border-spacing: 0;
}

.table-admin th,
.table-admin td {
    padding: 0.5rem;
    vertical-align: top;
}

.table-admin th,
.table-admin tr:not(:first-child) td {
    border-top: 1px solid #475557;
}

.table-admin > thead > tr > th {
    text-align: left;
    vertical-align: bottom;
    border-bottom: 2px solid #475557;
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    background: #ffffff;
}

.table-admin td {
    cursor: pointer;
}

.table-admin td > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tr.row-selected > td {
    background-color: rgba(71, 85, 87, 0.659);
    color: rgb(255, 255, 255);
}

.table-admin tr > td .check {
    color: #6495ed;
}
.table-admin tr > td .quest {
    color: #475557;
}
.table-admin tr.row-selected > td .check,
.table-admin tr.row-selected > td .quest {
    color: #ffffff;
}

/* form */
form {
    margin: 0;
    padding: 0;
}

form > div {
    margin-bottom: 1rem;
}

form > div:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

label.label-inline {
    display: inline;
    white-space: nowrap;
}

label.label-sm {
    font-size: 1rem;
}

input,
textarea,
select {
    margin: 0;
    padding: 0.5rem;
    border: 1px solid #475557;
    font-size: 1rem;
    font-family: 'Lato', Arial, sans-serif;
}

button {
    margin: 0;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

textarea {
    width: 100%;
    height: 10rem;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.input-sm {
    display: inline-block;
    width: auto;
    padding: 0.25rem;
}

/* admin page */
#adminPage button {
    margin: 0;
    padding: 0.375rem 0.75rem;
    height: max-content;
}

#adminPage textarea {
    height: 9rem;
}

#adminPage .form-input {
    padding: 0.5rem;
    margin: 0;
    height: max-content;
}

.hide {
    opacity: 0;
    transition: opacity 0.5s;
}

.load {
    height: 44px;
    margin-bottom: -44px;
    background: linear-gradient(270deg, rgba(71, 85, 87, 0.659), #ffffff, rgba(71, 85, 87, 0.659));
    background-size: 200% 200%;
    border-radius: 0.2em;
    -webkit-animation: loadAnim 3s linear infinite;
    -moz-animation: loadAnim 3s linear infinite;
    animation: loadAnim 3s linear infinite;
    pointer-events: none;
}

@keyframes loadAnim {
    0% { background-position: 0% 50% }
    100% { background-position: 600% 50% }
}

@keyframes spinAnim {
    from {
        transform: rotate(0);
        opacity: 0;
    }
    75% {
        opacity: 1;
    }
    to {
        transform: rotate(360deg);
        opacity: 0;
    }
}

@keyframes flashAnim {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.spin {
    opacity: 0;
    animation-name: spinAnim;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.flash {
    opacity: 0;
    animation-name: flashAnim;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.admin-ctx-menu {
    z-index: 500;
    width: 500px;
    position: absolute;
    top: -100vh;
    border: 2px solid #475557;
    padding: 0.75rem;
    background-color: white;
    transition: left 0.125s, top 0.125s;
}

.admin-ctx-menu h3,
.admin-filters-menu h3,
.admin-delete-menu h3 {
    margin: 0;
    line-height: 1;
    border-bottom: 1px solid #475557;
}

.admin-ctx-buttons {
    padding-top: 0.25rem;
}

.admin-ctx-buttons > button {
    display: block;
}

.admin-ctx-buttons > button:not(:last-child) {
    margin-bottom: 0.5rem !important;
}

.admin-ctx-edit {
    overflow-x: hidden;
    flex: 1;
}

.admin-ctx-names {
    cursor: default;
    max-height: 7em;
    overflow-x: hidden;
    overflow-y: auto;
    text-overflow: ellipsis;
    padding: 0 15px;
}

.admin-ctx-comments {
    padding: 0 15px;
}

.admin-ctx-close {
    cursor: pointer;
    position: relative;
    top: -0.375rem;
    font-size: 150%;
    user-select: none;
}

.admin-overlay-menu {
    pointer-events: none;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.25s;
}

.admin-overlay-menu.visible {
    pointer-events: all;
    background-color: rgba(0, 0, 0, 0.6);
    transition: background-color 0.25s;
}

.admin-filters-menu {
    z-index: 400;
    width: 85vw;
    height: 100vh;
    margin: 0;
    padding: 0.75rem;
    background-color: #ffffff;
    border-right: 2px solid #475557;
    position: fixed;
    top: 0;
    left: -86vw;
    opacity: 0;
    transition: left 0.375s, opacity 0.375s;
    overflow-y: auto;
}

@media (min-width: 576px) {
    .admin-filters-menu {
        width: 65vw;
    }
}
@media (min-width: 768px) {
    .admin-filters-menu {
        width: 45vw;
    }
}
@media (min-width: 992px) {
    .admin-filters-menu {
        width: 35vw;
    }
}
@media (min-width: 1200px) {
    .admin-filters-menu {
        width: 25vw;
    }
}

.filter-labels {
    display: flex;
    flex: 1;
}
.filter-label {
    display: flex;
    border: 1px solid #475557;
    margin-right: 6px;
    margin-bottom: 6px;
}
.filter-label:last-child {
    margin-right: 0;
}
.filter-label > div {
    white-space: nowrap;
}
.filter-label > div:first-child {
    padding: 3px 6px;
    cursor: pointer;
    background:rgba(71, 85, 87, 0.659);
    color: #ffffff;
    border-right: 1px solid #475557;
}
.filter-label > div:last-child {
    padding: 3px 6px;
    cursor: default;
}

.admin-delete-menu {
    z-index: 600;
    position: fixed;
    width: 90vw;
    min-width: 200px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0.75rem;
    background-color: #ffffff;
    top: -50vh;
    left: 0;
    right: 0;
    border: 2px solid #475557;
    opacity: 0;
    transition: opacity 0.25s, top 0.375s 0.375s;
    pointer-events: none;
}
.admin-delete-menu.visible {
    top: 10vh;
    opacity: 1;
    transition: top 0.375s;
    pointer-events: all;
}

.btn-approve {
    border-color: #6495ed;
    color: #6495ed;
}
.btn-unapprove {
    border-color: #cd853f;
    color: #cd853f;
}
.btn-delete {
    border-color: #dc143c;
    color: #dc143c;
}

/* login form */
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
}

/* signup form */
.signup-form > div {
    margin-bottom: 0;
}
.signup-form > div > div {
    margin-bottom: 1rem;
}
.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form input[type="password"] {
    width: 100%;
}

/* form messages */
.form-info {
    font-weight: lighter;
}
.form-error {
    color: #b22222;
}

/* bookstore */
.books {
    margin: 0.75rem 0;
}

.book {
    border: 1px solid #475557;
    padding: 0.25rem 0.5rem;
    margin-bottom: 1rem;
}

.book-heading {
    font-size: 1.25rem;
    justify-content: space-between;
}

.book-label {
    font-size: 1rem;
    color: #6c757d;
}

.books-paging {
    text-align: center;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .books-paging {
        text-align: right;
    }
}
@media (min-width: 768px) {
    .books-paging {
        text-align: center;
    }
}
