body {
  --rounding: 15px;
}

div.slider {
  position: absolute;
  top: 0;
  left: -200%;
  width: 500%;
  height: calc(100vh
      /* - 60px - env(safe-area-inset-bottom) */
    );
  height: 100%;
  padding-top: env(safe-area-inset-top);
  display: flex;
  transition: left 0.25s;
  overflow-x: hidden;
}

div.slider section {
  width: 100vw;
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  position: relative;
  color: var(--color-tone-1);
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

div.slider section.active {
  display: flex;
}

div.slider section .mockSection {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Progress Bar */
#liveClock .progress {
  --bar-width: 0;
  width: var(--bar-width);
  height: 4px;
  background: var(--index);
  background-image: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
  border-radius: 0 2px 2px 0;
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  transition: width 0.2s;
  overflow: hidden;
}

.progress:after {
  display: block;
  background-image: linear-gradient(90deg, var(--red), var(--yellow), var(--dark-green));
  width: 100vw;
  height: 100%;
  content: "";
}

/* Date */
#date {
  display: block;
  margin: 0;
  width: 100%;
  font-size: 18px;
  color: var(--color-tone-1);
  text-align: left;
  font-weight: normal;
  overflow: hidden;
  margin-bottom: 10px;
}

#date span.clickable {
  color: var(--color-tone-2);
  cursor: pointer;
}

/* Live Clock */
#liveClock {
  display: block;
  width: 100%;
  font-size: 16px;
  color: lightgray;
  background: var(--purple);
  text-align: right;
  border-radius: var(--rounding);
  padding: 10px 15px;
  font-weight: normal;
  overflow: hidden;
  transition: height 0.2s, padding 0.2s, margin-top 0.2s;
  position: sticky;
  top: -15px;
  left: 0;
  margin-top: 15px;
  z-index: 2;
}

.clockHidden #liveClock {
  height: 0;
  padding: 0;
  margin-top: 0;
}

#liveClock b {
  float: left;
  font-weight: bold;
}

/* Classes */
section#classes #here div {
  background: var(--blob);
  padding: 20px;
  text-align: left;
  border-radius: var(--rounding);
  position: relative;
  color: var(--color-tone-1);
  font-size: 25px;
  cursor: pointer;
  overflow: hidden;
  margin: 12px auto;
  width: 100%;
  border: 1px solid var(--blobBorder);
}

section#classes #here div span,
section#classes #here div .friendsList {
  display: block;
  width: 100%;
  font-size: 15px;
  height: 0;
  transition: height 0.1s, margin 0.1s, opacity 0.1s;
  opacity: 0;
  margin: 0;
}

section#classes #here div:is(.clicked, .current, .transition) span {
  height: 20px;
  margin: 0;
  opacity: 1;
}

section#classes #here div.clicked .friendsList {
  height: auto;
  opacity: 1;
}

/* Task list */
section#classes #here div span.taskList {
  display: block;
  height: 0;
  margin-top: 0;
  margin-bottom: 0 !important;
  transition: height 0.1s, margin-top 0.1s, margin-bottom 0.1s;
  overflow: hidden;
}

section#classes #here div span.taskList button {
  background: var(--very-light-index);
  margin-top: 10px;
}

section#classes #here div span.taskList button:last-child {
  background: var(--blobButton);
}

section#classes #here div:is(.transition, .current) span.taskList button:last-child {
  background: var(--index);
  color: white;
}

section#classes #here div button.forward {
  display: none;
}

section#classes #here div.clicked button.forward {
  display: block;
  background: var(--blobButton);
}

section#classes #here div.clicked span.taskList {
  height: auto;
  margin-top: 10px;
}

#modifyTask button {
  background: var(--color-tone-4);
  color: var(--color-tone-1);
  text-align: left;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}

#modifyTask button.bright {
  background: var(--very-light-index);
  color: var(--index);
}

#modifyTask button i {
  font-size: 24px;
}

section#classes #here div:is(.clicked, .current, .transition) p::before {
  opacity: 1;
}

section#classes #here div.current {
  background: var(--very-light-index);
}

section#classes #here div.transition {
  background: var(--very-light-index);
}

/* Status icons */
section#classes #here div label {
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  font-family: nunito, "Font Awesome 5 Pro";
  /* transition: top 0.1s; */
}

section#classes #here div:is(.clicked, .current, .transition) label {
  top: 20px;
  transform: none;
}

section#classes #here div label p {
  font-size: 14px;
  text-align: right;
  margin: 0;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;

}

section#classes #here div label p::after {
  width: 20px;
  height: 20px;
  margin-left: 2.5px;
  text-align: center;
  display: inline-block;
}

section#classes #here div label .status {
  color: var(--dark-green);
}

section#classes #here div.absent label .status {
  display: none;
}

section#classes #here div label .status::after {
  content: "\f549";
  content: "\f058";
}

section#classes #here div label .noTeacherStatus {
  color: var(--red);
  display: none;
}

section#classes #here div.partialTeacher label .noTeacherStatus {
  color: goldenrod;
}


section#classes #here div.absent label .noTeacherStatus {
  display: block;
}

section#classes #here div.absent label .noTeacherStatus::after {
  content: "\f057";
  /* font-weight: bold; */
}

section#classes #here div.partialTeacher label .noTeacherStatus::after {
  content: "\f059";
}

.onlyIfAbsent {
  display: none !important;
}

section#classes #here div.absent .onlyIfAbsent {
  display: inherit !important;
}

section#classes #here div label .tasks {
  color: var(--index);
  display: none;
}

section#classes #here div label .tasks::after {
  content: "\f14a";
  font-weight: bold;
  /* font-size: 16px; */
}

.tasks.todo {
  display: block !important;
}

.tasks.todo::after {
  content: "\f0ae" !important;
}

section#classes #here div label .friendStatus {
  display: none;
}

section#classes #here div label .friendStatus.loaded {
  display: block;
}

section#classes #here div label .friendStatus::after {
  content: "\f500";
  /* font-weight: bold; */
}

/* Lunch time blocks */
section#classes #here div caption {
  width: 100%;
  display: flex;
  font-size: 8pt;
  transition: 0.1s height, 0.1s opacity, 0.1s margin-top;
  opacity: 0;
  margin-top: 0;
  height: 0;
  overflow: hidden;
}

section#classes #here div:is(.clicked, .current, .transition) caption {
  height: 65px;
  opacity: 1;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
}

section#classes #here div:is(.current, .transition) caption p {
  border: 2px solid var(--index);
  padding: 8px 10px;
}

section#classes #here div caption p {
  background: var(--light-index);
  border-radius: calc(var(--rounding) - 5px);
  margin: auto;
  padding: 10px 12px;
  box-sizing: border-box;
  height: 60px;
  font-size: 11px;
}

section#classes #here div.lunch.current caption p {
  background: transparent;
}

section#classes #here div caption p:first-child {
  margin-left: 0;
}

section#classes #here div caption p:last-child {
  margin-right: 0;
}

section#classes #here div caption p b {
  font-size: 14pt;
}

section#classes #here div caption p.current {
  background: var(--index) !important;
  color: white;
}

section#classes #here div caption p.upcoming {
  border: 5px solid var(--index);
  padding: 5px 7px;
}

/* Sponsored Alerts*/
.sponsered {
  display: none;
  height: auto;
  padding: 12px 6px;
  margin: 10px auto;
  width: 100%;
  border-radius: var(--rounding);
  position: relative;
  background: var(--blob);
  border: 1px solid var(--blobBorder);
  color: var(--color-tone-1);
}

/* Less margin for story content */
.storyItem .content :not(.pinInfo)>.sponsered {
  margin: 5px auto;
}

.sponsered.bright {
  background: var(--index);
  border-width: 0px;
  padding: 13px 7px;
  color: white;
}

.pinInfo {
  margin: 10px 0;
  background: var(--blob);
  border: 1px solid var(--blobBorder);
  display: block;
  border-radius: var(--rounding);
}

.pinInfo .sponsered {
  margin-top: 0;
}

.pinInfo label {
  font-size: 14px;
  color: var(--color-tone-2);
  padding: 5px 10px;
  display: block;
  margin-top: -10px;
}

.pinInfo label>span {
  font-size: 10px;
  float: right;
  font-weight: bold;
  padding: 3px 0;
  background: var(--premium-gradient);
  background-clip: text;
  /* color: var(--index); */
  color: transparent;
}

.storyItem .pinInfo label>span>span {
  display: none;
}

.sponsered.visible {
  display: flex;
}

.sponsered i {
  font-size: 40px;
  margin: auto 5px;
  margin-right: 10px;
  color: var(--index);
  text-align: center;
  width: 1.25em;
}

.sponsered.bright i {
  color: white;
}

.sponsered span {
  flex: 1;
  cursor: pointer;
  margin-right: 25px;
}

.sponsered i.fa-xmark,
.sponsered i.fa-info-circle {
  position: absolute;
  font-size: 16px;
  right: 10px;
  margin: 0 !important;
  top: calc(50% - 20px);
  padding: 10px;
  padding-right: 20px;
  color: white;
  cursor: pointer;
}

.noClose .sponsered i.fa-xmark,
.noClose .sponsered i.fa-info-circle {
  display: none;
}

.noClose .sponsered span {
  margin-right: 0;
}

.sponsered h2,
.sponsered p {
  margin: 0 !important;
  color: inherit !important;
}

.sponsered h2 {
  font-size: 17px;
}

.sponsered p,
.sponsered a {
  font-size: 12px;
  color: inherit;
  opacity: 0.9;
  text-decoration: none;
}

/* Cards */
.card {
  display: block;
  background: var(--blob);
  border: 1px solid var(--blobBorder);
  color: var(--color-tone-1);
  padding: 20px;
  margin: 12px auto;
  width: 100%;
  border-radius: var(--rounding);
  font-size: 12pt;
  text-align: center;
}

.card img {
  width: 80%;
  max-width: 300px;
  margin: 20px auto;
}

.dark .card img.black {
  filter: brightness(0) invert(1);
}

.hiddenCards .card {
  display: none;
}

.weekend #weekend,
.noSchool #noSchool {
  display: block;
}

/* Notification Bubbles */
section h5 {
  background: var(--blob);
  color: var(--color-tone-1);
  padding: 10px;
  margin: 10px auto;
  width: 100%;
  border-radius: var(--rounding);
  font-size: 12pt;
  font-weight: normal;
  border: 1px solid var(--blobBorder);
}

section h5 a {
  color: inherit !important;
  text-decoration: underline;
}

ul {
  margin: 0;
  padding: 0;
  padding-bottom: 5px;
}

li {
  display: inline-block;
  width: fit-content;
  /* background: var(--light-index); */
  padding: 10px;
  border-radius: var(--rounding);
  margin: 0 6px 6px 0px;
  border: 1px solid var(--blobBorder);
  background: var(--blob);
  font-size: 14px;
}

li.mine {
  background: var(--index);
  color: var(--color-tone-7);
  border-color: transparent;
}

/* info screen text */
/* Other bubble stuff moved to styles.css */

/* header + footer */
header {
  position: static !important;
}

header h1 {
  margin: 0;
  font-size: 24pt;
  padding: 0 5px;
  margin: 0 10px;
  text-align: left;
}

header h1 {
  position: relative;
  padding: 5px 5px;
  transition: padding-top 0.2s;
}

header h1 i {
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 5px;
  height: 30px;
  width: 30px;
  padding: 5px;
  background: var(--very-light-index);
  color: var(--index);
  border-radius: 100%;
  text-align: center;
  cursor: pointer;
}

.dark header h1 i {
  background: var(--light-index);
}

header h1 i.small {
  font-size: 16px;
  padding: 7px 0;
}

header h1 i.furtherLeft {
  right: 45px;
}

header h1 i.furthestLeft {
  right: 85px;
}

/* Ellipsis menu */
header h1 .iconExpand {
  background: var(--opacity-50);
  border-radius: 15px;
  position: absolute;
  top: 10px;
  right: 5px;
  height: 30px;
  width: 30px;
  overflow: hidden;
  padding-left: 5px;
  transition: all 0.1s;
}

header h1 .iconExpand:hover {
  width: auto;
  height: 40px;
  top: 5px;
  right: 0px;
  border-radius: 20px;
}

header h1 .iconExpand:hover :first-child {
  height: 40px;
  width: 40px;
  padding: 10px;
  transition: all 0.1s;
}

header h1 .iconExpand i {
  position: static;
  text-align: center;
  cursor: pointer;
  float: right;
  margin-left: 5px;
}

header h1 .iconExpand i:not(:first-child) {
  background: var(--light-index);
  margin: 5px 2.5px;
}

/* footer */
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: calc(60px + env(safe-area-inset-bottom));
  padding: 5px;
  padding-bottom: calc(5px + env(safe-area-inset-bottom));
  bottom: 0;
  background: var(--transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-evenly; */
  justify-content: space-around;
  box-shadow: 0 -0.5px var(--blobBorder);
}

.dark footer {
  box-shadow: 0 -0.5px var(--color-tone-5);
}

footer i {
  font-size: 25px;
  color: var(--color-tone-2);
  transition: color 0.2s;
  padding: 5px;
  cursor: pointer;
  border-radius: 35px;
  margin: 0;
  height: 35px;
  width: 45px;
  text-align: center;
  position: relative;
}

footer i .unread {
  display: block;
  position: absolute;
  width: 10px;
  height: 10px;
  top: 0;
  right: 5px;
  background: var(--light-index);
  border-radius: 50%;
}

footer i.logo {
  margin-top: 3px;
  height: 40px;
  width: 40px;
  border-radius: 0;
}

footer i:not(.logo)::after {
  content: "Daily Post";
  font-size: 10px;
  font-family: "Nunito";
  position: absolute;
  top: 35px;
  left: -15px;
  display: block;
  text-align: center;
  width: 75px;
}

footer i.fa-user-circle::after {
  content: "Account";
}

footer i.fa-home::after {
  content: "Schedule";
}

footer i.fa-ghost::after {
  content: "Ghost";
}

footer i.fa-user-group::after {
  content: "Friends";
}

.teacher footer i.fa-user-group::after {
  content: "Students";
}

.teacher footer i.fa-user-group::before {
  content: "\f63d";
}

.teacher footer .fa-bolt::before {
  content: "\f05a";
}

footer i.fa-bolt::after {
  content: "Feed";
}

.teacher footer i.fa-bolt::after {
  content: "Updates";
}

footer i.logo {
  background-size: cover;
  background-image: url("../media/big-logo.png") !important;
}

footer i.logo:not(.active) {
  filter: brightness(0);
}

.dark i.logo:not(.active) {
  filter: brightness(0) invert(1);
}


footer i.active {
  color: var(--index);
}

footer img.active {
  height: 48px;
  width: 48px;
  padding: 2px;
}


/* Friends CSS */
.approve,
.friendSchedule {
  display: block;
  background: var(--blob);
  border: 1px solid var(--blobBorder);
  color: var(--color-tone-1);
  /* padding: 20px 15px; */
  padding: 15px;
  margin: 12px auto;
  width: 100%;
  border-radius: var(--rounding);
  font-size: 15px;
  text-align: left;
  position: relative;
}

.approve i {
  position: absolute;
  background: var(--red);
  padding: 10px;
  font-size: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  color: white;
  top: 11px;
  right: 15px;
  cursor: pointer;
}

.approve i.check {
  right: 60px;
  background: var(--dark-green);
}

.friendSchedule {
  cursor: pointer;
}

.friendSchedule .summary {
  font-size: 14px;
  overflow: hidden;
  height: 20px;
  display: block;
}

.friendSchedule.expanded .summary {
  margin-bottom: 12px;
}

#friendProfile {
  color: white;
}

#friendProfile .friendScheduleButtons button {
  color: white;
}

#friendProfile .list {
  width: 100%;
  background: var(--blob);
  border-radius: 7.5px;
  transition: height 300ms;
  position: relative;
  overflow: hidden;
  color: var(--color-tone-1);
}

#friendProfile .list .wrapping {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
  overflow: hidden;
}

#friendProfile .list item {
  display: block;
  padding: 10px 15px;
  border-bottom: 1px solid var(--blobButton);
  font-size: 18px;
  position: relative;
  cursor: pointer;
}

#friendProfile .list item:last-child {
  border-bottom: none;
}

#friendProfile .list item::after {
  content: "\f054";
  font-family: "Font Awesome 6 Pro";
  position: absolute;
  font-size: 16px;
  border-radius: 50%;
  text-align: center;
  top: 13.5px;
  right: 15px;
  transition: transform 0.2s;
}

.approve h2,
.friendSchedule h2 {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

/* Profile icons */
.friendSchedule .profile {
  display: block;
  width: 48px;
  height: 48px;
  float: left;
  border-radius: 50%;
  margin-right: 10px;
  background: var(--index);
  font-size: 30px;
  padding: 9px 0;
  text-align: center;
  color: white;
  z-index: 0;
}

.mainProfile {
  display: block;
  height: 140px;
  width: 140px;
  border-radius: 50%;
  margin: 0px auto;
  background: var(--theme-index);
  color: white;
  font-size: 80px;
  padding: 30px 0;
  text-align: center;
  z-index: 1;
}

* {
  --badge-gradient: linear-gradient(-45deg, var(--ios-blue), var(--color-tone-1));
}

.emojiStatus,
.badge {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.5em;
  font-family: "Apple Color Emoji";
  border-radius: 50%;
  color: var(--yellow);
  z-index: 2;
}

.badge {
  bottom: auto;
  top: 0;
}

.badge::before,
.badge::after {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}

.badge::before {
  display: block;
  content: "\f336";
  font-family: "Font Awesome 5 Pro";
  color: var(--ios-blue);
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  font-size: 1em;
  background: var(--badge-gradient);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.badge::after {
  display: block;
  content: "\f335";
  font-family: "Font Awesome 5 Pro";
  color: white;
  position: absolute;
  z-index: -1;
  right: 0;
  top: 0;
  font-size: 1em;
}

.inlineBadge {
  position: relative;
  font-weight: 900;
  letter-spacing: normal;
  font-family: "Font Awesome 6 Duotone";
  display: inline-block;
}

.inlineBadge {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  --hintColor: var(--ios-blue);
  --badge-gradient: linear-gradient(-45deg, var(--hintColor), var(--color-tone-1));
}

.inlineBadge.red {
  --hintColor: var(--red);
}

.inlineBadge::after {
  content: "\f336\f336";
  color: var(--ios-blue);
  background: var(--badge-gradient);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.inlineBadge::before {
  position: absolute;
  color: white;
  content: "\f336";
}


/* Circle Lists */
.circleList {
  margin: 0 -5px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  justify-items: center;
}

.circleList i {
  display: block;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  margin: 5px;
  position: relative;
  cursor: pointer;
  background: var(--index);
  overflow: hidden;
}

.circleList.font i {
  background: var(--light-index);
}

.circleList.font i.selected {
  background: var(--index);
}

.circleList.font i {
  color: white;
  font-size: 20px;
  text-align: center;
  padding: 7.5px 0;
  font-style: normal;
}

.circleList.font.text i {
  padding: 3.5px 0;
}

.circleList.font.text i.selected {
  background: var(--light-index);
  border: 2px solid var(--index);
  padding: 1.5px 0;
}

.circleList:not(.font) i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0%;
  height: 0%;
  background: var(--blob);
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s, width 0.3s, height 0.3s, top 0.3s, left 0.3s;
}

.circleList:not(.font) i.selected::after {
  opacity: 1;
  top: 30%;
  left: 30%;
  width: 40%;
  height: 40%;
}

/* countdown text gradient */
#countdown1 span {
  font-size: 200px;
  display: block;
  line-height: 1;
  background: linear-gradient(135deg, var(--index), var(--yellow));
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: bold;
}

/* Friend dropdown */
section#friends select {
  font-size: 0.8em;
  border: none;
  outline: 0;
  background: transparent;
  color: inherit;
  margin: 0;
  padding: 0.2em 0;
  float: right;
  color: var(--color-tone-2);
  text-align: right;
}

section#friends select option {
  text-align: right;
}

section#friends h2>label {
  float: right;
  color: var(--color-tone-2);
}

section#friends h2>label i {
  font-size: 0.8em;
  padding: 0.2em 0;
}

/* Add friends menu  */
.borderWrap .list .item .name {
  max-width: calc(100% - 85px);
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.borderWrap .list.flex .item>i {
  color: var(--index);
  font-size: 24px;
  cursor: pointer;
  min-width: 1.25em;
}

.borderWrap .list.flex .item {
  display: flex;
  justify-content: space-between;
}

.borderWrap .list .item.bg {
  background: linear-gradient(var(--light-index), var(--light-index)), linear-gradient(var(--color-tone-6), var(--color-tone-6));
  font-weight: bold;
}

.borderWrap .list.flex .item .name {
  max-width: 100%;
}

#coinLeaderboard .borderWrap .list .item .inlineBadge {
  cursor: pointer;
  flex: 1;
  padding: 2.5px 5px;
}

.borderWrap .list .item :is(.add, .pending, .known) {
  float: right;
  border-radius: var(--rounding);
  padding: 5px 8px;
  margin: -4px 0;
  font-size: 16px;
  background: var(--yellow);
  color: white;
  display: none;
  font-family: nunito, "Font Awesome 6 Pro";
  font-weight: 900;
}

.borderWrap .list .item .add {
  background: var(--dark-green);
  cursor: pointer;
}

.borderWrap .list .item .known {
  background: var(--orange);
}

.borderWrap .list .item .add:after {
  content: "\2b  Add";
}

.borderWrap .list .item .pending:after {
  content: "pending";
}

.borderWrap .list .item .known:after {
  content: "added \f00c";
}

.borderWrap .list .item.add .add,
.borderWrap .list .item.pending .pending,
.borderWrap .list .item.known .known {
  display: block;
}

/* Student ID QR visible */
#studentID.barcodeFormat :is(.qrcode, .barcodeButton),
#studentID.qrFormat :is(.barcode, .qrButton) {
  display: none;
}

svg.barcode {
  border-radius: var(--rounding);
}

.qrcode img {
  margin: -10px auto;
  padding: 10px;
  background: white;
  border-radius: var(--rounding);
}

/* Unlock */
* {
  --premium-gradient: linear-gradient(-45deg, var(--ios-blue), var(--color-tone-1));
  --premium-gradient: linear-gradient(-45deg, #138fd2 25%, violet 75%);
}

body {
  --birthday-gradient: linear-gradient(135deg, var(--yellow) 0%, var(--index) 100%);
}

.dark {
  --birthday-gradient: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
}

.premiumBG {
  background: var(--premium-gradient) !important;
  color: white;
}

.expandButton.locked {
  background: var(--yellow);
  color: white;
}

.expandButton.locked::before {
  content: "\f85c";
  font-family: "Font Awesome 6 Pro";
  font-weight: bold;
  margin-right: 5px;
}

.expandButton.locked::after {
  content: var(--price, "Unlock");
}

.expandButton.locked,
.unlockButton {
  float: right;
  padding: 2px 10px;
  display: block;
  border-radius: var(--rounding);
  cursor: pointer;
  font-weight: normal;
  font-size: 16px;
}

.unlockButton:before {
  content: "\f890";
  font-family: "Font Awesome 5 Pro";
  font-weight: bold;
  margin-right: 5px;
}

.unlockButton:after {
  content: "Unlock";
}

#premiumPerks .bundle i {
  color: var(--index);
}

.discreteText {
  color: var(--color-tone-2);
  font-size: 12px;
}


/* Feed css */
.feeds>span>h2 {
  position: sticky;
  top: 0;
  margin: 0 -15px;
  padding: 5px 15px;
  z-index: 3;
  background: var(--index);
  color: white;
  font-size: 20px;
}

.feed>span>h2 {
  font-size: 20px;
  margin: 0;
  padding: 5px 0;
  padding-top: 10px;
}

.poll label {
  font-size: 14px;
  color: var(--color-tone-2);
  padding-left: 5px;
}

.poll {
  background: var(--blob);
  border: 1px solid var(--blobBorder);
  color: var(--color-tone-1);
  height: auto;
  padding: 12px;
  margin: 10px auto;
  width: 100%;
  border-radius: var(--rounding);
  position: relative;
  display: block;
}

.poll h2,
.poll p {
  margin: 0 !important;
  color: inherit !important;
}

.poll h2 {
  font-size: 17px;
}

.poll p {
  font-size: 13px;
}

.poll item {
  display: block;
  border-radius: 5px;
  padding: 8px;
  margin: 5px 0;
  background: var(--blobButton);
  position: relative;
  cursor: pointer;
  overflow: auto;
  --percent: var(--percent, 0);
  height: 38.5px;
  transition: background 0.3s;
}

.dark .poll item {
  color: white;
}

.poll.results item {
  cursor: auto;
  background: transparent;
}

.poll item:before {
  content: attr(value);
  font-family: nunito, "Font Awesome 5 Pro";
  position: absolute;
  z-index: 2;
}

.poll.results item.selected:before {
  content: attr(value) "\0020\f058";
  font-weight: bold;
}

.poll.multiple:not(.results) item::after {
  content: "\f111";
  font-family: "Font Awesome 5 Pro";
  position: absolute;
  right: 12px;
  z-index: 2;
}

.poll.multiple item.other::after {
  content: "";
}

.poll.multiple:not(.results) item.selected {
  background: var(--light-index);
}

.poll.multiple:not(.results) item.selected::after {
  content: "\0020\f058";
  font-weight: bold;
}

.poll button.ios.yellow {
  background: var(--index);
  border-radius: 5px;
}

.poll.results button.ios.yellow {
  display: none;
}

.poll item .fill {
  background: linear-gradient(var(--light-index), var(--light-index)), linear-gradient(var(--blob), var(--blob));
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: block;
  width: 0%;
  transition: width 0.3s;
  border-radius: 5px;
}

.dark .poll item .fill {
  background: var(--index);
}

.poll.results item .fill {
  width: calc(var(--percent) * 1%);
}

.poll.results item:after {
  position: absolute;
  right: 8px;
  counter-reset: variable var(--percent);
  content: counter(variable);
  content: counter(variable) "%";
}

/* Feed Banners */
.story {
  margin: 10px 0;
  border-radius: var(--rounding);
  background: var(--blob);
  border: 1px solid var(--blobBorder);
  position: relative;
  display: flex;
  overflow: hidden;
  cursor: pointer;
  height: 70px;
}

.story.unread {
  --border-color: var(--index);
}

.story i {
  background: var(--light-index);
  color: var(--index);
  height: 70px;
  min-width: 70px;
  padding: 15px 0;
  text-align: center;
  font-size: 40px;
  display: block;
}

.story img {
  background: var(--light-index);
  object-fit: cover;
  width: 70px;
}

.story .text {
  width: 100%;
  padding: 10px 15px;
}

.story .text .title {
  display: block;
  font-size: 18px;
  font-weight: bold;
}

.story .text .summary {
  font-size: 14px;
}

.story:after {
  /* content: "\f054"; */
  content: "";
  font-family: "Font Awesome 6 Pro";
  font-size: 20px;
  position: absolute;
  right: 10px;
  top: 10px;
  /* padding: 5px; */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  text-align: center;
  opacity: 0;
  transition: opacity 100ms;
  background: var(--index);
}

.story.unread:after {
  opacity: 1;
}

.hozo {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: -5px 0;
}

.hozo .story {
  width: calc(50% - 5px);
  height: auto;
  margin: 5px 0;
  flex-direction: column;
}

.hozo .story i {
  height: 130px;
  flex-shrink: 0;
  font-size: 70px;
  padding: 30px;
}

.hozo .story img {
  width: 100%;
  min-height: 150px;
  max-height: 150px;
  height: auto;
}

.hozo .story .text {
  height: 100%;
  text-align: center;
}

.hozo .story .summary {
  float: bottom;
}

.hozo .story:after {
  display: none;
}


/* Friends pin friend buttons */
.friendSchedule .friendScheduleButtons {
  overflow: hidden;
  height: 0;
  margin-top: 0;
  transition: margin-top 0.2s;
}

.friendSchedule .friendScheduleButtons button {
  background: var(--blobButton);
  font-size: 20px;
}

.friendSchedule.expanded .friendScheduleButtons {
  height: 45px;
  margin-top: 6px;
}




/* BlockStatus Stories overlay */
/* Story container */
.storyWrapper {
  width: 100%;
  position: fixed;
  background: var(--transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: white;
  top: 0;
  bottom: env(safe-area-inset-bottom);
  padding: 10px;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 5;
  transition: opacity 0.3s, visibility 0ms;
  visibility: visible;
  bottom: 0;
}

.storyWrapper.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0ms 0.3s;
}

.storyFocus {
  width: 100%;
  height: 100%;
  max-width: 450px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  scroll-behavior: smooth;
  border-radius: var(--rounding);
  transition: transform 0.3s;
}

.storyWrapper.hidden .storyFocus {
  transform: translateY(10%);
}

.storyItem {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--rounding);
  overflow: hidden;
  position: relative;
  transform: var(--transform, translateX(0));
  transition: transform 0.3s;
  --contrast: #eeeeeebb;
  --contrast-50: #eeeeee55;
  --storyBG: var(--index);
  background: var(--storyBG);
}

.dark .storyItem {
  --storyBG: var(--purple);
}

.storyItem.lightBG {
  --contrast: #111111bb;
  --contrast-50: #11111155;
}

.storyWrapper.hidden .storyItem {
  transition: transform 0s;
}

.dark .storyItem {
  background: #222;
}

/* Story header */
.storyItem .header {
  padding: 15px;
  width: 100%;
  z-index: 2;
  background: linear-gradient(#0008 10px, #0002);
  position: relative;
}

.storyItem .header .segments {
  height: 2px;
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.storyItem .header .segments .segment {
  background: white;
  background: #fff5;
  width: 100%;
}

.storyItem .header .segments .segment::after {
  width: var(--fill, 0);
  transition: width 60ms;
  height: 100%;
  background: white;
  display: block;
  content: "";
}

.storyItem .header i {
  padding: 10px 0;
  background: #fff5;
  border-radius: 50%;
  float: left;
  margin-right: 10px;
  height: 36px;
  width: 36px;
  text-align: center;
  font-size: 16px;
}

.storyItem .header b {
  font-size: 16px;
  float: left;
  line-height: 1.25;
}

.storyItem .header p {
  margin: 0;
  font-size: 12px;
  color: #ddd;
  float: left;
  line-height: 0.75;
}

.storyItem .header .close,
.storyItem .header .pause {
  position: absolute;
  right: 27.5px;
  top: 40px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.storyItem .header .pause {
  right: 60px;
  font-size: 18px;
  top: 41px;
}

.paused .storyItem .header .pause {
  font-size: 16px;
  top: 42px;
}

.storyItem .header .close::after {
  content: "\f00d";
  font-weight: bold;
  font-family: "Font Awesome 6 Pro";
}

.storyItem .header .pause::after {
  content: "\f04c";
  font-weight: bold;
  font-family: "Font Awesome 6 Pro";
}

.paused .storyItem .header .pause::after {
  content: "\f04b";
}

/* Story content */
.storyItem .content {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px;
  background: linear-gradient(#0002, #0000 30px);
}

.storyItem .content .poll,
.storyItem .content .noClose,
.storyItem .content .sponsered {
  z-index: 2;
  width: 100%;
}

.storyItem .content>h1,
.storyItem .content>p {
  text-align: center;
  color: var(--contrast);
}

.storyItem .content>p {
  margin-top: 0;
  font-size: 20px;
  max-height: 80px;
  z-index: 2;
  overflow: scroll;
}

.storyItem img {
  background: #555;
  min-height: 200px;
  width: 100%;
  clip-path: inset(-5px -5px 0px -5px);
  -webkit-box-shadow: 0 0 5px 0 var(--contrast-50);
  box-shadow: 0 0 5px 0 var(--contrast-50);
  border-radius: 5px 5px 0 0;
}

.storyItem .content button {
  margin: 0;
  width: 100%;
  z-index: 2;
}

.storyItem .content button.ig {
  border: none;
  background: var(--contrast-50);
  color: white;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  overflow: hidden;
  clip-path: inset(0px -5px -5px -5px);
  -webkit-box-shadow: 0 0 5px 0 var(--contrast-50);
  box-shadow: 0 0 5px 0 var(--contrast-50);
  border-radius: 0 0 5px 5px;
}

/* Story tap zones */
.storyItem .tapZones {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  opacity: 0;
}

.storyItem .tapZones div {
  background: #00f3;
  width: 100%;
  height: 100%;
}

.storyItem .tapZones div:first-child {
  background: #f003;
}


/* toggle switches and containers */
.toggleBlob {
  margin: 10px 0;
  border-radius: var(--rounding);
  background: var(--blob);
  border: 1px solid var(--blobBorder);
  overflow: hidden;
  cursor: pointer;
  height: 50px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
}

.toggleBlob p {
  margin: 0;
  padding: 0;
  font-size: 20px;
  color: var(--color-tone-2);
  font-weight: bold;
}

.toggleBlob.on p {
  color: var(--color-tone-1);
}

.switch {
  position: relative;
  display: inline-block;
  --height: 20px;
  width: calc(var(--height) * 2);
  height: var(--height);
}

.toggleBlob .switch {
  --height: 24px;
  margin-top: 2px;
}

.switch .sliderButton {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-tone-4);
  border-radius: var(--height);
  transition: .3s;
  /* Disable for gradient bg */
}

.dark .switch .sliderButton {
  background: var(--color-tone-3);
}

.switch .sliderButton:before {
  position: absolute;
  content: "";
  height: calc(var(--height) * 0.80);
  width: calc(var(--height) * 0.80);
  left: calc(var(--height) * 0.1);
  bottom: calc(var(--height) * 0.1);
  background: var(--color-tone-2);
  transition: .3s;
  border-radius: 50%;
}

.on .sliderButton {
  background: var(--light-index) !important;
}

.on .sliderButton:before {
  -webkit-transform: translateX(var(--height));
  transform: translateX(var(--height));
  background: var(--index);
}

/* GPA stuff */
#gpaCalculator .item:not(.stick) {
  cursor: pointer;
}

/* from account page css */
#gpaCourse select,
#gpaCourse input[type="text"] {
  display: block;
  margin: 15px 0;
  margin-top: 0;
  width: 100%;
  padding: 10px;
  height: 40px;
  background: var(--blobButton);
  border: 1px solid var(--blobBorder);
  border-radius: var(--rounding);
  font-size: 16px;
  color: var(--color-tone-1);
  outline: 0;
}

#gpaCourse label {
  display: block;
  margin: 15px 0;
  margin-bottom: 0;
}

/* April fools day popup stuff */
#aprilFools .bar {
  width: 100%;
  position: relative;
  height: 40px;
  background: var(--blob);
  background: transparent;
  border-radius: 0 10px 10px 0;
  border-radius: var(--rounding);
  margin: 5px 0;
  overflow: hidden;
}

#aprilFools .bar::before {
  content: "";
  background: var(--light-index);
  width: var(--percent);
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  border-radius: var(--rounding);
}

#aprilFools .bar::after {
  content: var(--teacher);
  color: var(--color-tone-1);
  color: var(--color-tone-4);
  z-index: 1;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  font-size: 15px;
  padding: 10px;
}

/* Coins */
.coinsAdded {
  position: fixed;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 40px;
  border-radius: 20px;
  font-size: 20px;
  padding: 7.5px 15px;
  text-align: right;
  display: block;
  top: -40px;
  transition: top 90ms linear;
  background: gold;
}

.dark .coinsAdded {
  background: var(--color-tone-4);
}

.coinsAdded::after {
  content: attr(value) " B$";
}

.coinsAdded::before {
  content: "\f85c";
  font-family: "Font Awesome 6 Pro";
  font-weight: bold;
  float: left;
  /* padding: 2.5px 0; */
  /* margin-right: 5px; */
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.dark .coinsAdded {
  color: gold;
}

.coinsAdded.show {
  top: calc(5px + env(safe-area-inset-top));
}

.coinCount {
  /* height: 30px; */
  /* width: auto; */
  /* min-width: 100px; */
  /* border-radius: 15px; */
  background: gold !important;
  /* float: right; */
  /* margin: 5px 0; */
  color: #333 !important;
  /* font-size: 15px; */
  /* padding: 5px 10px; */
  /* cursor: pointer; */
  /* text-align: right; */
  /* display: none; */
}

/* 
.coinCount::after {
  content: attr(value) " B$";
} */

/* .coinCount.show {
  display: block;
} */

/* Message buttons */
.unreadMessages {
  display: none;
  cursor: pointer;
  margin: 15px 0;
  background: var(--very-light-index) !important;
  border: none !important;
  margin-top: 10px;
}

.unreadMessages p {
  margin: 0 !important;
}

iframe#chat {
  border: none;
  width: 100%;
  height: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: var(--transparent);
  transform: scale(0.5);
  opacity: 0;
  transition: 0.15s transform, 0.15s opacity, visibility 0s 0.15s;
  visibility: hidden;
}

iframe#chat.show {
  transform: scale(1);
  visibility: visible;
  opacity: 1;
  transition: 0.15s transform, 0.15s opacity;
}

/* echo.css */
:root {
  --drift-x: 0;
  --drift-y: 0;
}

.emoji-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.emoji-drift {
  animation: drift 2s linear;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out,
    font-size 0.5s ease-in-out;
  opacity: 0;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }

  20% {
    transform: translate(calc(var(--drift-x) / 5), calc(var(--drift-y) / 5)) scale(1);
    opacity: 1;
  }

  80% {
    transform: translate(calc(var(--drift-x) * 4 / 5),
        calc(var(--drift-y) * 4 / 5)) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translate(var(--drift-x), var(--drift-y)) scale(0.5);
    opacity: 0;
  }
}


.snowflake:before {
  font-family: "Font Awesome 5 Pro";
  content: "\f2dc"
}


/* Snowflake theme */
main .snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.square {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.square button {
  /* border-radius: var(--rounding); */
  display: flex;
  width: calc(50% - 3px) !important;
  font-size: 20px;
  text-align: center;
  /* border-radius: calc(var(--rounding) - 10px); */
}

.square button.selected {
  background: var(--index);
  color: white;
}

.square.more button {
  /* width: calc(33% - 2.5px) !important */
  width: auto !important;
  flex: 1;
}

.square button i {
  font-size: 25px;
  padding-top: 2px;
  width: 35px;
  text-align: center;
}

.square button span {
  flex: 1;
  padding: 3.5px;
  font-size: 18px;
}


.bundle .expandButton:not(.locked) {
  float: right;
  /* padding: 2.5px 0; */
  width: 25px;
  text-align: center;
  display: block;
  border-radius: var(--rounding);
  cursor: pointer;
  transition: transform 100ms;
}

.bundle.expanded .expandButton:not(.locked) {
  transform: rotate(90deg);
}

.bundle .expandButton:not(.locked)::before {
  content: "\f054";
  font-family: "Font Awesome 5 Pro";
  font-weight: bold;
  margin-right: 3px;
}

.bundle:not(.expanded) .circleList,
:not(.expanded)>.showOnExpand {
  display: none;
}

.bottomPopup p.showOnExpand {
  margin: 5px 0;
}

/* #account>span.thin>.bundle {
  padding-bottom: 12.5px;
} */

.friendSchedule .profile {
  background: var(--background);
}


#classes.scrolled #liveClock {
  border-radius: 0 0 var(--rounding) var(--rounding);
}


/* Improvements to lists */
.borderWrap .list>div {
  margin-bottom: 8px;
  border-radius: var(--rounding) !important;
  width: 100%;
  background: var(--blob);
  border-bottom: none !important;
}

.item.stick {
  background: var(--opacity-50);
}

.borderWrap {
  border-radius: 0px !important;
  border: none;
}

/* Gradient profiles */
.mainProfile {
  background: linear-gradient(-20deg, var(--theme-index) 30%, var(--linearBlend, #13c0ff));
}

.friendSchedule .profile {
  background: linear-gradient(-20deg, var(--background) 30%, var(--rotated))
}


/* Colorful Background */
.colorfulBackground {
  background: linear-gradient(-20deg, var(--index) 30%, var(--linearBlend, #13c0ff)) no-repeat
    /*fixed*/
  ;
  --blob: #fff6;
  --blobButton: var(--blob);
  /* --blobBorder: none; */
  --blobBorder: rgba(255, 255, 255, 0.3);
  --brightClear: #fffa;
}

.colorfulBackground.dark {
  --brightClear: #000a;
  --blobBorder: rgba(0, 0, 0, 0.3);
}

.dark.colorfulBackground {
  --blob: #0006;
}

.colorfulBackground header {
  background: transparent;
}

.colorfulBackground section header {
  /* color: transparent;
  background: linear-gradient(135deg, var(--lightBG), var(--index));
  background-clip: border-box;
  background-clip: text; */
  color: white;
}

.colorfulBackground section header h1 i {
  background: white;
}

.colorfulBackground section#classes.scrolled header h1 i {
  background: var(--light-index);
}

.colorfulBackground section#classes.scrolled header h1 span {
  color: var(--index);
}


.colorfulBackground section#classes #date {
  color: white;
}

.colorfulBackground #classes header h1 span {
  transition: color 200ms;
}

.colorfulBackground #notifications li {
  background: var(--blob);
  color: var(--color-tone-1);
}

.colorfulBackground #notifications li.mine {
  background: var(--brightClear);
  color: var(--index);
}

.colorfulBackground.dark #notifications li.mine {
  background: var(--brightClear);
}

.colorfulBackground .sponsered:not(.bright),
.colorfulBackground #classes #here>div,
.colorfulBackground #friends .friendSchedule,
.colorfulBackground #friends .approve,
.colorfulBackground #bannersOnFeed .story,
.colorfulBackground .bundle,
.colorfulBackground .buttonBlock,
.colorfulBackground #notifications li,
.colorfulBackground :not(.buttonBlock)>button,
.colorfulBackground #notifications h5,
.colorfulBackground .card {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.colorfulBackground #bannersOnFeed .story {
  background: var(--brightClear);
}

.colorfulBackground .toggleBlob {
  background: var(--blobButton);
}

.colorfulBackground .poll item .fill {
  background: var(--index);
}

.colorfulBackground:not(.dark) .poll label {
  color: #333;
}

.colorfulBackground .bottomPopup {
  background: var(--transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.colorfulBackground section:is(#friends, #notifications) {
  color: white;
}

.colorfulBackground #date {
  color: black;
}

.colorfulBackground section#friends select,
.colorfulBackground section#friends h2>label {
  color: #ddd;
}

.colorfulBackground #classes #here>div.transition,
.colorfulBackground #classes #here>div.current {
  background: var(--brightClear);
}

.colorfulBackground #date span.clickable {
  color: #fffa;
}

.colorfulBackground .story {
  border: none;
}

.colorfulBackground .thin>button.ios.yellow {
  background: var(--purple);
}


/* Fixed footer */
.floatingFooter footer {
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  left: 15px;
  right: 15px;
  width: calc(100% - 30px);
  border-radius: var(--rounding);
  background: var(--lightBG);
  height: 60px;
}

body.dark.floatingFooter footer {
  background: var(--darkBG);
}


/* Fixed header */
.fixedHeader header {
  background: var(--index) !important;
  color: white !important;
  margin-top: 0 !important;
}

.fixedHeader header h1 i {
  /* color: white !important; */
  background: #fffa;
}

.fixedHeader .scrolled header {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.fixedHeader #classes #liveClock {
  position: absolute;
  left: 0;
  top: 25px;
  border-radius: 0 !important;
  background: var(--index);
}

.fixedHeader #classes h2#date {
  margin-top: 40px !important;
  transition: margin-top 0.2s !important;
}

.fixedHeader #classes.clockHidden h2#date {
  margin-top: 5px !important;
}

.fixedHeader nav {
  background: var(--index) !important;
}

/* Linear schedule view */
:is(.linearScheduleView, .colorfulScheduleView) #classes #here {
  display: block;
  overflow: scroll;
  height: calc(100vh - 160px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
  max-height: 650px;
  position: relative;
}

:is(.linearScheduleView, .colorfulScheduleView):is(.noSchool, .weekend) #classes #here {
  display: none;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div {
  border: 0 !important;
  margin: 0 !important;
  margin-bottom: 5px !important;
  --height: calc(100% / 7);
  height: var(--height);
  padding: 5px 10px !important;
  font-size: 20px;
  position: absolute;
  --top: 10px;
  top: var(--top);
  --dayComplete: -10px;
}

.linearScheduleView section#classes #here div {
  border-radius: 0 !important;
  border-left: 2px solid var(--color-tone-4) !important;
}

.linearScheduleView section#classes #here div.current {
  border-left-color: var(--index) !important;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here::before,
:is(.linearScheduleView, .colorfulScheduleView) section#classes #here::after {
  content: "";
  position: absolute;
  top: var(--dayComplete);
  left: 0;
  transform: translateY(-50%);
  display: block;
  transition: top 0.1s;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here::before {
  content: "\f04b";
  font-family: "Font Awesome 6 Pro";
  font-size: 10px;
  height: 11px;
  width: 20px;
  border-radius: 2px;
  font-weight: bold;
  color: var(--red);
  z-index: 1;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here::after {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--index);
  background: var(--red);
  opacity: 0.75;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here.faded::before,
:is(.linearScheduleView, .colorfulScheduleView) section#classes #here.faded::after {
  opacity: 0.25;
}

.linearScheduleView section#classes #here div:is(.transition, .current) span:nth-child(2) {
  height: 0;
  margin: 0;
  opacity: 0;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div span:nth-child(1),
:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div.clicked span:nth-child(2) {
  height: 16px;
  margin: 0;
  opacity: 1;
  font-size: 12px;
  font-weight: normal;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div .friendsList {
  font-size: 12px;
  font-weight: normal;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div label {
  right: 10px;
  top: 10px;
  transform: none;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div.clicked label {
  top: 10px !important;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div label p {
  font-size: 11px;
  height: 17px;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div label p::after {
  width: 17px;
  height: 17px;
  margin-left: 4px;
}


:is(.linearScheduleView, .colorfulScheduleView) section#classes #here.faded div {
  opacity: 0.25;
  pointer-events: none;
}

:is(.linearScheduleView, .colorfulScheduleView) section#classes #here div.clicked {
  height: auto;
  z-index: 1;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.linearScheduleView section#classes #here div.transition {
  background: var(--blob);
}

.linearScheduleView #classes #here div .taskList {
  padding-bottom: 10px;
}

.linearScheduleView #classes #here div caption {
  opacity: 0 !important;
}

.linearScheduleView #classes #here div.clicked caption {
  opacity: 1 !important;
}


/* Start minimal light theme */
.minimalTheme section#classes #here div.current {
  background: linear-gradient(var(--very-light-index), var(--very-light-index)), linear-gradient(var(--opacity-50), var(--opacity-50));
  border-left-color: var(--index) !important;
}

.minimalTheme .bundle {
  border-color: var(--color-tone-5) !important;
}

.minimalTheme section#classes #here div span.taskList button:last-child {
  background: var(--color-tone-4);
  color: var(--color-tone-1);
}

.minimalTheme section#classes #here div.current span.taskList button:last-child {
  background: var(--index);
  color: white;
}

/* Colorful Schedule view */
.colorfulScheduleView section#classes #here div {
  text-align: center;
  background: deepskyblue;
  color: white;
  border-radius: 5px;
}

/* Minimal Background */
.minimalBackground main {
  --opacity-50: #fff !important;
  --blob: #f2f2f2;
  --blobButton: var(--color-tone-7);
  --transparent: #ffffff88 !important;
  --blobBorder: transparent !important;
  background: var(--opacity-50) !important;
}

.minimalBackground.dark main {
  --opacity-50: #000 !important;
  --transparent: #000a !important;
  --blobBorder: transparent !important;
  --blob: #222;
  --blobButton: var(--color-tone-4);
}

/* Button Slider */
.buttonSlide {
  display: flex;
  justify-content: space-around;
  margin: 10px 0;
  position: relative;
  gap: 5px;
  padding: 5px;
  background: var(--blob);
  border-radius: 7.5px;
  overflow: hidden;
  --highlight: 0;
  --tiles: 6;
}

.buttonSlide button {
  background: transparent;
  color: var(--color-tone-1);
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 1.25rem;
  cursor: pointer;
  flex: 1;
  z-index: 1;
}

.buttonSlide button:hover {
  border-color: var(--blobButton);
}

.buttonSlide::after {
  content: "";
  display: block;
  width: calc((100% - (5px * (var(--tiles) + 1))) / var(--tiles));
  height: calc(100% - 10px);
  background: var(--blobButton);
  position: absolute;
  left: calc(5px + var(--highlight) * ((100% - (5px * (var(--tiles) + 1))) / var(--tiles) + 5px));
  transition: left 300ms;
  border-radius: 5px;
}

/* Everything below: addition by Liam only
/* Lunch Date Selector */

.toppart {
  display: flex;
  flex-direction: row;
}

#lunchwidget,
.blobWithButton {
  flex-direction: column;
  padding-bottom: 6px;
  transition: 0.5s !important;
}

#lunchnavigator,
.lightBlobButton {
  margin-top: 10px;
  background: var(--light-index);
  border-radius: 10px;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#lunchday,
.centeredInButton {
  text-align: center;
  flex-grow: 1;
}

.centeredInButton i {
  font-size: inherit;
  color: inherit;
  margin: auto;
}

#lunchnavigator div {
  flex: 1;
}

#rightluncharrow {
  text-align: right;
}

.luncharrow {
  flex: 0 !important;
}

.luncharrow i {
  cursor: pointer;
  margin-right: 7px !important;
  margin-left: 7px !important;
  font-size: 20px !important;
  padding: 5px;
  border-radius: 5px;
  background-color: var(--index);
  height: 28px;
  width: 28px;
  color: white;
}

/* No Text Clean Footer (isolated, can be removed right here and everything goes back to original */
.disabledFooterLabels footer i::after {
  display: none !important;
}

.disabledFooterLabels footer i:not(.logo) {
  margin-top: 6px;
}

/* All people to select text in <code> */
code {
  user-select: text;
  -webkit-user-select: text;
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
  background: rgba(0, 0, 0, 0.3);
}

.dark code {
  background: rgba(255, 255, 255, 0.3);
}