@import url(//fonts.googleapis.com/css?family=Dosis);
@import url(//fonts.googleapis.com/css?family=PT+Sans+Narrow:400, 700);

body,
html {
  width: 100%;
  height: 100%;
  margin: 0;
}

body.Student.Male,
.Student.Male #results,
.selector .Student {
  background-color: #f0f0ff;
}

body.Student.Female,
.Student.Female #results {
  background-color: #fff0ff;
}

body.Staff,
.Staff #results,
.selector .Teacher {
  background-color: #fffff0;
}

body.Room,
.Room #results,
.selector .Room {
  background-color: #f0ffff;
}

body.Class,
.Class #results,
.selector .Class {
  /* background-color: #FFF0F0; */
}

body.Today,
.Today #results,
.selector .Today {
  background-color: #e5f5f5;
}

* {
  font-family: Dosis, sans-serif;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-print-color-adjust: exact;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-shadow: 0 0 4px #999;
}

.small {
  font-size: 0.8em;
}

.smaller {
  font-size: 0.65em;
}

.right.small,
.right.smaller {
  margin-top: 0.2em;
}

.printOnly {
  display: none;
}

.hidden {
  display: none !important;
}

img.logo {
  position: fixed;
  bottom: 2%;
  right: 2%;
  width: 80%;
  max-width: 500px;
  z-index: -1;
}

#searchBar,
#results {
  padding: 8px;
}

#searchBar {
  background-color: #000;
}

#searchBar input {
  font-size: 120%;
  width: 100%;
  padding: 0 4px;
}

#searchBar input:focus {
  outline: none;
}

.selector {
  background-color: #fff;
  z-index: 20;
  position: absolute;
  width: 92%;
  max-width: 400px;
  -webkit-box-shadow: 0 0 12px 1px #000;
  box-shadow: 0 0 12px 1px #000;
  margin: 16px 4px;
  border-radius: 8px;
  padding: 4px;
  max-height: 80%;
  overflow-y: auto;
}

.selector > div {
  height: 40px;
  line-height: 40px;
  margin: 4px 0;
  background-color: #eee;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selector > div.photo.Student {
  background-size: 60px;
  background-position: -12px -10px;
}

.selector > div.photo {
  background-repeat: no-repeat;
  padding-left: 55px;
  background-position: 0px -6px;
  background-size: auto 46px;
}

.selector > div > span {
  font-size: 1.4em;
  margin: 0 14px;
}

.selector > div:hover {
  border: 2px solid #000;
  background-color: #ffed8e;
}

button {
  font-size: 1em;
  xmargin: 4px 2px;
}

#results .now {
  position: relative;
  z-index: 10;
}

#results .classes .now {
  -webkit-box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.75);
  border-radius: 0;
}

#results .timetable .now {
  -webkit-box-shadow: 0 0 16px 4px rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 16px 4px rgba(0, 0, 0, 0.75);
}

#results .timetable .today:after {
  content: "";
  position: absolute;
  top: -2px;
  left: -1px;
  right: -1px;
  bottom: -2px;
  border-left: 3px solid black;
  border-right: 3px solid black;
  pointer-events: none;
}

#results {
  margin-bottom: 100px;
  background-color: #fff;
  position: relative;
}

#results > div.folded {
  max-height: 30px !important;
  x-webkit-filter: blur(1px);
  x-mox-filter: blur(1px);
  xfilter: blur(1px);
  opacity: 0.5;
}

#results > div.folded h2 {
  font-size: 1em;
}

#results > div.folded .hideOnFold {
  display: none;
}

#results > div {
  min-width: 130px;
  overflow: hidden;
  xmax-height: 1000px;
}

#results div {
  margin: 4px;
  padding: 4px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.05);
  display: inline-block;
  vertical-align: top;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

#results div .right {
  float: right;
  margin-left: 12px;
}

#results div a.full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

#results h1,
#results h2,
#results h3,
#results h4 {
  margin: 0 0 0.1rem 0;
}

#results h2 {
  cursor: pointer;
}

#results .photo img {
  max-width: 140px;
  max-height: 180px;
  border-radius: 12px;
}

#results .photo.Male img {
  border: 3px solid lightblue;
}

#results .photo.Female img {
  border: 3px solid pink;
}

#results .photo span.fa {
  position: absolute;
  right: 12px;
  top: 12px;
  font-weight: bold;
}

#results .siblings img {
  width: 80px;
  border-radius: 8px;
  -webkit-transform: scaleX(-1);
  -ms-transform: scaleX(-1);
  transform: scaleX(-1);
}

#results .siblings .twin img {
  border: 2px solid purple;
}

#results .siblings .twin:before {
  content: "\f234";
  font-family: FontAwesome;
  position: absolute;
  top: 4px;
  right: 4px;
  color: purple;
}

#results .siblings .twin:after {
  content: "Twin";
  font-size: 0.75em;
  position: absolute;
  top: 20px;
  right: 2px;
  color: purple;
}

#results .students > div {
  background-repeat: no-repeat;
  background-size: 50px;
  background-position: -6px -7px;
  padding-left: 50px;
  min-width: 170px;
  max-width: 320px;
  line-height: 16px;
}

#results .students > div.Male {
  background-color: rgba(173, 216, 230, 0.25);
  min-height: 42px;
}

#results .students > div.Female {
  background-color: rgba(255, 192, 203, 0.25);
  min-height: 42px;
}

#results .students > div.neg {
  border-left: 5px solid red;
}

#results .students > div.pos {
  border-left: 5px solid green;
}

.Class #results .students > div.OutUnauthorised {
  -webkit-box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.25);
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.25);
}

.Class #results .students > div.OutAuthorised {
  -webkit-box-shadow: 0 0 0 2px rgba(0, 0, 255, 0.25);
  box-shadow: 0 0 0 2px rgba(0, 0, 255, 0.25);
}

.Class #results .students > div.OutTrip {
  -webkit-box-shadow: 0 0 0 2px rgba(238, 130, 238, 0.25);
  box-shadow: 0 0 0 2px rgba(238, 130, 238, 0.25);
}

.Class #results .students > div.Unknown {
  -webkit-box-shadow: 0 0 2px rgba(128, 128, 128, 0.25);
  box-shadow: 0 0 2px rgba(128, 128, 128, 0.25);
}

.Class #results span.keep-apart {
  color: red;
  font-size: 0.9em;
  font-style: italic;
}

select option.keep-apart {
  color: red;
}

.contacts > div > p:first-of-type > span {
  color: #fff;
  background-color: #444;
  padding: 2px;
  font-size: 0.65em;
  border-radius: 50%;
  min-width: 16px;
  display: inline-block;
  text-align: center;
  margin-right: 6px;
  vertical-align: top;
}

#results .computers > div {
  xmin-width: 150px;
}

#results .classes > div {
  min-width: 150px;
}

#results .loggedUser {
  padding: 0 0 0 42px;
  background-size: 38px;
  background-repeat: no-repeat;
  /* background-position: 0px -4px; */
  /* height: 32px; */
  margin: 0;
  display: block;
}

#results .computers img {
  height: 120px;
  border-radius: 4px;
  display: block;
  margin: 2px auto;
}

#results .calendar .week {
  font-size: 0.8em;
  display: inline-block;
  color: #fff;
  background-color: #000;
  width: 1.3em;
  height: 1.3em;
  text-align: center;
  font-weight: bold;
  border-radius: 4px;
  vertical-align: top;
  margin-top: 2px;
}

#results .calendar .week.Red {
  background-color: red;
}

#results .calendar .week.Red::after {
  content: "1";
}

#results .calendar .week.Blue {
  background-color: blue;
}

#results .calendar .week.Blue::after {
  content: "2";
}

#results .GandT > div {
  min-width: 250px;
  max-width: 400px;
}

#results .GandT img {
  width: 72px;
  border-radius: 8px;
}

#results .PP > div {
  min-width: 250px;
  max-width: 400px;
}

#results .PP > div.EHCP {
  background-color: #a8ccc7;
  min-width: 250px;
  max-width: 400px;
}

#results .PP img {
  width: 72px;
  border-radius: 8px;
  /*-o-object-position: 46% 16%;
	object-position: 46% 16%;
	-o-object-fit: none;
	object-fit: none;*/
}

#results .NoPhotos > div {
  min-width: 350px;
  max-width: 400px;
}

#results .NoPhotos img {
  width: 96px;
  border-radius: 8px;
}

.timetable table {
  border-collapse: collapse;
  float: left;
  margin: 4px;
  xfloat: left;
  vertical-align: top;
}

.timetable table td:not(:first-child) {
  min-width: 72px;
}

.timetable.short table td:not(:first-child) {
  width: 72px;
}

.timetable table.horizontal td {
  width: 72px;
}

.timetable table td {
  height: 24px;
  padding: 0 4px;
  text-align: center;
}

.timetable table td span {
  white-space: pre;
}

.timetable table td span.clash {
  white-space: normal;
}

.timetable table .row2 td,
.timetable table .row4 td,
.timetable table .row6 td,
.timetable table .row7 td {
  border-top-width: 2px !important;
}

.timetable table.horizontal tr:first-child td:nth-child(2),
.timetable table.horizontal tr:first-child td:nth-child(4),
.timetable table.horizontal tr:first-child td:nth-child(6),
.timetable table.horizontal tr:first-child td:nth-child(7) {
  border-left-width: 2px !important;
}

.timetable .color1 {
  border: 3px solid red;
}

.timetable .color1 td {
  border: 1px solid red;
}

.timetable .color2 {
  border: 3px solid blue;
}

.timetable .color2 td {
  border: 1px solid blue;
}

.Student .timetable.short .subject,
.Student .timetable.short .teacher {
  display: none;
}

.Student .timetable.full .code,
.Student .timetable.full .initials {
  display: none;
}

.Room .timetable.short .subject,
.Room .timetable.short .teacher {
  display: none;
}

.Room .timetable.full .initials {
  display: none;
}

.Staff .timetable.short .subject {
  display: none;
}

.Class .timetable.short .teacher {
  display: none;
}

.Class .timetable.full .initials {
  display: none;
}

.timetable table td.clash:before {
  content: "Unresolved Clash\A";
  white-space: pre;
  font-size: 0.7em;
}

.timetable table td.actual:before {
  content: "";
}

html.clashResolver .timetable table span.clash.removed {
  opacity: 0.45;
}

.timetable table td.actual span.clash.removed {
  display: none;
}

html.clashResolver .timetable table td.actual span.clash.removed {
  display: block;
}

html.clashResolver .timetable table td.clash {
  border: 2px dashed red !important;
}

html.clashResolver .timetable table span.clash {
  display: block;
}

html.clashResolver .timetable table span.clash:hover {
  background-color: #000;
  color: #fff;
}

html.clashResolver .timetable table span.clash * {
  pointer-events: none;
}

.calendar p {
  clear: right;
  margin: 4px 0;
}

.wRotations p {
  color: #fff;
  padding: 4px;
  margin: 4px;
  border-radius: 4px;
  background-color: #999;
  display: inline-block;
}

#results .hint {
  position: relative;
  background: #000;
  color: #fff;
  max-width: 180px;
  padding: 4px !important;
  overflow: visible !important;
}

#results .hint.toparrow:after {
  bottom: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0);
  border-bottom-color: #000;
  border-width: 30px;
  margin-left: -30px;
}

#results .hint.leftarrowsmall:after {
  top: 50%;
  right: 100%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0);
  border-right-color: #000;
  border-width: 10px;
  margin-top: -10px;
}

#results .hint.toparrowsmall:after {
  bottom: 100%;
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0);
  border-bottom-color: #000;
  border-width: 10px;
  margin-left: -10px;
}

@-webkit-keyframes rainbow {
  0% {
    color: #ff0000;
  }

  25% {
    color: #ffff00;
  }

  50% {
    color: #00ff00;
  }

  75% {
    color: #00ffff;
  }

  100% {
    color: #0000ff;
  }
}

@keyframes rainbow {
  0% {
    color: #ff0000;
  }

  25% {
    color: #ffff00;
  }

  50% {
    color: #00ff00;
  }

  75% {
    color: #00ffff;
  }

  100% {
    color: #0000ff;
  }
}

.rainbow {
  -webkit-animation: rainbow 5s infinite alternate;
  animation: rainbow 5s infinite alternate;
}

.green {
  color: green;
}

.red {
  color: #b00000;
}

.grey {
  color: gray;
}

#results .iFrame {
  height: 400px;
  width: 300px;
  padding: 0;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  border: none;
  overflow: hidden;
}

#results .iFrame iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
}

#results .breaker {
  visibility: hidden;
  display: block;
  padding: 0;
  margin: 0;
}

#results .computersControl {
  position: absolute;
  top: 32px;
  right: 0;
  background-color: #555;
  color: #fff;
  -webkit-box-shadow: 0 0 24px #000;
  box-shadow: 0 0 24px #000;
  z-index: 100;
}

.computersControl i {
  min-width: 22px;
}

.snapshot img {
  x-webkit-filter: blur(2px);
  max-width: 100%;
}

.noBlur .snapshot img {
  -webkit-filter: blur(0);
}

ul.horz {
  margin: 0 -4px;
  padding: 0;
  list-style: none;
}

ul.horz li {
  display: inline-block;
}

ul.horz li {
  padding: 0 4px;
}

ul.horz li:not(:last-child):after {
  content: ",";
}

.cacheLog {
  max-height: 80px;
  overflow-y: auto;
  white-space: pre;
  font-size: 0.8em;
  padding-right: 30px !important;
}

#results .hasStatus {
  padding-bottom: 36px;
}

#results .hasStatus.folded {
  padding-bottom: inherit;
}

#results .status {
  position: absolute;
  bottom: -4px;
  left: -4px;
  right: -4px;
  padding: 4px 12px !important;
  border: none;
  border-radius: 0;
}

#results .status {
  position: absolute;
  bottom: -4px;
  left: -4px;
  right: -4px;
  padding: 4px 12px !important;
  border: none;
  border-radius: 0;
}

#results p {
  clear: right;
}

#results .studentSub {
  position: absolute;
  display: inline-block;
  xwidth: 220px;
  top: 30px;
  left: -20px;
  right: -20px;
  z-index: 10;
  background-color: #000;
  color: #fff;
}

#results .studentSub p:not(:first-child) {
  border-top: 1px dotted #444;
  clear: both;
  margin: 4px 0;
}

#results table {
  border-collapse: collapse;
  position: relative;
}

#results table tr {
  position: relative;
}

#results table tr:first-child td {
  xfont-weight: bold;
}

#results table.HartisMail tr:hover {
  background-color: rgba(255, 255, 0, 0.5);
}

#results table td {
  border: 1px solid silver;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
}

.phone .Today #imgLogo {
  display: none;
}

.phone .Today #searchBar {
  position: absolute;
  top: 75px;
  left: 389px;
  width: 266px;
  height: 400px;
}

.phone .Today #results {
  /* display: none; */
  position: absolute;
  top: 119px;
  left: 392px;
  height: 372px;
  width: 262px;
  /* border: 1px solid red; */
  overflow-y: scroll;
  overflow-x: hidden;
  border-radius: 8px;
  font-size: 0.8em;
}

.phone body.Today {
  background-color: #fff;
  background-image: url(phone.bg.jpg?v=2);
  background-repeat: no-repeat;
  background-position: top left;
}

.phone .Today #results .twitter {
  zoom: 65%;
}

.phone .Today #results .facebook {
  display: none;
}

.phone .Today #results .youtube {
  display: none;
}

.Student #results .links img {
  float: right;
  margin: -24px 6px 6px 6px;
  height: 78px;
  border-radius: 12px;
}

#results .g4s img.graph {
  width: 100%;
  height: auto;
}

#results .g4s img.popup {
  cursor: pointer;
  -webkit-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

#results .g4s img.popup.popped {
  position: fixed;
  z-index: 1000;
  width: 80%;
  height: auto;
  top: 10%;
  left: 10%;
  -webkit-box-shadow: 0 0 40px 2px #000;
  box-shadow: 0 0 40px 2px #000;
}

#results .g4s p.positive {
  color: darkgreen;
}

#results .g4s p.negative {
  color: darkred;
}

#results u.papercolour {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 40%;
  margin: 0 2px;
}

#netStats {
  border: 1px solid #ccc;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  height: 300px;
}

html.fullScreen {
  overflow: hidden;
}

html.fullScreen body:after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #444;
}

html.fullScreen img.fullScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
}

.Today .timetable {
  xfont-size: 0.8em;
}

.Today .timetable table.horizontal td {
  width: auto;
}

.Today .timetable table td:not(:first-child) {
  min-width: 40px;
}

.Today #results .timetable .today:after {
  display: none;
}

.Today .quickLinks button {
  width: 100%;
  max-width: 180px;
  min-height: 35px;
  margin: 0.15em 0;
}

.Today .quickLinks button .fa {
  float: left;
  margin: 2px 6px 0 0;
}

.quickLinks #btnMyPage {
  background-color: darkgreen;
  color: #fff;
  font-weight: bold;
}

.weekBlue .quickLinks #btnMyPage {
  background-color: royalblue;
}

.weekRed .quickLinks #btnMyPage {
  background-color: darkred;
}

/* **************************************** */

.Room.JustScreens {
  background-color: #222 !important;
  padding: 0;
  margins: 0;
}

.Room.JustScreens #searchBar {
  display: none;
}

.Room.JustScreens > img {
  display: none;
}

.Room.JustScreens .hint {
  display: none !important;
}

.Room.JustScreens .size {
  display: inline !important;
}

.Room.JustScreens #results {
  background-color: transparent;
}

.Room.JustScreens #results > div {
  display: none;
}

.Room.JustScreens #results .computers {
  display: block;
  color: #fff;
  border: none;
  background: transparent !important;
  font-size: 13px;
  padding: 0;
}

.Room.JustScreens #results * {
  border: none;
}

.Room.JustScreens .computers > h2 {
  xdisplay: none;
}

.Room.JustScreens #results .noUser {
  display: none;
}

.Room.JustScreens #results .computer {
  xborder: 1px dotted #555;
  background: #000;
  border-radius: 2px;
  min-width: 180px;
}

/*
.Room.JustScreens #results .computer:after {
    content: '';
    padding: 0 65%;
    display: inline-block;
}
*/

.Room.JustScreens #results .response {
  display: none;
}

.Room.JustScreens #results .loggedUser {
  background: transparent !important;
  padding: 0;
  position: absolute;
  top: 3px;
  right: 4px;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  max-width: 55%;
  overflow: hidden;
}

.Room.JustScreens #results .loggedUser .name {
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}

.Room.JustScreens #results .loggedUser .date {
  display: none;
}

.Room.JustScreens #results .snapshot img {
  border-radius: 0;
  height: 160px;
  aspect-ratio: 16/9;
}
