@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

body {
  font-family: "Playfair Display", serif;
  font-weight: 300;
  background-color: #d8d8d0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  justify-content: center;
  align-items: center;
}

.header {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  display: none;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  font-size: xx-large;
  z-index: 1;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  position: fixed;
  height: 15vh;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
}

.container {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 0vh;
  width: 80%;
  z-index: 2;
  top: 100vh;
  transition: height 1s cubic-bezier(0.4, 1, 0.2, 1),
    top 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.container.scrolled {
  height: 85vh;
  top: 15vh;
  transition: height 1s cubic-bezier(0.4, 1, 0.2, 1),
    top 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.container p {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 1.5em;
  text-align: center;
}

svg {
  width: 32px;
  height: 32px;
  z-index: -1;
  transform: rotate(0deg);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

svg.scrolled {
  transform: rotate(180deg);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

hr {
  top: 0;
  width: 100%;
  border: 0;
  height: 1px;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

form input {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
  width: 50%;
  border: 0;
  border-bottom: 1px solid black;
  background-color: transparent;
  text-align: center;
}

form input:focus {
  outline: none;
}

form textarea {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
  width: 50%;
  border: 0;
  border: 1px solid black;
  background-color: transparent;
  text-align: center;
}

form textarea:focus {
  outline: none;
}

form button {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
  width: 50%;
  border: 0;
  background-color: transparent;
  text-align: center;
  cursor: pointer;
}

#journals {
  opacity: 0;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #d8d8d0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow-y: auto;
}

#journals.show {
  opacity: 1;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

#journals svg {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  z-index: 1;
  cursor: pointer;
}

.journal-entry {
  border: 1px solid black;
  width: 50%;
  height: auto;
  margin: 0 auto;
  padding: 16px;
  text-align: left;
  margin-bottom: 16px;
  flex-wrap: wrap;
  text-wrap: wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.journal-entry h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 300;
}

.journal-entry p {
  text-align: left;
}

#respond {
  opacity: 0;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #d8d8d0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow-y: auto;
}

#respond.show {
  opacity: 1;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

#respond svg {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  z-index: 1;
  cursor: pointer;
}

#view-responses {
  opacity: 0;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #d8d8d0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  overflow-y: auto;
}

#view-responses.show {
  opacity: 1;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

#view-responses svg {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  z-index: 1;
  cursor: pointer;
}

.passcode {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
