/* Custom Sub-Submenu style */
#navigation .sub-submenu {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  min-width: 225px;
  z-index: 9999;
  top: 0;
  left: 100%;
  padding: 10px 0;
}

#navigation .submenu li:hover>.sub-submenu {
  display: block;
}

#navigation .sub-submenu>li>a {
  padding: 8px 20px;
}

/* Login Section Start */
.login-container {
  max-width: 480px;
  margin: 1% auto;
  padding: 2rem;
}

.form-control-user {
  border-radius: 30px;
  padding: 1.8rem;
  font-size: 1.3rem;
}

.btn-user {
  border-radius: 30px;
  padding: 0.8rem;
  font-weight: 600;
  font-size: 1.4rem;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 5px 0;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
  /* line color */
}

.separator:not(:empty)::before {
  margin-right: 10px;
}

.separator:not(:empty)::after {
  margin-left: 10px;
}

.separator span {
  color: #585858;
  font-weight: bold;
  font-size: 1.3rem;
}

.btn-google {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  background-size: 175% auto;
  background-position: left center;
  color: black;
  padding: 0.7rem;
  border: 1px solid black;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
  text-align: center;
}

.btn-google:hover {
  background: black;
  color: white;
  border: 1px solid #2873f3;
}

.login-heading {
  font-weight: 700;
  color: #343a40;
}

.custom-control-label {
  cursor: pointer;
  font-size: 1.15rem;
  color: #495057;
  user-select: none;
}

.custom-control-input:checked~.custom-control-label {
  font-weight: 500;
  transform: scale(1.15);
  color: #2f3293;
}

.forgot-password {
  font-size: 1.25rem;
  /* ~20px */
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
  color: #2f3293;
}

.signup {
  font-size: 1.25rem;
  /* ~20px */
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
}

.signup:hover {
  text-decoration: underline;
  color: #2f3293;
}


/* Dropdown section On Home Navdar */
.dropdown-menu .dropdown-item {
  transition: all 0.2s ease;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  margin: 4px 8px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f0f4ff;
  color: #0056b3;
}

.dropdown-menu .logout-item:hover {
  background-color: #ffecec;
  color: #c82333;
}

.dropdown-menu .profile-item:hover {
  background-color: #e7f5ff;
  color: #0066cc;
}

/* Mobile Menu Navdar  */
/* Extend from main.js */
.slicknav-auth {
  padding-top: 15px;
}

/* Cognitive Tests grid Section Start */
.test-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 13px;
  justify-items: stretch;
}

.test-grid2 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.test-card {
  background: linear-gradient(135deg, #f0f8ff, #e6f0ff);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  text-align: center;
  transition: all 0.4s ease;
  width: 100%;
  max-width: 350px;
  position: relative;
  overflow: hidden;
}

.test-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

.test-icon {
  font-size: 52px;
  color: #0d6efd;
  margin-bottom: 20px;
  animation: floatIcon 2.5s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.test-card h4 {
  font-family: fontCogRobotoLight;
  font-size: 2.5rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 15px;
}

.test-card p {
  font-size: 1.7rem;
  font-family: fontCogRobotoNormal;
  font-weight: 300;
  color: #000000;
  margin-bottom: 20px;
}

.test-card button.btn {
  background: linear-gradient(120deg, #0d6efd, #6610f2);
  background-size: 175% auto;
  background-position: left center;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-position 0.4s ease;
}

.test-card button.btn:hover {
  background-position: right center;
  transform: scale(1.05);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}


@media screen and (min-width:992px) and (max-width: 1199px) {
  .test-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
  }
}

@media screen and (min-width:768px) and (max-width: 991px) {
  .test-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
  }
}

@media screen and (min-width:576px) and (max-width: 767px) {
  .test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
  }
}

@media screen and (max-width: 575px) {
  .test-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    justify-items: stretch;
  }

  .test-grid2 {
    flex-direction: column;
    align-items: center;
  }
}

/* Cognitive Tests grid Section End */

/* Gaming Section (CRT, GO/NO-GO, Visual Search, Digit Span, Stroop, 
Trail Making, Verbal Memory) Start */

/* Global styles for all games start*/
.game-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.game-modal-box {
  background: linear-gradient(135deg, #f0f8ff, #e6f0ff);
  padding: 30px 35px;
  border-radius: 16px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  animation: zoomIn 0.4s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

.hidden {
  display: none !important;
}

.test-name-header {
  font-family: Arial, sans-serif;
  font-size: 30px;
  margin-bottom: 20px;
  max-width: 98%;
  text-align: center;
}

.color-button {
  font-size: 18px;
  width: auto;
  padding: 12px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.color-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 25px;
  cursor: pointer;
  font-size: 35px;
  font-weight: bold;
}

.close-btn:hover {
  color: red;
}

.game-result {
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  margin-top: 20px;
}

.instructions-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-family: Arial, sans-serif;
}

.instructions-text {
  margin-bottom: 5px;
  font-size: 20px;
  font-family: Arial, sans-serif;
}

.game-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  gap: 10px;
  flex-wrap: wrap;
}

.game-stats-text {
  font-size: 18px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  color: black;
}

/* Global styles for all games end*/

/* choice reaction time start*/
.test-name-header-crt {
  font-family: Arial, sans-serif;
  font-size: 30px;
  margin-bottom: 20px;
  max-width: 96%;
  text-align: center;
}

@media screen and (max-width: 575px) {
  .test-name-header-crt {
    max-width: 92%;
  }
}

/* choice reaction time end*/

/* visual search test start*/
/* Feedback animations */
.feedback-animate {
  animation: feedbackEffect 0.5s ease-out forwards;
}

/* Feedback effect */
@keyframes feedbackEffect {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Grid cell hover effect */
.grid-item:hover {
  background-color: #f1f1f1;
  cursor: pointer;
  transform: scale(1.1);
  transition: transform 0.3s, background-color 0.3s;
}

/* visual search test end*/

/* stroop test start */
.stroop-color-btn {
  font-size: 16px;
  padding: 15px;
  border: none;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stroop-color-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* stroop test end */

/* verbal-memory start */
.recalled-word {
  background: #e8f4f8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #2c3e50;
}

.word-item {
  background: #f8f9fa;
  padding: 8px;
  border-radius: 10px;
  font-family: Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  border: 2px solid #ddd;
}

/* verbal-memory end */

/* tower of hanoi start */
.difficulty-btn {
  font-family: Arial, Helvetica, sans-serif;
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid #12486b;
  background: white;
  color: #12486b;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.difficulty-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.hanoi-tower {
  width: 200px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.hanoi-tower:hover {
  transform: translateY(-3px);
}

.tower-pole {
  position: absolute;
  width: 8px;
  height: 230px;
  background: #555;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
}

.tower-base {
  width: 180px;
  height: 10px;
  background: #333;
  border-radius: 5px;
  margin-top: 10px;
}

.hanoi-disk {
  height: 25px;
  border-radius: 15px;
  margin: 2px 0;
  position: relative;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.hanoi-disk.selected {
  transform: translateY(-20px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.disk-1 {
  width: 60px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.disk-2 {
  width: 90px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.disk-3 {
  width: 120px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.disk-4 {
  width: 150px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.disk-5 {
  width: 170px;
  background: linear-gradient(135deg, #1ff0e5 0%, #d65880 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hanoi-tower {
    width: 120px !important;
  }

  .tower-pole {
    width: 6px !important;
    height: 180px !important;
  }

  .tower-base {
    width: 110px !important;
    height: 8px !important;
  }

  .hanoi-disk {
    height: 20px !important;
    font-size: 12px !important;
  }

  .disk-1 {
    width: 40px !important;
  }

  .disk-2 {
    width: 60px !important;
  }

  .disk-3 {
    width: 80px !important;
  }

  .disk-4 {
    width: 100px !important;
  }

  .disk-5 {
    width: 110px !important;
  }

  #hanoiGameArea {
    min-height: 220px !important;
  }

  #hanoiGameArea>div {
    height: 220px !important;
  }
}

@media (max-width: 480px) {
  .hanoi-tower {
    width: 90px !important;
  }

  .tower-pole {
    width: 5px !important;
    height: 150px !important;
  }

  .tower-base {
    width: 85px !important;
    height: 6px !important;
  }

  .hanoi-disk {
    height: 18px !important;
    font-size: 11px !important;
    margin: 1px 0 !important;
  }

  .disk-1 {
    width: 30px !important;
  }

  .disk-2 {
    width: 45px !important;
  }

  .disk-3 {
    width: 60px !important;
  }

  .disk-4 {
    width: 75px !important;
  }

  .disk-5 {
    width: 85px !important;
  }

  #hanoiGameArea {
    min-height: 190px !important;
  }

  #hanoiGameArea>div {
    height: 190px !important;
  }

  #hanoiInstructions {
    font-size: 16px !important;
  }

  #hanoiStats {
    font-size: 14px !important;
  }

  #hanoiStats>div {
    font-size: 14px !important;
  }

  .difficulty-btn {
    font-size: 14px !important;
    padding: 6px 15px !important;
  }

  h2 {
    font-size: 24px !important;
  }
}

@media (max-width: 360px) {
  .hanoi-tower {
    width: 75px !important;
  }

  .tower-pole {
    width: 4px !important;
    height: 130px !important;
  }

  .tower-base {
    width: 70px !important;
    height: 5px !important;
  }

  .hanoi-disk {
    height: 16px !important;
    font-size: 10px !important;
  }

  .disk-1 {
    width: 25px !important;
  }

  .disk-2 {
    width: 38px !important;
  }

  .disk-3 {
    width: 50px !important;
  }

  .disk-4 {
    width: 62px !important;
  }

  .disk-5 {
    width: 70px !important;
  }

  #hanoiGameArea {
    min-height: 170px !important;
  }

  #hanoiGameArea>div {
    height: 170px !important;
  }
}

/* tower of hanoi end */

/* Gaming Section (CRT, GO/NO-GO, Visual Search, Digit Span, Stroop, 
Trail Making, Verbal Memory) End */


/* Questionnare Section (PHQ-9, GAD-7, ASRS-v1.1, VAS, SCARED, MCHATR, RPQ, SMMSE) Start */
#phq9Modal,
#gad7Modal,
#asrsModal,
#vasModal,
#scaredModal,
#mchatrModal,
#rpqModal,
#smmseModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: zoomIn 0.4s ease-out;
  animation: fadeIn 0.3s;
  transform: none;
  zoom: 100%;
  font-size: 100%;
}

#Content {
  font-family: Helvetica, sans-serif;
  background: linear-gradient(135deg, #f0f8ff, #e6f0ff);
  margin: 5vh auto;
  max-width: 90vw;
  padding: 20px;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 92vh;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
}

#Content h2 {
  font-family: Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  color: black;
  text-align: center;
}

#Content h3 {
  font-family: Helvetica, sans-serif;
  font-size: 29px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 15px;
  color: black;
  text-align: center;
}

#Content p {
  font-family: Helvetica, sans-serif;
  font-size: 25px;
  font-weight: 500;
  color: #1f2b7b;
  text-align: center;
  margin-bottom: 20px;
}

.close-icon-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  display: inline-block;
}

.close-icon {
  font-size: 25px;
  font-weight: bold;
  color: #1f2b7b;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1000;
}

.close-icon:hover {
  color: #ff0000;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 40px;
  background-color: #1f2b7b;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  z-index: 1001;
}

.close-icon-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 28px;
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background-color: #303394;
  color: white;
  padding: 10px 8px;
  text-align: center;
  font-weight: 550;
  border-right: 1px solid #ffffff;
}

.table td {
  color: black;
  padding: 5px 10px;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
}

.table th,
td:not(:first-child) {
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
}

.table tr:first-child {
  background-color: #f8f9fa;
}

.table tr:nth-child(even) {
  background-color: #bebff3;
}

.table tr:hover {
  background-color: #d7e4f5;
}

input[type="radio"] {
  transform: scale(1.25);
  accent-color: #303394;
  cursor: pointer;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.submit {
  font-family: Helvetica, sans-serif;
  margin-top: 10px;
  margin-bottom: 8px;
  margin-left: 8px;
  padding: 8px 18px;
  background: #12486b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-close {
  font-family: Helvetica, sans-serif;
  margin-top: 10px;
  margin-bottom: 8px;
  margin-right: 8px;
  background: red;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit:hover,
.btn-close:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#phq9Result,
#gad7Result,
#asrsResult,
#vasResult,
#scaredResult,
#mchatrResult,
#rpqResult,
#smmseResult {
  margin-top: 20px;
  font-weight: bold;
  font-size: 26px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 500px) {

  body,
  #Content,
  .table,
  .table th,
  .table td,
  .submit,
  .btn-close,
  #phq9Result,
  #gad7Result,
  #asrsResult,
  #vasResult,
  #scaredResult,
  #mchatrResult,
  #rpqResult,
  #smmseResult {
    font-size: 16px;
  }

  .table {
    font-size: 16px;
  }

  .submit,
  .btn-close {
    padding: 12px 20px;
  }

  .table th,
  .table td {
    padding: 12px 8px;
  }
}

/* Questionnare Section (PHQ-9, GAD-7, ASRS-v1.1, VAS, SCARED, MCHATR, RPQ, SMMSE) End */

/* Psychology Test Section End */