:root {
  --primary-color: #5375e2;
  --bs-primary: #5375e2;
  --background-color: #f6f8fe;
  --success-color: #0f9918;
  --error-color: #e54545;
  --gray-1: #19191a;
  --gray-2: #333333;
  --gray-3: #4d4d4d;
  --gray-4: #808080;
  --gray-5: #bfbfbf;
  --gray-6: #e6e6e6;
  --gray-7: #f0f0f0;
  --grayscale-white: #ffffff;
}

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--background-color) !important;
  font-family: "Montserrat", sans-serif;
}

/* Mark all headings as bold */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 3px;
  min-width: 150px;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-outline-primary {
  background-color: var(--grayscale-white);
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-secondary {
  background-color: var(--gray-6);
  color: var(--gray-4);
  border-color: var(--gray-6);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.form-control:focus {
  border-color: #000;
  box-shadow: none;
}

.popup-screen h1 {
  color: var(--primary-color);
}
.popup-screen p {
  color: var(--gray-4);
  font-size: 1.5rem;
}

.modal-dialog {
  top: 50%;
  transform: translateY(-58%) !important;
}

.navbar {
  background-color: #fff;
  padding: 0.5rem 2.5rem;
}

.navbar-brand .username {
  color: var(--gray-4);
  font-weight: normal;
}
svg.circular-progress {
  background-image: url("../images/trophy.svg");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: 50%;
}
.circular-progress circle {
  fill: none;
  stroke-linecap: round;
}

.circular-progress circle.bg {
  stroke: #ddd;
}

.circular-progress circle.fg {
  transform: rotate(-90deg);
  transform-origin: var(--half-size) var(--half-size);
  stroke-dasharray: 628.32;
  stroke-dashoffset: 600;
  transition: stroke-dasharray 0.3s linear 0s;
  stroke: var(--primary-color);
}

.get-certificate-link a {
  color: var(--gray-4);
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Certificate */

.certificate {
  background-image: url("certificate-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 20px;
  color: #ffffff;
}

.certificate-header {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.certificate-content {
  font-size: 16px;
  line-height: 1.5;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-gray-7 {
  background-color: var(--gray-7) !important;
}

.border-gray-5 {
  border-color: var(--gray-5) !important;
}

.text-gray-4 {
  color: var(--gray-4) !important;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  -ms-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 20px;
  margin-bottom: -5px;
  height: 20px;
  border: 2px solid var(--blue);
  background-color: transparent;
  transition: 0.2s all ease-in-out;
  border: 1px solid var(--gray-5);
}

input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border: 1px solid #fff;
}

.mail-item {
  cursor: pointer;
  color: var(--gray-4);
}

.mail-count {
  width: 24px;
  height: 24px;
  line-height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
}

.mail-item:hover {
  background-color: #fff;
}

.mail-subject {
  font-weight: bold;
  color: var(--gray-3);
}

.mail-subject:hover {
  color: var(--primary-color);
  cursor: pointer;
}

.mail-from {
  color: var(--gray-3);
}

.user-profile {
  width: 60px;
  height: 60px;
  border-radius: 100%;
  overflow: hidden;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Quiz */
.question {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}
.option-box {
  border: 1px solid var(--gray-6);
  border-radius: 0.25rem;
  padding: 10px;
  margin-bottom: 10px;
}

.quiz-container {
  background-color: var(--background-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-container input[type="radio"] {
  min-width: 1rem;
}

/* Score box */
.score-box {
  font-family: Montserrat, sans-serif;
  font-weight: normal;
  font-size: 20px;
  padding: 10px;
  color: var(--primary-color);
}
.correct {
  color: var(--success-color);
}

.incorrect {
  color: var(--error-color);
}

#quizForm .form-check {
  display: flex;
  width: 100%;
  align-items: center;
  height: 100%;
}
#quizForm .form-check-input {
  margin-right: 1rem;
}

.question-image {
  background-position: 90% 95%;
  background-repeat: no-repeat;
  background-image: url("../images/question-marks.png") !important;
}

.mt-negative-3rem {
  margin-top: -3rem;
}

.password-background-section {
  background-image: url("../images/password-activity-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 20px;
  color: #ffffff;
}

#chatActivityScreen .chat-col {
  position: relative;
}

.chat-col::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 500px;
  background-image: url("../images/chat-girl.svg");
  top: -200px;
  left: -33%;
  background-repeat: no-repeat;
}

.chat-col::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background-image: url("../images/chat-boy.svg");
  bottom: -400px;
  right: -45%;
  background-repeat: no-repeat;
}

.chat-question,
.chat-reply {
  max-width: 65%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
}

.chat-question {
  margin-left: 10px;
  background-color: #007bff;
  color: white;
  border-bottom-left-radius: 0;
  text-align: left;
}

.chat-reply {
  margin-right: 10px;
  background-color: #f8f9fa;
  color: black;
  align-self: flex-end;
  border-bottom-right-radius: 0;
  text-align: right;
}

.chat-window {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.chat-reply.bg-success,
.chat-reply.bg-danger {
  color: white;
}

.table-wrapper {
  color: black;
  display: table;
  font-size: 24px;
  text-align: center;
  margin: auto;
}

.certificate-container {
  width: 100vw;
  min-height: 563px;
  display: table-cell;
  vertical-align: middle;
}
.logo {
  color: #5375e2;
}

.marquee {
  color: #5375e2;
  font-size: 48px;
  margin: 20px;
}
.assignment {
  margin: 20px;
}
.person {
  border-bottom: 2px solid black;
  font-size: 32px;
  font-style: italic;
  margin: 20px auto;
  width: 400px;
}
.reason {
  margin: 20px;
}

@media print {
  #save-pdf {
    display: none;
  }
  #navbar.navbar {
    display: none !important;
  }
  .score-box {
    display: none !important;
  }
}

/* Media Queries */
@media (max-width: 1199px) {
  .chat-col::before {
    width: 350px;
    height: 500px;
    top: -250px;
    left: -40%;
    transform: scale(0.7);
  }

  .chat-col::after {
    width: 500px;
    height: 500px;
    bottom: -360px;
    right: -55%;
    transform: scale(0.7);
  }
}
@media (max-width: 991px) {
  .btn {
    padding: 0.5rem 1rem;
  }
  .btn-primary {
    min-width: 100px;
  }
  .btn-outline-primary {
    min-width: 100px;
  }
  .btn-secondary {
    min-width: 100px;
  }
  .popup-screen h1 {
    font-size: 2rem;
  }
  .popup-screen p {
    font-size: 1.2rem;
  }
  .popup-screen .col-lg-6:nth-child(2) {
    display: none;
  }

  .chat-col::before {
    display: none;
  }
  .chat-col::after {
    display: none;
  }

  #togglePassword {
    min-width: 60px;
  }
}

/* Mobile Screen */
@media (max-width: 767px) {
  .popup-screen h1 {
    font-size: 1.4rem;
  }
  .popup-screen p {
    font-size: 1rem;
  }
}
