@import url('https://fonts.googleapis.com/css2?family=Merriweather&family=Poppins:wght@600&display=swap');
html.dark-mode {
  color-scheme: dark;
}

html.dark-mode {
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
  color: #fafafa;
}

html.dark-mode h1 {
  color: #f4c300;
}

html.dark-mode .subtitle,
html.dark-mode p,
html.dark-mode li,
html.dark-mode .file-preview {
  color: #fafafa;
}

html.dark-mode .app-container,
html.dark-mode .upload-container {
  background-color: #2b2b2b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea,
html.dark-mode input[type="text"] {
  background-color: #3a3a3a;
  color: #555;
  border-color: #f4c300;
  box-shadow: 0 1px 4px rgba(244, 195, 0, 0.3);
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
  color: #555;
}

html.dark-mode button,
html.dark-mode .btn,
html.dark-mode .nav-bar button,
html.dark-mode #menuButton,
html.dark-mode .upload-button {
  background-color: #f4c300;
  color: #333;
}

html.dark-mode button:hover,
html.dark-mode .btn:hover,
html.dark-mode .nav-bar button:hover,
html.dark-mode #menuButton:hover,
html.dark-mode .upload-button:hover {
  background-color: #d1a900;
}

html.dark-mode label {
  color: #fafafa;
}

html.dark-mode .custom-file-input {
  background-color: #3a3a3a;
  border-color: #f4c300;
}

html.dark-mode .custom-file-input:hover {
  border-color: #d1a900;
}

html.dark-mode img.download-icon {
  filter: brightness(0) saturate(0%) brightness(1.15) contrast(90%);
}

html.dark-mode img.download-icon:hover {
  filter: brightness(0) saturate(0%) brightness(1.4) contrast(110%);
}

html.dark-mode h2 {
  color: #fafafa;
}

html.dark-mode i,
html.dark-mode .fa,
html.dark-mode .fas,
html.dark-mode .far,
html.dark-mode .fal,
html.dark-mode .fad,
html.dark-mode .fab {
  color: #f4c300;
}

html.dark-mode button i,
html.dark-mode button .fa,
html.dark-mode .btn i,
html.dark-mode .btn .fa,
html.dark-mode .nav-bar button i,
html.dark-mode .upload-button i {
  color: #333 !important;
}

/* =====================
   Global Settings for Buttons and Inputs
====================== */

/* Utility Class for Hidden Elements */
.hidden {
  display: none;
}

/* =====================
   Header and Layout Adjustments
====================== */
h1 {
  color: #f4c300;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.subtitle {
  font-size: 1.2rem;
  color: #333;
  margin-top: 0.5rem;  /* Add space above subtitle */
  margin-bottom: 1rem;  /* Add space below subtitle */
  line-height: 1.6;  /* Ensure consistent line spacing */
}

p {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.4;
}

ul {
  list-style-type: disc;
  margin-bottom: 1rem;  /* Add space between list and other content */
  line-height: 1.4;
}

/* Universal Button Styles */
button, .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #f4c300;
  color: #333;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, transform 0.2s;
  border: none;
  width: 100%; /* Ensure buttons take full width of their container */
  margin-bottom: 1rem; /* Add space between buttons */
  box-sizing: border-box; /* Ensure padding does not affect width */
}

button:hover, .btn:hover {
  background-color: #d1a900;
  transform: scale(1.05);
}

button i,
.btn i {
  font-size: 2rem;
  line-height: 1;
  vertical-align: middle;
  color: #333;
}

/* =====================
   Universal Input Field Styles
====================== */
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;  /* Consistent margin at the top */
  margin-bottom: 1.2rem;  /* Consistent margin at the bottom */
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #f4c300;  /* Use consistent border color */
  border-radius: 8px;  /* Rounded corners for all inputs */
  box-shadow: 0 1px 4px rgba(244, 195, 0, 0.2);  /* Light shadow for depth */
  box-sizing: border-box; /* Ensure padding does not affect width */
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  font-family: inherit;
  color: #555;
  font-size: 0.9rem;
  opacity: 1;
}

/* =====================
   Checkbox Styling
====================== */
input[type="checkbox"] {
  accent-color: #f4c300;  /* Set the color of the checkbox when selected */
  outline: none;  /* Remove default outline */
  box-shadow: none;  /* Remove any existing shadow */
  max-width: 25px;  /* Adjust the size of the checkbox */
  width: 25px;  /* Ensure consistent width for the checkbox */
  height: 25px;  /* Set a fixed height for the checkbox */
  cursor: pointer;  /* Make it clear that it's clickable */
}

/* Add a custom style on hover or focus for accessibility */
input[type="checkbox"]:hover,
input[type="checkbox"]:focus {
  transform: scale(1.1);  /* Slightly enlarge when focused/hovered */
  transition: transform 0.2s ease-in-out;  /* Smooth transition */
}

/* Label and Checkbox Alignment */
label {
  display: block;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;  /* Space between checkbox and label text */
  font-size: 1.1rem;
  text-align: left;
  color: #333;
}

.checkbox-container {
  display: flex;
  flex-direction: column;  /* Stack items vertically */
  gap: 1rem;  /* Adds space between checkbox options */
  width: 100%;
}

/* Input field (Other) styling */
input[type="text"] {
  display: block;
  width: 100%;  /* Ensure it takes full width */
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #f4c300;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(244, 195, 0, 0.2);
  margin-top: 0.5rem;  /* Adds space between checkbox and input */
  margin-bottom: .5rem;  /* Adds space below the input field */
  color: #333;
  background-color: #fff;
}

/* =====================
   Focus State for Inputs
====================== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #d1a900;  /* Change border color on focus */
  box-shadow: 0 0 6px rgba(244, 195, 0, 0.5);  /* Add glow effect on focus */
}

/* =====================
   Centering and Layout
====================== */
.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;  /* Adds space between form elements */
  width: 100%;
  max-width: 100%;  /* Adjust container width to prevent crowding */
  margin: 0 auto;
  padding: .5rem;
}

body {
  font-family: 'Merriweather', serif;
  background: linear-gradient(135deg, #fafafa, #fff3c0);
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  overflow-x: hidden;
}

/* =====================
   Navigation Bar (Circular Buttons)
====================== */
.nav-bar {
  flex-direction: row;
  margin-top: 1.5rem;
  justify-content: space-between;
  display: flex;
  gap: 4rem;  /* Space between the buttons */
}

.nav-bar button {
  background-color: #f4c300;
  color: #333;
  border-radius: 10%;
  padding: .5rem;
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0.4rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;  /* Ensure width and height are the same for circle */
  height: 2.4rem;   /* Equal height and width for perfect circle */
}

.nav-bar button:hover {
  background-color: #d1a900;
  transform: scale(1.05);
}

/* =====================
   Fixed Menu Button (Reappears)
====================== */
#menuButtonContainer {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

#menuButton {
  background-color: #f4c300;
  color: #333;
  border-radius: 10%;
  font-size: 1.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

/* =====================
   Marketing Plan Layout Adjustments
====================== */

/* Checkbox and Input Field Alignment */
/* =====================
   Upload Page Styles
====================== */
.upload-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fafafa;
  border: 1px solid #f4c300;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.upload-section {
  margin-bottom: 2rem;
}

.upload-section h2 {
  font-size: 1.5rem;
  color: #fafafa;
  margin-bottom: 0.75rem;
}

.custom-file-input {
  display: block;
  width: 100%;
  padding: 1rem;
  text-align: center;
  border: 2px dashed #f4c300;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out;
  background-color: #fafafa;
  margin-bottom: 1rem;
}
.item-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.custom-file-input:hover {
  border-color: #d1a900;
}

.file-preview {
  font-size: 1.1rem;
  color: #333;
  margin-top: 1rem;
}

.upload-button {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: #f4c300;
  color: #333;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  margin-bottom: 1rem;
}

.upload-button:hover {
  background-color: #d1a900;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .upload-container {
    margin: 1rem;
    padding: 1rem;
  }
  .upload-section h2 {
    font-size: 1.3rem;
  }
  .upload-button {
    font-size: 1rem;
    padding: 0.75rem;
  }
}

/* =====================
   App Container
====================== */
.app-container {
  background-color: #fafafa;
  max-width: 480px;
  width: 100%;
  margin: 2rem auto;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.devotional-text {
  text-align: left;
  margin-left: .5rem; /* adjust spacing as needed */
}

/* =====================
   Download Icon PNG Filter Styling
====================== */
img.download-icon {
  filter: brightness(0) saturate(0%) brightness(0.38) contrast(120%);
  width: 2rem;
  height: 2rem;
  transition: transform 0.2s;
}

img.download-icon:hover {
  transform: scale(1.1);
  filter: brightness(0) saturate(0%) brightness(0.58) contrast(140%);
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
    text-align: center;
    align-items: flex-start;
  }

  .app-container {
    width: 100%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: none;
  }

  h1, h2 {
    font-size: 1.3rem;
    text-align: center;
  }

  p, li {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
  }

  .nav-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-bar a, .nav-bar button {
    background-color: #f4c300;
    color: #333;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    width: auto;
  }

  button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  input, textarea, select {
    font-size: 1rem;
    padding: 0.75rem;
    color: #333;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .app-container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .container,
  .checkbox-container,
  input[type="text"],
  input,
  textarea,
  select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  label {
    flex-wrap: wrap;
    word-break: break-word;
    color: #333;
  }
}
/* Remove box shadow from dark mode toggle button */
#toggleDarkMode {
  box-shadow: none !important;
}
# Icon Large Utility
.icon-lg {
  font-size: 3rem;
}