#create-post {
  z-index: 1001;
  position: fixed;
  width: 100%;
  min-height: calc(100vh - 56px);
  overflow-y: scroll;
  bottom: 0;
  top: 56px;
  background: white;
  text-align: center;
  transform: translateY(100vh);
  transition: transform 0.3s;
  padding: 20px;
  box-sizing: border-box;
}

#create-post video,
#create-post canvas {
  width: 512px;
  max-width: 90%;
  max-height: 40vh;
  display: none;
  margin: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#create-post #pick-image,
#location-loader {
  display: none;
}

#create-post #capture-btn {
  margin: 10px auto;
}

.mdl-spinner {
  margin: auto;
}

.main-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.floating-button {
  z-index: 1000;
  position: fixed;
  bottom: 0;
  right: 0;
  padding: 30px;
}

.input-section {
  display: block;
  margin: 10px auto;
  max-width: 500px;
  width: 90%;
}

.shared-moment-card.mdl-card {
  margin: 10px auto;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.shared-moment-card .mdl-card__title {
  height: 15rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.shared-moment-card .mdl-card__title img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-content {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#shared-moments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

#create-post form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

@media (min-height: 700px) {
  .shared-moment-card .mdl-card__title {
    height: 18rem;
  }
}

@media (min-height: 1000px) {
  .shared-moment-card .mdl-card__title {
    height: 22rem;
  }
}

@media (min-width: 600px) {
  .shared-moment-card.mdl-card {
    width: 45%;
    min-width: 280px;
  }

  #shared-moments {
    justify-content: flex-start;
  }

  .main-image {
    max-height: 60vh;
    width: auto;
  }

  #create-post video,
  #create-post canvas {
    max-height: 50vh;
  }
}

@media (min-width: 900px) {
  .shared-moment-card.mdl-card {
    width: 30%;
    min-width: 280px;
  }
}

@media (min-width: 1200px) {
  .shared-moment-card.mdl-card {
    width: 23%;
    min-width: 280px;
  }

  .page-content {
    padding: 40px 20px;
  }

  .main-image {
    max-height: 70vh;
  }
}
