@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --headfont: "Prompt", sans-serif;
  --textfont: "Plus Jakarta Sans", sans-serif;
  --appbg: #EDEEEB;
  --color2: #e3e3e3;
  --boxbg: white;
  --link: #C14242;
  --text: #323232;
  --danger: red;
  --danger2: rgb(255, 196, 196);
  --success: rgb(32 141 32);
  --success2: rgb(241 255 241);
}

* {

  color: var(--text);
  font-family: var(--textfont);
  box-sizing: border-box;
  position: relative;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--sea);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

a {
  text-decoration: none;
  color: var(--link);
}

body {
  background: var(--appbg);
  height: 80vh;
  padding: 10px 30px;
}

.auto {
  margin: auto;
}

.school {
  margin-top: 100px;
  margin-bottom: 50px;
}

.center {
  text-align: center;
}

.subhead {
  font-weight: 550;
  opacity: .4;
}

.box {
  background: var(--boxbg);
  padding: 10px 10px;
  border-radius: 40px;
  box-shadow: 5px 5px 10px 5px #01010112;
}

.title {
  font-weight: 550;
}

.primary {
  color: var(--link);
}

.login .title {
  margin-bottom: 15px;
}

input,
select,
textarea {
  border: none;
  background: var(--appbg);
  padding: 10px;
  border-radius: 10px;
  margin: 5px 0;
  box-shadow: 3px 3px 5px #0000003b;
  max-width: 100%;
}

.small {
  font-size: small;
}

.right {
  text-align: right;
}

a:hover,
.link:hover {
  translate: 10px;
  padding-left: 10px;
  filter: contrast(1.5) brightness(1.1);
  transition: .3s ease-in-out;
}

.btn {
  padding: 8px 10px;
  background: var(--link);
  color: var(--boxbg);
  min-width: 100px;
  border: none;
  border-radius: 10px;
  box-shadow: 3px 3px 5px #0000003b;
}

.btn2 {
  padding: 8px 10px;
  color: var(--link);
  border: solid 1px var(--link);
  min-width: 100px;
  border-radius: 10px;
  box-shadow: 3px 3px 5px #0000003b;
}

.primary_bg {
  background: var(--link);
}

.btn:hover,
.btn2:hover {
  /* translate: -5px -5px; */
  transition: .5s;
  box-shadow: 5px 5px 5px #00000047;
  filter: brightness(1.2);
  transition: .3s ease-in-out;
}

.wrongschool {
  padding: 10px 30px;
}

.heading {
  color: var(--link);
}

.light {
  background-color: var(--boxbg);
}

.inside_btn {
  border: none;
  font-size: 22px;
  position: absolute;
  right: 100px;
  background: none;
  bottom: 25px;
}

.schoolCode .inside_btn {
  bottom: 8px;
}

.schoolCode {
  margin-top: 40vh;
}

.logo img {
  width: 100px;
}

.login input[type="text"],
.login input[type="password"] {
  margin: 10px 0;
}

.register {
  margin-top: 20vh;
  position: relative;
}

label {
  width: 100%;
  font-size: 10px;
  text-align: left !important;
  display: block;
  position: relative;
  left: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 550;
  margin: 20px 0;
  font-family: var(--headfont);
}

.register input {
  margin-bottom: 20px;
}

.register label {
  left: 95px;
}

.lightText {
  color: var(--boxbg);
}

.branding {
  position: fixed;
  width: 150px;
  right: 25px;
  bottom: 25px;
  background-color: var(--boxbg);
  text-align: center;
  padding: 5px 0;
  border-radius: 15px;
  opacity: .7;
}

.branding:hover {
  opacity: 1;
  transition: ease-in .2s;
}

.bannerImg {
  border-radius: 50%;
  padding: 20px;
}

.bannerText {
  padding-left: 100px;
}

.mainHeading {
  font-size: 70px;
}

.banner {
  /* background: rgb(255 223 223); */
  padding: 70px 0;
}

.bannerText * {
  margin: 0 !important;
}

.bannerText p {
  margin-bottom: 15px !important;
  font-size: 20px;
}

.boxpadding {
  padding: 40px !important;
}

.arrow {
  background-image: url('../img/arrow.png');
  background-repeat: no-repeat;
  background-position: center;
}

.features {
  margin: 50px 0;
}

.feature .fa-solid,
.feature .fa {
  font-size: 35px;
  color: var(--link);
}

.features h2 {
  font-size: 30px;
  line-height: 35px;
}

.space:hover {
  letter-spacing: 4px;
  transition: .3s ease-in;
}

table.courseTable {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
}

/* table.courseTable, th, td {
  border: 1px solid black;
} */
th,
td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

.courseTable tr:nth-child(even) {
  background-color: #fbd8d8;
}

.courseTable tr:nth-child(odd) {
  background-color: #fff;
}

.courses {
  background: #e3e3e3;
  padding: 50px;
  border-radius: 20px;
  margin: 50px 0 100px 0 !important;
}

.courses h2 {
  margin-top: 80px;
}

.poster {
  border-radius: 30px;
  margin: 50px 0;
}

.signup {
  background-color: #6f6c6c;
  color: white;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.433);
}

.side {
  padding: 50px;
}

.signup h2 {
  color: white;
}

.signup label {
  color: var(--appbg);
}

.signup p {
  line-height: 2.5;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* background-color: var(--bg); or any other color */
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

/* Optional: Change background and add shadow on scroll */
.header.sticky {
  background-color: var(--bg);
  /* change to your preferred color */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 100% !important;
  position: fixed;
  top: -10px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.contacts table td {
  width: 70%;
}

.contacts table th {
  width: 30%;
  background-color: transparent;
}

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

.fbox .text {
  font-size: 14px;
}

.fbox ul {
  padding-left: 30px;
}

.map {
  border-radius: 15px;
}

.fbox {
  align-self: flex-start;
  padding: 50px;
  align-items: flex-start !important;
  align-content: flex-start !important;
  justify-content: space-between !important;
}

footer {
  background: #e3e3e3;
  border-radius: 10px;
}

.copy {
  background: rgb(240, 155, 155);
  color: white;
  font-size: 14px;
  padding: 10px 0;
}

.menu_bar {
  display: none;
}

.success {
  background-color: var(--success2);
  color: var(--success);
  padding: 20px;
  margin: 10px 0;
  border-radius: 10px;
}

p {
  line-height: 2rem;
}

.whatsapp {
  background-color: var(--success) !important;
  font-size: 20px;
}

.whatsapp i {

  color: white !important;
}

.bg {
  background-color: var(--color2);
  padding: 10px;
  border-radius: 10px;
}

.sidebar {
  margin-left: 10px;
  height: 80vh;
  padding-top: 50px;
  background-color: var(--boxbg);
  /* display: flex; */
  align-self: flex-start;
  position: sticky;
  top: 0;
}

.sidemenu {
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}

.sidemenu li {
  display: block;
  list-style-type: none;
  padding: 10px;
  border-bottom: solid 1px var(--link);
  background-color: var(--boxbg);
}

.sidemenu li.active,
.sidemenu li:hover {
  background-color: var(--link);
  color: white;
  transition: .3s ease-in-out;
}

.sidemenu li.active a,
.sidemenu li:hover a {
  color: white;
  transition: .3s ease-in-out;
}

header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.danger {
  background-color: var(--danger2);
  padding: 20px;
  margin: 10px 0;
  border-radius: 10px;
}

.person {
  background-image: url('../img/line2.png');
  background-position: bottom;
  background-repeat: repeat-x;
  color: white;
  background-size: 10% 10%;
}

.person i {
  color: white !important;
  font-size: 40px;
}

/* user tree style */
#user-tree {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

.user {
  position: relative;
  display: inline-block;
  margin: 10px;
  text-align: center;
}

.name {
  display: inline-block;
  background-color: white;
  color: black;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  cursor: pointer;
}

.downline {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.user::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 2px;
  height: 20px;
  background-color: white;
}

.downline::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 2px;
  background-color: white;
}

.user:first-child::before {
  left: 50%;
}

.user:last-child::before {
  left: 50%;
}

.modal-container {
  position: absolute;
  z-index: 1;
  background: #00000078;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
}

.modal {
  height: 70vh;
  background: var(--appbg);
  justify-self: center;
  display: flex;
  margin: auto;
  align-self: center;
}

#close {
  background: var(--link);
  font-size: 20px;
  padding: 20px;
  height: 50px;
  width: 50px;
  justify-content: center;
  align-items: center;
  display: flex;
  color: var(--boxbg);
  position: absolute;
  right: 10px;
  top: 10px;
  box-shadow: 2px 2px 4px grey;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

i {
  color: inherit;
}

.sectionbtn {
  background: var(--boxbg);
  padding: 10px;
  display: inline;
  top: 10px;
  left: 10px;
  border-radius: 10px 10px 0 0;
  font-size: small;
}

.isInActive {
  background: var(--link);
  color: var(--boxbg);
  cursor: pointer;
}

.isActive {
  font-weight: 550;
  box-shadow: 0px -3px 3px var(--text);
}

.isInActive:hover {
  background: var(--danger2);
  color: var(--link);
  transition: .3s ease-in-out;
}

.sectionArea {
  top: 20px;
  overflow: auto;
  max-height: 85%;
}

.activeArea {
  background: var(--boxbg);
  border-radius: 10px;
}

#activeArea {
  height: -webkit-fill-available;
}

.modalContent {
  background: var(--boxbg);
  border-radius: 40px;
}

.navigator {
  width: fit-content;
  top: -24px;
}

.status {
  position: absolute;
  z-index: 1;
  font-size: 10px;
  padding: 2px 10px;
  top: -10px;
  border-radius: 6px;
}

.complete {
  background: var(--success2);
  color: var(--success);
}

.incomplete {
  background: var(--danger2);
  color: var(--danger);
}

.hide {
  display: none !important;
}

.vM20 {
  margin: 20px 0 !important;
}

.p20 {
  padding: 20px !important;
}

.cards {
  padding: 20px !important;
  margin: 10px 0 !important;
  box-shadow: 5px 5px 4px darkgrey;
}

.cards * {
  margin: 0;
}

.plusButton {
  z-index: 1;
}

.plusText {
  position: absolute;
  width: 90%;
  visibility: hidden;
  z-index: 2;
  color: var(--link);
  font-weight: 900;
}

.plusButton:hover .plusText {
  visibility: visible;
  width: 100px;
  left: 100%;
  transition: all .3s ease-in-out;
}

.editable {
  min-width: 100px;
  border-bottom: solid 1px var(--link);
}

.editable:hover {
  /* border: solid 1px slateblue; */
  border-radius: 10px;
  background: white;
  cursor: text;
  transition: all .3s ease-in-out;
}

.editable:focus {
  background: white;
  padding: 2px 10px 2px 5px;
}

.resultsheet {
  background: url('../img/certificate_bg.png');
  background-size: 100% 100%;
  background-position: left;
  background-repeat: no-repeat;
  aspect-ratio: 334/512;
  border-radius: 0;
  padding: 20px;

}

.student-image {
  height: 120px;
  background: white;
  width: 110px;
  position: absolute;
  right: 5px;
  top: -120px;
  object-fit: cover;
  border: solid 4px white;
  box-shadow: 1px 0px 10px darkgrey;
  cursor: pointer;
  transition: all 0.3s ease;
}

.student-image:hover {
  transform: scale(1.05);
  box-shadow: 2px 0px 15px var(--link);
  border-color: var(--link);
}

.student-image.uploading {
  opacity: 0.7;
  filter: grayscale(50%);
}

.no-absolute {
  position: relative !important;
  top: 0 !important;
  right: 0 !important;
}

.rightBar {
  position: sticky;
  top: 50px;
}

.scrollArea {
  max-height: 300px;
  overflow: auto;
}

.animate-on-scroll {
  animation-play-state: paused;
  visibility: hidden;
}

.animate__animated {
  animation-play-state: running !important;
  visibility: visible;
}


.animated {
  animation: animated 1s infinite alternate;
  animation-timing-function: linear;
}

@keyframes animated {

  /*0% { bottom: -10px }*/
  0% {
    bottom: 0;
  }

  100% {
    bottom: 10px;
  }

  /*100% { bottom: 0; }*/
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}