/* Custom styles for the top bar */

body {
  font-family: roboto, sans-serif;
  font-size: 15px;
  color: #000;
}

h1,h2,h3,h4,h5,h6 {}


/* .navbar-brand img{
    height: 100px;
    width: 100px;
  } */
.navbar {
  background-color: #72c0f5;
   height: 95px;
  /* padding: 10px 15px; */
}

.logo {
  height: 100px;
  width: 100px;
  cursor: pointer;
}
.navbar-nav .nav-link {
  color: #000;
  font-weight: bold;

}

.promo-banner {
  background-color: #121111;
  color: white;
  padding: 0px 0;
  text-align: center;
  font-size: 20px;
}
.d-flex a {
  margin: 8px;
  font-size: 15px;
}

/* Base styles for dropdown and submenu */
.dropdown-menu,
.submenu {
  display: none;
  position: absolute;
  background: #f8f9fa;
  min-width: 160px;
  z-index: 1000;
  margin-left: 5px;
}

.dropdown-menu.show,
.submenu.show {
  display: block;
  margin-left: 5px;
}

.dropdown-menu .submenu {
  top: 0;
  left: 100%;
  margin-top: -6px;
}

/* Show dropdown menu on hover for larger screens */
.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu:hover .submenu {
  display: block;
}

.nav-item,
.dropdown-menu {
  position: relative;
}

li.nav-item {
    background: #2987df;
    /* margin: 0 2px; */
    border-radius: 5px;
    color: #fff;
    margin-left: 1px;
    margin-top: 10px;
}
li.nav-item:hover{
 background: #3ce2ff;
}
li.nav-item a.nav-link { color:#fff !important;}

.navbar-nav .nav-link.active, .navbar-nav .show>.nav-link{color:#fff;}

/* .nav-item:hover .nav-link{background:#00afef;} */


/* Media query for mobile screens */
@media (max-width: 767.98px) {
  .dropdown-menu,
  .submenu {
    position: static;
    margin: 0;
  }

  .dropdown-menu {
    display: none; /* Hide dropdown by default on mobile */
  }

  .dropdown-menu.show {
    display: block;
    position: relative; /* Ensure dropdown displays correctly in flow */
  }

  .dropdown-menu .submenu {
    display: none; /* Hide submenus by default on mobile */
  }

  .dropdown-menu.show .submenu {
    display: block; /* Show submenu when dropdown is active */
  }

  /* Toggle dropdown on click for mobile screens */
  .nav-item > a {
    cursor: pointer; /* Indicate that links are clickable */
  }

  .nav-item.active .dropdown-menu {
    display: block;
  }

  .nav-item.active .dropdown-menu .submenu {
    display: block;
  }
}
@media (max-width: 768px) {
  .top-bar,
  .social-icons {
    text-align: center;
    float: none;
  }

  .navbar-brand,
  .navbar-nav,
  .navbar-nav .nav-item {
    /* text-align: center; */
    width: 100%;
  }

  .btn-success {
    width: 100%;
    margin-top: 10px;
  }
  .navbar-nav .nav-link {
    color: #000;
    font-weight: bold;
    border-bottom: 1px solid rgb(89, 89, 89);
    text-align: left;
  }
}
@media (max-width: 320px) {
  .top-bar,
  .social-icons {
    text-align: center;
    float: none;
    padding: 10px; /* Add some padding for better spacing */
  }

  .navbar-brand {
    font-size: 1.2rem; /* Adjust font size to fit small screens */
    padding: 5px; /* Reduce padding for smaller screens */
  }

  .navbar-nav,
  .navbar-nav .nav-item {
    text-align: center;
    width: 100%;
    padding: 5px 0; /* Adjust padding to fit items better */

  }
  .navbar-nav .nav-link {
    color: #000;
    font-weight: bold;
    border-bottom: 1px solid rgb(89, 89, 89);
    text-align: left;
  }

  .btn-success {
    width: 100%;
    margin-top: 10px;
    font-size: 0.9rem; /* Adjust button font size */
    padding: 10px; /* Adjust padding for the button */
  }
  /* Typing Test Section */
 /* General styles for cards */
 .card {
  margin-bottom: 10px; /* Reduce bottom margin for cards */
  padding: 5px; /* Add padding to card content */
  transition: transform 0.2s; /* Smooth transition for hover effect */

}

.card-img-top {
  height: 150px; /* Set a specific height for images */
  object-fit: cover; /* Ensure images cover the card without distortion */
}

.card-title {
  font-size: 1rem; /* Adjust card title font size */
}

.card-text {
  font-size: 0.8rem; /* Adjust card text font size */
}

.card:hover {
  transform: scale(1.02); /* Slightly enlarge card on hover */
}

@media (max-width: 768px) {
    .content-area textarea.form-control {
    height: 90px;
}
    
  .card-img-top {
      height: 120px; /* Reduce image height for medium screens */
  }

  .card-title {
      font-size: 0.9rem; /* Adjust card title font size */
  }

  .card-text {
      font-size: 0.7rem; /* Adjust card text font size */
  }

  .card {
      padding: 10px; /* Increase padding for better readability */
  }
}

@media (max-width: 576px) {
  .card-img-top {
      height: 100px; /* Further reduce image height for smaller screens */
  }

  .card-title {
      font-size: 0.8rem; /* Further adjust card title font size */
  }

  .card-text {
      font-size: 0.6rem;
  }

  .card {
      padding: 15px;
  }
}}
/* Banner-slider */

.carousel-item img {
  width: 100%;
  height: auto;
}
.carousel-caption {
  background-color: #72c0f5;
  padding: 10px;
  border-radius: 5px;
}

/* Typing Result */
.table-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping to the next line */
  overflow-x: auto; /* Add horizontal scroll */
  gap: 20px; /* Space between cards */
}

.table-card {
  flex: 1; /* Allow cards to grow equally */
  min-width: 300px; /* Minimum width of each card */
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  max-height: 400px;
}

.table-card h4 {
  margin-top: 0;
  padding: 10px;
  background-color: #72c0f5;
  color: #f6f4f4;
}

.table-responsive {
  height: 100%;
  overflow-y: auto;
  padding: 0 10px;
}

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

.table-responsive th,
.table-responsive td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.table-responsive th {
  background-color: #f7f9f9;
}

.table-card a {
  display: block;
  padding: 10px;
  color: #007bff;
  text-decoration: none;
}

.table-card a:hover {
  text-decoration: underline;
}
@media (max-width: 576px) {
  .table-container {
    flex-direction: column; /* Stack cards vertically on small screens */
    overflow-x: visible; /* Remove horizontal scroll on mobile */
    gap: 10px; /* Reduce gap between cards */
  }

  .table-card {
    min-width: auto; /* Remove minimum width constraint */
    margin: 0; /* Remove margin to fit cards properly */
    max-height: none; /* Remove fixed height for better fit */
  }

  .table-card h4 {
    font-size: 1rem; /* Adjust font size for smaller screens */
    padding: 8px; /* Reduce padding */
  }

  .table-responsive {
    height: auto; /* Remove fixed height */
    overflow-y: visible; /* Remove vertical scroll */
    padding: 0; /* Remove padding */
  }

  .table-responsive table {
    width: 100%; /* Ensure table takes full width */
  }

  .table-responsive th,
  .table-responsive td {
    font-size: 0.9rem; /* Reduce font size for smaller screens */
  }

  .table-card a {
    padding: 8px; /* Reduce padding for better fit */
  }
}

/* End */

/* Typing test */
.card-container {
  margin-top: 50px;
}

.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.card-img-top-1 {
  height: 150px;
  width: 150px;
  object-fit: cover;
  border-radius: 50%;
    border: solid 8px #ebebeb;

}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.card-text {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 576px) {
  .card-container {
    margin-top: 10px; /* Reduce top margin for better fit */
  }

  .card {
    border-radius: 5px; /* Reduce border radius for smaller screens */
    overflow: hidden; /* Ensure content does not overflow */
    transition: none; /* Remove scale effect for small screens */
  }

  .card-img-top {
    height: 150px; /* Adjust image height for smaller screens */
  }

  .card-body {
    padding: 15px; /* Reduce padding inside the card */
  }

  .card-title {
    font-size: 1rem; /* Adjust font size for titles */
  }

  .card-text {
    font-size: 0.8rem; /* Adjust font size for text */
  }
}

/*  End */
/*  Live typing test */
.card {
  background-color: #faf8f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card-header {
background-color: #72c0f5;
  color: #080808;
  text-align: center;
  padding: 0px 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.card-header h4 {
/* background-color: #72c0f5; */
  color: #121111;
  margin-top: 40px;

}
.card-body {
  padding: 2px;
  text-align: center;
}

.table {
  margin-bottom: 20px;
}

.btn-primary {
  background-color: #72c0f5;
  border: none;
  /* margin-bottom: 6px; */
}

.btn-success {
  background-color: #28a745;
  border: none;
}

.btn-warning {
  background-color: #72c0f5;
  border: none;
}
.btn-danger {
  background-color: #72c0f5;
  border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered td,
.table-bordered th {
  border: 1px solid #ddd;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-condensed td,
.table-condensed th {
  padding: 5px;
}

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

.text-center {
  text-align: right;
}

.text-right {
  text-align: right;
}
.nav-tabs .nav-link.active {
  background-color: #3498db; /* Change background color */
  color: #fff; /* Change text color */
}
/* content */
/* Base Styles */
.Container {
  padding: 20px;
  background-color: #f8f9fa; /* Light background for better readability */
}

.Container h3 {
  font-size: 2rem; /* Default font size for large screens */
  margin-bottom: 20px;
  color: #333; /* Dark color for contrast */
}

.Container p {
  font-size: 1rem; /* Default font size for large screens */
  line-height: 1.6; /* Improve readability with increased line-height */
  color: #555; /* Slightly lighter color for the text */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .Container {
    padding: 15px; /* Reduce padding for medium screens */
  }

  .Container h3 {
    font-size: 1.5rem; /* Adjust font size for smaller screens */
    margin-bottom: 15px; /* Adjust margin */
  }

  .Container p {
    font-size: 0.9rem; /* Adjust font size for smaller screens */
    line-height: 1.5; /* Adjust line-height for readability */
  }
}

@media (max-width: 576px) {
  .Container {
    padding: 10px; /* Further reduce padding for very small screens */
  }

  .Container h3 {
    font-size: 1.2rem; /* Adjust font size further for very small screens */
    margin-bottom: 10px; /* Adjust margin */
  }

  .Container p {
    font-size: 0.85rem; /* Further adjust font size */
    line-height: 1.4; /* Adjust line-height for small screens */
  }
}
/* footer */

.footer {
  background-color: #1f5173;
  padding: 20px 0;
  margin-top: 50px;
  color: #fff;
}

.footer .container {
  display: flex;
  flex-direction: column;
/*   align-items: center; */
  justify-content: center;
  /* gap: 10px; */
}

.footer .container .row {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  align-items: center;
}

.footer .container .row .col-md-3 {
  flex-basis: 100%;
  margin-bottom: 20px;
}

.footer .container .row .col-md-3 h5 {
  font-weight: bold;
  margin-bottom: 10px;
}

.footer .container .row .col-md-3 ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.footer .container .row .col-md-3 ul li {
  margin-bottom: 5px;

}

.footer .container .row .col-md-3 ul li a {
  color: #fff;
  text-decoration: none;
  text-align: left;
}

.footer .container .row .col-md-3 ul li a:hover {
  text-decoration: underline;
}

.footer .container .row .col-md-3 .social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer .container .row .col-md-3 .social-icons a {
  color: #ada9a9;
  text-decoration: none;
}

.footer .container .row .col-md-3 .social-icons a:hover {
  color: #007bff;
}

.footer .container .row .col-md-3 .social-icons i {
  font-size: 1.5em;
}

.footer .container .copyright {
  font-size: 14px;
  color: #101010;
  text-align: center;
}

.footer ul li a {
    color: #fff;
}

@media (max-width: 768px) {
  .footer .container .row {
    flex-direction: column;
  }

  .footer .container .row .col-md-3 {
    margin-bottom: 10px;
  }
}

.login_tab a {
  font-size: 15px;
  /* background: #00afef; */
  padding: 8px 10px;
  /* color: #fff; */
  border-radius: 5px;
  margin: 0 5px;
}
.h_heading {
  font-size: 16px;
}

/* result */
.exam-name {
  background-color: #363636;
  color: #f7f64e;
  height: 5%;
  justify-content: space-between;
  display: flex;
  padding: 10px;
}
/* General page styling */
.result table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.result th {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  background:#cee3f8;
}
.result td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}
.fixed_notification{
  position: fixed;
  bottom: 0%;
  width: 100%;
}
.select-options {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.select-option {
  margin: 0 10px;
}
.select {
  text-align: center;
  padding: 20px;
  border: 2px solid #ccc;
  justify-content: end;
}
/*
.result-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    border-top: 1px solid gray;

  } */

  .result-button {
    background-color: #38aae9;
    color: rgb(0, 0, 0);
    border-color: #38aae9;
    padding: 10px 15px;
    cursor: pointer;
    display: inline-block;
    margin-right: 20px;

  }


/* new_typingtest and instruction  */
/* ###########################  */
.exam-name{
    background-color: #363636;
    color: #f7f64e;
    justify-content: space-between;
    display: flex;padding: 10px;
  }
  .header-bar{
    background-color: #2d70b6;
    color: #2d70b6;
    height: 40px;
  }
  .result-bar{
    text-align: center;
    font-weight: bold;
    padding: 5px;
  }
  .nav-tabs .nav-link {
    color: #007bff;
    font-weight: bold;
    padding: 10px;
  }

  .nav-tabs .nav-link.active {
    background-color: #0056b3;
    color: #ffffff;
  }
  .time-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
  }
  .time-left span {
    font-size: 18px;
    font-weight: bold;
    color: #d9534f;
  }

  .border {
    border: 1px solid #ddd;
  }
  .img-1 {
    text-align: center;
    border: 1px solid #949494;
  }
  .user-icon {
    margin: 10px;
  }

  .col-sm-10 {
    padding-right: 15px;
  }
/*
  .container-fluid {
    padding: 0 1rem;
  } */

  .row.align-items-center {
    border-bottom: 1px solid #ddd;
  }

  .time-left {
    font-size: 1rem;
    color: #333;
  }

  .nav-tabs {
    border-bottom: 1px solid #ddd;
  }

  .nav-link {
    border: 1px solid transparent;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
  }

  .p-2 {
    padding: 0.5rem;
  }

  .blue-bar {
    height: 5px;
    background-color: #0056b3;
    margin-top: 1rem;
  }

  .sample-text {
    border: 1px solid rgb(195, 193, 193);
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #333;
    margin-top: 10px;
    padding: 10px;
  }

  /* Profile container with image and name in the same row */
  .profile-container {
    display: flex;
    align-items: right;
    justify-content: right;
  }

  /* Styling for the image */
  .user-icon {
    margin-right: 10px;
    object-fit: cover;
  }

  /* Styling for the name */
  .user-name h6 {
    font-size: 16px;
  }

  .result-head{text-align: center;}
  textarea.form-control {
    resize: vertical;
    border-radius: 0.25rem;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 1rem;
  }

  textarea.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 5px rgba(0, 91, 179, 0.5);
  }

  @media (max-width: 576px) {
    .row.align-items-center {
        flex-direction: column;
        text-align: center;
    }

    .time-left {
        margin-top: 0.5rem;
    }

    .user-icon {
        margin: 0 auto 0.5rem;
        width: 50px;
        height: 50px;
    }

    .nav-tabs .nav-item {
        width: 100%;
        text-align: center;
    }

    .border {
        padding: 10px;
    }

    .sample-text {
        font-size: 0.875rem;
    }
  }

  @media (max-width: 768px) {
    .sample-text {
        font-size: 0.875rem;
    }

    textarea.form-control {
        font-size: 0.875rem;
    }
  }


  /* instruction */
  .header-bar {
    background-color: #2d70b6;
    color: #2d70b6;
    height: 40px;
  }
  .instructions-section {
    display: flex;
  }
  .instructions-content {
    flex: 9; /* 9 parts of the flex container */
    border-right: 2px solid black;
  }
  .instructions-image {
    flex: 2; /* 3 parts of the flex container */
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .instructions-image img {
    max-width: 100%; /* Responsive image */
    height: auto;
    border-radius: 10px;
  }
  .instructions-content h2 {
    color: #333; /* Darker text color */
    background-color: #bce8f5;
    margin: 0%;
    padding: 10px;
  }
  .instructions-content ul {
    list-style-type: decimal;
  }
  .instructions-content li {
    margin-bottom: 10px; /* Space between list items */
  }
  .instructions-checkbox {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgb(163, 163, 163);
  }


  .result-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
  }

  /* Center the button horizontally and vertically */
  .button-container {
    display: flex;
    justify-content: center; /* Horizontally center the button */
    align-items: center;
  }
  /* Mobile Styling */
  @media (max-width: 767px) {
    /* Instructions Section */
    .instructions-section {
      flex-direction: column; /* Stack elements vertically */
    }

    .instructions-content {
      flex: 1; /* Take up full width */
      padding: 15px;
      border-right: none;
      margin-bottom: 20px;
    }

    .instructions-image {
      flex: 1;
      background-color: #f8f9fa;
    }

    .instructions-image img {
      max-width: 90%;
      height: auto;
      margin: 0 auto;
      display: block;
    }

    /* Heading Style */
    .instructions-content h2 {
      font-size: 20px;
      padding: 10px;
      margin-bottom: 15px;
      background-color: #bce8f5;
      text-align: center;
    }

    /* List Style */
    .instructions-content ul {
      padding-left: 20px;
      margin-bottom: 15px;
    }

    .instructions-content li {
      font-size: 14px; /* Smaller font size for mobile */
      margin-bottom: 8px;
    }

    /* Checkbox Section */
    .instructions-checkbox {
      margin-top: 10px;
      text-align: center; /* Center the checkbox section */
    }
  }

  /* login */
  .header-bar{
    background-color: #2d70b6;
    color: #2d70b6;
  }
  /* Header styling */
  .header {
    color: #fff;
    display: flex;
    justify-content: space-between;
    top: 0;
    left: 0;
  }
.header img {
    border: 1px solid black;
    padding: 2%;
    max-width: 100px;
    margin: 0 auto;
}
  .header-content {
    background-color:#666;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
  }
  .header-left {
    font-size: 20px;
    color: rgb(255, 255, 255);
  }
  .header-left h1{
    color: yellow;
  }
  .header-right p {
    margin: 5px;
    font-size: 20px;
    color: yellow;
  }
  .header-top img {
    height: 30px;
    width: 30px;
  }
  /* Login box styling */
  .login-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
    border: 2px solid #007bff;
  }
  .login-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #005792;
  }
  .input-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
  }
  .login-box input {
    padding: 10px 40px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 80%; /* Responsive input width */
  }
  .input-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #555;
    font-size: 18px;
  }
  .keyboard-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #555;
    font-size: 18px;
    cursor: pointer;
  }
  .login-box button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
  }
  .login-box button:hover {
    background-color: #0056b3;
  }
  /* Keyboard styling */
  .keyboard {
    display: none;
    position: absolute;
    top: 500px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 340px;
    padding: 15px;
    background-color: #e3f2fd;
    border: 2px solid #0288d1;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
  }
  .keyboard-row {
    display: flex;
    justify-content: center;
    margin: 5px 0;
  }
  .key {
    width: 35px;
    height: 35px;
    margin: 3px;
    background-color: #0288d1;
    text-align: center;
    line-height: 35px;
    font-size: 18px;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
  }
  .key:hover {
    background-color: #0277bd;
  }
  .key:active {
    background-color: #01579b;
    transform: scale(0.95);
  }
  .key.special {
    width: 70px;
    background-color: #004ba0;
    color: #ffffff;
    font-weight: bold;
  }
  /* Mobile Styling */
  @media (max-width: 767px) {
  /* Header */
  .header {
  padding: 10px;
  flex-direction: column;
  text-align: center;
  }

  .header-content {
  flex-direction: column;
  justify-content: center;
  }

  .header-left {
  font-size: 18px;
  }

  .header-left h1 {
  font-size: 22px; /* Larger heading */
  }

  .header-right p {
  font-size: 16px;
  }

  /* Header Icon */
  .header-top img {
  height: 20px;
  width: 20px;
  }

  /* Login Box */
  .login-box {
  width: 90%;
  margin: 20px auto;
  padding: 20px;
  }

  .login-box h2 {
  font-size: 20px; /* Adjust heading size */
  margin-bottom: 15px;
  }

  .login-box input {
  width: 100%; /* Full width on smaller screens */
  padding: 12px 20px;
  font-size: 14px; /* Smaller font size */
  }

  .input-icon,
  .keyboard-icon {
  font-size: 16px; /* Smaller icon size */
  }

  .login-box button {
  padding: 12px;
  font-size: 14px;
  }

  /* Keyboard */
  .keyboard {
  top: 400px; /* Adjust position for mobile screens */
  width: 100%;
  max-width: 320px;
  }

  .keyboard-row .key {
  width: 30px; /* Smaller key size */
  height: 30px;
  font-size: 16px; /* Smaller text inside keys */
  }

  .keyboard-row .key.special {
  width: 60px; /* Adjust width of special keys */
  }

  /* Ensure the buttons and keys are evenly spaced on smaller screens */
  .keyboard-row {
  justify-content: space-around;
  }
  }

/* new css */


/* Base Style for the Package Card */
.package-card {
    background: linear-gradient(145deg, #6e72fc, #ad1deb);
    color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* max-width: 350px; */
    width: 100%;
    text-align: center;
    /* margin: 20px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between; position: relative;
}

/* Hover Effect */
/* .package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
} */

/* Pricing Section with Transparent Background */
.pricing-info {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
       color: black;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.package-details {
    margin-top: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: #f8f9fa;
    line-height: 1.6;
    text-align: left;
    margin-top: 15px;
}

.package-details li {
    margin-bottom: 10px;
}

.package-details li i {
    margin-right: 10px;
    color: #ffdd57;
}


/* category css */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
}

/* Gradient Card */
.gradient-card {
    background: linear-gradient(145deg, #6e72fc, #ad1deb);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
    padding: 12px;
}

.gradient-card:hover {
    transform: translateY(-5px);
}
align-items-center {
    align-items: center !important;
    margin-top: 15px;
}
/* Badge */
.badge {
    font-size: 0.65rem;
    padding: 5px 11px;
    position: absolute;
    /* margin-left: 200px; */
    /* top: 10px;
    right: 10px; */
    right: 0;
    top: 0;
}

/* Card Content */
.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.card-content .card-subtitle {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.info-list li {
    font-size: 0.75rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.info-list i {
    margin-right: 6px;
    color: #ffdd57;
}

/* Card Image Styling */
.card-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background-color: white;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 35px;
    right: 10px;
}

/* Buy Now Section */
.buy-section {
    background-color: #ffffff96;
    padding: 12px;
    border-radius: 0 0 10px 10px;
    text-align: center;
    width: 100%;
}

.buy-section .price {
    font-size: 16px;
    font-weight: bold;
    color: #0e6352;
}

.buy-section small {
    color: #333;
    font-size: 14px;
}

.btn-buy {
    margin-top: 8px;
       background-color: #e7dcfd;
    color: #000000;
    font-size: 16px;
    padding: 12px 0;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    width: 100%;
}

/* Mobile-Responsive Adjustments */
@media (max-width: 768px) {
    .gradient-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        min-height: 400px;
    }

    .card-img {
        width: 100px;
        height: 100px;
        margin-top: 20px;
        margin-bottom: 10px;
        position: relative;
        top: auto;
        right: auto;
    }

    .card-content {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .card-content h5 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .card-subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .info-list {
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 10px;
        font-size: 1rem;
    }

    /* Adjusting the "Buy Now" section and button */
    .buy-section {
        padding: 15px;
        margin-top: 10px;
    }

    .btn-buy {
        padding: 15px 0;
        font-size: 18px;
        width: 100%;
    }

    /* Minor adjustment for card layout */
    .card {
        margin-bottom: 15px;
    }

    /* Adjust the "Badge" */
    .badge-1 {
        font-size: 0.7rem;
        top: 15px;
        right: 15px;
        padding: 5px 10px;
    }
}


/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Initially hidden */
  width: 250px;
  height: 100%;
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 998;
  padding-top: 50px;
  overflow: scroll
}

.sidebar.active {
  left: 0;
  z-index: 9999;
}

/* Toggle Container (sits beside the sidebar) */
.toggle-container {
  position: fixed;
  top: 80px;
  left: 0;
  transform: translateX(0); /* default */
  transition: transform 0.3s ease;
  z-index: 9999;
}

.toggle-container.shifted {
  transform: translateX(250px); /* move right when sidebar is open */
}

/* Toggle Button */
.toggle-btn {
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #000000;
  padding: 10px 5px;
  background: white;
  border-radius: 0 8px 8px 0;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
  transition: transform 0.3s ease;
}

.toggle-btn:hover {
  transform: scale(1.1);
}

/* Sidebar Menu */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 15px 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 5px 20px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.sidebar-menu a i {
  margin-right: 15px;
  font-size: 20px;
  color: #2754d9;
}

.sidebar-menu a:hover {
  background: #2754d9;
  color: #fff;
}

.sidebar-menu a:hover i {
  color: #fff;
}



/* Main Content */
.main-content {
  margin-top: 120px;
  padding: 30px;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
  font-size: 26px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.content-section p,
.content-section ul {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.content-section ul {
  padding-left: 20px;
}

.content-section ul li {
  margin-bottom: 10px;
}

.logout-confirm-btn {
  padding: 12px 25px;
  background: #2754d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.logout-confirm-btn:hover {
  background: #2754d9;
}

/* Checkout Section */
.checkout-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.checkout-discount {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.checkout-discount:hover {
  transform: translateY(-5px);
}

.checkout-discount-title {
  font-size: 26px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.checkout-coupon-input {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.checkout-coupon-input input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}
.checkout-apply-btn {
  padding: 12px 25px;
  background: #2754d9;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-apply-btn:hover {
  background: #2754d9;
}

.checkout-coupon-card {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-coupon-card:hover {
    background: linear-gradient(90deg, #2754d9 0%, #8ad3fb 100%);
  color: #fff;
}

.checkout-coupon-card:hover .checkout-coupon-title,
.checkout-coupon-card:hover .checkout-coupon-desc {
  color: #fff;
}

.checkout-coupon-title {
  font-size: 20px;
  color: #2754d9;
  margin-bottom: 10px;
  font-weight: 600;
}

.checkout-coupon-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.checkout-details {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.checkout-details:hover {
  transform: translateY(-5px);
}

.checkout-details-title {
  font-size: 26px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.checkout-item {
  margin-bottom: 20px;
}

.checkout-item-name {
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.checkout-item-duration {
  font-size: 14px;
  color: #666;
}

.checkout-item-price {
  font-size: 18px;
  color: #2754d9;
  font-weight: 600;
}

.checkout-fee,
.checkout-coupon-applied,
.checkout-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  color: #333;
  padding: 10px 0;
  border-top: 1px solid #eee;
}

.checkout-coupon-applied span {
  color: #2754d9;
  font-weight: 500;
}

.checkout-total p:last-child {
  font-size: 18px;
  color: #2754d9;
  font-weight: 600;
}

.checkout-proceed-btn {
  width: 100%;
  padding: 15px;
      background: linear-gradient(90deg, #2754d9 0%, #8ad3fb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-proceed-btn:hover {
     background: linear-gradient(90deg, #2754d9 0%, #8ad3fb 100%);
  box-shadow: 0 5px 15px rgba(217, 46, 39, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
  }

  .sidebar {
    width: 200px;
    left: -200px;
  }

  .sidebar.active {
    left: 0;
  }

  .toggle-container {
    top: 70px;
    left: 15px;
  }

  .header {
    padding: 10px 20px;
  }

  .logo-img {
    height: 40px;
  }

  .header-right .social-icon,
  .header-right .header-btn {
    font-size: 20px;
    padding: 8px;
    margin-left: 10px;
  }

  .checkout-discount,
  .checkout-details {
    min-width: 100%;
  }
}




/* ######## login  */

      .login-form {
        background-color: #ffffff;
        padding: 20px;
        border: 2px solid #000;
        border-radius: 8px;
        max-width: 400px;
        width: 100%;
        margin: auto;
      }
      .google-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        vertical-align: middle;
      }
      .login-form h2 {
        margin-bottom: 20px;
        font-weight: bold;
        text-align: center;
      }

      .login-form .form-group {
        margin-bottom: 15px;
      }

      .login-form .form-control {
        border: 1px solid #000;
        border-radius: 4px;
        padding: 10px;
        font-size: 1rem;
      }

      .login-form .btn-primary {
        background-color: #007bff;
        border: none;
        font-size: 1rem;
        padding: 10px;
        width: 100%;
      }

      .login-form .btn-login {
        background-color: #fff;
        color: #000;
        border: 1px solid #000;
        font-size: 1rem;
        padding: 10px;
        width: 100%;
        text-align: center;
      }

      .login-form a {
        color: #007bff;
        text-decoration: none;
      }

      .login-form a:hover {
        text-decoration: underline;
      }

      .or-divider {
        text-align: center;
        margin: 15px 0;
        font-weight: bold;
      }

      .text-right {
        text-align: right;
      }

      @media (max-width: 576px) {
        .login-form {
          padding: 15px;
        }

        .login-form h2 {
          font-size: 1.5rem;
        }

        .login-form .form-control,
        .login-form .btn-primary,
        .login-form .btn-login {
          font-size: 0.9rem;
          padding: 8px;
        }
      }



           /* Exam Name Bar */
        .exam-name {
            background-color: #363636;
            color: #f7f64e;
            display: flex;
            justify-content: space-between;
            padding: 10px;
        }

        /* Header Bar */
.header-bar {
    background-color: #2d70b6;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Needed for absolute pseudo-element */
    width: 100%;
    height: 85px;
}

.header-bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px; /* Thickness of the border */
    width: 100%;
    background: linear-gradient(to right, rgb(94, 255, 0), rgb(255, 8, 0), rgb(0, 255, 0));
}

        /* Time Left Section */
        .time-left {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            color: #ffffff;
        }

        .time-left h6 {
            margin: 0;
        }

        .timer-display {
            font-size: 20px;
            font-weight: bold;
            color: #ffffff;
        }

        /* User Profile Section */
        .user-icon {
               margin: 5px 10px 0px;
    width: 50px;
    height: 50px;
    object-fit: cover;
    /* border: 52px; */
    border-radius: 25px;
        }

        .user-name {
            font-size: 14px;
            color: #fff;
            text-align: center;
            padding-bottom: 5px;
        }

        /* Typing Test Area */
        .content-area textarea.form-control {
            resize: vertical;
            border-radius: 0.25rem;
            border: 1px solid #ddd;
            padding: 10px;
            font-size: 1rem; text-align: justify;
        }

        /* Scrollbar Styles for Textarea */
        .content-area textarea.form-control::-webkit-scrollbar {
            width: 10px;
        }

        .content-area textarea.form-control::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .content-area textarea.form-control::-webkit-scrollbar-thumb {
            background: #888;
        }

        .content-area textarea.form-control::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        textarea.form-control:focus {
            border-color: #0056b3;
            box-shadow: 0 0 5px rgba(0, 91, 179, 0.5);
        }

        /* Result Footer */
        .result-footer {
            /* position: fixed; */
            bottom: 0;
            justify-content: flex-end;
            /* padding: 10px; */
            right: 0;
            border: none;
        }

        .result-button {
            background-color: #2d70b6;
            color: #f3f3f3;
            border-color: #38aae9;
            padding: 10px 15px;
            cursor: pointer;
            margin-right: 20px;
        }

        .result-button:hover {
            background-color: #0056b3;
        }



      /* #### register
       */

