:root {
    --background-light: #FFF;
    --background-dark: #000;
    --text-light: #262626;
    --text-dark: #FFF;
    --button-light: #F0F0F0;
    --button-dark: #1c1e21;
    --button-hover: #DDD;
    --border-color: #DDD;
    --border-radius-small: 5px;
    --border-radius-medium: 0.56em;
    --transition-speed: 0.15s;
}

html {
    scroll-behavior: smooth;
}

/* Responsive */
@media screen and (min-width: 1024px) {
    ::-webkit-scrollbar {
        -webkit-appearance: none;
        height: 8px;
        width: 4px;
    }

    ::-webkit-scrollbar-track {
        background-color: inherit
    }

    ::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, .15);
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, .45)
    }

    ::-webkit-scrollbar-thumb:active {
        background-color: rgba(0, 0, 0, .45)
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--background-light);
    color: var(--text-light);
    -webkit-tap-highlight-color: transparent;
    visibility: hidden;
}

svg {
    width: 24px;
}

header {
    border-bottom: 1px solid rgb(219, 219, 219);
}

input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #8A8D91;
}

input::-moz-placeholder { /* Firefox 19+ */
color: #8A8D91;
opacity: 1; /* Firefox reduces the opacity by default */
}

input:-ms-input-placeholder { /* IE 10+ */
color: #8A8D91;
}

input:-moz-placeholder { /* Firefox 18- */
color: #8A8D91;
}


.dark-mode header {
    border-bottom: 1px solid transparent;
}

svg.media-icon {
    width: 18px;
}
svg.paste-icon {
    width: 20px;
}
svg.clear-icon {
    width: 18px;
}
.downloader-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 1.5rem;
}

h2 {
    text-align: center;
    color: #1c1e21;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.title {
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    font-size: 1.5rem;
    font-family: system-ui;
}

.subtitle {
    font-size: 0.8rem;
    margin: 0;
    line-height: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, .84);
}

.dark-mode {
    background: var(--background-dark);
    color: var(--text-dark);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    font-style: normal;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    background:
    linear-gradient(50deg, rgba(255, 65, 108, .98), rgba(242, 151, 46, .98));
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.brand:active,
.brand:focus {
color: inherit;
background-color: transparent;
outline: none;
}
.dark-mode .button {
    background: var(--button-dark);
    color: var(--text-dark);
    border-color: var(--text-dark);
    transition: background --transition-speed;
}

.button-reset {
    background: none;
    border-radius: var(--border-radius-small);
    border: none;
    padding: 0;
    margin: 0;
    line-height: 1;
    cursor: pointer;
}

.button-reset:focus {
    outline: none;
}

.dark-mode .nav {
    background: var(--background-dark);
}

.container {
    color: var(--text-light);
    padding: 0.375rem 0.5rem 0.375rem;
    text-align: center;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.heading {
    gap: 2px;
    flex-direction: column;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5em;
    gap: 0.5em;
    border-radius: 10px;
    background: rgba(255, 255, 255, .24);
}

.nav a {
    color: var(--text-dark);
    position: relative; 
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    border-radius: var(--border-radius-medium);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.nav a:hover,
.nav a:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.downloader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 4rem 1rem;
    gap: 1.125rem;
    background: linear-gradient(217.44deg, #FF7A00 17.92%, #FF0169 60.56%, #D300C5 91.69%);
    color: #fff;
    border-bottom: 1px solid white;
}
.first {
    display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
}
.downloader form {
    display: flex;
    width: auto;
    gap: 0.5rem;
}

.dark-mode .downloader {
    background: var(--background-dark);
    border-bottom: 1px solid transparent;
}

footer {
    margin-top: auto;
}

/* Additional styles for FAQ and footer */
.faq-section,
.footer-links {
    max-width: 600px;
    margin: auto;
    padding: 1em;
    text-align: center;
}

.faq-section {
    margin-top: 2em;
}

.dark-mode .accordion-header {
    background: rgb(28 30 33 / 48%);
    color: #e6e6e6;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.25rem;
}

.accordion {
    margin-bottom: 10px;
    border-bottom: 1px solid #d8d8d8;
    border-top: none;
}

.dark-mode .accordion {
    border: 0;
}

.accordion-header {
    padding: 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1c1e21;
    align-items: center;
    background: none;
    border: 1px solid hsla(0, 0%, 100%, .14);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    text-align: left;
    justify-content: space-between;
    width: 100%;
}

.accordion-content {
    padding: 10px 15px;
    color: rgb(0, 0, 0, 0.64);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: left;
    display: none;
}

.accordion-content:not(.hidden) {
    display: block;
}

.accordion-header::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    line-height: 1;
    color: #1c1e21;
}

.accordion-header.active::after {
    content: '-';
}

.dark-mode .accordion-header::after,
.dark-mode .accordion-content {
    color: var(--text-dark);
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 0.5em;
}

.dark-mode .footer-links a {
    color: var(--text-light);
}

.dark-mode .container {
    color: var(--text-dark);
}

@media (max-width: 600px) {

    .nav a,
    .language-selector button {
        font-size: 0.8rem;
    }
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-icon {
    height: 24px;
    width: 24px;
}

body.dark-mode {
    background: black;
    color: var(--text-dark);
}

.dark-mode .input-group .input {
    background: #1c1e21;
    border: 1px solid rgb(51, 51, 51, 0.25);
    color: white;
}

.dark-mode h2 {
    color: var(--text-dark);
}

.button,
.toggle-mode {
    border-radius: var(--border-radius-small);
    transition: background var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
}

.language-icon,
.toggle-mode, .paste-icon, .clear-icon {
    color: rgba(38, 38, 38, 0.65);
}

.dark-mode .language-icon,
.dark-mode .toggle-mode, .dark-mode .paste-icon, .dark-mode .clear-icon {
    color: var(--text-dark);
}

.header-container {
        padding: 0.5rem 1rem 0.5rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    padding: 0;
}

.header-options {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.footer-contents {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    flex-direction: column;
    text-align: center;
}

.copyright-text {
    color: #747474;
    text-align: center;
}

.copyright p {
    margin-top: 0;
}

.language-selector {
    display: flex;
    align-items: center;
}


.language-selector {
position: relative; /* Ensure this is set for the parent */
}

.custom-dropdown {
align-items: center;
overflow: hidden;
justify-content: center;
border: 1px solid rgba(255,255,255,0.15);
margin-top: 1rem;
background: rgba(255, 255, 255, 0.9);
flex-direction: column;
position: absolute;
top: 100%;
right: 0;
color: rgb(115, 115, 115);
max-height: 200px;
overflow-y: auto;
font-size: 0.8rem;
z-index: 1000;
box-sizing: border-box;
border-radius: 10px;
width: max-content;
display: flex;
}

.dark-mode .custom-dropdown{
background-color: rgba(38, 38, 38);
color: rgb(245, 245, 245);
}
.dark-mode li a {
color: rgb(245, 245, 245);
}

.dropdown-option {
    background: #ffffff;
    border-radius: 15px;
    margin: 0 5px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-option:hover {
    background: #f0f0f0;
}

.dropdown-option a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-option svg {
    fill: #555;
}

/* SVG icon size can be adjusted as needed */
.dropdown-option svg {
    width: 20px;
    height: 20px;
}

/* Example of a selected or active option */
.dropdown-option.active {
    background: #f0f0f0;
}

ul {
    margin: auto;
    padding: inherit;
    list-style-type: none;
}

li a {
    font-size: 1rem;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

li a:hover,
li a:focus {
    background-color: rgba(0, 0, 0, 0.05);
}
.dark-mode .custom-dropdown a:hover, .dark-mode .custom-dropdown li a:focus {
background: rgba(255, 255, 255, .1);
}

.input-group {
    display: flex;
}

.input-group .button {
    font-size: large;
    font-weight: 600;
    padding: 0.5em 1em;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-light);
    gap: 0.75rem;
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;

display: flex;
display: -webkit-flex;
align-items: center;
-webkit-align-items: center;
padding: 0.75rem;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,.15);
overflow: hidden;
font-size: 1rem;
}

#download-button.active{
    background: rgba(255, 255, 255, 0.25);
}
.input-group .button svg {
fill: #989b9f;
}

.input-wrapper {
display: flex;
position: relative;
flex-direction: row;
align-items: center;
padding: 0;
}

.input-wrapper input {
width: 100%;
box-sizing: border-box;
padding: 0.75rem 2.5rem 0.75rem 1rem;
border: 1px solid var(--border-color);
font-family: inherit;
border-radius: var(--border-radius-medium);
height: 46px;
font-size: 1rem;
}
.button-group {
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
position: absolute;
right: 0;
top: 0;
display: flex;
height: 100%;
border: none;
background: none;
padding: 0;
cursor: pointer;
align-items: center;
}
.button-group button, 
.button-group button svg {
cursor: pointer;
}

.paste-button, .clear-button {
padding: 0.75rem;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border: none;
background: none;
}
.dark-mode .input-wrapper button {
filter: none;
}
.hero-text {
    display: block;
    font-size: 0.85rem;
}

#sticky-button {
    display: block;
position: fixed;
bottom: 0px;
right: 0;
margin: 0 20px 0 auto;
width: 55px;
height: 55px;
border-radius: 50px;
box-shadow: 0px 6px 18px 0 rgba(9,32,76,.2);
-webkit-transition: all .3s ease-out;
transition: all .3s ease-out;
z-index: 20;
overflow: hidden;
opacity: 0;
visibility: hidden;
}

#sticky-button {
    background-image: linear-gradient(50deg, rgba(255, 65, 108, .98), rgba(242, 151, 46, .98)) !important;
    background-image: -webkit-linear-gradient(50deg, rgba(255, 65, 108, .98), rgba(242, 151, 46, .98)) !important;
    background-color: transparent;
    color: #fff !important;
}

.backTop a svg {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;
    padding: 15.5px;
    fill: rgba(255, 255, 255, .9);
}

#sticky-button.sticky {
    opacity: 1;
    visibility: visible;
    bottom: 20px
}

#sticky-button.active:after,
#sticky-button.active {
    opacity: 1;
    visibility: visible
}

#sticky-button.active {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg)
}

#sticky-button.active {
    display: table-cell
}

#sticky-button.active {
    fill: #e94c39
}

.loading-spinner {
animation-duration: 0.75s;
animation-iteration-count: infinite;
animation-name: rotate-spinner;
animation-timing-function: steps(12, end);
transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

.overlay {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
border-radius: var(--border-radius-medium);
background-color: rgba(55, 55, 55, 0.25);
z-index: 2;
}

.dark-mode .overlay {
    background-color: rgba(55, 55, 55, 0.25);
    color: rgb(121, 121, 121);
}
.spinner-segment {
fill: rgb(245, 245, 245);
}

@keyframes rotate-spinner {
0% {
transform: rotate(180deg);
}

100% {
transform: rotate(540deg);
}
}

.content {
background-color: #f9f9f9;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
overflow: hidden;
}

.title-box .title {
font-size: 2rem;
color: #333;
text-align: center;
margin-top: 20px;
}

.title-box .sub {
font-size: 1rem;
color: #555;
text-align: center;
margin-bottom: 20px;
}

/* Features section layout */
.features-section {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
padding: 20px;
}

.feature-card {
background: #ffffff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card img {
width: 100%;
display: block;
height: auto;
}

.feature-content {
padding: 15px;
}

.feature-content h2 {
font-size: 1.5rem;
color: #333;
margin-bottom: 10px;
}

.feature-content p {
font-size: 1rem;
color: #666;
line-height: 1.5;
}

/* App Download Section */
.app-download-section {
background: #fff;
padding: 20px;
text-align: center;
border-radius: 8px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-download-section h3 {
font-size: 1.5rem;
color: #333;
margin-bottom: 10px;
}

.app-download-section p {
font-size: 1rem;
color: #555;
}

.app-links a {
margin: 0 10px;
}

.app-links img {
height: 48px;
width: auto;
}

/* Save Instructions Section */
.save-instructions {
background: #fff;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instruction-header h2 {
font-size: 1.5rem;
color: #333;
text-align: center;
margin-bottom: 10px;
}

.instruction-header .note {
font-size: 1rem;
color: #666;
text-align: center;
margin-bottom: 20px;
}

.instruction-steps {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px;
list-style: none;
padding-left: 0;
}

.step {
text-align: center;
}

.step-number {
font-size: 1.5rem;
font-weight: bold;
color: #333;
background-color: #eee;
display: inline-block;
width: 50px;
height: 50px;
line-height: 50px;
border-radius: 50%;
margin-bottom: 10px;
}

.step h3 {
font-size: 1.2rem;
color: #333;
margin-bottom: 5px;
}

.step p {
font-size: 1rem;
color: #666;
}

.hidden {
opacity: 0;
visibility: hidden;
}

.none {
display: none;
}

.flex {
display: flex;
justify-content: center;
align-items: center;
}
.build-in-animate {
    opacity: 1;
    transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
}

.build-in-scale-fade {
    opacity: 0;
    transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.96);
}
@media (max-width: 768px) {
.features-section {
grid-template-columns: 1fr;
}

.instruction-steps {
grid-template-columns: 1fr;
}
}


@media (max-width: 768px) {
    .downloader {
        padding: 24px 16px 24px;
    }

    .downloader form {
        flex-direction: column;
    }
}

@media (max-width: 550px) {
    .nav {
        width: 100%;
    }

    .nav a {
        padding: 0;
    }
    .nav a:hover, .nav a:focus {
background-color: transparent;
}
    .hero-text {
        display: none;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px
    }
}

@media (min-width: 768px) {
    .title {
        font-weight: 700;
        font-size: 1.75rem;
        margin: 0.25rem 0 0.25rem;
    }

    .subtitle {
        font-size: 1rem;
        font-weight: 400;
    }

    .container {
        max-width: 720px
    }
    .header-container {
        padding: 0.675rem 0.75rem;
    }

    .input-wrapper {
        width: 456px;
    }
    .input-group .button {
        padding: 10px 32px;
    }
    .nav,
    .nav a {
        width: auto;
    }

    .downloader form {
        flex-direction: row;
    }

    .downloader {
        padding: 1.5rem 0 3.75rem;
        gap: 1.25rem;
    }
    .downloader-section {
        width: auto;
        gap: 1.75rem;
    }

    h2 {
        font-weight: 600;
        font-size: 2rem;
    }

    .accordion-header {
        font-size: 0.9rem;
    }

}

@media (min-width: 992px) {
    .container {
        max-width: 960px
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px
    }
}