/* Base styles */
body {
    font-size: 16px;
    font-weight: normal;
}

h1,
.h1 {
    font-weight: 300;
    font-size: 60px;
    border-bottom: 2px solid #e64626;
}

h2,
.h2 {
    font-size: 48px;
}

.btn-primary {
    font-size: 12px;
    color: white !important;
}

.vertical-center {
    display: flex;
    align-items: center;
}

/* Header styles */
.midbar {
    position: relative;
    box-shadow: 0 3px 6px #00000029;
    margin-bottom: 20px;
}

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

.main-logo {
    display: inline-block;
    width: 70%;
    padding-top: 5px;
}

.main-logo img {
    width: 100%;
}

.main-logo .main-logo-image {
    display: none;
}

.main-logo .main-logo-image-white {
    display: block;
}

@media (min-width: 992px) {
    .main-logo .main-logo-image {
        display: block;
    }

    .main-logo .main-logo-image-white {
        display: none;
    }

    .mobile-only {
        display: none;
    }
}

/* Navigation styles */
.navbar-nav .nav-link {
    font-size: 23px;
    font-weight: normal;
}

.search-archive-button {
    background-color: #000000;
    color: #ffffff;
    font-size: 24px;
    padding: 0.5em 0.5em;
}

.search-archive-button i {
    color: #e64626;
}

a.search-archive-button:hover {
    color: #ffffff;
}

/* Breadcrumb styles */
.breadcrumb,
.breadcrumb a {
    font-size: 24px;
    font-weight: 300;
}

.breadcrumbs__current {
    color: #e64626;
}

/* Button styles */
.btn {
    font-size: 24px;
    font-weight: bold;
}

.btn .fa {
    margin-right: 0.6em;
}

.btn-outline-primary {
    color: #333;
}

.btn-outline-primary .fa {
    color: #e64626;
}

.btn-outline-primary:hover .fa {
    color: #ffffff;
}

.tile-button {
    display: inline-flex;
    align-items: center;
    width: 320px;
    height: 240px;
    border-radius: 0;
    border: none;
    padding: 40px;
    text-align: left;
    font-size: 65px;
    font-weight: bold;
    font-style: italic;
    line-height: 110%;
    color: #ffffff;
    background-color: #f6875f;
    overflow: hidden;
}

.tile-button a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.tile-button a:hover {
    color: #ffffff;
    text-decoration: none;
}

.omaa-tile {
    font-family: Antwerp, Georgia, serif;
}

/* Tab styles */
.nav.nav-tabs {
    border: none;
    gap: 0 3px;
}

.nav.nav-tabs .nav-item .nav-link {
    font-size: 24px;
    color: #707070;
    border: 1px #707070 solid;
    border-bottom: none;
}

.nav.nav-tabs .nav-item .nav-link.active {
    background-color: #e64626;
    color: #ffffff;
    border: 1px #e64626 solid;
    border-bottom: none;
}

.omaa-tab-content {
    margin-bottom: 3em;
}

.omaa-tab-content .tab-pane {
    padding: 2em 3em;
    border: 1px #e64626 solid;
}

.omaa-tab-content .omaa-tab-pane {
    padding: 2em 3em;
    background-color: #faf0d6;
    border: none;
}

.omaa-tab-content .omaa-tab-pane table.table {
    border: none;
}

.omaa-tab-content .omaa-tab-pane table.table tr:nth-child(odd) {
    background-color: #ffffff;
}

.omaa-tab-content .omaa-tab-pane table.table td {
    border-top: none;
    border-bottom: none;
    max-width: 140px;
    word-wrap: break-word;
}

.nav.nav-tabs-small .nav-item .nav-link {
    font-size: 16px;
    color: #707070;
    border: 1px #707070 solid;
    border-bottom: none;
}

/* Control styles */
.custom-control-label:after,
.custom-control-label:before {
    top: 0.35em;
}

/* Post list styles */
.post-list {
    margin-bottom: 1em;
}

.post-list-item {
    margin-bottom: 1em;
}

.post-list-item-head {
    margin-bottom: 1em;
}

.post-list-item-title,
.post-list-item-author {
    display: inline-block;
    font-size: 24px;
}

.post-list-item-author {
    margin-left: 2em;
}

/* Source embed */
.omaa-text-source {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1em;
}

.omaa-text-source iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.omaa-text-source img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
}

.omaa-text-source .source-embed-text {
    font-size: 24px;
    font-weight: normal;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 30%;
}

/* File embed */
.omaa-text-files-container .tab-content .tab-pane {
    position: relative;
    padding: 0;
    border: none;
    overflow: hidden;
}

/* Utility styles */
.line-below {
    border-bottom: 2px solid #e64626;
    padding-bottom: 10px;
}

.margin-top-2 {
    margin-top: 2em;
}

.omaaModal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.modal-content {
    position: relative;
    border: none !important;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.custom-control.custom-checkbox .custom-control-label.custom-label-top:before,
.custom-control.custom-checkbox .custom-control-label.custom-label-top:after {
    top: 0.2em !important;
}

.comment-list {
    padding: 1rem;
    border: 2px solid black;
    background-color: white;
}

@media (min-width: 992px) {
    #jsPrimaryMenu .navbar-nav .nav-link {
        border-left: 0;
    }
    #jsPrimaryMenu .navbar-nav > .nav-item > .nav-link {
        border-left: 1px solid #333;
    }
}

.navbar-nav .nav-item {
    position: relative !important;
}

.wp-block-post-title {
    padding-top: 1rem !important;
}

table,
th,
td {
    border: #ced4da 1px solid;
    padding: 10px;
}

th {
    background-color: #c3c3c3;
}

tr:nth-child(odd) {
    background-color: #f2f2f2;
}

table.center {
    margin-left: auto;
    margin-right: auto;
}

#omaa-success-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}

button {
    cursor: pointer;
}

/* Glycerine plugin css code */

#annotation-search {
    width: 100%;
}

.annotation-table {
    width: 100%;
}

.annotation-table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.annotation-table-pagination .page-number {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: 0.3rem;
    line-height: 1.25;
    color: #e64626;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.annotation-table-pagination .page-number:disabled {
    color: #fff !important;
    background-color: #e64626 !important;
    border-color: #e64626 !important;
    cursor: not-allowed;
}

.annotation-table-column-filters .column-filter-label {
    font-size: 16px;
}

.annotation-tag {
    background-color: #e4e5e5;
    color: #515c66;
    border-radius: 16px;
    padding: 0 0.5rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
}

body
    .is-layout-constrained
    > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
}

#annotation-table-body > tr > td {
    text-align: center;
    border: 1px solid rgba(232, 241, 248, 0.7);
    border-width: 0 0 1px 0;
}

#annotation-search {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.image-entry {
    border: 1px solid rgb(204, 204, 204);
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loadingWheel {
    position: fixed;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    display: none;
}

.spinner {
    display: inline-block;
    border: 16px solid lightgray;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 90px;
    height: 90px;
    animation: spin 2s linear infinite;
}

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

.loading-text {
    color: #3498db;
    font-size: 22px;
    font-weight: bolder;
}

.glycerine-iframe {
    width: 100%;
    height: 650px;
    margin-bottom: 1rem;
}

.wp-block-navigation__submenu-container {
    z-index: 10 !important;
}

.wp-block-navigation:not(.has-text-color)
    .wp-block-navigation__submenu-container {
    z-index: 10 !important;
}

.contribute-form .contribute-grid {
    display: grid;
    margin-left: 2rem;
    margin-right: 2rem;
    gap: 16px 20px;
}

.contribute-form label {
    display: block;
    font-weight: 600;
    margin: 0;
}

/* Inputs */
.contribute-form .cf7-input,
.contribute-form .cf7-textarea,
.contribute-form .wpcf7 input[type="file"] {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    line-height: 1.4;
    box-sizing: border-box;
}

.contribute-form .cf7-textarea {
    min-height: 160px;
    resize: vertical;
}

/* Submit button */
.contribute-form .cf7-submit {
    display: inline-block;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    background: #e64626;
    color: #fff;
}

.contribute-form .contribute-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}
