* {
  box-sizing: border-box; 
}

html, body {
  --dark-bg: #336699;
  --light-bg: #1F71AC;
  --text-input-bg: #5588bb;
  --menu-bg: #346;
  font-family: Arial, sans-serif;
  color: white;
  background-color: var(--dark-bg);
  padding: 10px;
  line-height: 130%;
  caret-color: white; 
}

@view-transition {
  navigation: auto;
}

@media screen {
  body {
    padding-top: 70px;
    padding-bottom: 100px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto; } 
}

table {
  width: 100%;
  border-collapse: collapse; 
}

.lightblue {
  background-color: var(--light-bg); 
}

a, a:visited {
  color: white;
  font-weight: bold; }
  a:hover, a:visited:hover {
    opacity: 0.7;
}

h2 {
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: var(--menu-bg) 1px 1px 1px;
  font-size: calc(0.5vw + 20px); 
}

img {
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 10px; 
}

.popupForm {
  background: var(--light-bg);
  border: 2px solid white;
  position: absolute;
  display: none;
  padding: 10px;
  text-align: left;
  border-radius: 6px;
  color: white;
  z-index: 10;
  font-family: Arial, sans-serif;
  font-size: 15px; 
}

.blueinput {
  background: var(--text-input-bg);
  color: white;
  caret-color: white;
  border: solid thin white;
  border-radius: 5px;
  padding-left: 4px; 
}

input[type="text"], input:not([type]), input[type="password"], input[type="date"], input[type="email"], input[type="number"], textarea {
  background: var(--text-input-bg);
  color: white;
  caret-color: white;
  border: solid thin white;
  border-radius: 5px;
  padding-left: 4px;
  font: inherit; 
}

#menubar {
  position: fixed;
  background-color: var(--dark-bg);
  background-color: var(--menu-bg);
  background: #334466;
  background: linear-gradient(180deg, #334466 0%, #336699 100%);
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 20px 20px;
  min-height: 80px;
  z-index: 20;
  opacity: 0.95; 
}

#menulogo {
  float: left;
  vertical-align: middle;
  margin-top: 0;
  margin-left: 0;
  margin-right: 10px;
  margin-bottom: 5px;
  /* no longer necessary */
  border: 0;
  width: 134px;
  height: 50px; 
}

#profilelogo {
  float: right; 
}

#login {
  background: #2D669A;
  padding: 8px; 

  @media (max-width: 400px) {
    left: 3px;
    position: absolute; 
  } 
}

li.mobile-menu-item {
  background: var(--dark-bg); 
}

#navmenudiv, #usermenudiv {
  display: flex;
  flex-direction: row;
  display: none;
  position: absolute;
  right: 1px;
  top: 60px;
  background: var(--light-bg);
  background: var(--menu-bg);
  z-index: 20;
  padding: 1px; 

  ul {
    margin: 0;
    padding: 0; 
  }
  li {
    list-style-type: none;
    margin: 0;
    padding: 5px 15px; 
  }
  li:not(#logincell) {
    display: block;
    text-align: right; 
  }
  li:not(.menudivider):hover {
    background-color: var(--dark-bg);
    cursor: pointer; 
  }
  li.menudivider {
    height: 15px; 
  }
  li a {
    text-decoration: none; 
  }
  li a:hover {
    color: white;
    opacity: 1; 
  }
  #adminmenu {
    border-right: thin gray dashed; 
  }
}

#loginlink {
  cursor: pointer; 
}

.hidden {
  display: none; 
}

#menuicon, #usericon {
  float: right;
  font-size: xx-large;
  padding-right: 15px;
  padding-top: 10px; 
}

legend {
  color: lightblue;
  font-weight: bold;
  padding: 0 2px; 
}

#footer {
  background-color: var(--dark-bg);
  background-color: var(--menu-bg);
  background: linear-gradient(180deg, #336699 0%, #334466 100%);
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  padding: 6px;
  padding-top: 35px;
  opacity: 0.95;
  color: lightblue; 
}

#fblogo:hover {
  opacity: 0.5; 
}

#slogan {
  text-align: center; 
  span {
    font-style: italic;
    white-space: nowrap; 
}
}

.showSemester {
  padding: 10px;
  text-align: center;
  background-color: var(--light-bg);
  font-weight: bold;
  font-size: calc(8px + 1vw);
  margin-bottom: 5px;
  clear: both;
  opacity: 0.7; 
}

.tab-bar {
  display: flex;
  flex-flow: row wrap;
  line-height: 200%; 
}

/* all opentabs should also have the "tab" class so avoid duplication */
/* use td.opentab for more specificity */
.tab, .opentab {
  flex: 1 0 auto;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  padding: 0 6px;
  border-bottom: thin white solid; 
  .ensShort {
    display: none; 
  
    @media screen and (max-width: 760px) {
        display: inline; 
    }
  }
  @media screen and (max-width: 760px) {
    .ensName {
      display: none; 
    } 
  }
}

.opentab {
  border: thin white solid;
  border-bottom-color: var(--light-bg);
  background-color: var(--light-bg); 
}

.tab-group .tab-panel:not(:first-child) {
  display: none; 
}

.tab-panel {
  border: thin white solid;
  border-top: 0;
  padding: 10px;
  background-color: var(--light-bg); 
}

table.nav {
  width: 100%;
  border-collapse: collapse; 
}

.mapstyle {
  font-size: 9pt; 
}

/* general utility */
i.fa, i.fas, i.far {
  cursor: pointer;
  font-size: large; }
  i.fa.fa-plus-square, i.fas.fa-plus-square, i.far.fa-plus-square {
    font-size: x-large; }
  i.fa form, i.fas form, i.far form {
    font-weight: initial;
    font-size: 15px; 
}

button {
  border: 1px solid white;
  border-radius: 8px;
  color: white;
  background-color: transparent;
  cursor: pointer;
  transition: .3s;
  font: inherit; }
  button:hover {
    background-color: #2196f3; }
  button.redbutton {
    background-color: red;
    background-color: #c04; }
    button.redbutton:hover {
      background-color: lightcoral; 
}

form div {
  padding-top: 3px; 
}

table.altColors {
  color: white; 
  > tbody > tr:nth-child(odd) {
    background-color: var(--dark-bg); }
  > tbody > tr:nth-child(even) {
    background-color: var(--light-bg); 
  }
}

table.altColorsReverse > tbody > tr:nth-child(even) {
  background-color: var(--dark-bg); 
}
table.altColorsReverse > tbody > tr:nth-child(odd) {
  background-color: var(--light-bg); 
}

div.altColors > div:nth-child(odd) {
  background-color: var(--dark-bg); 
}
div.altColors > div:nth-child(even) {
  background-color: var(--light-bg); 
}

div.altColorsReverse > div:nth-child(even) {
  background-color: var(--dark-bg); 
}
div.altColorsReverse > div:nth-child(odd) {
  background-color: var(--light-bg); 
}

/* attendance */
.attendancetable {
  width: auto; 
}

.attendancetable td {
  text-align: center;
  padding: 0 2px; }
  .attendancetable td:first-child {
    text-align: left;
    white-space: nowrap; 
}

.singerrow td:first-child {
  font-weight: bold; 
}

@media (min-device-width: 400px) {
  .attendancetable td {
    position: relative; } 
}

.fas.fa-eye.viewall {
  font-size: x-large; 
}

.deleteReh {
  display: none; 
}

.redchart, .greenchart, .yellowchart, .bluechart {
  text-align: center;
  cursor: pointer;
  position: relative;
  border: solid thin lightblue;
  min-width: 15px; 
}

.redchart, .r {
  background-color: red; 
}

.greenchart, .g {
  background-color: #23B928; 
}

.yellowchart, .y {
  background-color: yellow; 
}

.orangechart {
  background: repeating-linear-gradient(155deg, red, red 5px, #23B928 5px, #23B928 10px);
  padding: 0; 
}

.bluechart {
  opacity: 0; 
}

.r, .g, .y {
  width: 13px;
  border-left: solid thin lightblue; 
}

tr, table {
  border: 0; 
}

.rowhighlight {
  background-color: #555577; 
}

.grayed {
  opacity: .5; 
}

.editable {
  opacity: 1; 
}

#excuse {
  left: 25px;
  width: 240px; 
  @media (max-device-width: 400px) {
      position: fixed;
      top: 170px;
      left: 10px; 
    } 
}

#saveYellow {
  float: right; 
}

td.musName {
  padding-left: 40px;
  font-style: italic;
  opacity: 0.7;
  padding-top: 15px; 
}

/* accompanist */
.accomprow td:first-child {
  text-align: right; 
}

.newrehdiv img {
  vertical-align: middle;
  margin: 0; 
}

#newRehearsalForm {
  margin-left: -100px;
  width: 170px; 
}

/* print */
@media print {
  body, a {
    background-color: white;
    color: black !important;
    text-decoration: none;
    font-size: 10px; }
  .mapstyle {
    display: none; }
  .menu {
    display: none !important; }
  h2 {
    text-shadow: none; }
  td span {
    display: none; }
  .eval td {
    border-color: black !important; }
  .eval th {
    border-color: black !important; }
  td, tr {
    page-break-inside: avoid !important; }
  #footer {
    display: none; }
  #menubar {
    display: none; }
}
