:root {
  --main-background-gradient: linear-gradient(to left top, #ffa745, #fe869f 30%, #ef7ac8 45%, #a083ed 70%, #43aeff 85%);
  --glass-gradient: linear-gradient(to left top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  --card-gradient: linear-gradient(to left top, rgba(70, 70, 70, 0.8), rgba(70, 70, 70, 0.6));
  --card-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
  --input-shadow: 0 1px 3px #aaa;
  --main-background: #1e1d24;
  --general-color-1: #ddd;
  --general-color-alt-1: #333;
  --title-color: #5ebaff;
}

@media (prefers-color-scheme: dark) {
  @media only screen {
    :root {
      --main-background-gradient: linear-gradient(to left top, rgb(255, 102, 102) 0%, rgb(97, 87, 255) 100%);
      --glass-gradient: linear-gradient(to left top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
      --card-shadow: 6px 6px 20px rgba(90, 90, 90, 0.212);
      --input-shadow: 0 1px 3px #000;
      --general-color-1: #333;
      --general-color-alt-1: #ddd;
    }
  }
}

html {
  font-family: "Poppins", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

p {
  margin: 20px auto;
}

h1 {
  font-weight: 600;
  font-size: 3rem;
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  right: 0;
  text-align: center;
  background: #fff;
  background: var(--main-background);
  z-index: 2;
}

h1, h2 {
  color: #658ec6;
  color: var(--title-color);
}

p {
  color: #658ec6;
  font-weight: 500;
  opacity: 0.8;
}

body{
  color:#fff;
}

.balfpick {
  color:#000;
}

p.big {
  font-size: 40px;
  text-align: center;
}

h3 {
  color: #426696;
  font-weight: 600;
  opacity: 0.8;
}

label.input {
  display: block;
  margin: 5px auto;
  background: #fff;
  color: #000;
  padding: 5px;
  margin: 15px auto;
  position: relative;
  z-index: 1;
  border-radius: 7px;
  box-shadow: 0 1px 3px #aaa;
  box-shadow: var(--input-shadow);
}

label.input:after {
  background: #fff;
}

label.input>span {
  display: block;
  font-weight: 100;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 3px;
  text-align: left;
}

label.input:focus-within>span {
  font-weight: 500;
}

label.input input, label.input textarea {
  padding: 0;
  font-weight: 400;
  font-size: 16px;
  width: 100%;
  border: 0;
  outline: 0;
}

label.input textarea {
  min-width: 100%;
  max-width: 100%;
}

label.input.faulty, input.faulty, textarea.faulty {
  border-color: #ffa0a0 !important;
}

label input, label span {
  user-select: none;
}

label.block {
  display: block;
  padding: 4px;
}

label input[type="checkbox"], label input[type="radio"] {
  position: absolute;
  opacity: 0;
}

label input[type="checkbox"]+span, label input[type="radio"]+span {
  background: #ddd;
  border-radius: 7px;
  vertical-align: middle;
  height: 20px;
  width: 20px;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

label input[type="checkbox"]+span+span, label input[type="radio"]+span+span {
  cursor: pointer;
}

label input[type="checkbox"]:checked+span:after, label input[type="radio"]:checked+span:after {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  bottom: 2px;
  background: #f60;
  content: " ";
  border-radius: 5px;
}

label input[type="radio"]+span, label input[type="radio"]:checked+span:after {
  border-radius: 50%;
}

.slab {
  background: #333;
  background: var(--general-color-1);
  color: #ddd !important;
  color: var(--general-color-alt-1) !important;
  display: inline-block;
  border-radius: 7px;
  box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
  box-shadow: var(--card-shadow);
  padding: 30px 10px;
  margin: 16px 5px;
  text-decoration: none;
}

.slab:hover {
  opacity: 0.7;
}

.quicktion {
  border-radius: 10px;
  width: 200px;
  height: 130px;
  display: inline-block;
  background: #333;
  background: var(--general-color-1);
  color: #ddd !important;
  color: var(--general-color-alt-1) !important;
  margin: 3px 7px;
  position: relative;
  text-align: left;
  z-index: 1;
}

.quicktion .info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-size: 16px;
  color: inherit;
}

.quicktion .category {
  font-weight: 400;
  line-height: 1.3
}

.quicktion .title {
  font-weight: 700;
}

.quicktion .icon {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 30px;
}

.quicktion .icon span, .quicktion .icon span:before, .quicktion .icon span:after {
  color: inherit;
}

.quicktion:hover:after {
  opacity: 0.9;
}

.quicktion:before {
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;
}

.quicktion, .quicktion:after {
  -moz-border-radius: 16px;
  -webkit-border-radius: 16px;
  border-radius: 16px;
}

.quicktion:before {
  content: " ";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -4px;
  top: -4px;
  z-index: -1;
}

.quicktion:after {
  content: " ";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: -1;
  background: inherit;
}

.quicktion:hover:before {
  background: #000;
  background: linear-gradient(45deg, #ffa600, #cc0fd8);
}

body {
  background: var(--main-background-gradient);
}

main {
  min-height: 100vh;
  position: relative;
}

#outer_wrap {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#background {
  background: linear-gradient(to right top, #f60, #ffa600);
  opacity: 0.4;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.glass {
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--glass-gradient);
  z-index: 2;
  backdrop-filter: blur(20px);
  overflow: auto;
  max-width: 1500px;
  max-height: 900px;
  margin: auto;
}

.glass:not(.sidebar) {
  width: 70%;
  max-width: 800px;
  max-height: 600px;
}

#login_front{
  max-height: 450px;
}

.equal_button {
  width: 260px;
  margin: auto;
}

.glass .sidebar {
  width: 150px;
  background: linear-gradient(to right bottom,
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.3));
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.glass .sidebar li {
  display: flex;
  margin: 2rem 0rem;
  padding: 1rem 5rem;
  align-items: center;
  list-style-type: none;
  color: #658ec6;
  font-weight: 500;
  opacity: 0.8;
  padding: 0rem 2rem;
  font-size: 1.5em;
}

.glass .sidebar .button {
  display: block;
  text-decoration: none;
  font-size: 35px;
  text-align: center;
}

.glass .sidebar .button .text {
  display: block;
  text-transform: uppercase;
  text-align: center;
  font-size: 30%;
}

.glass a:not(.button) {
  color: #00c6ff;
}

.glass .sidebar .group {
  border-top: 3px #aaa solid;
  margin-top: 30px;
  padding-top: 10px;
}

.button {
  background: linear-gradient(to right top, #f60, #ffa600);
  border-radius: 2rem;
  color: white;
  padding: 15px 30px;
  position: relative;
  color: #fff !important;
  font-weight: 600;
  margin: 5px;
  display: inline-block;
  cursor: pointer;
  border: 0;
}

.button.disabled {
  opacity: 0.7;
  filter: grayscale(1);
}

#main .button {
  font-size: 13px;
  text-decoration: none;
}

.button.blue {
  background: linear-gradient(to right top, #07b6bd, #7d2ae8);
}

.button.green{
  background: linear-gradient(to right top, #77cd2f, #25913c);
}

.button.red {
  background: linear-gradient(to right top, #ff7461, #ea1b4b);
}

.button.purple{
  background: linear-gradient(to right top, #ed00ff, #6c00ff);
}

.glass.sidebar .sidebar .button {
  width: 85px;
  height: 85px;
  padding: 15px 0;
  margin: 10px auto;
  line-height: 1;
}

.button:hover {
  opacity: 0.7;
}

.submit_box {
  padding: 10px;
  margin-top: 20px;
}

#main {
  background: linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url('/assets/images/teachit.jpg');
  background-size:cover;
  position: relative;
  overflow: auto;
  position: absolute;
  left: 0;
  top:0;
  right: 0;
  bottom: 0;
}

#content{
  position: absolute;
  top: 90px;
  padding: 30px;
  left: 0;
  right: 0;
  bottom: 20px;
}

.glass.sidebar #main {
  left: 150px;
}

.glass:not(.sidebar) #main {
  background: transparent;
  display: block;
  text-align: center;
}

.card {
  display: table;
  background: var(--card-gradient);
  border-radius: 1rem;
  margin: 2rem 0rem;
  padding: 2rem;
  box-shadow: 6px 6px 20px rgba(122, 122, 122, 0.212);
  box-shadow: var(--card-shadow);
  width: 100%;
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}

.card>* {
  display: table-cell;
  vertical-align: middle;
}

.card img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.card_info>.row {
  position: relative;
}

.middle_button {
  position: absolute;
  height: 50px;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

#footer {
  padding: 2px 15px;
  margin: 10px auto;
  margin-top:40px;
  max-width: 120px;
  font-size: 12px;
  bottom: 3px;
  left: 0;
  right: 0;
}

@media only screen and (max-width: 921px) {
  .glass {
    width: 100%;
    display: block !important;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    top: 0;
    right: 0;
    left: 0;
  }

  .glass.sidebar .sidebar::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }

  .glass h1 {
    font-size: 30px
  }

  .glass:not(.sidebar) {
    width: 100%;
    margin: auto;
  }

  .glass:not(.sidebar) h1 {
    border-radius: 0 !important;
  }

  .glass.sidebar #content {
    top: 65px;
  }
}

@media only screen and (max-width: 767px) {
  .glass.sidebar .sidebar .button {
    width: 72px;
    display: inline-block;
    margin: 5px;
    padding: 9px 0px;
    font-size: 35px;
    height: 72px;
    border-radius: 25px;
  }

  .glass.sidebar .sidebar {
    bottom: 4px;
    top: auto;
    left: 13px;
    right: 13px;
    width: auto;
    height: 83px;
    overflow-y: hidden;
    overflow-x: auto;
    border-radius: 1em;
    text-align: center;
    z-index: 100;
    background: rgba(100, 100, 100, 0.7);
    backdrop-filter: blur(20px);
    white-space: nowrap;
  }

  .middle_button {
    position: static;
    text-align: center;
  }

  .glass.sidebar #main {
    left: 0;
  }

  .glass.sidebar #content {
    bottom: 110px;
    padding:20px;
  }

  .glass.sidebar .sidebar * {
    white-space: nowrap;
    display: inline-block;
  }

  .glass .sidebar .group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: inline-block;
  }

  #footer{
    bottom:90px;
  }
}

.balfpick {
  border-radius: 5px;
  margin: 10px 0;
  background: #ddd;
}

select.balfpick{
  margin:0;
}

@media only screen and (prefers-color-scheme: dark) {
  body {
    color: #ddd;
  }

  .balfpick .text {
    color: #fff !important;
  }

  .balfpick {
    background: #333;
  }
}

#timetable_setup {
  width: 100%;
  overflow: auto;
}

#timetable_setup .div {
  width: 1000px;
}

.period {
  min-width: 150px;
  min-height: 110px;
  height: 110px;
  width: 150px;
  text-align: center;
  position: relative;
  font-size: 16px;
  border: 1px #000 solid;
}

.period .course {
  display: block;
  font-weight: bold;
}

.period select {
  opacity: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
}

.quicktion, .card, .slab, .button {
  user-select: none;
}

label.input input, label.input textarea {
  padding: 0;
  font-weight: 400;
  font-size: 16px;
  width: 100%;
  border: 0;
  outline: 0;
  min-width: 100%;
  max-width: 100%;
}

.glass:not(.sidebar) h1 {
  left: 0;
}

#quick_alert {
  text-align: center;
  top: 5px;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 10000;
  display: none;
}

#quick_alert .text {
  padding: 5px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  min-width: 190px;
  height: 50px;
  display: table;
  margin: auto;
  background: #ddd;
  -moz-box-shadow: 0 2px 5px #000;
  -webkit-box-shadow: 0 2px 5px #000;
  box-shadow: 0 2px 5px #000;
  color: #000;
}

#quick_alert .text>span {
  display: table-cell;
  vertical-align: middle;
}

#report_wrapper{
  position: absolute;
  top: 315px;
  left: 0;
  right: 0;
  height:400px;
}

#report_templates{
  position: absolute;
  width: 40%;
  left:0;
  height: 400px;
  overflow: auto;
}

#main_report_zone{
  left: 40%;
  position: absolute;
  right: 0;
}

#report_templates .template{
  width:95%;
  margin:20px auto;
  background: var(--general-color-1);
  border-radius:15px;
  padding:35px;
  cursor:pointer;
}

#main_report_zone .wrapper{
  margin:20px;
}

#main_report{
  height:400px;
  resize:none;
  display:block;
  width:100%;
  padding:8px;
  font-size:20px;
  border:0;
  border-radius:7px;
  outline: 0 !important;
}
