body {
  font-family: Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s;
  font-size: 18px;
}

/* All dark mode classes */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .nav-container {
  background-color: #242424;
}

body.dark-mode > footer {
  background-color: #242424;
}

body.dark-mode .logo-wrapper {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1); /* A subtle shadow but in light color for dark mode */
}

body.dark-mode .primary-menu a:hover {
  background-color: #3a3a3a;
}

body.dark-mode #text-analysis-form {
  background-color: #242424;
  border: black;
  color: #ffffff;
}

body.dark-mode #text-analysis-form > div {
  background-color: #242424;
  border: black;
  color: #ffffff;
}

body.dark-mode #text-analysis-form label:hover {
  background-color: #3a3a3a;
}

body.dark-mode .columns-dropdown-container {
  width: 100%; /* Set to the full width of its parent container */
  padding: 10px 20px;
  background-color: #242424;
  border-bottom: 1px solid #e0e0e0;
}

body.dark-mode .data-input {
  background-color: #121212;
  border: black;
  color: #ffffff;
}

body.dark-mode .file-name {
  flex-grow: 1; /* allows the filename span to take available space */
  padding: 8px 10px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background-color: #121212;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.dark-mode h1 {
  color: #ffffff;
}

body.dark-mode h4 {
  color: #ffffff;
}

body.dark-mode .choices__inner {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .choices__input {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .choices__list.choices__list--dropdown.is-active {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .styled-dropdown {
  color: #ffffff;
  background-color: #121212;
}

body.dark-mode #columns-dropdown {
  color: #ffffff;
  background-color: #121212;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background-color: #f6f6f6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-menu ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.primary-menu a {
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.primary-menu a:hover {
  background-color: #e5e5e5;
}

body.light-mode {
  background-color: #ffffff;
  color: #333333;
}

.header-navigation-wrapper {
  display: flex;
  justify-content: space-between;
  padding: 20px 50px;
  background-color: #333;
}

.primary-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.primary-menu a {
  color: white;
  text-decoration: none;
}

.primary-menu a:hover {
  text-decoration: underline;
}

.logo {
  width: 50px;
  height: 50px;
  background-size: contain; /* This will scale the image to fit inside without cropping */
  background-repeat: no-repeat; /* To prevent repeating if the image is smaller than the container */
  border-radius: 5px;
  margin: 0 5px;
}

.content-container {
  margin: 20px auto;
  padding: 20px;
}

footer {
  background-color: #f7f7f7;
  padding: 20px 50px;
}
.logo-bg {
  width: 150px;
  height: 150px;
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  flex-grow: 1;
  transition: all 0.3s ease;
  object-fit: cover;
  background-size: contain; /* Ensures the logo fits within the div */
  background-repeat: no-repeat; /* Ensures the logo doesn't repeat */
  background-position: 10px 20px;
}
.header-logo {
  max-width: 100px; /* Adjust this based on your logo's size */
  height: auto; /* Maintains the aspect ratio */
  margin-right: 10px; /* Space between the logo and the title */
  vertical-align: middle; /* To vertically center the logo with the title */
  border: 1px solid #eee; /* Or any other color */
  background-color: #ffffff; /* Or any other color */
  border-radius: 5px; /* Optional: to give it rounded corners */
}

.main-container {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

.squares-column {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
}

.text-strong {
  font-weight: bold;
  margin-top: 20px;
}

.text-uppercase {
  text-transform: uppercase;
}

/* Color Classes */

.background-light-blue {
  background-color: rgb(39, 192, 206);
}

.background-red {
  background-color: rgb(254, 45, 45);
}

.background-green {
  background-color: #d3d329;
}

.background-blue {
  background-color: #55629a;
}

.background-purple {
  background-color: #783878;
}
.background-aqua {
  background-color: #799b30;
}
.background-orange {
  background-color: #be7129;
}
.background-pink {
  background-color: #be2974;
}
/* Icon sizing (assuming you have some sort of font icon library) */
.text-size-60 {
  font-size: 60px;
}
.two-column-layout {
  display: flex;
  align-items: center; /* Centers the logo vertically */
  justify-content: space-between; /* Gives some space between the two columns */
  padding: 20px 0; /* Some padding for aesthetics */
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between squares */
}

.grid .square {
  transition: transform 0.3s, box-shadow 0.3s;
  width: calc(50% - 10px); /* 50% width for two columns */
  box-sizing: border-box; /* To ensure padding doesn't affect width */
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* This will center the content vertically */
  text-decoration: none;
  color: white;
  position: relative;
}

.hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  background-color: rgba(0, 0, 0, 0.8); /* semi-transparent black */
  color: white; /* text color */
  opacity: 0; /* hidden initially */
  transition: opacity 0.3s;
  pointer-events: none; /* to make sure the hover-content doesn't interfere with the clickability of the square */
}
.grid .square:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}
.grid .square:hover .hover-content {
  opacity: 1; /* show on hover */
}

.hover-content img {
  max-width: 70%;
  max-height: 70%;
}

.hover-content p {
  margin: 0;
  padding: 0;
  text-align: center;
}

.logo-column {
  flex: 1.3; /* Takes up 1 fraction of the space */
  display: flex;
  flex-direction: column; /* This will stack children vertically */
  align-items: center; /* Horizontally centers the logo and text */
  justify-content: center; /* Vertically centers the logo and text */
  text-align: center;
  padding: 20px;
}

.logo-wrapper {
  display: inline-block;
  background-color: white;
  padding: 20px; /* Space around the logo */
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* A subtle shadow to make the logo pop */
  margin-bottom: 20px; /* Some space below the logo */
  transition: box-shadow 0.3s;
}

.page-logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Center the logo inside the wrapper */
}

.logo-description {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  text-align: left;
  margin: 0 auto;
  max-width: 80%;
}

.freetxt-branding {
  font-family: "Arial", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.freetxt-branding h2 {
  font-size: 2.5em;
  color: #2c3e50;
  margin-bottom: 20px;
}

.freetxt-branding .lead {
  font-size: 1.2em;
  color: #34495e;
  margin-bottom: 40px;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 15px 0;
  border-top: 1px solid #ecf0f1;
}

.feature:last-child {
  border-bottom: 1px solid #ecf0f1;
}

.feature i {
  font-size: 2em;
  color: #3498db;
  margin-right: 15px;
  flex-shrink: 0; /* Prevents the icons from shrinking */
}

.feature p {
  font-size: 1.1em;
  color: #7f8c8d;
  margin: 0;
  text-align: left;
}

.feature strong {
  color: #34495e;
  margin-right: 5px;
}

.toggle-container {
  position: relative;
  width: 60px;
  height: 30px;
}

.checkbox {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
  border: 2px solid #e5e5e5;
  border-radius: 15px;
  transition: background-color 0.3s;
}

.label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: left 0.3s;
}

.checkbox:checked + .label {
  background-color: #242424;
}

.checkbox:checked + .label::before {
  left: 32px;
}

/* Dark Mode Styles */
#darkModeToggle:checked ~ * {
  /* This selector means any sibling after the checkbox will get the dark mode styles. 
       The "*" wildcard will select all elements, but you can narrow it down if you prefer. */

  color: #f6f6f6; /* Set default text color for dark mode */
}

#darkModeToggle:checked ~ .freetxt-branding h2 {
  color: #f6f6f6;
}

#darkModeToggle:checked ~ .freetxt-branding .lead {
  color: #c1c1c1;
}

#darkModeToggle:checked ~ .feature p {
  color: #b2b2b2;
}

#darkModeToggle:checked ~ .feature strong {
  color: #f6f6f6;
}

#darkModeToggle:checked ~ body {
  background-color: #2c3e50;
}
.img-fluid {
  height: 60px;
  width: auto;
  max-width: 100%; /* Ensure the image does not go outside its container */
}

.col-md-1 {
  padding: 5px;
  border: 1px solid #f1f1f1;
  display: flex;
  align-items: center; /* This aligns the items vertically */
  justify-content: center; /* This aligns the items horizontally */
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.col-md-1:hover {
  transform: scale(1.05);
}

footer {
  background-color: #f9f9f9;
}

.footer-logo {
  width: 100%; /* Let the logos occupy the entire width of their container */
  margin: 0 auto;
  display: block;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f4f4f4;
}

.header-navigation-wrapper {
  background-color: #222;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 767px) {
  .footer-logo {
    width: 20%; /* This will make the image take half the width of the column on smaller screens */
    margin: 0 auto; /* This will center the image in the column */
  }
}

.text-link {
  color: #0275d8;
  text-decoration: none;
}

.text-link:hover {
  color: #0a5bd1;
  text-decoration: none;
}
