/* ============================= */
/* RESET */
/* ============================= */

/* === RESET GENERAL === */
* {
  box-sizing: border-box;
  border: 0;
  margin: 0;
  padding: 0;
  outline: none;

  color: inherit;
  font: inherit;
  background: none;
  text-align: inherit;
  text-align-last: inherit;
  list-style-position: inside;
  scrollbar-width: none;
  transition: all 0.3s ease; 
}

/* === RESPONSIVE TEXT === */
* {
  font-size: var(--font-size-md);
  font-family: "Bahnschrift";
  font-weight: 0;
  font-style: normal;

  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* === RESET LINK === */
a {
  text-decoration: var(--link-underline);
  color: inherit;
}

a:hover {
  color: var(--link-color);
}

/* === RESET SUMMARIES ===*/
summary {
  display: flex;
  justify-content: center;
	list-style-position: inside;
  user-select: none;
}

/* === RESPONSIVE IMGs === */
img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================= */
/* UTILITIES */
/* ============================= */
.outlined, .outlined * { outline: black solid 0.1vh; }
.hidden { display: none; }
.center { display: flex; justify-content: center; align-items: center; }

#col { display: flex; flex-direction: column; justify-content: center; align-items: center; }
#row-space { flex-direction: row; justify-content: space-between; align-items: center; }

/* ============================= */
/* VARIABLES */
/* ============================= */

/* == Font-Face == */
@font-face{
    font-family: "Bahnschrift";
    src: url("0a6ee448d1bd65c56f6cf256a7c6f20a.eot");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
  --h-red: 357;
  --h-pink: 331;
  --h-teal: 164;

  --h-orange: 28;
  --h-blue: 208;
  --h-green: 92;
  --h-yellow: 50;

  --s-100: 100%;
  --s-85: 85%;
  --s-65: 65%;
  --s-60: 60%;
  --s-55: 55%;
  --s-40: 40%;
  --s-35: 35%;

  --l-90: 90%;
  --l-80: 80%;
  --l-75: 75%;
  --l-65: 65%;
  --l-55: 55%;



  /* === Accent Colors === */
  --green-accent: hsl(var(--h-green) var(--s-35) var(--l-55));
  --light-green-accent: hsl(var(--h-green) var(--s-40) var(--l-75));
  --orange-accent: hsl(var(--h-orange) var(--s-85) var(--l-65));
  --light-orange-accent: hsl(var(--h-orange) var(--s-85) var(--l-80));
  --blue-accent: hsl(var(--h-blue) var(--s-65) var(--l-55));
  --light-blue-accent: hsl(var(--h-blue) var(--s-55) var(--l-75));
  --yellow-accent: hsl(var(--h-yellow) var(--s-85) var(--l-75));
  --light-yellow-accent: hsl(var(--h-yellow) var(--s-60) var(--l-90));
  --red-accent: hsl(var(--h-red) var(--s-40) var(--l-55));

  /* === Typography === */
}

body {
  /* === Interactives === */
  --transition-duration: 0.5s;
  --transition-flow: ease;
  --transition: all var(--transition-duration) var(--transition-flow);

  /* === Components === */
  --header-and-footer-border-size: 2px;
  --header-and-footer-border-items-size: 1px;
  --header-and-footer-border-color: black;

  --header-min-height: 110px;
  --header-height: 110px;
  --header-font-size: clamp(10px, 10vw, 50px);
  --header-width: 100%;

  /* === General === */
  --min-width: 320px;

  --background-color: var(--green-accent);
  --background-wave-color: var(--light-green-accent);

  --border-color: white;
  --border-size: 6px;
  --border: solid var(--border-color) var(--border-size);

  --form-padding: 20px;
  --form-section-spacing: 10px;
  --form-input-bgc: white;
  --form-input-border: 2px solid black;
  --form-input-padding: 3px;

  --button-bg: white;
  --button-border-size: 2px;

  --link-color: rgb(0, 0, 0, 0.75);
  --link-underline: none;

  --page-title-size: clamp(30px, 6vw, 45px);
  --page-subtitle-size: clamp(25px, 2vw, 35px);


  /* == assignments_page.php*/
  --spec-assignment-width: 90%;
}

/* ============================= */
/* Layout (Large Blocks) */
/* ============================= */

/* === Header === */
.header__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  font-family: var(--header-font);

  min-height: var(--header-min-height);
  height: var(--header-height);
  width: var(--header-width);
}

.logo {
  height: 100%;
}

.logo__text {
  font-size: 59px;
  font-weight: 700;
}

#header__link--logo {
  height: 60%;
}

.header__link:hover, #header__link--logo:hover {
  transform: scale(1.05);
  z-index: 1;
}



.header__link--blue {
  background-color: var(--light-blue-accent);
}

.header__link--yellow {
  background-color: var(--light-yellow-accent);
}

.header__link--green {
  background-color: var(--light-green-accent);
}

.header__link--orange {
  background-color: var(--light-orange-accent);
}

.header__title {
  display: flex;
  font-size: var(--header-font-size);
}

.header__sub-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;

  height: 100%;
  width: 20%;
}

.header__dropdown-icon {
  min-width: 55px;
  margin: 8px;
}

.header__dropdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  position: relative;
}

.header__dropdown-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: absolute;

  left: 100%;

  background-color: white;
  border: solid 1px black;

  margin-top: 4px;

  /* OFF */
  display: none;
}

.header__dropdown-content * { /* Handles Text Overflow*/
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;


  display: flex;
  justify-content: flex-start;
  align-items: center;

  width: 100%;
  padding: 4px;
  padding-right: 12px;
}

.header__dropdown:hover .header__dropdown-content {
  display: flex;
}


/* == Computer Layout == */
@media only screen and (min-width: 768px) {

  .header__container {
    justify-content: space-between;
  }

  .logo {
    width: 100%;
  }

  #header__link--logo {
    width: 60%;
  }


  #header__link--logo {
    width: 15%;
    max-height: 63px;
    height: 10vh;
  }

  .header__link {
    display: flex;
    justify-content: center;
    align-items: center;

    border: solid black 1px;


    width: 15%;
    max-height: 63px;
    height: 10vh;
  }


  .header__link--subject-list {
    position: relative;
  }

  .header__link--subject {
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;

    text-align: center;
    padding: 2px;

    margin: inherit;
    padding: inherit;
    border: inherit;
    background-color: inherit;
  }

  .header__link--subject * { /* Handles Text Overflow*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header__link--subject-list:hover .header__link--subject {
    display: block;
  }
}

.background {
  position: relative;
  background-color: var(--background-color);
}

.background-wave {
  position: fixed;
  top: 40%;
  left: -60%;
  width: 300vw;
  height: 500px;
  z-index: -1;

  fill: var(--background-wave-color);
}
/* == Computer == */
@media only screen and (min-width: 768px) {
  .background-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: -1;
    height: 100vh;


    fill: var(--background-wave-color);
  }

}
/* === Button === */
.button {
  display: flex;
  justify-content: center;
  align-items: center;

  min-width: 120px;
  min-height: 30px;

  border-radius: 50px;
  border: solid 3px var(--border-color);

  margin: 10px;
}

/* ============================= */
/* PAGES & COMPONENTS */
/* ============================= */

/* === General Page Settings & Classes === */
.page__container {
  display: flex;
  flex-direction: column;

  min-height: min-content;

  max-width: 960px;
  margin: 0 auto;
}

.page__title {
  font-size: var(--page-title-size);
}

.page__subtitle {
  font-size: var(--page-subtitle-size);
}

.main {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 1 1 auto;

  min-width: var(--min-width);
}

.form__container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-width: 250px;
  width: 25%;

  padding: var(--form-padding);
  gap: var(--form-section-spacing);
}

.form__section {
  display:flex;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
}

.form__section--col {
  display: flex;
  width: 100%;
  gap: 5px;
}

.form__input-title {
  width: 100%;
}

.form__input {
  background-color: var(--form-input-bgc);
  border: var(--form-input-border);
  padding: var(--form-input-padding);

  width: 100%;
}

#blue {
  --background-color: var(--blue-accent);
  --background-wave-color: var(--light-blue-accent);
}

#yellow {
  --background-color: var(--yellow-accent);
  --background-wave-color: var(--light-yellow-accent);
}

#orange {
  --background-color: var(--orange-accent);
  --background-wave-color: var(--light-orange-accent);
}

/* === Page - index_page.php === */
.schedule__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;

  margin-top: 10px;

  width: 100%;
  max-width: 1100px;
}

.schedule__table {
  display: table;

  background-color: white;
  border: var(--border);
  min-width: min-content;

  width: 100%;

  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
}

.schedule__table thead {
  display: table-header-group;
  width: 100%;
}
.schedule__table tbody {
  display: table-row-group;
  width: 100%;
}

.schedule__table tr {
  display: table-row;
  width: 100%;
}

.schedule__table th, .schedule__table td {
  display: table-cell !important;

  width: 20%;
  min-width: 47px;

  background-color: var(--light-green-accent);
  color: black;

  vertical-align: top;
  text-align: left;

  padding: 10px 8px;
  margin: 1px;

  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}




.schedule__module {
  padding: 8px;
}

.schedule__table td.schedule__module--note {
  background: #4caf50 !important;
  color: #111 !important;
  cursor: pointer;
}

.schedule__table td.schedule__module--homework {
  background: #64b5f6 !important;
  color: #111 !important;
}

.schedule__table td.schedule__module--cancel {
  background: #ef5350 !important;
  color: #111 !important;
}

.schedule__table td.schedule__module--note:hover {
  filter: brightness(0.96);
}

.schedule__module--clickable:hover {
  cursor: pointer;
  transform: scale(1.05);
  z-index: 1;
}


.schedule__pause {
  text-align: center !important;
  font-weight: 700;
}

.schedule__controls {
  display: flex;
  justify-content: flex-end;
}

.note-popup, #notePopup {
  display: none;
  position: fixed;

  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  background: var(--green-accent);

  border: var(--border);
  border-radius: 25px;
  padding: 16px;
  max-width: 420px;
  width: calc(100% - 32px);

  z-index: 999;
}

.note-popup__close {
  border: var(--border);
  border-radius: 25px;
  padding: 4px;

  background-color: var(--light-green-accent);
}

.index__phone-layout {
  display: flex;
  flex-direction: column;
  width: 96%;
  gap: 12px;
}

.index__phone-top {
  display: flex;
  width: 100%;
  gap: 10px;
}

.index__phone-box {
  display: flex;
  flex-direction: column;
  width: 50%;
  min-height: 115px;
  margin-top: 20px;
  background-color: var(--light-green-accent);
  border: var(--border);
  border-radius: 25px;
  padding: 10px;
  gap: 4px;
}

.index__phone-box-title {
  font-weight: 700;
  text-decoration: underline;
}

.index__phone-line {
  font-size: clamp(10px, 2.5vw, 14px);
}

.index__schedule-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
}


.index__absence-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  min-width: 120px;
  padding: 6px 14px;
  border: var(--border);
  border-radius: 25px;
  background-color: var(--light-green-accent);
}

.index__absence-button:hover {
  transform: scale(0.95);
}

.index__absence-button--active {
  background-color: #ef5350;
  color: white;
  border-color: #d32f2f;
}

.index__absence-form {
  position: absolute;
  top: 0px;
  left: 0px;
  margin: 0;
}

.index__absence-feedback {
  font-size: clamp(11px, 1.4vw, 15px);
}

.index__desktop-row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.index__desktop-left {
  display: flex;
  flex-direction: column;
  width: 64%;
  gap: 12px;
}

.index__desktop-right {
  display: flex;
  width: 36%;
}

.index__desktop-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 10px;
  background-color: var(--green-accent);
  min-height: 520px;
  border: var(--border);
  border-radius: 25px;
  padding: 20px;
  gap: 10px;
}

.index__desktop-box-title {
  font-size: var(--page-subtitle-size);
  text-align: center;
}

.index__desktop-line {
  font-size: clamp(13px, 0.95vw, 18px);
}

.index__desktop-divider {
  width: 100%;
  border-top: var(--border);
  margin: 8px 0;
}

.index__day-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;

  margin: 5px;
}

.index__day-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 30px;
  min-height: 30px;
  height: 35px;
  font-size: 24px;
  line-height: 1;

  border: var(--border);
}

.index__day-date {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 116px;
  min-height: 30px;
  height: 35px;

  background-color: var(--light-green-accent);
  border: var(--border);
}

.breakpoint__phone .schedule__table th,
.breakpoint__phone .schedule__table td {
  width: 100%;
  min-width: 0;
}

.breakpoint__computer .schedule__table th,
.breakpoint__computer .schedule__table td {
  width: 20%;
  min-width: 47px;
}

@media only screen and (min-width: 768px) {
  .index__phone-layout {
    display: none;
  }

  .index__desktop-row {
    display: flex;
    width: 96%;
    max-width: 1200px;
  }

  .index__desktop-left .schedule__wrapper {
    align-self: flex-start;
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .index__desktop-row {
    display: none;
  }

  .breakpoint__phone .conversations__wrapper > .start-convo__btn {
    width: calc(100% - 10px);
    margin: 5px;
    background-color: var(--light-yellow-accent);
    font-size: 20px;
  }
}







.progress-circle {
  position: relative;
  min-width: 80px;
  aspect-ratio: 1/1;
}

.progress-circle__text {
  position: absolute;
  left: 50%;
  top: 50%;
	transform: translate(-50%, -50%);
}

.circle-inner {
	fill: white;
	stroke: color-mix(in srgb, white 50%, grey);
}

.circle-outer {
  fill: none;
  stroke: white; 
}

.value {
	fill: none;
	stroke: green;
}






@media only screen and (min-width: 768px) {

  .schedule__wrapper {
    align-self: flex-start;
  }

  #schedule__mon, #schedule__tue, #schedule__wed, #schedule__thu, #schedule__fri {
    display: flex;
  }

}

/* === Page - login_page.php === */
.login__wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;

  min-height: 300px;
  min-width: 273px;

  height: 50%;
  width: 70vw;

  max-height: 400px;
  max-width: 350px;

  background-color: var(--green-accent);
  border: solid 3px var(--border-color);
  border-radius: 25px;
  padding: 10px;

}

.login__input {
  display: flex;

  text-align: center;

  width: 80%;
  height: 30%;

  background-color: white;
}

.login__btn {
  background-color: var(--green-accent);
}

/* === Page - messages_page.php === */
.conversations__wrapper {
  display: flex;
  align-items: stretch;
  flex-direction: column;

  width: 80%;

  background-color: var(--yellow-accent);
  text-align: center;

  border: var(--border);
  margin: 5px;
}

.messages__message-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  width: 100%;

  margin: 5px;
  padding: 4px;
}


.messages__message-button, .start-convo__btn {
  border: var(--border);
  border-radius: 25px;
  padding: 5px;
  background-color: var(--light-yellow-accent);

  white-space: nowrap;
}

.messages__message-button:hover, .start-convo__btn:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.messages__button {
  border: solid var(--border-size) var(--yellow-accent);
  border-radius: 25px;
  height: 50%;
  aspect-ratio: 1/1;

  margin-top: -2px;

  background-color: var(--light-yellow-accent);

  display: flex;
  justify-content: center;
  align-items: center;
}

.conversations__title {
  font-size: var(--page-subtitle-size);
  padding: 5%;
  border-bottom: var(--border);
}

.conversations__options-wrapper {
  padding: 5px 0px;
  height: 100%;
  overflow-y: auto;
}

.conversations__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;

  font-size: 20px;

  height: 20%;
  padding: 2%;
}

.conversations__option:hover {
  transform: scale(0.95);
}

.conversations__option-image {
  width: 25%;
  aspect-ratio: 1/1;
}

.conversations__option-image img {
  object-fit: cover;
  border: var(--border);
  border-radius: 500px;
}

.conversations__option-topic, .conversations__option-sender {
  width: 35%;

  text-align: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversations__option:hover {
  outline: var(--border);
}

.messages__wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;

  gap: 10px;

  width: 98%;
  height: 100%;
  margin: 10px;
}

.messages__wrapper > * {
  width: 98%;
}

#messages__container-top {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  height: 15%;
}

#messages__container-top > * {
  background-color: white;
  border: solid var(--border-size) var(--light-yellow-accent);
  height: 100%;
  max-height: 100px;
  padding: 5px;
}

#messages__container-top > .start-convo__btn {
  height: 65%;
}

.messages__image {
  aspect-ratio: 1/1;
  border-radius: 500px;
}

.messages__image img {
  object-fit: cover;
  border-radius: 500px;
}

#messages__container-col {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-direction: column;

  width: 40%;
}

.messages__file-list {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-grow: 1;

  width: 15%;
}

.messages__files {
  display: none;
  position: absolute;
  top: 100%;
  width: 100%;
  padding: 10px;

  padding: inherit;
  border: inherit;
  background-color: inherit;
}

.messages__files * {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages__file-list:hover .messages__files {
  display: block;
}

.messages {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  overflow-x: hidden;
  height: 60%;

  padding: 10px;
  background-color: white;

  border: solid var(--border-size) var(--yellow-accent);
  border-radius: 25px;
}

.messages__reply {
  display: flex;
  justify-content: flex-start;
  align-items: center;

  background-color: white;

  padding: 10px;
  border: solid var(--border-size) var(--yellow-accent);
  border-radius: 25px;

  flex: 1;
  min-width: 0;
}

.messages__reply-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  flex-direction: column;
}

.messages__reply-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.messages__reply-file {
  max-width: 180px;
}

.start-convo__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 50px;
}

.start-convo__wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  height: 78vh;
  width: 98%;

  background-color: var(--yellow-accent);

  border: var(--border);
  padding: 1%;
  margin-top: 5px;
}

.start-convo__container > *, .start-convo__reply {
  border: var(--border);
  padding: 2px;
  margin: 2px;
  min-width: 100%;
}

.start-convo__container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  height: 50%;
}

.start-convo__container > *, .start-convo__send {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 40%;
  height: 100%;

  text-align: center;

  min-height: 0px;
  min-width: 0px;
  border-radius: 0px;
}

.start-convo__reply {
  resize: vertical;
  min-height: 100px;
  max-height: 60%;
}

/* == Computer == */
@media only screen and (min-width: 768px) {
  .conversations__wrapper {
    width: 35%;
    max-height: 95%;
  }

  .messages__reply-row {
    flex-direction: row;
  }

  #messages__container-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .start-convo__wrapper {
    height: 78vh;
    width: 98%;
  }

  .conversations__option {
    font-size: 3cqh;
  }

.start-convo__container {
  height: 15%;
}
}


/* === attendance_page.php ===*/
.attendance__container-top {
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--green-accent);

  border: var(--border);
  border-radius: 25px;

  width: 65%;
  height: 20%;
}

.attendance__container-top--child {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  gap: 15%;

  width: 45%;
  height: 100%;
}

.attendance__container-subtitle {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;

  white-space: nowrap;

  width: 80%;

  text-align: center;
  border-bottom: 3px solid var(--border-color);

  font-size: clamp(12px, 4vw, 28px);
}

.attendance__container-stats {
  color: var(--red-accent);
  font-size: clamp(17px, 4vw, 28px);
}

.line {
  color: white;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 25px;
}



.attendance__table {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  width: 90%;

  background-color: white;

  border: var(--border);
  margin-top: 20px;
}

.attendance__table thead, .attendance__table tbody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
}

.attendance__table tr {
  display: flex;
  width: 100%;
}

.attendance__table th, .attendance__table td {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  width: 25%;

  background-color: var(--light-green-accent);

  border: 3px solid var(--border-color);
}

.attendance__table th {
  background-color: var(--green-accent);
}

/* === Page - courses_page.php === */
/* == Phone == */
.subjects__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  min-width: var(--min-width);
  width: 100%;
}

.subjects__title {
  font-size: var(--page-title-size);
}

.subjects__nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  width: 95%;
  max-width: 300px;
  height: 40px;

  background-color: white;
  outline: solid var(--border-size) var(--light-blue-accent);
}

.subjects__nav-searchbar {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;

  height: 100%;
  width: 60%;
}

.subjects__nav-searchbar-input {
  height: 100%;
  width: 70%;
}

.subjects__nav-searchbar-icon {
  padding: 2px;

  height: 100%;
  aspect-ratio: 1/1;
}

.subjects__nav-star {
  padding: 2px;
  outline: 1px solid black;

  height: 100%;
  aspect-ratio: 1/1;
}

#star--highlighted * {
  fill: var(--yellow-accent);
  stroke: black;
  stroke-width: 5px;
}

.subjects__nav-sort {
  display: flex;
  justify-content: space-between;
  align-items: stretch;

  height: 100%;
  min-width: 30%;
}

.subjects__list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.subject__wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;

  min-width: 135px;
  width: 40%;
  max-width: 190px;

  min-height: 110px;
  height: 30%;

  margin: 10px;

  overflow: hidden;

  border: 2px solid black;
  border-radius: 20px;

  background-attachment: contain;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.subject__wrapper:hover {
  transform: translate(5px);
}

.subject__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  min-height: 25px;

  outline: 2px solid black;
  background-color: rgb(255 255 255 / 0.8);
}

.subject__title {
  margin-left: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}




.subject__favorite {
  margin-right: 8px;
  min-height: 20px;
  height: 100%;
  aspect-ratio: 1/1;
}




.spec-subject__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}





.folder-page__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 10px;

  width: 95%;
}

.folder-page__title {
  font-size: var(--page-title-size);
}

.lesson__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 10px;

  width: 80%;
  aspect-ratio: 1/0.6;
}

.lesson__date {
  font-size: var(--page-subtitle-size);
}

.lesson__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 10px;

  width: 80%;
  padding: 10px;

  border: 1px solid black;
  border-radius: 25px;
  background-color: white;
}

.lesson__file {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;

  width: 90%;
  height: 40px;
}

.lesson__file svg {
  margin: 6px;
  height: 100%;
  aspect-ratio: 1/1;
}


/* == Computer == */
@media only screen and (min-width: 768px) {

}

/* === Page - profile_page.php === */
/* == Phone == */
.profile__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;

  gap: 10px;
}

.profile__title {
  font-size: var(--page-title-size);
}

.profile__subtitle {
  font-size: var(--page-subtitle-size);
}


.profile__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 95%;
  min-width: 304px;

  margin: 6px;

  border: var(--border);
  border-radius: 25px;
  background-color: var(--yellow-accent);
}



#bio {
  flex-direction: row;
}

.profile__image {
  display: flex;

  height: 100px;
  aspect-ratio: 1/1;

  outline: var(--border);
  border-radius: 25px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.profile__text-container {
  width: 62%;
  margin-left: 8px;
}

.profile__text-container * {
  white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.profile__table {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;

  padding: 10px;
}

.profile__table thead, .profile__table tbody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
  background-color: white;
}

.profile__table tr {
  display: flex;
  width: 100%;
}

.profile__table th, .profile__table td {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  padding: 4px;
  width: 33.33%;
  border: solid 1px black;
  border-collapse: collapse;
}

.profile__table th {
  font-weight: 1000;
}

.logout {
  position: absolute;
  left: 0px;
  top: 0px;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 40px;
  min-width: 100px;

  margin: 5px;
  border: var(--border);
  border-radius: 25px;

  background-color: var(--background-color);
  z-index: 1;
}


/* == Computer == */
@media only screen and (min-width: 768px) {
  .profile__wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  .profile__wrapper #col {
    width: 60%;
  }

  .profile__wrapper, .profile__wrapper--single {
    justify-content: center;
    align-items: center;
  }

  .breakpoint__computer.breakpoint__computer--single #bio {
    width: min(45%, 380px);
  }

  #bio {
    width: 30%;
    min-height: 350px;
    flex-direction: column;
    align-items: center;
  }

  .profile__image {
    align-self: flex-start;
    height: 200px;
    margin-bottom: 10px;
  }

  .profile__text-container {
    width: 100%;
    margin: auto 5px;
    font-size: 20px;
    padding: 8px;
    gap: 10px;
  }

  .profile__text-container div {
    padding: 4px;
    padding-bottom: 0px;
    background-color: var(--light-yellow-accent);
    border-radius: 10px 10px 0px 0px;
  }

  .profile__text-container p {
    border-bottom: var(--border);
    border-radius: 0px 0px 10px 10px;
    padding: 4px;
    padding-top: 0px;
    background-color: var(--light-yellow-accent);
  }
}

/* === Page - assignments_page.php === */
/* == Phone == */
.assignments__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  min-width: 320px;
  width: 100%;
  min-height: 420px;
}

.assignments-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;

  gap: 10px;
  margin: 10px;

  min-width: 90%;
  max-height: 40%;

  border: var(--border);
  border-radius: 25px;

  padding: 10px;

  background-color: var(--orange-accent);

  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  max-height: 65vh;
}

.assignments-list__title {
  font-size: var(--page-title-size);
  align-self: center;
}

.assignment__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;

  width: 98%;

  padding-left: 2px;
  border-left: var(--border);
  border-radius: 8px;
}

.assignment__container:hover {
  background-color: var(--light-orange-accent);
  transform: scale(1.05);
}


.spec-assignment__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 10px;

  min-width: 400px;
}

.spec-assignment__wrapper > * {
  width: var(--spec-assignment-width);
  background-color: var(--light-orange-accent);
  border: var(--border);
  border-radius: 25px;
  min-height: 30px;
  padding: 5px;
}

.spec-assignment__title {
  font-size: var(--page-title-size);
  width: 100%;
  text-align: center;
  background-color: transparent;
  border: none;
}

.spec-assignment__desc-container {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;

  gap: 3px;

  border: var(--border);
  border-radius: 25px;
  background-color: var(--light-orange-accent);

  width: var(--spec-assignment-width);
}

.spec-assignment__desc-title {
  display: flex;
  font-size: var(--page-subtitle-size);
  margin-left: 10px;
  margin-right: auto;
}

.spec-assignment__desc-time {
  position: absolute;
  top: 0px;
  right: 0px;

  padding: 4px;

  outline: var(--border);
  border-radius: 25px;
  background-color: var(--red-accent);
}

.spec-assignment__desc {
  width: 100%;
  resize: vertical;
  overflow: auto;

  min-height: 200px;
}

.spec-assignment__handin-container {

}



.spec-assignment__handin-container .lesson__file *:nth-child(1) {
  width: 80%;

  border: var(--border);
  border-radius: 8px;

  background-color: var(--orange-accent);
  text-align: center;
}

.spec-assignment__handin-container .lesson__file *:nth-child(2) {
  margin-bottom: 8px;

  display: flex;
  justify-content: center;
  text-align: center;
  width: 60%;

  background-color: white;
  border-radius: 0px 0px 8px 8px;
  padding: 4px;

  white-space: nowrap;
  text-overflow: ellipsis;

}

.spec-assignment__handin-container .lesson__file:nth-child(9) > *:hover  {
  transform: scale(1.05);

}


.spec-assignment__subtitle {
  display: flex;
  justify-content: center;
  align-items: center;

  font-size: var(--page-subtitle-size);

  background-color: var(--orange-accent);
  border-radius: 25px;
  outline: var(--border);
  margin: -4px;
  margin-bottom: 8px;

  text-align: center;
}

.spec-assignment__handin {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.upload-files {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: transparent;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;

  text-align: center;

  width: 70%;
}

.spec-assignment__status-container {

}

#reviewed {
  color: var(--green-accent);
}

#submitted {
  color: var(--yellow-accent);
}

#missing {
  color: var(--red-accent);
}

.spec-assignment__handin form, .spec-assignment__handin .lesson__file {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  height: max-content;
  width: 100%;

}


/* == Computer == */
@media only screen and (min-width: 768px) {
  .assignments__wrapper {
    flex-direction: row;
    justify-content: center;
  }

  .assignments-list {
    min-width: 45%;
    min-height: 350px;
  }
}



/* ============================= */
/* BREAKPOINTS */
/* ============================= */
/* Default - Phone */
.breakpoint__phone {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-grow: 1;

  width: 100%;
  height: 100%;

  /* ON */
  display: flex;
}

.breakpoint__computer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-grow: 1;

  width: 100%;
  height: 100%;

  /* OFF */
  display: none;
}

/* Default - Computer */
@media only screen and (min-width: 768px) {
  .breakpoint__phone {
    /* OFF */
    display: none;
  }

  .breakpoint__computer {
    /* ON */
    display: flex;
  }
}

/* ======== Phone ======== */
/* Sticky Header & Footer */
.header__container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5;
  min-width: var(--min-width);

  border: 1px solid black;
  background-color: var(--background-color);
}

.main {
  padding-top: var(--header-min-height);
  padding-bottom: var(--footer-min-height);
}

/* ======== Tablet - 768x1024 ======== */
@media only screen and (min-width: 768px) {
  .main {
    overflow-y: visible;
  }


  .footer__container {
    display: none;
    position: static;
  }

  .main {
    padding-bottom: 0px;
  }
}


/* == Computer == */
@media only screen and (min-width: 768px) {

}
