html, body {
  background: #F5F5F5;
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  font-size: 1.5rem;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

footer {
  min-height:  50px;
  margin-top: auto;
  text-align: center;
}

/*  Nav Bar  */
nav {
  padding-top: 1em;
  padding-left: 1em;
  z-index: 2;
  font-family: "Consolas", "Monaco", "Menlo", monospace;
  color: #484848;
}

nav a {
  text-decoration: none;
  padding-right: 1em;
  text-decoration: none;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  border: none;
  cursor: pointer;
  color: #000000;
}

nav .friday-message {
  color: black;
  margin: 0;
}

nav .friday-button {
  color: black;
  font-size: 1em;
  text-decoration: underline;
}

/* Read Page */
.poem-container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  margin: auto;
}

.poem {
  padding: 0;
  white-space: pre;
  font-size: 1.3rem;
  max-width: 95%;
  margin:  auto;
}

.content {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
  white-space: pre;
}

.content:first-line {
  font-variant: small-caps;
  letter-spacing: 1px;
}

.content:last-child {
  margin-bottom: 30px;
  padding-bottom: 30px;
}

.author {
  font-variant: small-caps;
  letter-spacing: 1px;
  padding-bottom: 3em;
}

.publish {
  font-variant: small-caps;
  font-size: 0.8em;
  opacity: 0.6;
}

/* About Page */
.about {
  text-align: center;
}

.page-turn {
  padding-right: 1em;
}

.about-image {
  border: 5px solid black;
  width: 40%;
  margin: 10px;
  min-width: 300px;
  max-width: 500px;
}

.about-text {
  max-width: 700px;
  text-align: left;
  margin: auto;
  padding: 20px;
}

/* Write Page */
form {
  font-size: 1.2em;
  padding: 20px;
}

label {
  margin-right:  1em;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
}

.input-item {
  padding: 10px 0 10px 0;
}

input {
  background-color: rgba(256, 256, 256, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin-right: 2em;
  font-size: 1.2em;
}

fieldset {
  margin-top: 2em;
}

textarea,
textarea[type=text] {
  height: 100%;
  width: 100%;
  margin: auto;
  display: block;
  border: 1px solid #CCC;
  border-radius: 3px;
  line-height: 1.5;
  font-size: 1.3rem;
  white-space: pre;
  min-height: 200px;
  background-color: rgba(256, 256, 256, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

textarea:first-line,
textarea[type=text]:first-line {
  font-variant: small-caps;
  letter-spacing: 1px;
}

textarea:focus,
textarea[type=text]:focus {
  border: 1px solid #000;
  box-shadow: none;
  outline: none;
}

textarea:disabled {
  color: gray;
  cursor: not-allowed;
}

input[type=submit] {
  background-color: transparent;
  color: black;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: block;
  margin: auto;
  font-size: 1em;
  font-weight: normal;
  line-height: 2;
  margin-top: 4em;
  font-family: "Consolas", "Monaco", "Menlo", monospace;
  text-transform: lowercase;
}

input:disabled {
  color: gray;
  cursor: not-allowed;
}

.only-friday {
  text-align: center;
}
