/* ── Design Tokens ── */
:root {
    /* Colors */
    --color-background: #ffffff;
    --color-white: #ffffff;
    --color-text: #000000;
    --color-primary: #1b6ec2;
    --color-primary-dark: #1861ac;
    --color-link: #0077cc;
    --color-focus-ring: #258cfb;
    --color-danger: red;
    --color-muted: #C6CFCF;
    --color-border: #E5EDEF;
    --color-placeholder: gray;
    --color-backdrop: rgba(0, 0, 0, 0.5);
    --color-divider: rgba(0, 0, 0, 0.1);
    --color-rule: #e5e5e5;

    /* Border radius */
    --radius-input: 5px;
    --radius-btn: 7px;
    --radius-card: 15px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
    --shadow-social: rgba(50, 50, 93, 0.25) 0 13px 27px -5px, rgba(0, 0, 0, 0.3) 0 8px 16px -8px;
    --shadow-btn: drop-shadow(1px 2px 2px #000000);

    /* Z-index scale */
    --z-base: 1;
    --z-overlay: 100;
    --z-spinner: 9999;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-focus-ring);
}

body {
    background: var(--color-background);
}

::placeholder {
    text-align: center;
}

hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: 0;
    border-top: 2px solid var(--color-divider);
}

h1 {
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}


.width-fit-content {
    width: fit-content;
}

/* .backdrop-spinner and .clickable provided by Rm.Ui.Core/css/core.css */

.rm-btn {
    background-color: var(--color-muted);
    color: var(--color-text);
    border: 0;
}

.btn-no-style {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.full-width-height {
    width: 100%;
    height: 100%;
}

.field-validation-error {
    color: var(--color-danger);
    margin-bottom: 4px;
}

.main-image-container {
    text-align: center;
    margin-bottom: 1rem;
}

@media only screen and (min-width: 992px) {
    .main-image-container {
        padding: 0 100px;
    }
}

.gallery-link-image > * {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
}

.gallery-link-image {
    width: 50%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .gallery-link-image {
        width: 33%;
    }
}

@media only screen and (min-width: 992px) {
    .gallery-link-image {
        width: 25%;
    }
}


input {
    width: 100%;
    border: solid thin var(--color-border);
    border-radius: var(--radius-input);
    background-color: var(--color-background);
    margin-top: 0;
    margin-bottom: 5px;
}

textarea {
    text-align: center !important;
    width: 100%;
    border: solid var(--color-border);
    border-radius: var(--radius-input);
    background-color: var(--color-background);
    min-height: 150px;
}

.name-social {
    border-radius: var(--radius-input);
    font-weight: bolder;
    margin-bottom: 15px;
    font-size: 150%;
    margin-top: 20px;
    background-color: var(--color-background);
}

.video-social {
    background-color: var(--color-muted);
    border: none;
    border-radius: var(--radius-btn);
    margin-left: 15px;
    margin-top: 10px;
    display: block;
    margin-bottom: 35px;
}

.edit-image-video-social {
    width: 100%;
    z-index: var(--z-base);
    cursor: pointer;
    border: none;
    border-radius: 0;
}

@media only screen and (min-width: 992px) {
    .edit-image-video-social {
        width: 50%;
    }
}


.add-image-social {
    background-color: var(--color-border);
    width: 100%;
    z-index: var(--z-base);
    padding: 15%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-social);
    border-radius: 0 0 0 var(--radius-card);
}

.video-image-social {
    background-color: var(--color-border);
    width: 100%;
    z-index: var(--z-base);
    padding: 15%;
    cursor: pointer;
    border: none;
    float: right;
    box-shadow: var(--shadow-social);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.edit-profile-social {
    height: 168px;
    margin-top: -84px;
    background-color: var(--color-placeholder);
    border-radius: var(--radius-full);
    clip-path: circle();
    z-index: var(--z-overlay);
    border: 5px solid var(--color-background);
}

@media only screen and (min-width: 992px) {
    .edit-profile-social {
        height: 300px;
        margin-top: -150px;
    }
}

.add-profile-social {
    width: 30%;
    background-color: var(--color-placeholder);
    margin-top: -20%;
    border-radius: 65%;
    height: 50%;
    max-width: 100%;
    max-height: 100%;
    padding: 10%;
    cursor: pointer;
    z-index: var(--z-overlay);
}

.plus-social {
    cursor: pointer;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.video-image-upload {
    background-color: var(--color-border);
    display: block;
    height: 60%;
    width: 150px;
    padding: 45px;
    margin: 0 0 0 15px;
    border-radius: 0;
}

.qr-code-reader {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media only screen and (min-width: 992px) {
    .qr-code-reader {
        max-width: 400px;
    }
}

.ql-icon {
    width: 36px !important;
    height: 34px !important;
}

.carousel-item img {
    margin: 0 auto; /* this will align the image to center. */
    width: auto; /* for those images which don't have a width specified, but has a max-height will be auto adjusted */
}

.cropper-canvas img {
    object-fit: scale-down;
}

.img-container img {
    max-width: 100%;
    object-fit: scale-down;
}

@media only screen and (max-width: 992px) {
    .img-container img {
        max-height: calc(100vh - 150px);
    }
}

@media only screen and (min-width: 992px) {
    .img-container img {
        max-height: calc(100vh - 300px);
    }
}

.round-image-crop .cropper-crop-box .cropper-view-box {
    border-radius: var(--radius-full);
}

.remove-gallery-item-button {
    top: 22px;
    transform: translate(-50%, -50%);
    position: absolute;
    pointer-events: auto;
}

@media only screen and (max-width: 992px) {
    .remove-gallery-item-button {
        left: 50%;
    }
}

@media only screen and (min-width: 992px) {
    .remove-gallery-item-button {
        left: 150px;
    }
}

.image-btn {
    height: 24px;
}

.video-player-container {
    width: 90%;
}

@media only screen and (min-width: 992px) {
    .video-player-container {
        width: 60%;
    }
}

.edit-icon {
    cursor: pointer;
    float: right;
}

.min-width-120 {
    min-width: 120px;
}

.sign-in-container {
    padding: 40px;
    text-align: center;
}

@media only screen and (min-width: 992px) {
    .sign-in-container {
        max-width: 500px;
    }
}

.inline-center {
    display: block;
    margin: 0 auto;
}

.special-buttons {
    width: 160px;
    background-color: var(--color-background);
    filter: var(--shadow-btn);
    margin-bottom: .75rem;
    margin-right: .25rem;
    margin-left: .25rem;
}

@media only screen and (min-width: 768px) {
    .special-buttons {
        width: 200px;
    }
}

.add-gallery-image {
    width: calc(100% - 60px);
    height: auto;
    margin: auto;
}

@media only screen and (min-width: 768px) {
    .add-gallery-image {
        width: calc(100% - 120px);
    }
}

.max-width-40 {
    max-width: 40px;
}

.max-width-24 {
    max-width: 24px;
}

.image-select-checkbox {
    position: absolute;
    top: 10px;
    right: 40px;
    width: 20px;
    height: 20px;
}

.image-drag-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: move !important;
}
