/* General Styles */
body {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%; /* Default width for smaller screens */
  max-width: 1600px; /* Limit the maximum width for readability */
  margin: 50px auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .container {
    width: 95%; /* Slightly narrower for smaller devices */
  }
}

@media (min-width: 1600px) {
  .container {
    width: 95%; /* Allow more width for ultra-wide screens */
  }
}

h1, h2, h3 {
  color: #1a5f7a;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 15px;
}

h1.poem-name {
  font-size: 30px; 
  font-weight: bold;
  color: #1a5f7a;
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: center;
}

h2.poet-name {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  margin-top: 0px;
  margin-bottom: 0px;
  text-align: center;
}

h3.dates-between {
  font-size: 22px;
  font-weight: bold;
  color: #34495e;
  margin-top: 0px;
  margin-bottom: 10px;
  text-align: center;
}

.h1-style {
    font-size: 2em;          /* Same size as h1 */
    font-weight: bold;       /* Same weight as h1 */
    font-family: inherit;    /* Same font as h1 */
    text-decoration: none; 
    margin-top: 0;
    margin-bottom: 0;
}

.h1-style a:hover {
  color: #1abc9c; /* Optional: Define a hover colour if desired */
  text-decoration: none; /* Optional: Removes the underline if you prefer */
}

/* Random Playlist Styles */
#currentPoem.current-poem-info {
  color: #333333;
}

#currentPoem .poem-name {
  color: #1a5f7a;
}

#currentPoem .poet-name {
  color: #16a085;
}

#currentPoem .dates-between {
  color: #34495e;
}

#currentPoemName a {
  color: #1a5f7a;
}

#currentPoetName a {
  color: #16a085;
}

#currentPoemName a:hover {
  color: #f39c12;
}

#currentPoetName a:hover {
  color: #f39c12;
}
/* Additional styles for other link states */


h2 a {
  color: #16a085; /* A slightly darker teal for better contrast */
  text-decoration: none; /* Removes the underline from links */
  transition: color 0.3s ease; /* Smooth color transition for hover effect */
}

h2 a:hover {
  color: #1abc9c; /* A lighter teal for hover state */
  text-decoration: none; /* Adds underline on hover for better usability */
}

a:hover {
  color: #f39c12;
}

a:active {
  color: #c0392b;
}

/* Lists */
ul {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 1.5em;
}

ul li {
  margin-bottom: 0.5em;
  line-height: 1.6;
  font-size: 18px;
}

ul.custom-bullets {
  list-style-type: none;
  padding-left: 0;
}

ul.custom-bullets li {
  position: relative;
  padding-left: 40px;
}

ul.custom-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1a5f7a;
  font-size: 1.2em;
}

ol {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 1.5em;
}

ol li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.4;
  font-size: 18px;
}

/* Poem Container Styles */
.poem-container {
  width: 80%;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.poem-container p {
  margin: 0 0 1em 0;
  line-height: 1.6;
}

/* Analysis Container Styles */
.analysis-container {
  width: 80%;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.analysis-container p {
  margin: 0 0 1em 0;
  line-height: 1.6;
}

/* Poet Poems Container Styles */
.poet-container {
  width: 80%;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.poet-container p {
  margin: 0 0 1em 0;
  line-height: 1.6;
}

/* Search Input Styles */
.search-container {
  text-align: center;
  margin: 20px 0;
}

.search-input {
  width: 80%;
  max-width: 500px;
  padding: 10px;
  border: 2px solid #1a5f7a;
  border-radius: 5px;
  font-size: 16px;
}

/* Search Results */
.search-results {
  margin: 20px 0;
}

/* Search Result Item Styles */
.search-result-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.search-result-item a {
  color: #1a5f7a;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.search-result-item a:hover {
  text-decoration: underline;
  color: #16a085;
}

/* No Results Message */
.search-result-item p {
  text-align: center;
  color: #777;
  font-size: 16px;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

/* Link Styles */
a {
  color: #16a085;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Pagination Styles */
.pagination {
  text-align: center;
  margin: 20px 0;
}

.pagination a {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background-color: #1a5f7a;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.pagination a.active, .pagination a:hover {
  background-color: #16a085;
}

/* Base button styling */
button {
  background-color: #1a5f7a;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Button hover effect */
button:hover {
  background-color: #16a085;
  transform: scale(1.05);
}

/* Button focus effect */
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.5);
}

/* Disabled button styling */
button:disabled {
  background-color: #d6d6d6;
  color: #a0a0a0;
  cursor: not-allowed;
  transform: none;
}

/* Custom Button Styles */
.button-container {
  text-align: center;
  margin: 20px 0;
}

.button-container a {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: #1a5f7a;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.button-container a:hover {
  background-color: #16a085;
}

.button-container .membership-button {
  background-color: #e67e22;
}

.button-container .membership-button:hover {
  background-color: #d35400;
}

/* Share Buttons Styles */
.share-buttons {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.share-buttons h3 {
  margin-bottom: 10px;
}

.share-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: none;
  font-size: 18px;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
}

.share-btn:hover {
  background-color: #e0e0e0;
}

.share-btn i {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.share-btn.bluesky { color: #1185FE; }
.share-btn.facebook { color: #3b5998; }
.share-btn.twitter { color: #1da1f2; }
.share-btn.linkedin { color: #0077b5; }
.share-btn.reddit { color: #ff4500; }
.share-btn.pinterest { color: #bd081c; }
.share-btn.email { color: #333333; }
.share-btn.whatsapp { color: #25d366; }

.button-line,
.time-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.button-line a,
.time-filter a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1a5f7a;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-line a:hover,
.time-filter a:hover {
  background-color: #16a085;
  transform: scale(1.05);
}

.filter-buttons,
.dashboard-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-button,
.dashboard-button {
  padding: 10px 15px;
  background-color: #1a5f7a;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-button:hover,
.dashboard-button:hover {
  background-color: #16a085;
}

.filter-button.active,
.dashboard-button.active {
  background-color: #2ecc71;
  font-weight: bold;
}

.toggle-button {
  background-color: #1a5f7a;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-button:hover {
  background-color: #16a085;
}

.toggle-button i {
  margin-right: 8px;
}

.time-filter a.active {
  background-color: #ddd;
  color: #1a5f7a;
}

/* Button styles */
.delete-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.delete-button:hover {
  background-color: #f52105;
  color: white;
  text-decoration: none;
}

/* General form styling */
#poemSelectorForm {
  width: 80%;
  /* max-width: 1100px; */
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#poemSelectorForm label {
  font-size: 1.2em;
  font-weight: bold;
  display: block;
  margin-bottom: 15px;
}

#poemList {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  background-color: #fff;
}

#poemList li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.poem-checkbox {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1a5f7a;
}

#playSelectedButton {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #1a5f7a;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

#playSelectedButton:hover {
  background-color: #16a085;
}

@media (max-width: 1100px) {
  #poemSelectorForm {
    padding: 15px;
  }
  
  #poemSelectorForm label {
    font-size: 1.1em;
  }
  
  #playSelectedButton {
    font-size: 1em;
  }
}

.current-poem-info {
  margin: 10px 0;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: #333;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.current-poem-info a {
  color: #1a5f7a;
  text-decoration: none;
}

.current-poem-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .current-poem-info {
    font-size: 16px;
    padding: 8px;
  }
}

.version-selector-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

.version-selector-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 15px;
}

.selector-group {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.version-selector {
  width: auto;
  min-width: 200px;
  padding: 10px 30px 10px 10px;
  font-size: 16px;
  border: 2px solid #1a5f7a;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

.version-selector:hover, .version-selector:focus {
  border-color: #16a085;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.25);
}

.version-selector option {
  padding: 10px;
}

.play-all-button {
  padding: 10px 14px;
  font-size: 16px;
  border: 2px solid #2ecc71;
  border-radius: 5px;
  background-color: #2ecc71;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  margin-top: -15px;
}

.play-all-button:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.new-donate-btn {
  padding: 10px 14px;
  font-size: 16px;
  border: 2px solid #f1c40f;
  border-radius: 5px;
  background-color: #f1c40f;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  margin-top: -15px;
}

.new-donate-btn:hover {
  background-color: #d4ac0d;
  border-color: #d4ac0d;
}

.new-forum-btn {
  padding: 10px 14px;
  font-size: 16px;
  border: 2px solid rgb(12, 161, 242);
  border-radius: 5px;
  background-color:rgb(12, 161, 242);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  margin-top: -15px;
}

.new-forum-btn:hover {
  background-color: rgb(4, 73, 110);;
  border-color: rgb(4, 73, 110);;
}

.new-random-btn {
  padding: 12px 12px;
  font-size: 16px;
  border: 2px solid orange;
  border-radius: 5px;
  background-color: orange;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  margin-top: -15px;
}

.new-random-btn:hover {
  background-color: #e16e11;
  border-color: #e16e11;
}

.new-log-btn {
    padding: 10px 10px;
    font-size: 16px;
    border: 2px solid #fc5e5e99;
    border-radius: 5px;
    background-color: #FFC0CB;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    margin-top: -15px;
  }
  
  .new-log-btn:hover {
    background-color: #7e0202;
    border-color: #7e0202;
  }

@media (max-width: 1100px) {
  .version-selector-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .selector-group {
    width: 100%;
  }

}

.actions {
  vertical-align: top;
}

.actions a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-bottom: 10px;
  margin-top: 5px;
}

.edit-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #2ecc71;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.edit-button:hover {
  background-color: #27ae60;
}

.delete-button {
  background-color: #e74c3c;
}

.delete-button:hover {
  background-color: #c0392b;
}

.actions a:last-child {
  margin-bottom: 0;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.highlight-code {
  font-size: 1.2em;
  font-weight: bold;
  background-color: #f0f0f0;
  padding: 5px;
  border-radius: 3px;
}

.warning-message {
  color: #e67e22;
  font-weight: bold;
}
 input[type="submit"] {
  background-color: #2ecc71;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover {
  background-color: #27ae60;
  transform: scale(1.05);
}

.poem-image {
  text-align: center;
  margin: 20px 0;
}

.poem-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.responsive-image {
  width: 100%;
  height: auto;
  max-width: 1100px;
  display: block;
  margin: 0 auto;
}

.star-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.star-container i {
  font-size: 24px;
  color: #f39c12;
  margin: 0 10px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 16px;
}

input, textarea, select {
  margin-bottom: 15px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

.home-link {
  position: absolute;
  top: 20px;
  left: 20px;
  text-decoration: none;
  color: #1a5f7a;
  font-size: 18px;
  font-weight: bold;
}

.home-link:hover {
  text-decoration: underline;
}

.quote {
  font-style: italic;
  color: #555;
  border-left: 3px solid #1a5f7a;
  padding-left: 10px;
}

.popular-poem-list,
.poet-poem-list,
.top-poet-list,
.latest-poem-list {
  padding-left: 20px;
}

.popular-poem-list ul,
.poet-poem-list ul,
.top-poet-list ul,
.latest-poem-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.popular-poem-list li,
.poet-poem-list li,
.top-poet-list li,
.latest-poem-list li {
  margin-bottom: 15px;
}

.popular-poem-list a,
.poet-poem-list a,
.top-poet-list a,
.latest-poem-list a {
  text-decoration: none;
  color: #1a5f7a;
  font-size: 18px;
  font-weight: bold;
}

.popular-poem-list a:hover,
.poet-poem-list a:hover,
.top-poet-list a:hover,
.latest-poem-list a:hover {
  text-decoration: underline;
}

.social-media-bar {
  text-align: center;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-media-bar a {
  color: inherit;
  font-size: 30px;
  transition: transform 0.2s ease, color 0.2s ease;
  text-decoration: none;
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
}

.social-media-bar a:hover {
  transform: scale(1.1);
  color: #e67e22;
}

.v2m-footer {
  background-color: #1a5f7a;
  color: #fff;
  padding: 20px;
  margin-top: 20px;
}

.v2m-footer ul {
  list-style-type: none;
  padding: 0;
}

.v2m-footer li {
  margin-bottom: 10px;
}

.v2m-footer a {
  color: #fff;
  text-decoration: none;
}

.v2m-footer a:hover {
  text-decoration: underline;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left, .footer-right {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-left {
  margin-right: 20px;
}

.footer-right {
  display: flex;
  flex-direction: column;
}

.footer-links, .quick-links {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 20px;
  text-align: right; /* Aligns text to the right */
  align-items: flex-end; /* Aligns flex items to the right */
}

.footer-copyright {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  flex-basis: 100%;
}

.footer-left h3 {
  text-align: left;
  color: #fff;
}

.quick-links h3 {
  text-align: right;
  color: #fff;
}

@media (max-width: 768px) {
  .footer-content {
      flex-direction: column;
  }
  
  .footer-left, .footer-right {
      width: 100%;
  }
}

.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 0;
  background-color: #1a5f7a;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
}

.back-link a:hover {
  background-color: #16a085;
  text-decoration: none;
  transform: scale(1.05);
}

blockquote {
  font-style: italic;
  border-left: 3px solid #1a5f7a;
  padding-left: 20px;
  margin-left: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

.titles {
  font-style: italic;
  color: #34495e;
  text-align: center;
  margin-bottom: 30px;
}

.audio-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  text-align: center;
  margin-bottom: 20px;
}

#currentTrack {
  font-weight: bold;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

.button-container {
  font-weight: 500;
  gap: 10px;
  margin-top: 4px;
  justify-content: space-between;
}

.control-button {
  background-color: #f0f0f0;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  transition: background-color 0.3s ease;
}

.control-button:hover {
  background-color: #e0e0e0;
}

.control-button:focus {
  outline: none;
}

.small-grey-button {
  background-color: #ccc;
  color: #333;
  border: 1px solid #aaa;
  padding: 5px 10px;
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  width: fit-content;
}

.small-grey-button:hover {
  background-color: #bbb;
  border-color: #999;
}

#playlistManagement {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

#savePlaylistButton,
#loadPlaylistButton {
  background-color: #1a5f7a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

#savePlaylistButton:hover,
#loadPlaylistButton:hover {
  background-color: #16a085;
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 5px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal h2 {
  margin-top: 0;
  color: #333;
}

.large-code-content {
  max-width: 1100px;
  width: 90%;
  text-align: center;
}

.code-container {
  margin-bottom: 20px;
}

#largeCodeDisplay, #playlistCodeDisplay, .code-display {
  font-size: 24px;
  font-weight: bold;
  background-color: #f0f0f0;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  word-break: break-all;
}

.copy-button {
  background-color: #1a5f7a;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.copy-button:hover {
  background-color: #16a085;
}

@media (max-width: 768px) {
  #playlistManagement {
    flex-direction: column;
    align-items: center;
  }

  #savePlaylistButton,
  #loadPlaylistButton {
    width: 100%;
   /* max-width: 200px; */
  }
}

.success-message {
  width: 100%;
  margin: 10px auto;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #d4edda;
  border: 1px solid #d4edda;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.error-message {
  width: 80%;
  margin: 10px auto;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.error-message p {
  color: #510e0e;
  font-size: 16px;
  margin: 0 0 1em 0;
  line-height: 1.6;
}

.social-sharing {
  margin-top: 20px;
}

.social-sharing a {
  display: inline-block;
  margin-right: 10px;
  padding: 10px 15px;
  background-color: #1a5f7a;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.social-sharing a:hover {
  background-color: #16a085;
}

.copy-section input[type="text"] {
  width: 60%;
  padding: 5px;
  margin-right: 5px;
}

.copy-btn {
  padding: 5px 10px;
  background-color: #2ecc71;
  color: white;
  border: none;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: #27ae60;
}

.sortable-list {
  list-style-type: none;
  padding: 0;
}

.sortable-item {
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  margin-bottom: 5px;
  cursor: move;
  transition: background-color 0.3s;
}

.sortable-item:hover {
  background-color: #e0e0e0;
}

#playSelectedButton2 {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#playSelectedButton2:hover {
  background-color: #27ae60;
}

#playSelectedButton2:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.warning {
  color: #e74c3c;
  font-weight: bold;
}

.poem {
  margin-bottom: 10px;
  padding: 5px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.poem h4 {
  margin: 0;
  padding: 0;
}

.poem p {
  margin: 5px 0 0 0;
  font-style: italic;
}

/* Quiz-specific styles */
#game-container {
  width: 100%;
  margin: 0 auto;
}

.question-box {
  background-color: #f0f0f0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
}

.answer-options {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.answer-button {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-align: left;
  transition: background-color 0.3s;
}

.answer-button:hover {
  background-color: #27ae60;
}

.answer-button.selected {
  background-color: #3498db;
}

.answer-button.correct {
  background-color: #2ecc71;
  color: white;
}

.answer-button.incorrect {
  background-color: #e74c3c;
  color: black;
}

#quiz-results {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

#score-display {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

#feedback-message {
  margin-bottom: 20px;
}

#result-image {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px;
}

#result-image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.retake-quiz-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.retake-quiz-btn:hover {
  background-color: #27ae60;
}

#quiz-feedback {
  background-color: #f0f0f0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  display: none;
}

#quiz-feedback.correct {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

#quiz-feedback.incorrect {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

#next-question-btn, #show-score-btn {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.answer-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contact form */
#contact {
  margin-top: 2em;
}

#contact form {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
}

#contact label {
  margin-top: 1em;
}

#contact input,
#contact textarea {
  padding: 0.5em;
  margin-top: 0.5em;
}

#contact button {
  margin-top: 1em;
  padding: 0.5em;
  background-color: #2ecc71;
  color: white;
  border: none;
  cursor: pointer;
}

#contact button:hover {
  background-color: #27ae60;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.poem-card {
  background-color: white;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.poem-image {
  width: 100%;
  height: auto;
  display: block;
}

.poem-info {
  padding: 15px;
}

.poem-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.poet-name {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px 0;
  text-align: center;
}

.poem-description {
  font-size: 14px;
  color: #333;
  margin: 0;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CSS for the improved theme selector with right-aligned checkboxes */
  #themeSelector {
    margin-top: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#themeSelector h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.theme-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-radius: 4px;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

.theme-option:hover {
    background-color: #f0f0f0;
}

.theme-option label {
    flex-grow: 1;
    margin-right: 10px;
    cursor: pointer;
}

.theme-option input[type="checkbox"] {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

.theme-option input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.theme-option input[type="checkbox"]:checked::before {
    display: block;
    text-align: center;
    color: white;
    font-size: 14px;
    line-height: 20px;
}

#themeSubmit {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#themeSubmit:hover {
    background-color: #45a049;
}

.playlist-list {
    margin-top: 20px;
}

.playlist-item {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.playlist-item a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.playlist-item a:hover {
    text-decoration: underline;
}

.playlist-date {
    color: #777;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }
}
.theme-option .playlist-count {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}
.preview-message {
  width: 80%;
  max-width: 1100px;
  margin: 10px auto;
  padding: 20px;
  background-color: #e9f5a5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.preview-message p {
  color: #510e0e;
  font-size: 16px;
  margin: 0 0 1em 0;
  line-height: 1.6;
}
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Button styles */
.buy-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #1a5f7a;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.buy-button:hover {
  background-color: #16a085;
  color: white;
  text-decoration: none;
}

/*Membership Alert Buttons*/
.alert-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.free-account-button {
  background-color: #27ae60;
  color: #fff;
}

.free-account-button:hover, .free-account-button:focus {
  background-color: #2ecc71;
}

.log-in-button {
  background-color: #FFC0CB;
  color: #fff;
}

.log-in-button:hover, .log-in-button:focus {
  background-color: #c0392b;
}

/* Responsive design */
@media (max-width: 768px) {
  .alert-container {
      flex-direction: column;
  }

}

#amember-cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
#amember-cookie-notice a {
  color: #4CAF50;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
  padding: 5px 10px;
  border: 1px solid #4CAF50;
  border-radius: 3px;
  transition: all 0.3s ease;
}
#amember-cookie-notice a:hover {
  background-color: #4CAF50;
  color: #fff;
}
.latest-poem-list li.not-live,
    .latest-poem-list li.not-live a {
      color: red;
    }

    .latest-poem-list li.not-live a:hover {
      color: darkred;
    }
    .playlist-image {
      max-width: 600px;
      margin: 20px auto;
      cursor: pointer;
  }
  .playlist-image img {
      width: 100%;
      height: auto;
      border-radius: 8px;
  }
  #currentPoemImage {
      margin-top: 20px;
      text-align: center;
  }
  #codeEntryForm {
      text-align: center;
      margin-top: 20px;
  }
  #codeEntryForm input[type="text"] {
      padding: 10px;
      font-size: 16px;
  }
  #codeEntryForm input[type="submit"] {
      padding: 10px 20px;
      font-size: 16px;
      background-color: #4CAF50;
      color: white;
      border: none;
      cursor: pointer;
  }
  #codeEntryForm input[type="submit"]:hover {
      background-color: #45a049;
  }

  .like-rating-container {
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    }

    .like-button {
        background-color: #16a085ba;
        border: none;
        padding: 10px 15px;
        margin-bottom: 15px;
        cursor: pointer;
        transition: background-color 0.3s;
        width: 100%;
        text-align: center;
    }

    .like-button.liked {
        background-color: #ff6b6b;
        color: white;
    }

    .rating-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .star-rating {
        font-size: 30px;
        color: #ddd;
        cursor: pointer;
    }

    .star-rating .star {
        display: inline-block;
        transition: color 0.2s ease-in-out;
    }

    .star-rating .star.active {
        color: #FFD700;
    }

    .liked-poem {
      margin-bottom: 10px;
      padding: 5px;
      border: 1px solid #ddd;
      border-radius: 5px;
  }
  .unlike-button {
      background-color: #ff4d4d;
      color: white;
      border: none;
      padding: 2px 5px;
      border-radius: 3px;
      cursor: pointer;
      font-size: 0.8em;
  }
  .unlike-button:hover {
      background-color: #ff3333;
  }
  .greyed-out {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comment Section Styles */
.comment-section {
  width: 80%;
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comment-section h3 {
  color: #1a5f7a;
  text-align: center;
  margin-bottom: 20px;
}

#commentForm {
  margin-bottom: 30px;
}

#commentForm textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #1a5f7a;
  border-radius: 5px;
  font-size: 16px;
  resize: vertical;
}

#commentForm button {
  display: block;
  width: 200px;
  margin: 10px auto 0;
  padding: 10px 20px;
  background-color: #1a5f7a;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#commentForm button:hover {
  background-color: #16a085;
}

#commentsList {
  list-style-type: none;
  padding: 0;
}

.comment {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}

.comment p {
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.comment small {
  display: block;
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
}

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.edit-comment,
.delete-comment {
  background-color: #1a5f7a;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.edit-comment:hover,
.delete-comment:hover {
  background-color: #16a085;
}

.delete-comment {
  background-color: #e74c3c;
}

.delete-comment:hover {
  background-color: #c0392b;
}

@media (max-width: 768px) {
  .comment-section {
    width: 95%;
  }
  
  #commentForm button {
    width: 100%;
  }
}

#commentForm label {
  display: block;
  margin-bottom: 5px;
  color: #1a5f7a;
  font-weight: bold;
}

#commentText::placeholder {
  color: #999;
  font-style: italic;
}
.comment-intro {
  margin-bottom: 20px;
  text-align: center;
  color: #555;
}

.login-prompt {
  text-align: center;
  margin: 20px 0;
  font-style: italic;
}

.login-prompt a {
  color: #1a5f7a;
  text-decoration: underline;
}

.edit-form {
  margin-top: 10px;
}

.edit-textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #1a5f7a;
  border-radius: 5px;
  font-size: 16px;
  resize: vertical;
  margin-bottom: 10px;
}

.save-edit,
.cancel-edit {
  padding: 5px 10px;
  margin-bottom: 25px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.save-edit {
  background-color: #1a5f7a;
  color: white;
  margin-right: 10px;
}

.save-edit:hover {
  background-color: #16a085;
}

.cancel-edit {
  background-color: #e74c3c;
  color: white;
}

.cancel-edit:hover {
  background-color: #c0392b;
}

.comment-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}
.comment-text {
  margin-bottom: 10px;
}
.comment-meta {
  font-size: 0.9em;
  color: #666;
}
.edit-form {
  display: none;
}

.donate-container {
  text-align: center;
  margin: 20px 0;
  }

  .donate-container a {
    display: flex;
    justify-content: center;
    align-items: center;
  padding: 5px 10px;
  margin: 0px;
  background-color: #f1c40f;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  }

  .donate-container a:hover {
  background-color: #d4ac0d;
  }

  .donate-button {
    background-color: #f1c40f;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
  }

  /* Button hover effect */
    .donate-button:hover {
    background-color: #d4ac0d;
    transform: scale(1.05);
  }

  .download-button {
    background-color: #28a745;
    color: white;
}
.download-button:hover {
    background-color: #218838;
    color: #fff;
}

/* Mobile Footer Toggle Styles */
.mobile-footer-toggle {
  display: none;
}

.footer-toggle-btn {
  background-color: #1a5f7a;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.footer-toggle-btn:hover {
  background-color: #16a085;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-toggle-btn i {
  font-size: 18px;
}

.footer-content-container {
  transition: all 0.3s ease;
}

/* Mobile Styles - Hide footer content and show toggle button */
@media (max-width: 768px) {
  .mobile-footer-toggle {
    display: block;
    padding: 10px;
  }
  
  .footer-content-container {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
  }
  
  .footer-content-container.footer-content-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  .v2m-footer {
    padding: 0;
    margin-top: 20px;
  }
  
  .footer-content {
    padding: 20px;
  }
  
  .footer-copyright {
    padding: 0 20px 20px 20px;
  }
}

/* Desktop Styles - Show footer content and hide toggle button */
@media (min-width: 769px) {
  .mobile-footer-toggle {
    display: none;
  }
  
  .footer-content-container {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
}