/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200..1000&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 6rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(185, 95%, 38%);
  --title-color: hsl(228, 95%, 8%);
  --text-color: hsl(156, 97%, 13%);
  --body-color: hsl(228, 100%, 99%);
  --shadow-color: hsla(228, 80%, 4%, 0.1);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Nunito Sans", system-ui;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color 0.4s;
  min-width: 100%;
  line-height: 1.5rem;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  all: unset;
}

/*=============== VARIABLES DARK THEME ===============*/
body.dark-theme {
  --first-color: hsl(48, 98%, 41%);
  --title-color: hsl(42, 96%, 51%);
  --text-color: hsl(240, 12%, 95%);
  --body-color: hsl(228, 24%, 16%);
  --shadow-color: hsla(228, 80%, 4%, 0.3);
}

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/
.dark-theme .sidebar__content::-webkit-scrollbar {
  background-color: hsl(228, 16%, 30%);
}

.dark-theme .sidebar__content::-webkit-scrollbar-thumb {
  background-color: hsl(228, 16%, 40%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  /* margin-inline: 1.5rem; */
  min-width: 100%;
}

.main {
  padding-top: 6rem;
  margin: 0.75rem;
}

/*=============== HEADER ===============*/
.school-header {
  background-color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.school-name {
  color: #0d6efd;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  font-weight: 700;
}

.school-address {
  color: #6c757d;
  text-align: left;
  font-size: 0.9rem;
}

.school-logo {
  margin: 5px;
  max-height: 80px;
  width: auto;
}

.img-wrapper {
  max-width: 100%;
  height: auto;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  object-fit: cover;
  border-radius: 5px;
  z-index: 1100;
  border: 4px double blueviolet;
  /* transition: border 1s ease-out; */
}

.img-wrapper span {
  position: absolute;
  bottom: 0;
  left: 0;
  height: auto;
  width: 100%;
  background-color: rgb(251, 90, 4);
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
  /* box-sizing: border-box; */
  /* border: 1px solid red; */
}

.img-wrapper:hover span {
  background-color: rgb(0, 37, 249);
  /* border: 4px solid rgb(43, 0, 255); */
  color: white;
}

.img-wrapper:hover {
  border: 4px solid blueviolet;
  color: white;
}

/* KNMHSS OWN STYLESS */
/* Bottom right text */
.knimg-text-block {
  position: absolute;
  bottom: 10px;
  font-size: 0.75em;
  background-color: darkgreen;
  color: white;
  text-align: center;
  margin-left: 20px;
  margin-right: 20px;
  border-radius: 5px;
}

.kn-fonts-style {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2em;
  line-height: 1em;
}

.kn-highlighting {
  background-color: blueviolet;
  color: white;
  border-radius: 5px;
  padding: 5px;
  font-weight: 600;
  line-height: 1.6rem;
  margin: 1.5rem;
}

.kn-hls-blue {
  background-color: blue;
  color: white;
  border-radius: 5px;
  padding: 5px;
  font-weight: 600;
  line-height: 2rem;
  margin: 1rem;
}

.kn-hls-green {
  background-color: green;
  color: yellow;
  line-height: 2.2rem;
  border-radius: 5px;
  padding: 5px;
  font-weight: 600;
  margin: 1rem;
}

.kn-hls-pink {
  background-color: magenta;
  color: white;
  border-radius: 5px;
  padding: 5px;
  font-weight: 600;
  line-height: 2rem;
  margin: 1rem;
}

.kn-hls-byellow {
  background-color: blue;
  color: yellow;
  border-radius: 5px;
  padding: 5px;
  font-weight: 600;
  line-height: 2rem;
  margin: 1rem;
}

.kn-hls-ygreen {
  background-color: yellow;
  color: green;
  border-radius: 5px;
  padding: 5px;
  font-weight: 600;
  line-height: 2rem;
  margin: 1rem;
}

/* KNMHSS OWN STYLESS */
thead>tr,
th:first-child,
td:first-child {
  position: sticky;
  left: 0px;
  font-weight: 700;
  background-color: rgb(247, 202, 105);
  border-radius: 5px 0px 0px 5px;
}

.card {
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.homework-item {
  border-left: 3px solid #0d6efd;
  padding-left: 10px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
}

.remove-homework {
  cursor: pointer;
  color: #dc3545;
}

.kn-hover-animation a:hover {
  border: 2px solid green;
  border-radius: 5px;
  padding-left: 5px;
  vertical-align: middle;
  color: rgb(255, 2, 204);
  background-color: beige;
  font-weight: 200;
  animation: kn-animation1 1.5s;
}

@keyframes kn-animation1 {
  from {
    background-color: yellow;
  }

  to {
    background-color: beige;
  }
}

.kn-bgcolor-1 {
  background-color: darkgreen;
  color: white;
}

.kn-bgcolor-2 {
  background-color: rgb(2, 34, 215);
  color: white;
}

.kn-stu-menu-item {
  font-size: 2em;
}

#myTable td a:hover {
  background-color: #085d00;
  color: white;
  font-weight: 700;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 2px;
}

/* CUSTOM ALERT FOR GIVING MESSAGE */
.custom-alert {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

.custom-alert-content {
  background-color: #fefefe;
  margin: 15% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  /* Could be more or less, depending on screen size */
  max-width: 500px;
  text-align: center;
  border-radius: 5px;
  border: solid green 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.custom-alert-header {
  background-color: #fefefe;
  margin: 5px;
  padding: 5px;
  width: 100%;
  /* Could be more or less, depending on screen size */
  border-radius: 5px;
  max-width: 500px;
  text-align: center;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 1.2em;
  background-color: green;
  color: white;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

#alertMessage {
  font-size: 18px;
  color: #000000;
  margin-bottom: 20px;
}