::-webkit-scrollbar-thumb {
  background: #405de6;
}

::-webkit-scrollbar-track {
  background: #f9f9f9;
}

::-webkit-scrollbar {
  height: 2px;
  width: 2px;
}

*,
body,
html {
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
}

body,
html {
  padding: 0;
  margin: 0;
  height: 100%;
  line-height: 1.5;
}

header .site-title span {
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff8c;
  font-size: 12px;
  margin-bottom: 5px;
  display: block;
}

header a {
  font-family: 'Dancing Script', cursive;
  padding: 5px 0 0;
  display: block;
  font-size: 25px;
  color: #fff;
  letter-spacing: 3px;
}

.container {
  text-align: center;
  background: #f7fbff;
  width: 80%;
  margin: auto;
}

.container {
  text-align: center;
}

.footer {

  font-family: "Rubik", sans-serif;
  width: 99%;
  text-overflow: ellipsis;
  overflow: hidden;
  background: #f4f5f7;
  padding-bottom: 5px;
  margin: 0 auto;
}

.footer p {
  color: #444;
  font-weight: 300;
  line-height: 1.8em;
  text-align: left;
  margin: 5px;
  margin-left: 15px;
  margin-right: 15px;
}

.footer h1 {
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  margin-left: 15px;
  margin-right: 15px;
}

.footer h2,
h3 {
  text-align: left;
  margin: 5px;
  margin-left: 15px;
  margin-right: 15px;
}

.imp-pages {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  margin: 5px;
}

.pages {
  float: left;
  padding: 10px;
  background: #6d46cb;
  color: white;
  text-align: center;
}

.pages a {
  text-decoration: none;
  color: white;
}

style attribute {
  text-align: left;
}

/*other-sites*/
.other-sites a {
  border: 1px solid #fff;
  background: cornflowerblue;
  color: #fff;
  text-decoration: none;
  justify-content: center;
  display: block;
  padding: 4px 6px;
  border-radius: 3px;
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 5px;
}

.other-sites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

body#layout .hidden,
body#layout .invisible {
  display: inherit;
}

body#layout .navigation {
  display: none;
}

body#layout .page,
body#layout .sidebar_top,
body#layout .sidebar_bottom {
  left: inherit;
  position: relative;
  vertical-align: top;
}

body#layout .page {
  float: right;
  margin-left: 20px;
  width: 55%;
}

body#layout .sidebar-container {
  float: right;
  width: 40%;
}

body#layout .hamburger-menu {
  display: none;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  background: #ecf0f8;
}

header {
  padding: 5px;
  background: linear-gradient(to right, #00804d, #0b3c28);
  text-align: center;
  position: relative;
}

header a {
  text-decoration: none;
  color: #fff;
  font-size: 20px;
}

.text-box {
  z-index: 1;
  padding: 0px 0 5px 0;
}

textarea.fancytext {
  display: block;
  width: 80%;
  padding-top: 25px;
  line-height: 1.5;
  text-align: center;
  font-size: 17px;
  outline: none;
  border: 2px solid #004d7a;
  resize: none;
  margin: auto;
  border-radius: 10px;
}

div#result {
  text-align: center;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.input-text input {
  width: 100%;
  padding: 8px 0 15px 15px;
  font-size: 18px;
  outline: none;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-overflow: ellipsis;
}

div#result h2 {
  text-align: center;
  font-size: 21px;
  margin: 20px auto;
  color: #000000;
  width: 100%;
  /* Force new line in flex container */
}

span.name {
  position: absolute;
  bottom: 3px;
  left: 15px;
  font-size: 12px;
  color: #858585;
  text-transform: capitalize;
}

.input-text {
  position: relative;
  border: 1px solid #45272b;
  border-radius: 0 10px;
  margin: 10px 1%;
  padding: 10px 0px;
  background: #fff;
  cursor: pointer;
  display: block;
  flex-grow: 1;
  width: 31%;
  /* 3 columns */
}

.download-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: url('../img/download-icon.png') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 10;
}

.input-text:hover .download-btn {
  opacity: 1;
}

.download-btn:hover {
  transform: scale(1.1);
}

.input-text:hover input {
  color: #008793;
  background: #fcfde8;
}

:hover.input-text {
  background: #fcfde8;
}

.input-text:hover span {
  color: #000;
  font-weight: 600;
}

.slider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  float: left;
}

.font-slider {
  width: 50%;
  display: grid;

}

input#slider {
  position: relative;
  top: 2px;
  cursor: pointer;
  width: 200px;
  margin-left: -105px;
  margin-top: -40px;
}

.loadmore {
  width: 350px;
  border: 1px solid #c4c4c4;
  font-size: 17px;
  padding: 10px;
  background: #ff1462;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  margin: 10px auto;
}

.top {
  position: fixed;
  z-index: 2;
  right: 0px;
  bottom: 50px;
  font-size: 20px;
  text-decoration: none;
  color: #000000;
  background: #00804d;
  padding: 8px 8px 10px;
  border-radius: 10px 0 0 10px;
  display: none;
  /* Initially hidden */
}

.top:hover {
  color: #fff;
  background: #00804d;
}

/* navbar */
.nav {
  position: absolute;
  top: 0;
  left: 4px;
  color: #fff;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background-color: #172151;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 20px;
  font-size: 20px;
}

.sidenav a {
  padding: 8px;
  text-decoration: none;
  font-size: 20px;
  color: #f6f6f6;
  display: block;
  transition: 0.3s;
  font-family: 'Open Sans', sans-serif;
  text-align: left;
  border: 1px solid #3b5998;
  background: #10152f;
  border-radius: 5px;
  margin: 2px;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: -4px;
  right: 2px;
  font-size: 36px;
  margin-left: 50px;
  border: none;
  background: transparent;
}

#mobile-fly-menu span {
  display: block;
  position: absolute;
  left: 12px;
  -webkit-transform: rotate(0);
  -moz-transform: rotate(0);
  -ms-transform: rotate(0);
  -o-transform: rotate(0);
  transform: rotate(0);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -ms-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
  height: 4px;
  background: rgb(255, 255, 255);
}

#mobile-fly-menu {
  display: block;
  position: absolute;
  cursor: pointer;
  width: 50px;
  height: 40px;
  float: left;
}

#mobile-fly-menu span:nth-child(1) {
  top: 6px;
  width: 35px;
}

#mobile-fly-menu span:nth-child(2) {
  top: 15px;
  width: 27px;
}

#mobile-fly-menu span:nth-child(3) {
  top: 24px;
  width: 20px;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

footer img {
  display: block;
  margin: 20px auto;
  max-width: 70%;
}

p.title {
  text-align: center;
  margin: 20px auto;
  font-size: 22px;
  font-weight: 700;
}

/* share */
.share {
  display: block;
  text-align: right;
  margin-top: -45px;
  margin-left: -1px;
  width: 90%;
}

.share a {
  font-size: 14px;
}

.resp-sharing-button__link,
.resp-sharing-button__icon {
  display: inline-block
}

.resp-sharing-button__link {
  text-decoration: none;
  color: #fff;
  margin: 0.1em
}

.resp-sharing-button {
  border-radius: 5px;
  transition: 25ms ease-out;
  padding: 0.5em 0.75em;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  background: #119be4;
}

.resp-sharing-button__icon svg {
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: top
}

.resp-sharing-button--small svg {
  margin: 0;
  vertical-align: middle
}

/* Non solid icons get a stroke */
.resp-sharing-button__icon {
  stroke: #fff;
  fill: none
}

/* Solid icons get a fill */
.resp-sharing-button__icon--solid,
.resp-sharing-button__icon--solidcircle {
  fill: #fff;
  stroke: none
}

.resp-sharing-button--twitter {
  background-color: #55acee
}

.resp-sharing-button--twitter:hover {
  background-color: #2795e9
}

.resp-sharing-button--pinterest {
  background-color: #bd081c
}

.resp-sharing-button--pinterest:hover {
  background-color: #8c0615
}

.resp-sharing-button--facebook {
  background-color: #3b5998
}

.resp-sharing-button--facebook:hover {
  background-color: #2d4373
}

.resp-sharing-button--tumblr {
  background-color: #35465C
}

.resp-sharing-button--tumblr:hover {
  background-color: #222d3c
}

.resp-sharing-button--reddit {
  background-color: #5f99cf
}

.resp-sharing-button--reddit:hover {
  background-color: #3a80c1
}

.resp-sharing-button--google {
  background-color: #dd4b39
}

.resp-sharing-button--google:hover {
  background-color: #c23321
}

.resp-sharing-button--linkedin {
  background-color: #0077b5
}

.resp-sharing-button--linkedin:hover {
  background-color: #046293
}

.resp-sharing-button--email {
  background-color: #777
}

.resp-sharing-button--email:hover {
  background-color: #5e5e5e
}

.resp-sharing-button--xing {
  background-color: #1a7576
}

.resp-sharing-button--xing:hover {
  background-color: #114c4c
}

.resp-sharing-button--whatsapp {
  background-color: #25D366
}

.resp-sharing-button--whatsapp:hover {
  background-color: #1da851
}

.resp-sharing-button--hackernews {
  background-color: #FF6600
}

.resp-sharing-button--hackernews:hover,
.resp-sharing-button--hackernews:focus {
  background-color: #FB6200
}

.resp-sharing-button--vk {
  background-color: #507299
}

.resp-sharing-button--vk:hover {
  background-color: #43648c
}

.resp-sharing-button--facebook {
  background-color: #3b5998;
  border-color: #3b5998;
}

.resp-sharing-button--facebook:hover,
.resp-sharing-button--facebook:active {
  background-color: #2d4373;
  border-color: #2d4373;
}

.resp-sharing-button--twitter {
  background-color: #55acee;
  border-color: #55acee;
}

.resp-sharing-button--twitter:hover,
.resp-sharing-button--twitter:active {
  background-color: #2795e9;
  border-color: #2795e9;
}

.resp-sharing-button--email {
  background-color: #777777;
  border-color: #777777;
}

.resp-sharing-button--email:hover,
.resp-sharing-button--email:active {
  background-color: #5e5e5e;
  border-color: #5e5e5e;
}

.resp-sharing-button--pinterest {
  background-color: #bd081c;
  border-color: #bd081c;
}

.resp-sharing-button--pinterest:hover,
.resp-sharing-button--pinterest:active {
  background-color: #8c0615;
  border-color: #8c0615;
}

.resp-sharing-button--whatsapp {
  background-color: #25D366;
  border-color: #25D366;
}

.resp-sharing-button--whatsapp:hover,
.resp-sharing-button--whatsapp:active {
  background-color: #1DA851;
  border-color: #1DA851;
}

/* Localized copy feedback */
.copy-feedback {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: rgba(0, 105, 128, 0.642);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  animation: fadeInOut 1s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

p.copied {
  /* Deprecated global style, keeping just in case */
  display: none;
}

.data p {
  width: 70%;
  display: block;
  margin: auto;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.copyright-area {
  text-align: center;
  padding: 10px;
  background: linear-gradient(to right, #1da851, #000000);
  color: white;
}

.copyright-area a {
  text-decoration: none;
  color: white;
}

/* Responsive Design */

/* Large Screens */
.container {
  max-width: 1200px;
  width: 90%;
  margin: auto;
}

/* Tablet (Portrait/Small Desktop) - 2 Columns */
@media (max-width: 1024px) {
  .input-text {
    width: 48%;
    /* 2 columns */
    margin: 8px 1%;
  }

  .container {
    width: 95%;
  }
}

/* Mobile - 1 Column */
@media (max-width: 768px) {
  .input-text {
    width: 98%;
    /* 1 column */
    margin: 8px 1%;
    display: block;
  }

  .container {
    width: 100%;
    padding: 0 10px;
  }

  .text-box {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #004d7a, #008793, #00bf72);
    padding: 10px;
    z-index: 1000;
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Add padding to body to prevent sticky input from covering content */
  body {
    padding-bottom: 80px;
  }

  div#result {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }

  textarea.fancytext {
    width: 100%;
    border-radius: 5px;
    margin: 0;
    height: 60px;
    /* Compact height for sticky footer */
    padding-top: 10px;
  }

  header a {
    font-size: 22px;
  }

  .share {
    text-align: center;
    margin-top: 0px;
    width: 100%;
  }

  .top {
    bottom: 125px;
    /* Move above sticky input */
    right: 0px;
  }

  .footer {
    width: 100%;
    padding-bottom: 80px;
    /* Ensure footer text isn't hidden */
  }

  footer img {
    max-width: 90%;
  }

  /* Navigation adjustments */
  .sidenav {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  header .site-title span {
    display: none;
    /* Simplify header on very small screens */
  }
}

/* Fix for UL and LI display */
ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 10px 0;
}

li {
  margin-bottom: 5px;
}

/* Loading Animation */
.loader {
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #3498db;
  /* Blue */
  width: 16px;
  height: 16px;
  -webkit-animation: spin 1s linear infinite;
  /* Safari */
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}