body {
  font-family: 'Lusitana', serif;
  margin: 0;
  padding: 0;
  color: white;
  background-image: url("backd.jpg");
  background-repeat: repeat;
  background-size: 100%;
}

header {
    display: flex;
    justify-content: space-between; /* space between logo & nav */
    align-items: center; /* vertically center everything */
    padding: 10px 20px;
    background-color: #0b0b3b; /* match your styles.css color */
}

header .logo {
    display: flex;
    align-items: center; /* keep logo and text aligned */
    gap: 10px;
    height: 100px;
}

header nav {
    display: flex;
    gap: 20px; /* spacing between links */
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

header nav a:hover {
    text-decoration: underline;
}


.title {
  text-align: center;
  font-size: 2.5rem;
  margin: 20px 0;
}

.container {
  display: flex;
  background-color: #2c2e5a;
  border-radius: 30px;
  padding: 20px;
  gap: 20px;
  margin: 0 auto;
  max-width: 80%;
  align-items: stretch;
}

/* Left menu */
.side-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px;
  gap: 40px;
  align-items: center;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  font-weight: bold;
  flex: 0 0 120px;
}

.side-menu button {
  background: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: left;
  transition: color 0.3s;
}

.side-menu button:hover {
  color: #ffdd57;
}
.side-menu button.active {
  background-color: rgb(68,75,228); /* Bright gold highlight */
  color: white; /* Contrast text */
  border-radius: 8px; /* Smooth corners */
  padding: 8px 12px; /* Adds some space inside */
}
/* Cards area */
.card-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.5) transparent;
  flex: 1;
}

.card-container::-webkit-scrollbar {
  height: 8px;
}

.card-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

/* Cards */


.message {
  flex-grow: 1; /* Take up remaining space above */
  
  font-size: 0.8rem;
}

.sender {
  font-weight: bold;
  margin: 0;
  align-self: flex-end; /* Optional: align right */
  font-size: 0.9rem;
}

.details {
  font-size: 0.9rem;
  opacity: 0.85;
  align-self: flex-end; /* Optional: align right */
}




.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.card-container,
.carousel-wrapper {
  overflow-x: auto;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255,255,255,0.5) transparent;
  padding-bottom: 12px; /* Space below content */
}

/* Chrome, Edge, Safari */
.card-container::-webkit-scrollbar,
.carousel-wrapper::-webkit-scrollbar {
  height: 6px; /* Thin bar */
  margin-top: 4px; /* Push it slightly away from content */
}

.card-container::-webkit-scrollbar-track,
.carousel-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.card-container::-webkit-scrollbar-thumb,
.carousel-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.card-container::-webkit-scrollbar-button,
.carousel-wrapper::-webkit-scrollbar-button {
  display: none;
}

.card {
  flex: 0 0 auto; /* fixed width */
  margin: 0 10px;
  background: #2f3360;
  border-radius: 12px;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 220px; /* or whatever your card width is */
  height: 300px; /* match the tallest card height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.message-final {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-align: center;
  margin: auto;
}

.message-final a {
  text-decoration: none;
  color: inherit; /* Keeps it consistent with card text color */
}

.poem-card {
  width: 300px; /* wider for poems */
  height: auto; /* adjust to fit content */
  max-height: 500px; /* limit if needed */
  white-space: pre-line; /* keeps line breaks from your poem text */
  overflow-y: 400px; /* scroll if poem is too long */
  line-height: 1.2;
}

.poem-card-last{width: 240px; /* wider for poems */
  height: 500px; /* adjust to fit content */
  max-height: 1000px; /* limit if needed */
  line-height: 10.6px;
  text-align: center;
  justify-content: center;
}
.poem-card-last a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: color 0.3s ease;
}

.poem-card-last a:hover {
  color: #005bb5;
}

@media (max-width: 600px) {
    .title{
      font-size: 1.6rem;
    }
    header nav a {
        font-size: 0.8rem;
    }
    header {
        flex-direction: column;
        gap: 10px;
    }
    .poem-card {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    /* Sidebar inside white box */
    .container {
        flex-direction: column; /* Stack menu on top of content */
        align-items: stretch;

    }

    .side-menu {
        flex-direction: row;
        justify-content: center;
        border-right: none;
        width: 100%;
        padding: 5px 8px; /* smaller padding */
        gap: 1px; /* smaller gap between buttons */
        position: static;
        background-color: #2c2e5a; /* matches card background */
    }

    .side-menu button {
        font-size: 1rem; /* smaller text */
        padding: 4px 8px; /* smaller button area */
    }
}

    /* Push carousel content down if needed */
    .carousel-wrapper {
        margin-top: 0;
    }

.share-section {
  text-align: center;
  margin: 40px 0;
}

.share-btn {
  display: inline-block;
  text-decoration: none; /* removes underline */
  background: linear-gradient(45deg, #0509f5, #3985ff);
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
  transform: scale(1.1); /* grow on hover */
  box-shadow: 0px 6px 20px rgba(57, 133, 255, 0.5);
}

