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

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 64px;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(44 44 44) 0%, #393939 70%);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

main {
    position: relative;
    flex: 1;
}

.sidebar .navbar {
    padding: 0 15px;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
        padding-top: 0;
        padding-left: 250px;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
    }

    main {
        padding-top: 0;
    }
}


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

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

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

.page-title {
    margin: 15px 0;
}

/* MY CSS */
#app .page {
    min-height: 100vh;
}
#app .page:after {
    content: ' ';
    background-color: transparent;
}

.blazored-toast-container {
    z-index: 1050 !important;
}

.rating-blackbox {
    position: absolute;
    bottom: 0;
    padding: 0 10px 0 15px;
    background-color: #0000007a;
}
.stars-container.white {
    color: #fff;
}
.other-stuff-blackbox {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 10px 0 15px;
    background-color: #0000007a;
    color: #fff;
}
.other-stuff-blackbox .bi-heart, 
.other-stuff-blackbox .btn {
    color: #fff;
}

#map .spot-marker, #map .map-cluster {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 2px 2px 6px #0006;
}
#map .spot-marker {
    background-size: cover;
    background-position: center;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    cursor: pointer;
}

#map .fullscreen-control {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
#map .fullscreen-control button {
    display: none;
    width: 100%;
    height: 100%;
}
#map .fullscreen-control.is-fullscreen {
    position: relative;
    width: 200px;
    height: 50px;
    margin-bottom: 50px;
}
#map .fullscreen-control.is-fullscreen button {
    display: block;
}


#map .map-cluster {
    background-color: #fff;
}
#map .map-cluster * {
    font-size: 18px;
}
#map .map-cluster img {
    display: none;
}


a[href^="http://maps.google.com/maps"] {
    display: none !important
}

a[href^="https://maps.google.com/maps"] {
    display: none !important
}

.gmnoprint a, .gmnoprint span, .gm-style-cc {
    display: none;
}

.spinner-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
}

/*.gmnoprint div {
    background: none !important;
}*/
:root {
    --neutral: #808080;
    --white: #fff;
    --green: #198754;
    --yellow: #ffc107;
    --red: #dc3545;
    --black: #000;
}

.difficulty-mark {
    padding: 0;
    position: relative;
}
.difficulty-mark.big {
    font-size: 2rem;
    line-height: 0;
}
.difficulty-mark.Neutral {
    color: var(--neutral);
}
.difficulty-mark.White {
    color: var(--white);
    filter: drop-shadow(0px 0px 1px #9b9b9b);
}
.bckgr-dark .difficulty-mark.White {
    filter: none;
}
.difficulty-mark.Green {
    color: var(--green);
}
.difficulty-mark.Yellow {
    color: var(--yellow);
}
.difficulty-mark.Red {
    color: var(--red);
}
.difficulty-mark.Black {
    color: var(--black);
}
.bckgr-dark .difficulty-mark.Black {
    filter: drop-shadow(0px 0px 1px #bfbfbf);
}

.difficulty-mark .points {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
}
.difficulty-mark.White .points {
    color: #767676;
}
.difficulty-mark.Green .points {
    color: #064529;
}
.difficulty-mark.Yellow .points {
    color: #a27c09;
}
.difficulty-mark.Red .points {
    color: #76161f;
}
.difficulty-mark.Black .points {
    color: #a1a1a1;
}
.difficulty-mark.big .points {
    font-size: 1.2rem;
}
.color-White {
    color: #a9a9a9;
}
.color-Green {
    color: var(--green);
}
.color-Yellow {
    color: var(--yellow);
}
.color-Red {
    color: var(--red);
}
.color-Black {
    color: #636363;
}

.difficulty-checkbox,
.difficulty-checkbox:focus,
.difficulty-checkbox:checked {
    position: relative;
    box-shadow: none !important;
    min-height: 30px;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    filter: saturate(0.5);
    transition: background-color 0.3s, filter 0.3s;
}
.difficulty-checkbox.active {
    filter: none;
}
.difficulty-checkbox i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
}
.difficulty-checkbox i.active {
    display: none;
}
.difficulty-checkbox i.inactive {
    display: block;
}
.difficulty-checkbox.active i.active {
    display: block;
}
.difficulty-checkbox.active i.inactive {
    display: none;
}
.difficulty-checkbox:first-of-type {
    border-radius: 5px 0 0 5px;
}
.difficulty-checkbox:last-of-type {
    border-radius: 0 5px 5px 0;
}
.difficulty-checkbox.White {
   background-color: #e4e4e4;
}
.difficulty-checkbox.White i {
    color: #767676;
}
.difficulty-checkbox.White.active {
    background-color: #e4e4e4;
}
.difficulty-checkbox.Green {
    background-color: var(--green);
}
.difficulty-checkbox.Green i {
    color: #064529;
}
.difficulty-checkbox.Green.active {
    background-color: var(--green);
}
.difficulty-checkbox.Yellow {
    background-color: var(--yellow);
}
.difficulty-checkbox.Yellow i {
    color: #a27c09;
}
.difficulty-checkbox.Yellow.active {
    background-color: var(--yellow);
}
.difficulty-checkbox.Red {
    background-color: var(--red);
}
.difficulty-checkbox.Red i {
    color: #76161f;
}
.difficulty-checkbox.Red.active {
    background-color: var(--red);
}
.difficulty-checkbox.Black {
    background-color: var(--black);
}
.difficulty-checkbox.Black i {
    color: #a1a1a1;
}
.difficulty-checkbox.Black.active {
    background-color: var(--black);
}

button {
    background-color: transparent;
    border: none;
    line-height: initial;
    padding: 0;
}
button.btn-like {
    font-size: 22px;
}
.bckgr-dark button.btn-like {
    color: white;
}
button.btn-like.liked {
    color: var(--red);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px
}

.avatar.small {
    width: 30px;
    height: 30px;
    margin-right: 5px
}

.spot, .challenge, .attempt {
    padding-left: 0;
    padding-right: 0;
}

a {
    color: inherit;
}

.red-dot {
    position: relative;
}

.red-dot::before {
    content: '•';
    color: var(--yellow);
    position: absolute;
    font-size: 40px;
    line-height: 0;
    transform: translate(0px, 8px);
    left: 0;
    top: 0;
}

.deprecated {
    filter: grayscale(100%);
}

.progress-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 950;
    background-color: #000000cc;
}

.progress-container {
    position: absolute;
    top: 45%;
    width: 100%;
    padding: 0 30px;
}

.unmute-button {
    display: none;
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    font-size: 24px;
    color: #bebebe;
    background-color: #0000004f;
    border-radius: 50%;
    padding: 4px 6px;
}

label.required::after {
    content: '*';
    color: red;
    margin-left: 5px;
}

.list-group-item .spot-image {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 1px;
    flex-shrink: 0;
    margin-right: 15px;
    margin-left: -16px;
}

.modal.show {
    background-color: hsl(0deg 0% 0% / 50%);
}
.videos-bottom {
    min-height: 400px;
    background-color: #292929;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.spots-bottom {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.no-items {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-area .description {
    position: absolute;
    bottom: 0;
    z-index: 1;
    color: white;
    padding: 15px 15px 6px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.7) 66%, rgba(0,0,0,0) 100%);
    z-index: 1;
    max-height: 92px;
    width: 100%;
    transition: max-height 1s, opacity 0.3s 0.3s;
}

.video-pair-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.video-pair-container .video-area.pair {
    flex: 1;
    transition: flex 0.3s;
}
.video-pair-container .video-area.pair.main {
    flex: 3;
}
.video-pair-container .video-area.pair .description,
.video-pair-container .video-area.pair .attempt-status {
    opacity: 0;
    pointer-events: none;
    transition: max-height 1s, opacity 0.3s;
}
.video-pair-container .video-area.pair.main .description,
.video-pair-container .video-area.pair.main .attempt-status {
    opacity: 1;
    pointer-events: all;
}

.video-pair-container .video-area.pair .unmute-button {
    opacity: 0;
    pointer-events: none;
}
.video-pair-container .video-area.pair.main .unmute-button {
    opacity: 1;
    pointer-events: all;
}

.review {
    background-color: #f2f2f2;
    border: 1px solid #b3b3b3;
    border-left: none;
    border-right: none;
    padding: 15px 0;
}

.scoreboard {
    width: 100%;
    border-collapse: collapse;
}

.scoreboard th, .scoreboard td {
    padding: 5px;
    font-size: 14px;
    line-height: 14px;
}

@media (max-width: 576px) {
    .mobile-text-clip-60 {
        max-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Marker Overlay on videos */
.marker-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 5;
    cursor: pointer;
}
.marker-overlay.stick-to-bottom {
    top: auto;
    bottom: 8px;
}
.marker-overlay.position-relative {
    position: relative;
    top: auto;
    right: auto;
}
.marker-overlay .marker-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}
.marker-overlay .marker-icon.marker-none {
    background-color: #0000001c;
}
.marker-overlay.on-white-background .marker-icon.marker-none {
    color: #212529;
    background-color: transparent;
    width: auto;
    font-size: 21px;
}
.marker-overlay .marker-icon.marker-flag {
    background-color: #e74c3c;
}
.marker-overlay .marker-icon.marker-cross {
    background-color: #e67e22;
}
.marker-overlay .marker-icon.marker-check {
    background-color: #2ecc71;
}
.marker-overlay .marker-icon.marker-skip {
    background-color: #3498db;
}
.video-pair-container .video-area.pair .marker-overlay {
    opacity: 0;
    transition: opacity 0.3s;
}
.video-pair-container .video-area.pair.main .marker-overlay {
    opacity: 1;
}

.attempt-status {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
    text-align: center;
}
.attempt-status i {
    font-size: 80px;
    line-height: 0;
}
.attempt-status.WaitingForConfirmation i {
    font-size: 55px;
}

.attempt-status.WaitingForConfirmation {
    background-color: rgb(52, 152, 219);
}
.attempt-status.Succeeded {
    background-color: rgb(35, 185, 70);
}
.attempt-status.Failed {
    background-color: #de2727;
}
.attempt-status.WaitingForRevocation {
    background-color: rgb(255, 247, 0);
}
.description small.WaitingForConfirmation {
    color: rgb(52, 152, 219);
}
.description small.Succeeded {
    color: rgb(35, 185, 70);
}
.description small.Failed {
    color: #de2727;
}
.description small.WaitingForRevocation {
    color: rgb(255, 247, 0);
}

/* Filter restored notification popup */
.filter-notification-wrapper {
    position: relative;
}

.filter-restored-popup {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    z-index: 10;
}

.filter-restored-popup > div {
    margin: 0 auto;
    display: table;
    position: relative;
    background-color: #212121e6;
    color: #fff;
    padding: 5px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 10;
    animation: filterPopupIn 0.3s ease-out;
}

.filter-restored-popup.hiding {
    animation: filterPopupOut 0.3s ease-in forwards;
}

@keyframes filterPopupIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes filterPopupOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(4px); }
}
