body {
  position: relative;
  background-color: rgb(4, 35, 0);
}

header {
  position: relative;
  /* border: 1px solid red; */
  height: 6rem;
  width: 96.4%;
  margin: 0 auto;
}

#formHeader {
  /* border: 1px solid red; */
  width: 20rem;
  margin: .5rem auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr;
}

#loginForm {
  /* border: 1px solid red; */
  position: absolute;
  width: 15rem;
  color: #3d5dbd;
  line-height: .8rem;
  top: .5rem;
  left: 10rem;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

#username {
  width: 100%;
  height: 50%;
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

#password {
  width: 100%;
  height: 50%;
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  margin-top: .2rem;
  margin-bottom: .3rem;
}

.registerLink {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  position: relative;
  top: -.5rem;
}

#loginButton {
  font-size: .7rem;
  height: 46%;
  width: 80%;
  grid-row: 3 / 4;
  grid-column: 2 / 3;
  position: absolute;
  right: -.4rem;
}

#nav {
  color: #3d5dbd;
  font-weight: bold;
  text-decoration: none;
}

#nav:visited {
  color: #3d5dbd;
  font-weight: bold;
  text-decoration: none;
}

#loginMessage {
  /* border: 1px solid deeppink; */
  color: #3d5dbd;
  position: absolute;
  right: 11rem;
  top: -.5rem;
  font-size: 2rem;
}

#yearName {
  /* border: 1px solid blue; */
  width: 8rem;
  margin: 0 auto;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  text-align: center;
  color: #3d5dbd;
}

#customYear {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  height: 70%;
}

#previousYear {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  height: 70%;
}

#nextYear {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  height: 70%;
}


#monthName {
  color: rgb(3, 3, 172);
  text-shadow: -.2rem .2rem 4px black;
  width: 11rem;
  text-align: center;
  margin: 0 auto;
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  margin-bottom: .5rem;
}

#permanentDaysRow {
  background-color: rgb(0, 74, 28);
  color: rgb(3, 3, 172);
  text-shadow: -.03rem .03rem .5px black;
}

table {
  /* position: relative;
  top: 1.5rem; */
  margin: 0 auto;
  border-collapse: collapse;
  border: 3px ridge rgb(1, 1, 1);
  box-shadow: -5px -5px 20px;
}

table th, table td {
  width: 14rem;
}

table td {
  position: relative;
  border: 1.3px groove rgb(1, 1, 1);
  height: 6.5rem;
}

table th {
  border: 1.3px groove rgb(1, 1, 1);
}

table tr {
  height: 1.8rem;
}

.daySelector {
  border: 2px ridge #738e74;
  background-color: #738e74;
  position: absolute;
  bottom: .2rem;
  left: 45.5%;
  width: .8rem;
  height: .8rem;
}

.noteButton {
  height: 1rem;
  width: 50%;
  text-align: center;
  position: absolute;
  bottom: 5.5rem;
  left: 25%;
}

.noteSubmit {
  max-height: 100%;
  font-size: .5rem;
  width: 100%;
}

.clearButton {
  height: 1rem;
  width: 1rem;
  text-align: center;
  font-size: .5rem;
  position: absolute;
  bottom: .3rem;
  right: .3rem;
}

.daynumber {
  /* border: 1px solid red; */
  width: .8rem;
  position: absolute;
  margin: 0;
  top: .2rem;
  left: .2rem;
  font-size: 1.25rem;
  color: #3d5dbd;
  text-shadow: 0 0 2px black;
}

.holidayName {
  /* border: 1px solid red; */
  text-align: center;
  margin: 0 auto;
  padding-top: .12rem;
  background: rgb(2, 157, 134);
  max-height: 2.5rem;
  width: 8rem;
  font-size: 1em;
  border-radius: 2rem;
  box-shadow: -.5rem .3rem 10px black;
}
.cellInfo {
  font-size: .8rem;
  position: absolute;
  left: 18%;
  top: 8%;
  width: 60%;
  height: 20%;
  border-radius: 2rem;
  background-color: #3d5dbd;
  font-size: .7rem;
  text-align: center;
  top: 3.4rem;
  left: 2.4rem;
  z-index: 1;
}

ul {
  font-size: .8rem;
  position: absolute;
  margin: 0;
  top: .4rem;
  left: .05rem;
}

.cell {
  background-color: rgb(0, 74, 28);
  padding-left: 0;
  padding-right: 0;
  position: relative;
  /* border: 1px solid red; */
}

.deadCell {
  background: repeating-linear-gradient(
          45deg,
          #3d5dbd,
          #3d5dbd 10px,
          #738e74 10px,
          #738e74 20px
  );
}

small {
  color: #3d5dbd;
}

.selectedCell {

  border: 3px ridge rgb(3, 3, 172);

}

nav {
  text-align: center;
  margin-top: .8rem;
  letter-spacing: 2rem;
}

@media screen and (max-width: 101.25rem){

  table th, table td {
    width: 13rem;
  }

}

@media screen and (max-width: 94.0625rem) {

  table th, table td {
    width: 12rem;
  }

  .holidayName {
    width: 6rem;
    font-size: .8em;
  }

}

@media screen and (Max-width: 86.875rem) {

  table th, table td {
    width: 11rem;
  }

}

@media screen and (max-width: 80rem) {

  table th, table td {
    width: 10rem;
  }

  .holidayName {
    width: 5.5rem;
    font-size: .8em;
  }

  .daynumber {
    font-size: .9rem;
  }

  #loginForm {
    width: 10rem;
    left: 8rem;
  }

  #loginMessage {
    right: 8rem;
    top: -.2rem;
    font-size: 1.5rem;
  }

}

@media screen and (max-width: 72.8125rem){

  table th, table td {
    width: 9rem;
  }

  table tr {
    height: 1rem;
  }

  nav {
    letter-spacing: 1rem;
  }

}

@media screen and (max-width: 64rem) {

  table th, table td {
    width: 8rem;

  }

  .holidayName {
    font-size: .7em;
  }

  .daynumber {
    font-size: .8rem;
  }

  button {
    font-size: .7rem;
  }

  #loginForm {
    width: 8rem;
    height: 5rem;
    left: 6rem;
    top: 0rem;
  }

  #username {
    font-size: .6rem;
  }

  #password {
    font-size: .6rem;
    height: 40%;
  }

  #loginMessage {
    right: 6rem;
    top: -.2rem;
    font-size: 1.2rem;
  }

}

@media screen and (max-width: 59.0625rem) {

  body {
    padding: 0 1.9rem;
  }

  table th, table td {
    width: 7rem;
  }

  .daynumber {
    font-size: .7rem;
  }

  .holidayName {
    font-size: .6em;
  }

  button {
    margin-bottom: 1rem;
  }

}

@media screen and (max-width: 55.625rem) {

  table th, table td {
    width: 6rem;
  }

  nav button:first-child {
    margin-left: .9rem;
  }

  .holidayName {
    font-size: .5em;
    width: 4rem;
  }

  #loginForm {
    width: 6rem;
    left: 3.5rem;
    top: 0rem;
    grid-template-columns: 1fr 1fr;
    line-height: .5rem;
  }

  #loginMessage {
    right: 3.5rem;
    top: -.2rem;
    font-size: 1rem;
  }

  #loginButton {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
    position: static;
    width: 109%;
    height: 100%;
  }

  .registerLink {
    grid-row: 4 / 5;
    grid-column: 1 / 3;
    height: 20%;
    /* border: 1px solid red; */
    margin: 1rem auto;
  }

}

@media screen and (max-width: 48.4375rem) {

  table th, table td {
    width: 5rem;
  }

  .holidayName {
    font-size: .4em;
    width: 3.5rem;
  }

  #loginForm {
    left: .5rem;
  }

  #loginMessage {
    right: .5rem;
  }



}

@media screen and (max-width: 42.1875rem){

  table th, table td {
    width: 4rem;
  }

  nav {
    width: 30rem;
    margin: .8rem auto;
  }

  .holidayName {
    font-size: .6rem;
    width: 2.5rem;
  }

  #loginForm {
    left: 0;
  }

  #loginMessage {
    right: 0;
  }

  button {
    width: 60%;
    margin: 0 auto;
  }

  .leftButton {
    margin-right: -.5rem;
  }

  .rightButton {
    margin-left: -.5rem;
  }

  #yearName {
    width: 4rem;
  }

  #monthName {
    width: 6rem;
  }

  .noteSubmit {
    position: relative;
    top: 1.5rem;
    right: .6rem;
    width: 3rem;
    height: 2rem;
    font-size: .43rem;
  }

  .daySelector {
    width: 1rem;
    height: 1rem;
    left: 1.55rem;
  }

  nav {
    line-height: 2rem;
  }

  #horisal {
    position: relative;
    right: .45rem;

  }

}

@media screen and (max-width: 35.9375rem){

  table th, table td {
    width: 3rem;
  }

  nav {
    width: 25rem;
  }

  #loginForm {
    left: -1.5rem;
  }

  #loginMessage {
    right: -1.5rem;
  }
}

@media screen and (max-width: 31.5625rem){

  table th, table td {
    width: 9rem;
  }

  /* table {
    position: relative;
    right: 1.5rem;
  } */

  .holidayName {
    position: relative;
    bottom: 1em;
    right: -2px;
  }

  nav {
    position: relative;
    left: 1.2rem;
  }

  #loginForm {
    left: -2.5rem;
  }

  #loginMessage {
    right: -2.5rem;
  }

  .noteSubmit {
    width: 2.8rem;
  }

  .holidayName {
    display: none;
  }

  nav {
    position: relative;
    width: 15rem;
    margin: 0;
    left: 6rem;
  }


}

@media screen and (max-width: 29.6875rem){

  table {
    position: relative;
    right: 1.5rem;
  }

  #loginForm {
    left: -2.75rem;
  }

  #loginMessage {
    font-size: .8rem;
    top: .8rem;
    right: -2rem;
  }

  nav {
    left: 4rem;
  }

}