
:root {
    --white: rgba(255, 255, 255, 1);
    --black: rgba(0, 0, 0, 1);
    --input-border: rgba(158, 158, 158, 1);
    --main-color: rgba(190, 112, 255, 1);
    --darker-purple: rgba(85, 0, 155, 1);
    --dark-purple: rgba(4, 0, 8, 1);
    --main-color-gradient: linear-gradient(
      180deg,
      rgb(142.82, 187.31, 255) 100%,
      rgba(197, 220, 255, 0.5) 96.88%,
      rgba(196, 196, 196, 0) 100%
    );
  }

  * {
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
  }

  body, html {
    font-family: 'Roboto', sans-serif;
    background: url(img/wallpaper.svg)  no-repeat fixed center / cover;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
  }

  .doctor-view {
    overflow: auto;
  }

  .main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-content-profile {
    display: block;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
  }

  #main-content-patient {
    position: relative;
    z-index: 1;
    overflow: auto;
    margin-bottom: 10px;
  }
  
  .home {
    background-color: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

.header {
  width: 100%;
}

.header .rectangle {
    position: fixed;
    width: auto;
    height: 63px;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--darker-purple);
    border-radius: 10px;
    margin: 10px;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.main-patient {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.main-profile {
  margin: auto;
  max-width: 420px;
}

.main-doctor {
  margin-top: 80px;
}

.sidebar {
  width: 200px;
  position: fixed;
  left: 0;
  top: 80px;
  height: 100%;
  background: var(--main-color-gradient);
  z-index: 100;
  transition: left 0.3s ease;
}

#nav-toggle:checked ~ .main-content {
  transition: left 300ms;
}


.sidebar::before {
  display: none;
}

#nav-toggle {
  display: none;
}

.sidebar-menu {
  margin-top: 1rem;
}

.sidebar-menu li{
  width: 100%;
  margin-bottom: 0.5rem;

}

#menu li:nth-child(2) a {
  margin-top: 25px;
}

.sidebar-menu a {
  display: block;
  color: var(--darker-purple);
  font-size: 20px;
}



#nav-toggle:checked + .sidebar {
  display: none;
}

.sidebar-menu a:hover {
  color: #fff;
  transition: 0.5s;
}

#version {
  display: block;
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: bold;
  position: fixed;
  bottom: 3%;
  width: 100%;
}

.group-icon-header {
  display: flex;
  justify-content: space-between;
}

.profile-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px 20px 20px 15px;
  position: relative;
  top: -14px;
}

.profile-button img {
  height: 45px;
  width: 45px;
}

.profile-button span {
  padding-top: 2px;
  font-size: 12px;
  font-weight: 200;
  color: #fff;
}

.welcome-text-2 {
  position: relative;
  color: var(--main-color);
  display: flex;
  align-items: center;
  bottom: 14px;
  right: 10px;
  text-align: center;
}

.welcome-text-2 h2 {
  font-family: 'Arial', sans-serif; /* Use a clean, modern font */
  text-align: center; /* Center-align text */
  margin: 0; /* Remove default margin */
  border-radius: 8px; /* Rounded corners */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); /* Slight text shadow */
  letter-spacing: 1px; /* Add spacing between letters */
}

.neon {
  color: #7FDBFF; /* Softer neon color */
  font-weight: bold; /* Make it bold */
  text-shadow: 0 0 3px #7FDBFF, 0 0 3px #7FDBFF, 0 0 3px #7FDBFF, 0 0 3px #7FDBFF; /* Reduced shadow intensity */
  animation: neon-animation 1.5s infinite alternate; /* Apply the animation */
}

@keyframes neon-animation {
  from {
      text-shadow: 0 0 3px #7FDBFF, 0 0 6px #7FDBFF, 0 0 9px #7FDBFF, 0 0 12px #7FDBFF;
  }
  to {
      text-shadow: 0 0 6px #7FDBFF, 0 0 12px #7FDBFF, 0 0 18px #7FDBFF, 0 0 24px #7FDBFF;
  }
}

.triple-line-button {
  margin: 20px;
  cursor: pointer;
}

.register-button-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 20px 0 0;
  cursor: pointer; 
}

.register-button-index img {
  height: 30px;
  width: 30px;
}

.register-button-index span {
  font-size: 12px;
  font-weight: 200;
  color: #fff;
}


.register-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 20px 0 0;
  cursor: pointer;
  
}

.register-button img {
  height: 30px;
  width: 30px;
}

.register-button span {
  font-size: 12px;
  font-weight: 200;
  color: #fff;
}

.register-button-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: -22px 20px 0 0;
  cursor: pointer;
}

.register-button-home img {
  height: 30px;
  width: 30px;
}

.register-button-home span {
  font-size: 12px;
  font-weight: 200;
  color: #fff;
}


.login-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 20px 0 0;
}

.login-button img {
  margin-top: 2px;
  height: 25px;
  width: 25px;
}

.login-button span {
  margin: 3px 0 0 0;
  font-size: 12px;
  font-weight: 200;
  color: #fff;
}

#welcome-text {
  color: var(--darker-purple);
  font-size: 20px;
}

.welcome-text-1 {
  color: var(--darker-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.welcome-text-1 h1 {
  height: 10px;
}

.welcome-text-1 span {
  font-size: 30px;
  font-weight: 500px;
}

.welcome-text-1 p {
  text-align: center;
}

/* Doctor register page */

#register-welcome-text {
  color: var(--darker-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

#register-welcome-text h1 {
  height: 10px;
}

#register-welcome-text span {
  margin-top: -30px;
  font-size: 30px;
  font-weight: 500px;
}

#register-welcome-text p {
  text-align: center;
}

/* End */

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto ;
  width: 200px;
}

/* Patient reading box */
.glowing-box {
  border-radius: 5px;
  border: 1px solid var(--main-color);
  padding: 5px;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 200px;
  background-color: var(--darker-purple);
  color: var(--white);
}

.glowing-box table {
  border-collapse: collapse; 
  width: 100%;
}

.glowing-box td{
  border: none;
  padding: 3px 5px;
}

.best-line {
  border: none;
}

.glowing-effect {
  animation: glow 1s infinite alternate;
}

.no-glow {
  color: var(--dark-purple);
  background-color: transparent;
  box-shadow: none;
}

@keyframes glow {
  from {
      box-shadow: 0 0 10px rgb(140, 0, 255);
  }
  to {
      box-shadow: 0 0 20px rgb(140, 0, 255);
  }
}

.scan-button-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background-color: var(--main-color);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.scan-button-box:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.Pefr {
  padding-bottom: 20px;
  color: var(--darker-purple);
}

.black-text {
  color: black !important; /* Ensures the color is applied */
}

.container .element-MY-PEF {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .element-MY-PEF img {
  width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  /* margin: 10px; */
}

.group-text .text1 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  width: 70vw;

}

.switch-role {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 0 0;
  border-radius: 5px 5px 5px 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.switch-role .box-patient {
  border-radius: 5px 0px 0px 5px;
  padding: 7px 20px 7px 20px;
  background: var(--main-color);
  color: var(--white);
  cursor: pointer;
}

.switch-role .box-doctor {
  border-radius: 0px 5px 5px 0px;
  padding: 7px 20px 7px 20px;
  background: var(--main-color-gradient);
  color: var(--darker-purple);
  cursor: pointer;
}

.box-patient, .box-doctor {
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.box-patient span, .box-doctor span {
  cursor: pointer;
}

.box-patient.active, .box-doctor.active {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.box-patient:hover, .box-doctor:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.box-patient:active, .box-doctor:active {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.input-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  max-width: 385px;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 5px;
}

.input-row input, 
.input-row select {
  flex: 1;
  padding: 6px;
  margin: 0 1px;
  border-radius: 10px;
  border: 1px solid #ccc;
  width: 80vw;
}

.input-row select {
  margin-top: 10px;
  flex: 1.5;
}

.input-row input:focus {
  outline: none;
  border-color: #4CAF50;
}

.input-row input::placeholder,
.input-row select{
  color: #999;
}

#top-input-row {
  margin-top: 20px;
}

#input-row-role {
  text-align: center;
}

.take-picture-button1 {
  text-align: center;
}

.take-picture-button1 button {
  padding: 7px 20px;
  background-color: var(--main-color);
  color: var(--white);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  font-size: 14px;
}

.take-picture-button1 button:hover {
  background-color: var(--main-color-gradient);
}

.take-picture-button1 span {
  padding-left: 5px;
  font-size: 16px;
}

.top-container {
  margin-top: 20px;
  width: fit-content;
  display: flex;
  /* flex-direction: column; */
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.date-time-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--darker-purple);
  color: var(--white);
  padding: 10px;
  margin: 20px 15px;
  width: 125px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.date1 ,
.time1 {
  font-weight: bold;
  white-space: nowrap;
  font-size: 14px;
  color: var(--white);
}

#current-date,
#current-time {
  font-weight: lighter;
  color: var(--white);
}

.night-morning-box {
  z-index: -1;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--white) ;
  padding: 2.5px;
  margin: 20px 15px;
  width: 125px;
  max-width: 175px;
  height: fit-content;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.night-box {
  background: var(--darker-purple);
  color: var(--white);
  margin: 1px 2px 0 2px;
}

#night-icon, #day-icon {
  padding-left: 5px;
}

.day-box {
  background-color: #bbbbbb;
  color: var(--darker-purple);
  margin: 0 2px 1px 2px;
}

.night-box,
.day-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  padding: 3px;
  border-radius: 16px;
}

.night-box span,
.day-box span {
  margin-left: 10px;
}

/* Align the icons and text horizontally */
.night-box .las, .day-box .las {
  display: flex;
  align-items: center;
}

/* Ensure the check icon is visible beside the text */
#night-check-icon, #day-check-icon {
  margin-left: 5px;
}


/* #night-check-icon,
#day-check-icon {
  position: absolute;
  display: inline-flex;
  right: 10px;
  border: none;
} */

.sun-moon-container {
  z-index: -1;
  display: flex;
  align-items: center;
}

.sun-moon-container img {
  width: 75px;
  height: auto;
  display: none; /* Initially hide both icons */
}

.light-theme {
  background-color: #fff;
  color: #333;
  overflow: scroll;
}

.dark-theme {
  background: url(img/wallpaper-dark.svg)  no-repeat fixed center / cover;
  background-color: #000000;
  .welcome-text-1 {
    color: var(--white);
  }
  .polygon-properties span {
    color: var(--white);
  }

  .Pefr {
    color: var(--white);
  }
    
}

.blur {
  filter: blur(10px);
  pointer-events: none;
}

#patientCanvas {
  position: absolute;
  top: 20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  height: 50vh;
  z-index: 1000 ;
  pointer-events: none; 
  /* border: 2px solid #000; */
}

#patientCanvas.active {
  z-index: 10; /* z-index when the canvas is on top */
}


.polygon-container-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 150px;
}

.polygon-container-1-doctor {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.polygon-container-1-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.polygon-container-1-index img {
  width: 50px !important;
  font-size: bold;
  height: 50px;
}

#login-span {
  position: relative;
  top: -2px;
  font-weight: bold;
}

.polygon-properties {
  background: url(img/Polygon-4.png) no-repeat;
  background-size: cover;
  width: 100px;
  height: 115px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--darker-purple);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

/* Slightly increase size when hovered */
.polygon-properties:hover {
  transform: scale(1.1);
}

/* Shrink slightly when clicked */
.polygon-properties:active {
  transform: scale(0.9);
}


.scan-button {
  margin-top: 25px;
  text-align: center;
}

.scan-button button {
  padding: 5px 20px;
  background-color: var(--main-color);
  color: var(--white);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  font-size: 14px;
}

.scan-button button:hover {
  background-color: var(--main-color-gradient);
  color: var(--darker-purple);
}

.scan-button span {
  padding-left: 5px;
  font-size: 16px;
}

#patient-icon,
#graph-icon {
  margin-bottom: 5px;
  width: 38px;
  /* color: #417f00; */
}

#graph-icon {
  position: relative;
  bottom: -4px;
}

#patient-span,
#graph-span {
  position: relative;
}

.back-button img {
  margin: 15px 0 15px 8px;
  height: 35px;
  width: 35px;
}

.profile-text {
  margin-left: 20px;
  margin-top: 90px;
  color: var(--darker-purple);
  font-size: 16px;
}

.profile-picture-box {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.profile-picture {
  position: relative;
  background-size: cover ;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

#profile-picture {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: var(--white) solid 2px;
  object-fit: cover;
}

.edit-profile {
  position: absolute;
  bottom: -5px;
  right: -5px;
  /* background: url(img/pencil-icons.png) no-repeat center ; */
  background-color: #a3a3a3;
  background-size: 70% auto;
  border: var(--white) solid 2px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
}

#pencil-icon {
  display: block;
  position: absolute;
  margin: 1px auto;
  bottom: 1px;
  right: 1px;
  width: 27px;
  height: 27px;
  cursor: pointer;
}

.first-box {
  position: relative;
  width: 200px;
}

.second-box {
  position: relative;
  width: 200px;
}

.first-row-box input[type="text"],
.second-row-box input[type="text"] {
  background-color: transparent;
  border: none;
  color: #333;
  font-size: 14px;
}

#Account {
  margin-top: 30px;
  font-size: 24px;
}

.content-box {
  margin: 10px;
}

.content-box hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.8); 
}

.Account-box-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.Account-box-child .first-row-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.Account-box-child .second-row-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.Account-box-child hr {
  width: 190px;  
  border: none;
  height: 1px;
  background: rgba(110, 110, 110, 0.8); 
}

.hr-container {
  display: flex;
  justify-content: center;
}

#account-hr {
  width: calc(100% - 5px);
  max-width: 100%;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  height: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px; 
  height: 20px;

  position: absolute;
  top: 50%;
  transform: translateY(-90%);
  right: 0;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

.button-box {
  display: flex;
  justify-content: space-evenly; 
  gap: 15px; 
  position: absolute;
  bottom: 20px;
  margin-top: 20px; 
  width: 100%;
}

.button-cancel button, 
.button-save button {
  border: none;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 190px;
  height: 25px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}


.button-cancel button {
  background-color: var(--white);
  color: var(--darker-purple);
  font-weight: bold;
}

.button-save button {
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
}

/* Modal styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.5); /* Slightly darker background for better contrast */
}

.modal-content {
  background-color: var(--main-color);
  margin: auto;
  padding: 4px;
  border-radius: 15px;
  width: 50%; /* Adjust width as needed */
  max-width: 300px; /* Optional: Limit maximum width */
  position: relative; /* Ensure close text is positioned correctly */
  top: 50%;
  transform: translateY(-50%); /* Center vertically */
  box-sizing: border-box;
  text-align: center;
  font-size: 16px;
  color: var(--white);
}

.close-text {
  text-align: center;
  color: var(--white);
  font-size: 16px;
  margin-top: 1px; /* Space between message and close text */
}


.close-btn {
  color: #aaa;
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}


/* end */

.error-message {
  color: red;
  font-size: 18px;
  position: sticky;
  z-index: 1000;
}

.happy-face {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.happy-face img {
  width: 150px;
  height: 150px;
}

.happy-face .message-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sad-face .message-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.happy-face span,
.sad-face span {
  text-align: center;
  width: 365px;
  font-size: 24px;
  font-weight: bold;
  color: var(--darker-purple);
}

.main-content-doctor {
  /* margin-top: 100px; */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  /* height: 100vh; */
}

.container-doctor {
  background-color: #f5f5f5;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  width: 90vw;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 20px;
  overflow-x: auto;
}

.pagination label {
  position: relative;
  right: -5px;
  font-size: 13.5px;
  margin-bottom: 1px;
} 

.search-bar {
  margin-bottom: 20px;
  margin: 0 10px 20px 10px;
  display: flex; /* Make the container flex */
  align-items: center; /* Align items vertically */
}

.search-bar input[type="text"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
  flex: 1; /* Allow the input to grow and take available space */
}

.search-bar button {
  padding: 8px 15px;
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ccc;
  white-space: nowrap;
}

#patientTable tbody tr {
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--darker-purple);
  padding: 10px 0;
  margin-right: 10px;
}

.pagination select {
  padding: 5px;
  border: hidden;
  border-radius: 5px;
  background-color: transparent;
  color: var(--darker-purple);
}

/* Form style */
#registrationForm {
  width: 95vw;
  justify-content: center;
}

/* Style for Capture Face button */
#capture-button {
  margin-top: 10px; 
  padding: 10px 20px; 
  font-size: 16px; 
  background-color: #007bff; 
  color: #fff; 
  border: none;
  border-radius: 5px; 
  cursor: pointer;
}

/* Change button style when hovered */
#capture-button:hover {
  background-color: #0056b3;
}

.patient-info-container {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.patient-summary-box {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  background-color: var(--white);
  padding: 1px;
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--main-color);
}

.summary-column {
  display: flex;
  gap: 5px;
}

.summary-item {
  height: auto;
  width: 70px;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(73, 36, 206, 0.5);
}

.summary-item span {
  display: block;
  font-weight: bold;
  margin-bottom: 1px;
  font-size: 13px;
  color: var(--darker-purple);
}

.summary-item p {
  font-size: 13px;
  margin: 0;
  color: var(--darker-purple);
}


#Patient-detail {
  display: block;
  bottom: 10px;
  margin: 0 auto 0 0;
  /* align-items: center; */
  font-size: 24px;
  color: var(--darker-purple);
}

/* canvas video css */

em {
  font-weight: bold;
}

video {
  clear: both;
  display: block;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  margin: 0 auto;
}

section {
  opacity: 1;
  transition: opacity 500ms ease-in-out;
}

.removed {
  display: none;
}

.invisible {
  opacity: 0.2;
}

.detectOnClick,
.blend-shapes {
  position: relative;
  float: left;
  width: 48%;
  margin: 2% 1%;
  cursor: pointer;
}

.detectOnClick p {
  position: absolute;
  padding: 5px;
  background-color: #007f8b;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  z-index: 2;
  font-size: 12px;
  margin: 0;
}

.highlighter {
  background: rgba(0, 255, 0, 0.25);
  border: 1px dashed #fff;
  z-index: 1;
  position: absolute;
}

.canvas {
  z-index: 1000;
  position: absolute;
  pointer-events: none;
}

.output_canvas {
  display: none;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
}

.detectOnClick {
  z-index: 0;
}

.detectOnClick img {
  width: 100%;
}

.blend-shapes-item {
  display: flex;
  align-items: center;
  height: 20px;
}

.blend-shapes-label {
  display: flex;
  width: 120px;
  justify-content: flex-end;
  align-items: center;
  margin-right: 4px;
}

.blend-shapes-value {
  display: flex;
  height: 16px;
  align-items: center;
  background-color: #007f8b;
}

#webcam {
  display: none;
  z-index: -1;
  position: absolute;
  /* left: 0;
  top: 0; */
  width: 100%;
  height: auto;
}

#webcamreg {
  display: block;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%) scaleX(-1);
  width: 70vw;
  height: 70vh;
  z-index: 1000;
  pointer-events: none;
}

.input-output-container {
  position: relative;
  display: block;
  margin: 0 auto;
  top: -25vh;
}

.webcam-style {
  display: none;
  position: relative;
  margin: auto 0;
  width: 100%;
}

.output_canvas {
  position: absolute;
  left: 0;
  top: 0;
}

#videoContainer {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* Yes No button */

/* .button-box {
  display: flex;
  justify-content: space-evenly; 
  gap: 15px; 
  position: absolute;
  bottom: 20px;
  margin-top: 3px; 
  width: 100%;
} */

#no-button , 
#yes-button  {
  border: none;
  width: 80px;
  height: 25px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}


#no-button {
  background-color: var(--white);
  color: var(--darker-purple);
  font-weight: bold;
}

#yes-button {
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
}

#yes-button:hover {
  background-color: var(--darker-purple);
}

#no-button:hover {
  background-color: var(--input-border);
}

#output {
  position: absolute;
  top: 490px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.2em;
  color: #000;
  z-index: 1000;
}



/* FaceID gif */

#successGif, 
#failureGif,
#loaderGif {
  z-index: 2;
  /* position: fixed; */
  /* position: absolute; */
  left: 35vw;
  top: 35vh;
  margin: 0 auto;
  width: 30vw;
  height: 30vh;
}

body.blurred .main-content {
  filter: blur(10px);
}

#faceIDContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

#faceIDContainer img {
  width: 200px;
  height: auto;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  display: none;
}

body.blurred #overlay {
  display: block;
}

/* end */


#instructions {
  position: sticky;
  border-radius: 5px;
  padding: 1px;
  z-index: 1001; /* Ensure the instructions are above the canvas */
  text-align: center;
  background-color: var(--main-color);
  color: var(--white);
  border-radius: 5px; 
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  font-size: 11px;
}

.container-graph {
  margin: auto;
  max-height: 50vh;
  height: 300px;
  max-width: 95vw;
  border-radius: 10px;
}

#patientName {
  padding-left: 10px;
  font-size: 24px;
  color: var(--darker-purple);
}

#pefChart {
  margin: 10px;
  max-height: 100%;
  background-color: #f5f5f5;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 5px;
}

.info-section {
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 40px;
  border-radius: 10px;
  background-color: #f5f5f5;
  color: rgba(85, 0, 155, 1);
  font-size: 0.8rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.bold-label {
 font-weight: bold;
 color: var(--darker-purple);
}

.container-graph-patient {
  position: relative;
  margin-top: 20px;
  max-height: 50vh;
  max-width: 100vw;
  border-radius: 10px;
}

#pefChart-patient {
  display: flex;
  justify-content: center;
  align-item: center;
  margin: auto;
  background-color: #f5f5f5;
  width: 90vw;
}



/* Responsive style */

@media screen and (max-width: 380px) {

  .input-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    max-width: 265px;
    width: 100%;
    margin-bottom: 5px;
  }

  .input-row input:first-child{
    margin-bottom: 5px;
    /* width: 80vw; */
  }

  .input-row select{
    width: 80vw;
  }

  h3, .first-box input, .second-box input {
    margin-left: 30px;
  }

  .button-cancel button, 
  .button-save button {
    width: 150px; 
    padding: 0 20px;
  }

  table th:nth-child(3),
  table td:nth-child(3),
  table th:nth-child(4),
  table td:nth-child(4),
  table th:nth-child(6),
  table td:nth-child(6) {
    display: none;
  }
}

@media screen and (max-width: 395px) {

  .button-cancel button, 
  .button-save button {
    width: 150px; 
    padding: 0 20px;
  }

  .input-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    max-width: 265px;
    width: 100%;
    margin-bottom: 5px;
  }

  .input-row input:first-child{
    margin-bottom: 5px;
    /* width: 80vw; */
  }

}

@media screen and (max-width: 560px) {
  table th:nth-child(4),
  table td:nth-child(4),
  table th:nth-child(3),
  table td:nth-child(3),
  table th:nth-child(6),
  table td:nth-child(6) { 
    display: none;
  }

  .button-cancel button, 
  .button-save button {
    width: 150px; 
    padding: 0 20px;
  }

  .input-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    max-width: 265px;
    width: 100%;
    margin-bottom: 5px;
  }

  .input-row input:first-child{
    margin-bottom: 5px;
    /* width: 80vw; */
  }

}

@media screen and (max-width: 670px) {
  table th:nth-child(3),
  table td:nth-child(3),
  table th:nth-child(6),
  table td:nth-child(6) { 
    display: none;
  }
}


@media screen and (max-width: 768px) {
  /* table th:nth-child(3),
  table td:nth-child(3), */
  /* table th:nth-child(4),
  table td:nth-child(4) */
  /* table th:nth-child(5),
  table td:nth-child(5), */
  table th:nth-child(6),
  table td:nth-child(6) { 
    display: none;
  }

}

@media screen and (min-width: 768px) and (max-width: 992px) {

}
