
body {
    font-family: 'MyLocalFont', sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center vertically */
}

#videoData {
    display: none;
}

.container,
.video-container,
#dataDisplay {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 5px;
}

/* Header styles */
.container-fluid {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(82, 145, 208, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text-primary {
    color: #5291d0 !important;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.text-muted {
    color: #6c757d !important;
    font-weight: 500;
}

.fs-4 {
    font-size: 1.5rem !important;
    line-height: 1.2;
}

.fw-bold {
    font-weight: 700 !important;
}

.brand-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px 0;
    }

    .container-fluid .container {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .container-fluid .container > div:first-child {
        width: 100%;
        margin: 0 0 15px 0;
        display: flex;
        justify-content: center;
    }
    
    .container-fluid .container > div:nth-child(2) {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .container-fluid .container > div:last-child {
        display: none;
    }

    .container-fluid .container h2.mb-0 {
        font-size: 1.4rem;
        margin-top: 5px;
    }

    .container-fluid .container p.mb-0 {
        font-size: 0.85rem;
    }

    .d-flex.align-items-center {
        width: auto !important;
        justify-content: center;
    }

    .container-fluid .d-flex.align-items-center img {
        width: 35px;
        height: 35px;
    }

    .container-fluid .fs-4 {
        font-size: 1.3rem !important;
    }
}

.video-container {
    position: relative;
    aspect-ratio: 4/2.5;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* Add shadow */
}

#home-image {
    width: 100%;
    height: auto;
    border-radius: 5%;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* Add shadow */
}

.others {
    color: #1e56a0;
}

.oval-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border: 3px solid #5291d0;
    border-radius: 50%/50%;
    pointer-events: none;
    z-index: 3;
}

#video,
#overlay {
    width: 100%;
    height: auto;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    -webkit-transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
    object-fit: cover;
}

#video {
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

input,
select,
button {
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 10px !important;
    background-color: #4caf50;
    color: white;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #ccc;
    color: #666;
}

.consent {
    text-align: justify;
}

.mt-4 {
    text-align: justify;
    color: #142f72;
}

#progressContainer {
    width: 100%;
    background-color: #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

#progressBar {
    height: 20px;
    background-color: #4caf50;
    width: 0%;
    border-radius: 4px;
}

#dataDisplay {
    width: 100%;
    margin-top: 20px;
}

.data-point {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.data-point:last-child {
    border-bottom: none;
}

.data-point span:first-child {
    font-weight: bold;
}

.data-point span:last-child {
    margin-left: auto;
}

#restartButton {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    margin-top: 20px;
}

.header {
    text-align: center;
    padding: 10px;
    background-color: #e8f4f8;
    border-radius: 8px;
    margin-bottom: 30px;
}

.header p {
    color: #555;
    font-size: 1.2em;
}

#countdownContainer {
    text-align: center;
    font-size: 1.5em;
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f8f8;
    max-width: 900px;
    border-radius: 5px;
    display: inline-block;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#countdownContainer span {
    font-weight: bold;
    color: #4caf50;
}

.info-icon-container {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
}

.info-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 900px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    z-index: 100;
    overflow-y: auto;
    margin-left: 5px;
    margin-right: 5px;
    max-height: 80vh;
}

#closeDialog {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    float: right;
    margin-top: 20px;
}

#closeDialog:hover {
    background-color: #0056b3;
}

#nextScreen {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 25px;
    border-radius: 30px;
    cursor: pointer;
    float: right;
    margin-top: 20px;
}

#nextScreen:hover {
    background-color: #0056b3;
}

.info-dialog h2 {
    margin-top: 0;
}

.error-message {
    color: #bf0000;
    font-size: 0.8em;
    display: none;
    display: block;
    margin-top: 2px;
    width: 100%;
    text-align: left;
    position: relative;
    clear: both;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.no-scroll {
    overflow: hidden;
    height: 100%;
}

.brand-text {
    font-size: 1.6em;
    font-weight: 700;
    color: #5291D0 !important;
    margin: 0;
    transition: color 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.brand-text2 {
    font-size: 1.1em;
    font-weight: 500;
    color: #424242 !important;
    margin: 0;
    opacity: 0.9;
}

/* Add smooth transition for hover effects */
.navbar-brand:hover .brand-text {
    color: #3a7ab8 !important;
}

.carousel-container {
    border: 1px solid #5291d0;
    border-radius: 20px;
    max-width: 100%;
    min-height: 90% !important;
    max-height: 90% !important;
    position: relative; /* Added to correctly position indicators */
}

.no-border {
    border: none !important;
    box-shadow: none !important;
}

.carousel-title {
    font-size: 1.9em;
    font-weight: 700;
    color: #434343 !important;
    align-items: center;
    padding-bottom: 20px; /* Added padding to create space */
}

.carousel-item {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:disabled {
    background-color: #8eb7e0 !important;
    border-color: #8eb7e0 !important;
    color: white !important;
    font-weight: bolder !important;
}

.btn-primary {
    background-color: #5291d0 !important;
    border-color: #5291d0 !important;
    color: white !important;
    font-weight: bolder !important;
    padding: 10px 20px !important;
    font-size: 20px !important;
    border-radius: 30px !important;
}

.btn-primary:hover {
    background-color: #287fd6 !important;
    border-color: #287fd6 !important;
}

.btn-scan-primary {
    background-color: #5291d0 !important;
    border-color: #5291d0 !important;
    color: #fefefe !important;
    font-weight: bolder !important;
}

.main-video-container {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    background-color:  white;
    border: 1px solid #5291d0;
    border-radius: 40px;
    padding: 20px;
}

#bpm {
    color: white;
    font-weight: bold;
}

@keyframes beat {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.beat-animation {
    animation: beat 1s infinite;
}

#heartImage {
    width: 80px;
    height: 80px;
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Consent checkbox styles */
input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

#consent {
    margin-right: 8px;
}

label[for="consent"] {
    font-size: 14px;
    line-height: 1.4;
    margin-left: 10;
    margin-right: 10;
    display: inline-block;
    vertical-align: top;
}

.p-1 {
    color: black;
    font-weight: normal;
}

#weight-unit, #height-unit {
    color: #142f72; /* Color the selected option in the dropdown */
    background-color: #fff; /* Set background color */
    -webkit-appearance: none; /* For WebKit browsers (e.g., Chrome, Safari) */
    -moz-appearance: none;    /* For Firefox */
    appearance: none;         /* Standard */
    padding-right: 30px;      /* Space for custom dropdown arrow */
}

#weight-unit option, #height-unit option {
    color: #142f72; /* Color for option text */
}

.carousel-container {
    border: 1px solid #5291d0;
    border-radius: 20px;
    max-width: 100%;
    height: 450px !important;
    position: relative;
    overflow: hidden;
    padding: 15px;
    margin: 10px;
}

.carousel-title {
    font-size: 1.9em;
    font-weight: 700;
    color: #434343 !important;
    align-items: center;
    padding-bottom: 20px;
    text-align: center;
}

.carousel-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

.carousel-inner {
    height: 100% !important;
    overflow-y: auto;
}

.card {
    background-color: #ffffff;
    padding: 15px;
    margin: 10px 0;
    width: 100%;
}

.card-title {
    font-size: 1.4em;
    color: #142f72;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-text {
    font-size: 1.2em;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Media query for mobile view */
@media (max-width: 768px) {
    .row {
        flex-direction: column; /* Stack elements vertically */
    }

    .col-lg-6 {
        width: 100%; /* Full width for columns on mobile */
    }

    #home-image {
        width: 100%; /* Make image responsive */
        height: auto;
        margin: 0 auto; /* Center the image */
        display: block; /* Ensure it takes full width */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .carousel-inner {
        height: auto; /* Remove fixed height for carousel */
    }

    .container {
        max-width: 100%;
    }

    #useDetailForm {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar-brand {
        text-align: center;
        display: block;
        margin: 20px auto;
    }

    .navbar-brand img {
        display: block;
        margin: 0 auto;
    }

    .carousel-container {
        border: 1px solid #5291d0;
        border-radius: 20px;
        max-width: 100%;
        height: 650px !important;
        position: relative;
        overflow: hidden;
        padding: 15px;
        margin: 10px;
    }


    #video {
        width: 100%; /* Changed to 100% width */
        height: auto; /* Maintain aspect ratio */
        z-index: 1;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        margin-bottom: 20px;
    }
    video {
        
        width: 100%; /* Changed to 100% width */
        height: auto; /* Maintain aspect ratio */
    }

    .video-container {
        position: relative;
        aspect-ratio: 16/9; /* Adjusted aspect ratio for better mobile viewing */
        height: 80vh; /* Set height to 80% of viewport height */
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* Add shadow */
    }

    
}
.test {
  width: 200px;
  height: 200px;
  margin: 10px 10px;
  border-radius: 50%;

	background-image: linear-gradient(red, red);
	background-size: 50% 50%;
	background-position: right top;
}

.test[value^="4"]::-webkit-progress-bar,
.test[value^="5"]::-webkit-progress-bar 
{
	background-image: linear-gradient(purple, purple);
	background-size: 50% 100%;
	background-position: right top;
}

.test[value^="6"]::-webkit-progress-bar,
.test[value^="7"]::-webkit-progress-bar,
.test[value="80"]::-webkit-progress-bar 
{
	background-image: linear-gradient(blue, blue), linear-gradient(blue, blue);
	background-size: 50% 100%, 50% 50%;
	background-position: right top, left bottom;
}

.test::-webkit-progress-bar, 
.test[value="2"]::-webkit-progress-bar, 
.test[value="3"]::-webkit-progress-bar, 
.test[value="4"]::-webkit-progress-bar, 
.test[value="5"]::-webkit-progress-bar, 
.test[value="6"]::-webkit-progress-bar, 
.test[value="7"]::-webkit-progress-bar, 
.test[value="8"]::-webkit-progress-bar {
	background-image: none;
	
} 

.test::-webkit-progress-value {
	background-color: green;
	height: 30%;
	transform-origin: left top;
	z-index: -1;
    position: absolute;
}

.test[value^="2"]::-webkit-progress-value,
.test[value^="3"]::-webkit-progress-value {
	background-color: red;
    top: -20%;
    left: 190%;
    transform: rotate(135deg) rotateX(-90deg) scaleX(3.9598);
}

.test[value^="4"]::-webkit-progress-value,
.test[value^="5"]::-webkit-progress-value {
	background-color: purple;
    left: 190%;
    top: 260%;
    transform: rotate(225deg) rotateX(-90deg) scaleX(3.9598);
}

.test[value^="6"]::-webkit-progress-value,
.test[value^="7"]::-webkit-progress-value,
.test[value="80"]::-webkit-progress-value {
	background-color: blue;
    left: -230%;
    top: 260%;
    transform: rotate(315deg) rotateX(-90deg) scaleX(3.9598);
}

.test::-webkit-progress-value, 
.test[value="2"]::-webkit-progress-value, 
.test[value="3"]::-webkit-progress-value, 
.test[value="4"]::-webkit-progress-value, 
.test[value="5"]::-webkit-progress-value, 
.test[value="6"]::-webkit-progress-value, 
.test[value="7"]::-webkit-progress-value, 
.test[value="8"]::-webkit-progress-value 
{
	background-color: green;
     left: 50%;
     top: -20%;
     transform: rotate(45deg) rotateX(-90deg) scaleX(3.9598);
}

progress {
  height: var(--size, 100px);
  width: var(--size, 100px);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
progress::-webkit-progress-value {
  background: transparent;
}
progress::-moz-progress-bar {
  background: transparent;
}
progress:before {
  position: absolute;
  width: calc(var(--size, 100px) - var(--thickness, 10px) * 2);
  height: calc(var(--size, 100px) - var(--thickness, 10px) * 2);
  background-color: var(--background);
  color: white;
  margin: auto;
  content: attr(value) "%";
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@for $percent from 0 through 99 {
  progress[value="#{$percent}"]::-webkit-progress-bar {
    background: conic-gradient(
      var(--color) 0% #{$percent}#{"%"},
      var(--track-color) #{$percent}#{"%"} 100%
    );
  }
}
progress[value="100"]::-webkit-progress-bar {
  background: var(--color);
}

#circularProgressBar {
    width: 50%;
    height: auto;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Style for the Vitalyst logo */
.vitalyst-logo {
    display: block;
    margin: 20px auto; /* Center the logo */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* Add shadow */
}

/* Media query for mobile view */
@media (max-width: 768px) {
    .vitalyst-logo {
        width: 100%; /* Make logo responsive */
        max-width: 300px; /* Set a maximum width */
        margin: 20px auto; /* Center the logo */
    }

    #home-image {
        width: 100%;
        max-width: 400px;
        margin: 10px auto;
        display: block;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* Media query for desktop view */
@media (min-width: 769px) {
    .main-content {
        display: flex;
        justify-content: space-between;
    }

    #home-image-container {
        flex: 1;
        margin-right: 20px;
    }

    #home-image {
        width: 100%;
        height: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    #form-container {
        flex: 1;
    }
}

/* Style to fix carousel indicator overlap */
.carousel-inner {
    position: relative; /* Added to position indicators correctly */
}

.carousel-title {
    padding-bottom: 20px;
}

/* Toast Message Styles */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 9999;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    white-space: pre-line;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Network Status Indicators */
.toast-message[data-status="good"] {
    border-left: 4px solid #4CAF50;
}

.toast-message[data-status="fair"] {
    border-left: 4px solid #FFA500;
}

.toast-message[data-status="poor"] {
    border-left: 4px solid #ff4444;
}
