@import url('../fontawesome/css/fontawesome.min.css');
@import url('../fontawesome/css/brands.min.css');
@import url('../fontawesome/css/solid.min.css');
/* @import url('../fontawesome/css/regular.min.css'); */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0366d6;
}

/* fix for links in navlinks */
.nav-link:focus.active {
    color: #6c757d;
}

/* Links brighter blue to look good on the black background on the main site */
.main-site a {
    color: #6ACDEB;
}

.main-site a:hover {
    color: #56A7BF;
}

a.active, .main-site a.active {
    color: #6c757d;
}

a.active:hover, .main-site a.active:hover {
    color: #6c757d;
    cursor: default;
}

/* Also h1 etc. colour to match the links / the old main website */
.main-site h1 {
    color: #6ACDEB;
}

.main-site h2, .main-site h3, .main-site h4, .main-site h5, .main-site h6 {
    font-weight: bold;
    margin-top: 20px;
    /* Actually the subheadings are not blue on the older website */
    /*color: #6ACDEB;*/
}

.main-site hr {
    color: #6ACDEB;
}

blockquote {
    margin-left: 10px;
}

.main-site blockquote {
    margin-left: 20px;
}

.nav-link:hover {
    text-decoration: underline;
}

.nav-link:hover.active {
    text-decoration: none;
}

/* fix for sidebar navlinks */
.nav-sidebar .nav-link {
    text-decoration: none;
}

.nav-sidebar .nav-link:hover {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
    padding-bottom: 0.5rem;
}

.full-width {
    width: 100%;
    box-sizing: border-box;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.clickable {
    cursor: pointer;
}

.expanded-box {
    border-radius: 2px;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

/* End of blazor default stuff */

/* Table sort */
th.sort {
    cursor: pointer;
}

/* Needed to make the sortable tables behave better in terms of the heading row */
/* though with responsive this in turn doesn't look good, so this is overrideable with the class below */
table.sortable {
    table-layout: fixed;
    word-wrap: break-word;
}

table.non-fixed {
    table-layout: auto !important;
}

.sidebar hr {
    color: whitesmoke;
    width: 90%;
    margin-left: 5%;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 20px;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
}

.login-form {
    max-width: 325px;
}

.paginator-container {
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    flex-direction: row-reverse;
}

.paginator-container > nav {
    width: 100%;
}

.pagination {
    width: 100%;
}

.block-container {
    position: relative;
}

.block-overlay {
    position: absolute;
    height: calc(100% - 18px);
    min-height: 350px;
    width: calc(100% - 30px);
    top: 9px;
    left: 15px;
    box-sizing: border-box;
    padding: 5px;
    background-color: rgba(220, 220, 220, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 3px 3px;
    overflow-y: auto;
}

/* pointer events disabled to fix flickering */
.drop-area {
    pointer-events: none;
}

/* highlights target drop control */
.valid-drop-area {
    background-color: lightseagreen;
}

.item-sidebar {
    top: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    box-sizing: border-box;
    padding: 3px;
    border: 1px solid black;
    min-width: 100%;
    max-width: 100%;
    background-color: rgba(220, 220, 220, 0.98);
    z-index: 5;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow-y: auto;
}

@media (min-width: 641px) {
    .item-sidebar {
        top: 3.5rem;
        bottom: 5px;
        width: 45%;
        min-width: 300px;
        background-color: rgba(220, 220, 220, 0.85);
    }

    .item-sidebar.expanded {
        min-width: 100%;
        background-color: rgba(220, 220, 220, 0.98);
    }
}

@media (min-width: 950px) {
    .item-sidebar {
        width: 35%;
    }

    .item-sidebar.expanded {
        min-width: 100%;
    }
}

.item-sidebar H2 {
    text-align: center;
}

.btn-close {
    /* Restore old placing to make it work better in the sidebar */
    float: right;
}

.preview-box {
    border: 1px solid black;
    min-width: 128px;
    width: 100%;
    background-color: rgba(220, 220, 220, 0.85);
    box-sizing: border-box;
    border-radius: 3px;
    text-align: center;
}

.preview-box pre {
    text-align: left;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-audio {
    width: 100%;
    height: 100%;
}

.breadcrumb {
    padding: .75rem 1rem;
    background-color: #e9ecef;
    border-radius: .25rem;
}

.image-preview {
    max-width: 128px;
    max-height: 128px;
}

/* Markdown / page customization */
.markdown img {
    max-width: 100%;
}

.thrive-logo-container {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.thrive-logo {
    min-height: 200px;
    max-height: 200px;
    width: auto;
}

@media (min-width: 1200px) {
    .thrive-logo-container {
        display: flex;
    }
}

.main-site {
    color: #dedede;
    background-color: black;
    background-image: url("https://thrive-media.b-cdn.net/cc49a24f-9f52-40fd-9b92-ec28a86086aa/Planet-1.jpg");
    background-repeat: no-repeat;
    background-size: 100% auto;
    min-height: 100vh;
}

.main-page {
    background-color: rgba(43, 43, 43, 0.9);
    padding-top: 15px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
}

.rendered-by {
    color: #a0a0a0;
    font-size: small;
    margin: 10px 5px 10px 5px;
    text-shadow: black 1px 1px;
}

/* Main site nav link bars */
.main-bar-nav-link {
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
}

.main-site a.main-bar-nav-link {
    color: white;
}

.main-bar-nav-link:hover, .main-site a.main-bar-nav-link:hover {
    color: #6ACDEB;
}

.current-active-page {
    color: #ACACAC !important;
}

div.main-site-sidebar-item, .main-site.main-site-sidebar-item {
    width: 100%;
    max-width: 100%;
    text-align: center;
    color: #ACACAC;
}

.main-site-sidebar-item li {
    text-align: left;
}

.main-site-sidebar-item a {
    text-decoration: none;
}

.main-site-sidebar-item img {
    /* Not using width here to avoid stretching items */
    max-width: 100%;
    margin-top: 5px;
}

.top-social-links {
    position: relative;
    top: 5px;
    left: 0;
    z-index: 1;
}

.socials-sidebar-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*justify-content: space-around;*/
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    /* Consistent spacing around items */
    gap: 4px;
}

.mobile-sidebar-separator {
    margin-bottom: 45px;
    color: #6ACDEB;
}

.mobile-sidebar-separator hr {
    min-height: 2px;
    color: #6ACDEB;
}

/* Hamburger button styling */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 24px;
    padding: 0;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    display: block;
}

/* Transform hamburger to X when active */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile main navigation */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #4a4a4a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.header-logo img {
    height: 80%;
    width: auto;
    max-height: 48px;
    display: block;
}

/* Mobile navigation styling */
.mobile-nav {
    position: fixed;
    top: 60px; /* Height of header */
    left: 0;
    width: 100%;
    background-color: #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height, transform 0.4s ease;
    z-index: 999;

    /* Animation */
    transform: translateY(-100%);
}

.mobile-nav.active {
    max-height: none;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);

    /* Animation */
    transform: translateY(0);
}

.mobile-nav ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #555;
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    /*transition: background-color 0.3s;*/
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a:focus {
    background-color: #555;
}

.backdrop {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 998;
}

.backdrop.active {
    height: 100%;
    opacity: 1;
}

.mobile-spacer {
    display: block;
    min-height: 70px;
}

.desktop-top-nav {
    margin-top: 10px;
}

@media (min-width: 769px) {
    .mobile-sidebar-separator {
        display: none;
    }

    .mobile-header {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .mobile-spacer {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-social-links {
        display: none;
    }

    .desktop-top-nav {
        display: none;
    }
}

.news-feed-item {
    color: #6ACDEB;
}

a.news-feed-item {
    color: #6ACDEB;
    text-decoration: none;
}

a:hover.news-feed-item {
    color: #56A7BF;
}

.posted-at-time {
    color: #ACACAC;
    font-size: small;
    margin-bottom: 10px;
    margin-left: 3px;
    margin-top: 2px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* news feed navigation on pages */
.news-feed-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%
}

/* Makes sure items don't meet in the middle which looks bad */
.news-feed-navigation .news-feed-item {
    max-width: 45%;
}

/* Markdown tables support */
.markdown table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.markdown table th,
.markdown table td {
    padding: 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid #dee2e6;
}

/* Various other markdown element customizations */
.markdown code {
    background-color: #333;
    padding: 2px;
}

.markdown pre code {
    color: white;
}

/* Youtube link support */
.youtube-placeholder {
    max-width: 640px;
    margin: 0 auto;
    background-color: black;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 4px 8px rgba(0, 0, 0, 0.2);
}

.youtube-placeholder-below {
    margin-bottom: 8px;
}

.thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    cursor: pointer;
}

.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.thumbnail-container:hover .play-button-overlay {
    opacity: 1;
}

.youtube-controls {
    background-color: rgba(73, 73, 73);
    padding: 10px;
}

.controls-row {
    display: flex;
    margin-bottom: 10px;
    justify-content: space-around;
}

.controls-row:last-child {
    margin-bottom: 0;
}

.youtube-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #ff0000;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s;
    flex-grow: 1;
    margin: 0 5px;
}

.youtube-btn:hover {
    background-color: #cc0000;
}

.accept-cookies {
    background-color: #4CAF50;
    width: 65%;
}

.accept-cookies:hover {
    background-color: #3e8e41;
}

.open-youtube {
    text-decoration: none;
    text-align: center;

    /* Vertical alignment */
    display: flex;
    align-items: center;

    /* reset text-colour on the link */
    color: white !important;
}

.open-youtube:hover {
    color: white;
}

.youtube-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.css-play-button {
    width: 68px;
    height: 48px;
    position: relative;
    background-color: #f00;
    border-radius: 10px;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='48' viewBox='0 0 68 48'%3E%3Cpath class='play-button-bg' d='M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z' fill='%23f00'%3E%3C/path%3E%3Cpath d='M 45,24 27,14 27,34' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
}

/* Compatibility for Blazor Pagination until it is updated for bootstrap 5 */
/* https://github.com/villainoustourist/Blazor.Pagination/issues/11 */
.sr-only {
    display: none !important;
}
