.diary-content {
  position: absolute;
  overflow: auto;
  overflow-y: auto;
  margin-top: 180px;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  border-top-left-radius: 35px;
  border-top-right-radius: 35px;
  padding: 10px;
  background-color: rgba(246, 245, 255, 1);
  transition: opacity 0.3s ease-in-out;
  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  
  bottom: 0; 
  max-height: calc(100% - 180px); 
}


.diary-title {
  display: flex;
  width: 264px;
  max-width: 100%;
  align-items: stretch;
  gap: 20px;
  font-size: 45px;
  color: rgba(0, 0, 0, 1);
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 3.6px;
  justify-content: space-between;
}

.back-icon {
  aspect-ratio: 0.62;
  object-fit: contain;
  object-position: center;
  width: 23px;
  align-self: flex-start;
  margin-top: 9px;
  flex-shrink: 0;
}

.title-text {
  margin: 0;
  font-size: 45px;
}


.new-entry {
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  margin-top: 17px;
  padding: 6px 38px 6px 0;
  align-items: stretch;
  gap: 20px;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 1.76px;
  justify-content: space-between;
}

.entry-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 131px;
  flex-shrink: 0;
  max-width: 100%;
}

.entry-content {
  margin: auto 0;
}

.entry-placeholder {
  color: rgba(122, 117, 149, 1);
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.record-button {
  border-radius: 7px;
  background-color: rgba(207, 205, 255, 1);
  display: flex;
  margin-top: 21px;
  padding: 7px 27px;
  align-items: stretch;
  gap: 4px;
  color: rgba(99, 73, 235, 1);
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
  font-family: Inter, -apple-system, Roboto, Helvetica, sans-serif;
}

.button-text {
  flex-grow: 1;
}

.record-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 24px;
  margin: auto 0;
  flex-shrink: 0;
}


.date-heading {
  color: rgba(99, 73, 235, 1);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.44px;
  align-self: flex-start;
  margin-top: 19px;
  margin-bottom: 7px;
}

.date-heading:nth-of-type(2) {
  margin-top: 20px;
}

.date-heading:nth-of-type(3) {
  margin-top: 17px;
}


.entry-card {
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  width: 100%;
  padding: 19px 10px 11px;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 10px;
}

.entry-header {
  display: flex;
  align-items: stretch;
  gap: 20px;
  font-weight: 600;
  white-space: nowrap;
  justify-content: space-between;
}

.entry-text-container {
  display: flex;
  align-items: stretch;
  gap: 7px;
  font-size: 18px;
  color: rgba(0, 0, 0, 1);
  letter-spacing: 1.44px;
}

.text-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 24px;
  flex-shrink: 0;
}

.entry-text {
  margin: auto 0;
  flex-basis: auto;
}

.view-button {
  border-radius: 18px;
  background-color: rgba(207, 205, 255, 1);
  align-self: flex-start;
  padding: 4px 14px;
  font-size: 16px;
  color: rgba(122, 117, 149, 1);
  text-align: center;
  letter-spacing: 1.28px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: Inter, -apple-system, Roboto, Helvetica, sans-serif;
}

.entry-images {
  align-self: flex-start;
  display: flex;
  margin-top: 13px;
  align-items: stretch;
  gap: 10px;
}

.image-container {
  display: flex;
  flex-direction: column;
  border-radius: 7px;
  position: relative;
  aspect-ratio: 1;
  width: 103px;
}

.entry-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 7px;
}

.image-overlay {
  position: relative;
  border-radius: 7px;
  background-color: rgba(207, 205, 255, 0.2);
  display: flex;
  width: 100%;
  flex-shrink: 0;
  height: 103px;
}

.entry-images > .entry-image {
  aspect-ratio: 0.99;
  object-fit: contain;
  object-position: center;
  width: 103px;
  border-radius: 7px;
  flex-shrink: 0;
  max-width: 100%;
  position: relative;
  inset: auto;
  height: auto;
}


.entry-card.simple {
  display: flex;
  padding: 12px 13px 22px;
  align-items: stretch;
  gap: 20px;
  justify-content: space-between;
  flex-direction: row;
}


.entry-card.multi-image {
  display: flex;
  padding: 17px 11px;
  align-items: stretch;
  gap: 10px;
  flex-direction: row;
}

.entry-content-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.entry-header-text {
  align-self: flex-start;
  display: flex;
  align-items: stretch;
  gap: 7px;
  font-size: 15px;
  color: rgba(0, 0, 0, 1);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 1.2px;
}

.image-grid {
  display: flex;
  margin-top: 11px;
  align-items: stretch;
  gap: 10px;
}

.entry-actions {
  display: flex;
  flex-direction: column;
}

.entry-actions .view-button {
  padding: 4px 15px;
  font-size: 15px;
  letter-spacing: 1.2px;
}

.image-container.additional {
  margin-top: 12px;
}
