@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800;900&display=swap");

:root {
  --container-bgclr: #fff;
  --container-clr: #212427;
  --container-linkclr: #02a2ff;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
  background-color: #589ac0;
  border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #1b5e85;
}

* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}
body {
  scroll-behavior: smooth;
  background-color: #ffffff;
  margin-inline: auto;
}

hr {
  width: 50%;
  opacity: 0.2;
}
.main-heading {
  color: #2f98fa;
}
.second-heading {
  margin-top: -4px;
  color: #797979;
  font-size: 16px;
}

.custom-textarea {
  width: 90%;
  border-radius: 5px;
  resize: none;
  background-color: transparent;
  padding: 0.5rem 0.5rem;
  color: #6d6d6d;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 2px solid #9fdcff;
  transition: 0.3s;
}
.custom-textarea:focus {
  border-color: var(--container-linkclr);
  outline: none;
}

h1,
h4 {
  margin: 0;
}

select {
  width: 80%;
  padding: 0.25rem;
  color: #000;
  background-color: #fff;
  border-radius: 12px;
  margin-top: 0.75rem;
}

.main-container {
  width: min(88%, 80.5rem);
  margin: auto;
  display: flex;
  flex-direction: column;
  height: 120vh;
  margin-top: 1.25rem;
  background-color: #fff;
  color: #000;
  border-radius: 1rem;
  padding-block: 0.75rem;
  margin-top: 100px;
}

.top-container {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-radius: 15px;
  padding: 20px 30px;
}

#accessibility-warning {
  background-color: hsl(0, 0%, 98%);
  color: black;
  border-left: 0.35rem solid gray;
  padding: 0.45rem;
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

.text-align-center {
  text-align: center;
}

img.emoji {
  height: 1.1em;
  width: 1.1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
}

.break-all {
  /* word-break: break-all; */
}

#output-text {
  margin: 20px 0;
  font-size: 30px;
  background-color: #e2e2e2;
  border-radius: 12px;
  padding: 8px 10px;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.text-size-small {
  font-size: 0.75rem;
}

.text-size-large {
  font-size: 2rem;
}

.flex-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.allFonts {
  margin-top: 10px;
  background-color: #31adff2f;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.allFonts:hover {
  background-color: #0074f0;
  transition: 0.3s;
  color: #fff;
}

@media (max-width: 700px) {
  .flex-container {
    flex-direction: column;
    gap: 0rem;
  }

  .hero {
    flex-direction: column;
  }
  .hero > div {
    order: 2; /* Set div to appear at the bottom */
  }

  .hero > img {
    order: 1; /* Set image to appear at the top */
  }
}

/* CSS for the toast */
.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 12px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

/* Show the toast */
.toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 1s;
  animation: fadein 0.5s, fadeout 0.5s 1s;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

.all-fonts {
  flex-grow: 1; /* Allow the all-fonts container to grow and take up remaining space */
  overflow-y: auto; /* Enable vertical scrolling if content overflows */
  margin-top: 30px; /* Push the all-fonts container to the bottom */
}

.all-fonts::-webkit-scrollbar,
#font-select::-webkit-scrollbar {
  width: 0.4em;
  border-radius: 8px; /* Adjust the value as needed */
}

.all-fonts::-webkit-scrollbar-track,
#font-select::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  border-radius: 10px; /* Adjust the value to match the scrollbar */
}

.all-fonts::-webkit-scrollbar-thumb,
#font-select::-webkit-scrollbar-thumb {
  background-color: #589ac0;
  border-radius: 10px; /* Adjust the value to match the scrollbar */
}

.all-fonts::-webkit-scrollbar-thumb:hover {
  background-color: #1b5e85;
  border-radius: 10px; /* Adjust the value to match the scrollbar */
}

/* Apply a modern style to the select elements */
label {
  font-weight: 600;
  font-size: 18px;
  color: #535353;
}

select {
  padding: 8px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  background-color: transparent;
  box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
    rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;
  cursor: pointer;
  appearance: none; /* Remove default arrow icon in Firefox */
  transition: background-color 0.3s, border 0.3s, transform 0.3s;
  border: 1px solid #ffffff;
}

/* Style the options within the select elements */
select option {
  padding: 10px;
}

/* On focus, add a border to show focus state */
select:focus {
  outline: none;
  border: 1px solid #007bff;
  background-color: #fff; /* Change background color on focus */ /* Add a slight scale effect */
}

/* Add some margin between the labels and select elements */
label {
  margin-bottom: 10px;
}

/* ///////////////////////////////////////////// */

.hero {
  padding: 30px;
  padding-top: 50px;
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.hero img {
  width: 400px;
  max-width: none;
  border-radius: 20px;
}

.hero div h1 {
  font-size: 21px;
  color: #2f98fa;
}
.hero div p {
  margin-top: 15px;
  color: #535353;
  font-size: 14px;
}

.features-container {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.features {
  text-align: center;
  margin: 10px;
  padding: 40px 10px;
  /* background-color: #f7f7f7; */
  border-radius: 15px;
  max-width: 250px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: background-color 0.3s;
}

.features:hover {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  background: linear-gradient(to bottom, #ffffff, #add4ff), #fff; /* Linear gradient with white background on hover */
}

.features img {
  width: 30px;
  height: 30px;
}

.features h3 {
  width: 80%;
  margin: auto;
  font-size: 1.2em;
  color: #616161;
}

/* //////////////////////////////////////// */
.carousel-container {
  max-width: 850px;
  margin: auto;
  margin-top: 70px;
  text-align: center;
}
.carousel-container h2 {
  color: #474747;
  margin-bottom: 20px;
}
.carousel-images {
  width: 90%;
  margin: auto;
  display: flex;
  overflow: hidden;
  margin-top: 30px;
}
.carousel-images img {
  max-width: 100%;
  margin: auto;
  display: none;
  flex-shrink: 0;
  margin-bottom: 30px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.carousel-images img.active {
  display: block;
}

.carousel-buttons button {
  margin: 5px;
  font-size: 12px;
  padding: 5px 10px;
  background-color: #fff;
  color: #007bff;
  font-weight: 600;
  border: 1px solid #007bff;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s;
}
.carousel-buttons button:hover {
  background-color: #007bff;
  color: #fff;
}
.carousel-buttons button.active {
  background-color: #007bff;
  color: #fff;
}

.carousel-para p {
  width: 90%;
  margin: auto;
  display: none;
  margin-top: 20px;
}

.carousel-para p.active {
  display: block;
  font-size: 14px;
}

/* //////////////////// Footer /////////////////// */

footer {
  width: 100%;
  text-align: center;
  background-color: #292929;
  padding: 50px 0px;
}

.footer-logo {
  width: 200px;
  margin: auto;
  margin-bottom: 20px;
}
.footer-logo img {
  width: 100%;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
  font-size: 15px;
}

.footer-links a:hover {
  color: #2890ff;
}

.footer-copyright {
  font-size: 12px;
  color: #777;
  margin-top: 20px;
}

/*//////////////// This is how the tool works //////////////////*/

.tool-works-heading {
  margin-top: 30px;
  margin-bottom: 20px;
  text-align: center;
  color: #474747;
}

.tool-works {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.tool-works > div {
  margin-right: 20px;
  padding: 10px;
  border-radius: 8px;
  min-width: 200px; /* Adjust as needed */
}

.tool-works img {
  width: 100%;
  max-width: 320px;
  border-radius: 30px;
  height: auto;
}

.tool-works h3 {
  color: #666666;
  margin-top: 10px;
  font-size: 1em;
}

.tool-works p {
  color: #474747;
  margin-top: 6px;
  max-width: 300px;
  font-size: 0.8em;
}

@media screen and (max-width: 768px) {
  .hero img {
    width: 320px;
  }
  .tool-works {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tool-works > div {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .features {
    max-width: 150px;
    padding: 10px 20px;
  }
  .features h3 {
    width: 80%;
    margin: auto;
    font-size: 0.8em;
  }
}
