* {
  padding: 0;
  margin: 0;
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
}
h1, h2, h3, h4, h5, h6, .title {
  font-family: 'Ubuntu', sans-serif;
  margin-bottom: 0;
}

/* grid */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
.container {
  max-width: 900px;
}
/* header */
h1 {
  font-size: 20px;
  color: #666666;
  text-transform: uppercase;
}
h3 {
  font-size: 16px;
  font-weight: 100;
}
header {
  top: 0;
  box-shadow: 0 1px 5px 5px #d1d1d1;
  padding: 20px;
  z-index: 10;
  background-color: #fff;
}
#day-display {
  grid-column: 3 / span 4;
}
#time-display {
  grid-column: 9 / span 3;
  text-align: end;
}

/* main content */
main {
  margin-top: 100px;
}
/* time line */
.side-time {
  grid-column: 1 / span 2;
  text-align: end;
  margin-right: 15%;
  color: #ACACAC;
  margin-bottom: 0;
  align-self: flex-end;
  position: relative;
  bottom: -5px;
}
/* timeblocks */
#timeblocks {
  z-index: 5;
  margin-bottom: 60px;
}
.time-block {
  border-radius: 5px;
  width: 100%;
  height: 92px;
  grid-column: 3 / span 9;
  margin-bottom: 8px;
  z-index: 8;
}
.time-block:hover {
  border-left-width: 10px;
}
.past {
  background-color: #f3f3f3;
  border: 1px solid #aaaaaa;
}
.present {
  background-color: #E9EEFF;
  border: 1px solid #587EFB;
}
.future {
  background-color: #CEFFD1;
  border: 1px solid #51FF5C;
}
.empty {
  background-color: #fff;
  border-width: 2px;
}
.title, .description {
  margin: 0 25px 8px 25px;
}
.title {
  margin-top: 20px;
}
/* current time line */
#current-time {
  position: relative;
  z-index: 1;
} 
#current-line {
  position: absolute;
  top: 16px;
  right: 0;
  width: 100%;
  height: 2px;
  border: none;
  border-top: 1px solid #587EFB;
  margin: 0;
  grid-column: 2 / span 11;
}
#triangle {
  position: absolute;
  top: 0;
  right: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-right: 27px solid #587EFB;
}
/* timeblock input */
button {
  font-weight: bold;
}
button:focus {
  outline: none;
}
input {
  border: none;
  width: 100%;
}
input:focus {
  border: none;
  outline: none;
}
/* text form */
#text-form {
  position: fixed;
  top: 50%;
  left: 50%;
  padding: 2vw;
  transform: translate(-50%, -50%);
  z-index: 12;
  box-shadow: 0 1px 5px 5px #d1d1d1;
  background-color: #fff;
  max-width: 900px;
  width: 100%;
  border-radius: 5px;
}
#form-time {
  margin-top: 15px;
  color: #666666;
  font-weight: 400;
}
#save {
  padding: 5px 10px;
  border-radius: 2px;
  border: none;
  background-color: #587EFB;
  color: #fff;
}
#save:hover {
  box-shadow: 0 1px 2px 2px #d1d1d1;
}
#save:focus, #save:active, #save:onfocus {
  outline: none;
  border: none;
}
#close:hover,  #close:focus, #close:active, #close {
  background-color: transparent;
  outline: none;
  border: none;
}
#close:hover {
  font-size: larger;
}

@media only screen and (min-width: 992px){
  #text-form {
  max-width: 960px;
}
}

@media only screen and (min-width: 768px){
  #text-form {
    max-width: 720px;
  }
}
@media only screen and (min-width: 576px){
  #text-form {
  max-width: 540px;
}
}
