@import '/my-app/app/globals.css';

/* login page styles start */

/* ── MAIN ── */
.index-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  padding: 16px 48px 48px;
  align-items: start;
}

/* ── LEFT PANEL ── */
.hero-panel {
  border-radius: 20px;
  /* padding: 56px 52px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
}

.postCard-content {
  padding: 2rem;
  max-height: 450px;
}

#index-stamp img {
  position: absolute;
  top: 4rem;
  right: 2rem;
  max-width: 150px;
  height: auto;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 25px;
}

.hero-body {
  max-width: 450px;
  font-family: "Figtree", sans-serif;
  font-weight: 300;
  font-size: 1.688rem;
}

/* ── RIGHT PANEL / FORM ── */
.form-panel {
  padding: 8px 0;
}

.form-panel h2 {
  margin-bottom: 6px;
}

.form-sub {
  margin-bottom: 28px;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.313rem;
}

.form-sub a {
  text-decoration: underline;
  text-underline-offset: 2px;
}


.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .icon {
  position: absolute;
  left: 16px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  border-radius: var(--radius);
  padding: 13px 20px;
  outline: none;
  transition: 0.2s;
}


.input-wrap.has-icon input {
  padding-left: 44px;
}

.eye-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.eye-btn:hover {
  color: var(--pure-black);
}

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.checkbox-row label {
  cursor: pointer;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1rem;
}

.checkbox-row label a {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1rem;

}

.checkbox-row input,
.checkbox-form input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 2px solid var(--deep-sea);
  background: var(--pure-white);
  cursor: pointer;
  position: relative;
  margin: 0;
}

.checkbox-row input:checked,
.checkbox-form input[type="checkbox"]:checked {
  background: var(--sky-blue);
}

.checkbox-row input:checked::after,
.checkbox-form input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 5px;
  height: 11px;
  border: solid var(--deep-sea);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* Fade-in animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  animation: fadeUp 0.4s ease both;
}

.hero-panel {
  animation: fadeUp 0.45s 0.05s ease both;
}

.form-panel {
  animation: fadeUp 0.45s 0.12s ease both;
}

@media (max-width: 800px) {
  .index-main {
    grid-template-columns: 1fr;
  }

  nav,
  .index-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-panel {
    min-height: unset;
  }
}

.login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.hero-sign-in {
  border-radius: 20px;
  /* padding: 56px 52px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
  width: 540px;
}

/* login page styles end */
/* account set up styles start */
.setup-container {
  position: relative;
  margin: 8% auto;
  display: flex;
  flex-flow:column wrap;
  justify-content: center;
  align-content: center;
}

.setup-card {
  /* left: 450px; */
  max-width: 750px;
  max-height: 450px;
  border-radius: 20px;
  overflow: hidden;
}

.setup-bg {
  min-width: 750px;
  height: 450px;
  margin: 1rem 0;
  padding: 4rem;
}

.setup-container p {
  margin: 0px;
}

setup-container textarea,
input {
  min-width: 150px;
  padding: 5px 10px;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 8px;
  margin: 0px 10px 0px 0px;
  inset: none;

}

.setup-container button {
  max-width: 150px;
  margin: 15px 0px;
}

.accountSetup-label {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.333rem;
  margin-bottom: 0.25rem;

}

.btn-container {
  max-width: 750px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}


.group-two,
.group-three {
  display: none;
}

.summary-section {
  display: flex;
  justify-items: center;

  /* gap: 10px; */
}

.summary-section p:first-child {
  width: 20%;
  flex-shrink: 0;
}

.summary-section p:nth-child(2) {
  width: 35%;
  flex-shrink: 0;
}

.edit-btn {
  width: 25%;
  background-color: transparent;
  margin-left: auto;
  padding: 0px;
  border: none;
}

button#username-edit.edit-btn {
  margin: 0px;
}

/* account set up styles end */

/* bulletin board page styles start */
.bulletin-hero {
  background-image: url("/app/Images/corkboard.png");
  background-repeat: repeat;
  background-size: 500px 500px;
  min-height: 80vh;
}

.postItContainer {
  min-height: 700px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

#postForm {
  width: 250px;
  height: 250px;
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  gap: 15px;
  padding: 1rem;
  overflow: hidden;

  /* will remove later */
  /* background-color: var(--sky-blue); */

}

#postTitle {
  max-width: 200px;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.313rem;
  padding: 5px 10px;
  border-width: 1px;
  border-style: solid;
  border-radius: 8px;
}

#postContent {
  min-width: 200px;
  border-style: solid;
  padding: 8px;
  border-radius: 8px;
  font-family: "Figtree", sans-serif;
  border-width: 1px;
  font-weight: 500;
  font-size: 1rem;
}

#postSubmit {
  max-width: 200px;
  margin-bottom: 15px;
}

.like-save {
  display: flex;
}

.like-save button {
  background-color: transparent;
  border-style: none;
  justify-content: center;
  padding: 0;
}

.addMsg {
  display: flex;
  justify-content: flex-end;
  padding: 2rem;

}

.postIt {
  width: 220px;
  min-height: 220px;
  padding: 1.2rem 1rem 0.9rem;
  position: absolute;
  box-shadow: 0 14px 22px rgba(9, 47, 51, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: grab;
  touch-action: none;
}

.postIt.dragging {
  cursor: grabbing;
  box-shadow: 0 18px 28px rgba(9, 47, 51, 0.28);
}

.postIt h5 {
  margin-bottom: 0.6rem;
}

.postIt p {
  margin: 0;
}

.postIt.blue {
  background: #a7dfe3;
}

.postIt.pink {
  background: #ffd6d2;
}

.postIt.yellow {
  background: #ffd982;
}

.postIt-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(9, 47, 51, 0.7);
  margin: 0 auto 0.35rem;
}

.postIt-actions {
  align-items: center;
  gap: 0.35rem;
}

.postIt-actions button {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.postIt-count {
  font-family: "Figtree", sans-serif;
  font-size: 0.9rem;
}

/* bulletin board page styles end */


/* account internal page styles start */
.tab {
  display: flex;
  gap: 32px;
}

.tab-content {
  padding: 0px 12px;
  margin: 40px;
  margin-top: 0px;
}

[data-tab-content] {
  display: none;
  padding: 6px 12px;
}

.active[data-tab-content] {
  display: block;
}

.tab button {
  display: flex;
  flex-flow: row wrap;
  gap: 15px;
  margin: 0px;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.313rem;
  text-align: left;
  text-decoration: none;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.4s;
}

div.tab-button {
  max-width: 300px;
}

.tab-nav {
  margin-bottom: 25px;
}

.tab-nav a {
  padding-right: 10px;
}

.user-info {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  min-height: 125px;
  margin: 0 auto;
  gap: 15px;
}

.account-form {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  gap: 25px;
  max-height: 450px;
  margin-bottom: 20px;
}

.account-form div {
  min-width: 400px;
  display: flex;
  flex-flow: column wrap;
  gap: 10px;
}

.account-form input {
  border-radius: 20px;
  padding: 14px 16px;
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 1rem;
}

.account-form button {
  width: 400px;
  justify-content: center;
  align-items: center;
}


.tab-header {
  margin-bottom: 15px;
}

.checkbox-form {
  display: flex;
  flex-flow: column wrap;
  gap: 15px;
}

.checkbox-form label {
  font-family: "Figtree", sans-serif;
  font-weight: 400;
  font-size: 1rem;
}

input#emailnotif.checkbox,
input#option02,
input#option03 {

  width: 25px;
  height: 25px;
}

/* account internal page styles end */


/* account external page styles start */

.account-ext-header {
  max-width: 500px;
  margin-bottom: 32px;
}

#user-pronouns {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.313rem;
}

/* user profile photo image styles */


#imageUpload {
  display: none;
}

#profileImage {
  cursor: pointer;

}

#profile-container {
  width: 150px;
  height: 150px;
  overflow: hidden;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  border-radius: 50%;
  margin-bottom: 15px;
}

#profile-container img {
  width: 150px;
  height: 150px;
}

#image,
#imageUpload {
  display: none;
}

.activity-cards {
  display: grid;
  gap: 1.5rem;
}

.activity-section h5 {
  margin-bottom: 0.75rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.activity-card {
  padding: 1rem;
  min-height: 180px;
  box-shadow: 0 10px 18px rgba(9, 47, 51, 0.16);
}

.activity-card.blue {
  background: #a7dfe3;
}

.activity-card.pink {
  background: #ffd6d2;
}

.activity-card.yellow {
  background: #ffd982;
}

.activity-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-family: "Figtree", sans-serif;
  font-size: 0.95rem;
}


/* account external page styles end */


/* message drafter page styles start */
/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --radius: 14px;
}

.layout {
  display: flex;
  flex: 1;
  max-width: 1200px;
  margin: 0px 0px 45px 0px;
  padding: 0;
  gap: 0;
}

/* sidebar */
aside.sidebar {
  max-width: 350px;
  flex-shrink: 0;
  padding: 2rem;
}

aside.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

aside.sidebar li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.313rem;
}

aside.sidebar li svg {
  width: 17px;
  height: 17px;
  fill: none;
  flex-shrink: 0;
}

.sidebar-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 25px;
}

.sidebar-dropdown.dropdown-open {
  max-height: 250px;
}

/* submenu for upload, templates, etc. */
.templates-dropdown-content,
.elements-dropdown-content,
.backgrounds-dropdown-content,
.drafts-dropdown-content {
  height: 250px;
  max-width: 300px;
  padding-left: 25px;
  border: 0;
  margin: 0;
  overflow-y: scroll;
  background: transparent;
  border-radius: 20px;
}

.themeImgContainer {
  cursor: pointer;
  display: inline-block;
  max-width: 75px;
  height: auto;
  margin: 8px 8px 8px 0px;
  position: relative;
  box-sizing: border-box;
  text-align: center;
}

.themeImgContainer img {
  width: 100%;
  height: 100%;
}

/* .sidebar-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 25px;
}

.sidebar-dropdown.dropdown-open {
  max-height: 250px;
} */

/* hidden file input */
#imageUpload {
  display: none;
}

/* message main section */
.main-content {
  flex: 1;
  padding: 2rem 0 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* card css */
.preview-section {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* 3D card scene */
.preview-scene {
  flex: 1;
  perspective: 1200px;
}

.preview-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
}

.preview-box.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  /* background: var(--gray-tone); */
  /* position: relative; */
}

/* FRONT — image upload area */
.card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sticker {
  position: absolute;
  width: 60px;
  height: 60px;
  cursor: grab;
  user-select: none;
  z-index: 10;
}

.sticker:active {
  cursor: grabbing;
}


.upload-hint {
  text-align: center;

  pointer-events: none;
}

.upload-hint svg {
  width: 40px;
  height: 40px;
  fill: none;
  margin-bottom: 0.75rem;
}

.upload-hint p {
  line-height: 1.5;
}

.upload-hint span {
  display: block;
  margin-top: 0.25rem;
}

/* image grid inside card front */
.image-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 3px;
}

.image-grid.count-1 {
  grid-template-columns: 1fr;
}

.image-grid.count-2 {
  grid-template-columns: 1fr 1fr;
}

.image-grid.count-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.image-grid.count-3 img:first-child {
  grid-row: span 2;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BACK — message preview */
.card-back {
  transform: rotateY(180deg);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* postcard ruled lines on back */
.card-back::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  right: 0;
  pointer-events: none;
}

.card-back-message {
  max-width: 50%;
  padding-right: 1rem;
}

.card-back-recipient {
  margin-bottom: 0.75rem;
  min-height: 1.5rem;
}

.card-back-body {
  line-height: 1.7;

  white-space: pre-wrap;
  min-height: 4rem;
}

.card-back-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 64px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 0.750rem;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
}

/* buttons for the postcard */
.floating-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.circle-btn:hover {
  background: var(--sky-blue);
  transform: scale(1.08);
}

.circle-btn:active {
  transform: scale(0.96);
}

/* divider */
hr {
  border: none;

}

/* input */
.recipient-wrap {
  position: relative;
}

.recipient-wrap::before {
  content: 'To';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-style: italic;

  pointer-events: none;
}

#recipient {
  width: 100%;
  max-width: 750px;
  padding: 0.75rem 1rem 0.75rem 1rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* message text box */
.message-wrap {
  position: relative;
}

#messageInput {
  width: 100%;
  max-width: 750px;
  min-height: 130px;
  padding: 1rem;
  padding-bottom: 2.25rem;
  border-radius: 10px;
  line-height: 1.65;
  resize: vertical;
  outline: none;

}



.word-counter {
  align-self: flex-end;
  pointer-events: none;
}



/* buttons for the text box */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.outline-btn {
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


.teal-btn {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}



.teal-btn:active {
  transform: translateY(0);
}

.teal-btn svg,
.outline-btn svg {
  width: 15px;
  height: 15px;

  fill: none;
}

.recipient-field {
  position: relative;
  max-width: 750px;
}

.recipient-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  border-radius: 12px;
  background: var(--pure-white);
  box-shadow: 0 10px 24px rgba(9, 47, 51, 0.16);
  overflow: hidden;
}

.recipient-suggestions.open {
  display: block;
}

.recipient-suggestion {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  cursor: pointer;
  text-align: left;
}

.recipient-suggestion:hover {
  background: rgba(127, 199, 204, 0.12);
}

.selected-theme {
  outline: 3px solid var(--sky-blue);
  border-radius: 12px;
}

.draft-chip {
  width: 100%;
  border: none;
  background: rgba(127, 199, 204, 0.12);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  cursor: pointer;
}

/* message drafter page styles end */


/* messages page styles start */
aside.inbox-sidebar {
  max-width: 200px;
  flex-shrink: 0;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--default-gray);
}

aside.inbox-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

aside.inbox-sidebar li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.313rem;
}

.inbox-container {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  height: 100vh;
}

.messageStack-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* padding: 2rem 3rem; */
  height: 100%;
}

.message-swiper {
  width: 100%;
  max-width: 1000px;
  padding-bottom: 3rem;
}

.message-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  width: 600px;
}

.message-swiper .card {
  border-radius: 12px;
  border: 1px solid var(--default-gray);
  /* padding: 2rem; */
  width: 100%;
  min-height: 450px;
}

.message-swiper .swiper-button-next,
.message-swiper .swiper-button-prev {
  --swiper-navigation-color: var(--sky-blue);
  --swiper-navigation-size: 24px;
  background: #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  /* padding: 0.5rem; */
}

.swiper-slide-shadow {
  display: none !important;
}

.message-swiper .swiper-button-next:hover,
.message-swiper .swiper-button-prev:hover {
  background: var(--sky-blue);
  --swiper-navigation-color: var(--pure-white);
}

.message-stack div.card {
  max-width: 750px;
  max-height: 500px;
  overflow: hidden;
  padding: 2rem;
}

.card-content {
  padding: 15px;
  padding-right: 45px;
}

.cardFront {
  z-index: 1;
}

.cardBack-1 {
  z-index: 0;
  margin-left: 2rem;
}

.cardBack-2 {
  z-index: 0;
  margin-left: 4rem;
}

.cardBack-3 {
  z-index: 0;
  margin-left: 6rem;
}

.open-message-btn {
  margin-top: 1rem;
}

.message-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 47, 51, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 2rem;
}

.message-detail-modal.open {
  display: flex;
}

.message-detail-sheet {
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  background: var(--parchement-paper);
  padding: 1.5rem;
  position: relative;
}

.message-detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.message-detail-toolbar {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.message-detail-toolbar .active {
  background: var(--sky-blue);
  color: var(--pure-white);
}

.message-detail-stage {
  min-height: 340px;
}

.detail-postcard-front,
.detail-postcard-back {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
}

.detail-postcard-front {
  background: var(--pure-white);
  border: 2px dashed var(--default-gray);
}

.detail-postcard-back {
  background: var(--pure-white);
  border: 1px solid var(--default-gray);
  padding: 2rem 2.5rem;
}

.detail-postcard-copy {
  width: 50%;
}

.detail-postcard-recipient {
  margin-bottom: 0.8rem;
}

.detail-postcard-message {
  white-space: pre-wrap;
  line-height: 1.7;
}

.detail-postcard-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 64px;
  border: 2px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
}

.detail-image-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 4px;
}

.detail-image-grid.count-1 {
  grid-template-columns: 1fr;
}

.detail-image-grid.count-2 {
  grid-template-columns: 1fr 1fr;
}

.detail-image-grid.count-3 {
  grid-template-columns: 1fr 1fr;
}

.detail-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-sticker {
  position: absolute;
}

/* messages page styles end */

/* privacy notice styles start */
.privacy-containter {
  display: flex;
  gap: 3.75rem;
  margin-top: 0;
}


.privacyTOC-container {
  min-width: 300px;
  cursor: pointer;
}

.privacyTOC-container ul {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0px;
  padding: 0;
  list-style-type: none;
}

.privacyTOC-container li {
  margin: 10px 0px;
}

.privacy-containter ul {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
}


#privacy-intro {
  max-width: 875px;
  margin-bottom: 2rem;
}

#data-collection {
  display: flex;
  flex-flow: row nowrap;
  gap: 2rem;
  margin-bottom: 2rem;

}

.data-contents {
  max-width: 445px;
  padding: 2rem;
  border-radius: 20px;

}

#privacy-define {
  max-width: 750px;
}

#privacy-define ul li {
  line-height: 2;
  margin-bottom: 1rem;
}

.privacy-containter p {
  font-size: 1.8rem;
}

.privacy-containter a {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  text-decoration: underline;
}

#data-storage table {
  margin: 2rem 0;
}

table {
  padding: 0.5rem;
}

thead {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

th,
td {
  padding: 0.5rem;
  max-width: 350px;
}

td li {
  list-style-type: none;
}

tbody {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
}

#data-rights {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
}

.rights {
  max-width: 400px;
  margin: 1rem 0px;
  padding: 2rem;
  border-radius: 20px;
}

span.address-en,
span.address-gae {
  padding-left: 15px;
  margin-bottom: 15px;
}

/* privacy notice styles end */

/*Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-family: sans-serif;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.notification.success {
  background: var(--sky-blue);
}

.notification.error {
  background: #e74c3c;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/*Notification styles end */ 
