* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

body {
  background: #18191a;
  color: rgb(240, 240, 240);
}

.container {
  padding: 0 5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header {
  position: relative;
  width: 100%;
  height: 20em;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("https://firebasestorage.googleapis.com/v0/b/confessions-8f109.appspot.com/o/ConfessionsTD.jpg?alt=media&token=ae63dc71-b978-4282-9cb3-7220ce52de9c");
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

.layer {
  background-color: rgba(0, 0, 0, 0.308);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.title {
  text-align: center;
  z-index: 10;
  font-size: 46px;
}

.confession-form {
  display: block;
  width: 100%;
  max-width: 30em;
  margin-top: 2em;
  margin-bottom: 7em;
}

.confession-label {
  display: block;
  font-size: 20px;
  margin-bottom: 0.5em;
}

.confession-input {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1;
  width: 100%;
  max-width: 30em;
  min-width: 10em;
  outline: none;
  resize: none;
  background-color: rgb(240, 240, 240);
}

.confession-input:focus {
  outline: solid 1px rgb(0, 0, 0);
}

.confession-btn {
  display: block;
  cursor: pointer;
  font-size: 18px;
  width: 10em;
  height: 2em;
  outline: none;
  border: none;
  margin: 1em auto;
  background-color: #18191a;
  color: rgb(240, 240, 240);
  border: 1px solid rgb(240, 240, 240);
  transition: 0.1s ease-in;
}

.confession-btn:hover {
  background-color: rgb(141, 46, 46);
}

.confession-btn:focus {
  background-color: rgb(141, 46, 46);
}

.disabled {
  background-color: gray;
}

.confessions-heading {
  font-size: 32px;
}

.confessions-list {
  width: 100%;
  height: 70vh;
  overflow-y: scroll;
  margin-top: 4em;
  margin-bottom: 4em;
}

.confessions-list::-webkit-scrollbar {
  display: none;
}

.confession {
  padding: 1em;
  background-color: #272829;
  border-radius: 0.5em;
  margin-bottom: 1em;
  font-size: 20px;
  transition: all 0.4s ease-out;
  opacity: 0;
}

.show {
  opacity: 1;
}

footer {
  height: 5em;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #272829;
}

@media screen and (min-width: 600px) {
  .container {
    padding: 0 10em;
  }
}
