html,
body {
    overscroll-behavior: none;
}

/* Default styles for all screen sizes */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*--------------*/
/* LANDING PAGE */
/*--------------*/
#landing-page {
    margin: 0;
    padding: 0;
    background: #fff;
}

#preview-img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    margin-bottom: 15px;
}

#landing-page-instruction {
    padding: 0 15px 0 15px;
    margin-bottom: 15px;
}

#landing-page-instruction p {
    font-family: 'Arial', sans-serif;
    font-style: normal;
    line-height: normal;
}

#landing-page-heading {
    color: #282828;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.46px;
    word-wrap: break-word;
    align-items: center;
}

#landing-page-body {
    color: #787878;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0px;
    word-wrap: break-word;
}

#start-btn {
    margin-left: 15px;
    width: calc(100% - 30px);
    height: 50px;
    border: none;
    border-radius: 30px;
    background: #ee7269;
    color: #fff;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 30px;
    white-space: normal;
    box-sizing: border-box;
}

#back-btn {
    display: flex;
    top: 20px;
    margin-left: 15px;
    width: auto;
    min-width: 120px;
    max-width: 180px;
    height: 50px;
    padding: 5px;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    z-index: 2;
    justify-content: flex-start;
}

/*-------------------*/
/* CAMERA BACKGROUND */
/*-------------------*/
/* Make the video container cover the whole screen */
#video-container {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.5;
}

/*----------------*/
/* IMAGE OVERLAYS */
/*----------------*/
#injector-pen {
    display: none;
    position: fixed;
    left: calc(50% - 21px);
    bottom: calc(50% - 152.5px);
    width: 42px;
    height: 305px;
    rotate: 90deg;
}

#injector-pen-body {
    display: none;
    position: fixed;
    left: calc(50% - 187.5px);
    bottom: 365px;
    width: 375px;
    height: 791px;
    z-index: 2;
}

#injector-pen-window {
    display: none;
    position: fixed;
    left: calc(50% - 187.5px);
    bottom: 454.89px;
    width: 375px;
    height: 180px;
}

#injector-pen-rns {
    display: none;
    position: fixed;
    left: calc(50% - 187.5px);
    bottom: 302px;
    width: 375px;
    height: 94.337px;
}

#injector-pen-plunger {
    display: none;
    position: fixed;
    left: calc(50% - 187.5px);
    bottom: 643px;
    width: 375px;
    height: 409.143px;
    z-index: 1;
}

#injector-pen-cap {
    display: none;
    position: fixed;
    left: calc(50% - 187.5px);
    bottom: 260px;
    width: 375px;
    height: 166px;
    z-index: 3;
}

#injector-pen-hand {
    display: none;
    position: fixed;
    left: calc(50% - 220.5px);
    bottom: 202px;
    width: 764px;
    height: 865px;
    z-index: 4;
}

#injection-site-line {
    display: none;
    position: fixed;
    left: calc(50% - 100% / 2);
    width: 100%;
    height: 8px;
}

#injection-click {
    display: none;
    position: fixed;
    left: calc(50% - 175px);
    bottom: 190px;
    width: 99px;
    height: 55px;
}

#countdown {
    display: none;
    position: fixed;
    left: calc(50% - 125px);
    bottom: 119px;
    width: 48px;
    height: 109px;
    color: #fff;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 80px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    animation-name: increaseOpacity;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

/*---------*/
/* BUTTONS */
/*---------*/
.btn {
    position: fixed;
    padding: 15px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: 'Arial', sans-serif;
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    border-radius: 16px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn p {
    font-family: 'Arial', sans-serif;
    text-align: center;
    font-size: inherit;
    font-style: normal;
    font-weight: 500;
    line-height: inherit;
    margin-bottom: 0px;
}

#next-to-cap-removal-btn {
    display: none;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd723;
    width: auto;
    min-width: 110px;
    max-width: 200px;
    height: 60px;
    color: #232323;
    font-size: 24px;
}

#next-to-press-and-hold-btn {
    display: none;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd723;
    width: auto;
    min-width: 110px;
    max-width: 200px;
    height: 60px;
    color: #232323;
    font-size: 24px;
}

.select-site-btn {
    position: absolute;
    padding: 5px 5px;
    background: transparent;
    width: 50px;
    height: 75px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 16px;
}

#select-site-left-thigh-btn {
    display: flex;
    bottom: 12px;
    left: 38px;
    z-index: 4;
}

#select-site-right-thigh-btn {
    display: flex;
    bottom: 12px;
    right: 38px;
    z-index: 4;
}

#select-site-abdomen-btn {
    display: flex;
    width: 85px;
    height: 50px;
    bottom: 125px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

#retry-btn-img {
    position: relative;
    float: right;
    width: 26px;
    height: 26px;
}

#try-again-btn {
    display: none;
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6964;
    width: auto;
    min-width: 186px;
    max-width: 320px;
    height: 60px;
    color: #fff;
    font-size: 24px;
}

#finish-btn {
    display: none;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffd723;
    width: auto;
    min-width: 110px;
    max-width: 200px;
    height: 60px;
    color: #232323;
    font-size: 24px;
}

#repeat-btn {
    display: none;
    position: fixed;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    width: auto;
    min-width: 186px;
    max-width: 300px;
    height: 60px;
    color: #fff;
    font-size: 24px;
}

/*--------------*/
/* INSTRUCTIONS */
/*--------------*/
.instructions {
    padding: 12px 16px 20px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.65);
    color: #dcdcdc;
    text-align: center;
    animation-name: increaseOpacity;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%);
}

.instructions p {
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 0;
    word-wrap: break-word;
}

.instructions-img-container {
    padding: 12px 16px 40px 16px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation-name: increaseOpacity;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%);
}

.instructions-img-text p {
    color: #dcdcdc;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 0;
    word-wrap: break-word;
}

.instructions-img {
    width: 192px;
    height: 315px;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

#select-site-instruction {
    display: none;
    position: fixed;
    min-width: 360px;
    max-width: 90%;
    width: auto;
    height: 450px;
    bottom: calc(50% - 225px);
    z-index: 3;
}

#remove-cap-instruction {
    display: none;
    position: fixed;
    min-width: 296px;
    max-width: 90%;
    width: auto;
    min-height: 92px;
    bottom: 120px;
}

#position-phone-instruction {
    display: none;
    position: fixed;
    min-width: 360px;
    max-width: 90%;
    width: auto;
    min-height: 366px;
    bottom: calc(50% - 183px);
    z-index: 4;
}

#position-phone-img {
    width: 200px;
    height: 200px;
}

#injection-instruction {
    display: none;
    position: fixed;
    min-width: 325px;
    max-width: 90%;
    width: auto;
    min-height: 92px;
    bottom: 60px;
}

#early-lift-error-instruction {
    display: none;
    position: fixed;
    min-width: 325px;
    max-width: 90%;
    width: auto;
    min-height: 152px;
    bottom: 110px;
    border-radius: 16px;
    border: 3px solid #ff6964;
    z-index: 4;
}

#early-lift-error-instruction-text p {
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    word-wrap: break-word;
}

#end-of-practice-instruction {
    display: none;
    position: fixed;
    min-width: 251px;
    max-width: 90%;
    width: auto;
    min-height: 92px;
    bottom: 168px;
}

/*---------*/
/* SLIDERS */
/*---------*/
.slider-container {
    width: 320px;
    height: 80px;
}

.slider-container .slider {
    --SliderColor: rgba(255, 215, 36);
    --SliderGradient: linear-gradient(rgba(255, 215, 36, 0.35), rgba(255, 215, 35, 0.35));
    --SliderOutline: 0;
    display: none;
    position: fixed;
    appearance: none;
    width: 320px;
    height: 80px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.25);
    background-image: var(--SliderGradient);
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

.slider-container .circle {
    display: flex;
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.slider-container .slider::-webkit-slider-thumb {
    appearance: none;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background: var(--SliderColor);
    box-shadow: 3px 0px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: auto;
    margin-top: 2px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}

.slider-container .slider::-moz-range-thumb {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background: var(--SliderColor);
    box-shadow: 3px 0px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: auto;
}

.slider-container .slider::-ms-thumb {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background: var(--SliderColor);
    box-shadow: 3px 0px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: auto;
}

.slider-container .slider::-webkit-slider-thumb:hover {
    border-color: #eeeeee;
}

.slider-container .slider::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
}

.slider-container .slider::-webkit-runnable-track {
    appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.slider-container .slider::-moz-range-track {
    appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.slider-container .slider::-ms-track {
    appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

.slider-container #remove-cap-slider {
    display: none;
    left: calc(50% - 160px);
    bottom: 288px;
    transform: rotate(180deg);
    z-index: 5;
}

.slider-container #cap-slider-arrow-line {
    display: none;
    position: fixed;
    left: calc(50% - 130px);
    bottom: 323px;
    width: 210px;
    height: 10px;
    z-index: 4;
    background-image: URL('assets/images/YellowArrowLine.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.slider-container #cap-slider-arrow-head {
    display: none;
    position: fixed;
    left: calc(50% - 130px);
    bottom: 323px;
    width: 210px;
    height: 10px;
    z-index: 4;
    background-image: URL('assets/images/YellowArrowHead.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.slider-container #cap-slider-ghost-circle {
    display: none;
    position: fixed;
    left: calc(50% + 80px);
    bottom: 288px;
    background: rgba(255, 215, 35, 0.35);
    z-index: 3;
    animation-name: moveThumbSide;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.slider-container #cap-slider-border {
    display: none;
    position: fixed;
    left: calc(50% - 160px);
    bottom: 288px;
    background: transparent;
    outline: var(--SliderOutline);
    z-index: 4;
}

.slider-container #injection-slider {
    display: none;
    left: calc(50% - 40px);
    bottom: 320px;
    transform: rotate(90deg);
    z-index: 5;
}

.slider-container #injection-slider-arrow-line {
    display: none;
    position: fixed;
    left: calc(50% + 30px);
    bottom: 350px;
    transform: rotate(270deg);
    width: 180px;
    height: 10px;
    z-index: 4;
    background-image: URL('assets/images/YellowArrowLine.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.slider-container #injection-slider-arrow-head {
    display: none;
    position: fixed;
    left: calc(50% + 30px);
    bottom: 350px;
    transform: rotate(270deg);
    width: 180px;
    height: 10px;
    z-index: 4;
    background-image: URL('assets/images/YellowArrowHead.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.slider-container #injection-slider-border {
    display: none;
    position: fixed;
    left: calc(50% + 80px);
    bottom: 200px;
    background: transparent;
    outline: var(--SliderOutline);
    z-index: 4;
}

.slider-container #injection-slider-ghost-circle {
    display: none;
    position: fixed;
    left: calc(50% + 80px);
    bottom: 440px;
    background: rgba(255, 215, 35, 0.35);
    z-index: 3;
    animation-name: moveThumbDown;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.slider-container #injection-slider-circle {
    display: none;
    position: fixed;
    left: calc(50% + 80px);
    bottom: 200px;
    fill: transparent;
    stroke: #ffeb82;
    stroke-width: 3;
    opacity: 0.6;
    z-index: 6;
}

svg {
    height: 80px;
    width: 80px;
}

.dashed {
    stroke-dasharray: 8, 9.5;
}

#hold-text {
    height: fit-content;
    width: fit-content;
    min-width: 80px;
    max-width: 120px;
    min-height: 80px;
    max-height: 120px;
    padding: 1px;
    color: #ffeb82;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    line-height: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.slider-container #lift-pen-slider-arrow {
    display: none;
    position: fixed;
    left: calc(50% + 20px);
    bottom: 350px;
    transform: rotate(90deg);
    width: 200px;
    height: 12px;
    color: #64ffaf;
    z-index: 4;
    background-image: URL('assets/images/GreenArrow.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.slider-container #lift-pen-slider-circle {
    display: none;
    position: fixed;
    left: calc(50% + 80px);
    bottom: 440px;
    fill: transparent;
    stroke: #64ffaf;
    stroke-width: 3;
    z-index: 5;
}

.slider-container #lift-pen-slider-border {
    display: none;
    position: fixed;
    left: calc(50% + 80px);
    bottom: 440px;
    background: transparent;
    outline: var(--SliderOutline);
    z-index: 4;
}

#lift-pen-text {
    height: fit-content;
    width: fit-content;
    min-width: 80px;
    max-width: 120px;
    min-height: 80px;
    max-height: 120px;
    padding: 1px;
    color: #64ffaf;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    line-height: 1;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/*-------------------*/
/* SLIDER ANIMATIONS */
/*-------------------*/
@keyframes increaseOpacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes moveThumbSide {
    from {
        left: calc(50% + 80px);
    }
    to {
        left: calc(50% - 160px);
    }
}

@keyframes moveThumbDown {
    from {
        bottom: 440px;
    }
    to {
        bottom: 200px;
    }
}

@keyframes reduceSliderTrackOpacity {
    from {
        background-image: linear-gradient(rgba(35, 230, 125, 0.35), rgba(35, 230, 125, 0.35));
    }
    to {
        background-image: linear-gradient(rgba(35, 230, 125, 0.1), rgba(35, 230, 125, 0.1));
    }
}

@keyframes increaseSliderTrackOpacity {
    from {
        background-image: linear-gradient(rgba(35, 230, 125, 0.1), rgba(35, 230, 125, 0.1));
    }
    to {
        background-image: linear-gradient(rgba(35, 230, 125, 0.35), rgba(35, 230, 125, 0.35));
    }
}

/*-------------------*/
/* RESPONSIVE STYLES */
/*-------------------*/
/* Styles for larger screens (desktops) */
@media (min-width: 1024px) {
    .container-md {
        max-width: 960px;
    }
}
