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

header {
  /* border: 1px solid red; */
  width: 20rem;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
}

#loginForm {
  /*border: 1px solid red;*/
  position: absolute;
  left: -39.58rem;
  top: -.1rem;
  width: 38rem;
  color: #3d5dbd;
  line-height: .5rem;
}

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

.registerLink {
  margin-top: .6rem;
}

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

#loginMessage {
  /*border: 1px solid deeppink;*/
}

#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%;
}

#save {
  width: 100%;
  height: 100%;
}
#saveAction {
  grid-column: 1 / 2;
  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%;
}

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

#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 {
  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;
  }

  #loginForm {
    left: -36rem;
  }

}

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

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

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

  #loginForm {
    left: -32.5rem;
  }
  
}

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

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

  #loginForm {
    left: -29rem;
  }

}

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

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

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

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

  #loginForm {
    left: -25.5rem;
  }

}

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

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

  table tr {
    height: 1rem;
  }

  nav {
   letter-spacing: 1rem;
  }

  #loginMessage {
    position: absolute;
    left: 45rem;
    top: -1rem;
    width: 16rem;
    font-size: 1.6rem;
  }

  #loginForm {
    left: -22.2rem;
    width: 20rem;
  }
}

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

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

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

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

  button {
    font-size: .7rem;
  }

}

@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;
  }

}

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

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

  .holidayName {
    font-size: .4em;
    width: 3.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;
  }

}

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

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

  nav {
    width: 25rem;
  }
}

@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;
  }
}

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

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

}