* {
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

body,
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol";
    background: #fafbfc;
    color: #24292e;
    margin: 0;
    font-size: 16px;
}

/*
FONTS AND SIZING
 */

h1 {
    font-size: 22px;
}

h2:first-child {
    margin-top: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
}

h2 {
    font-size: 1.25em;
    margin-top: 24px;
    margin-bottom: 24px;
    line-height: 1.25;
}

h3 {
    font-size: 1.25em;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.25;
}

/* p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.5;
} */

/* Flex container */
.flex {
    display: flex !important;
}

/* Direction */
.flex-row {
    flex-direction: row;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-column {
    flex-direction: column;
}

.flex-column-reverse {
    flex-direction: column-reverse;
}

/* Justify Content */
.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

/* Align Items */
.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

/* Align Content (useful for multi-line flex items) */
.content-start {
    align-content: flex-start;
}

.content-center {
    align-content: center;
}

.content-end {
    align-content: flex-end;
}

.content-between {
    align-content: space-between;
}

.content-around {
    align-content: space-around;
}

.content-evenly {
    align-content: space-evenly;
}

/* Flex Wrap */
.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

/* Gap between flex items */
.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-5 {
    gap: 20px;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

.flex-4 {
    flex: 4;
}

.flex-5 {
    flex: 5;
}

.label {
    color: #000000 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 24px !important;
}

.input-head-label {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    color: #000000 !important;
}

/* Margins */
.m-0 {
    margin: 0px !important;
}
.m-1 {
    margin: 4px !important;
}
.m-2 {
    margin: 8px !important;
}
.m-3 {
    margin: 12px !important;
}
.m-4 {
    margin: 16px !important;
}
.m-5 {
    margin: 20px !important;
}

/* Margin - Top */
.mt-0 {
    margin-top: 0px !important;
}
.mt-1 {
    margin-top: 4px !important;
}
.mt-2 {
    margin-top: 8px !important;
}
.mt-3 {
    margin-top: 12px !important;
}
.mt-4 {
    margin-top: 16px !important;
}
.mt-5 {
    margin-top: 20px !important;
}

/* Margin - Bottom */
.mb-0 {
    margin-bottom: 0px !important;
}
.mb-1 {
    margin-bottom: 4px !important;
}
.mb-2 {
    margin-bottom: 8px !important;
}
.mb-3 {
    margin-bottom: 12px !important;
}
.mb-4 {
    margin-bottom: 16px !important;
}
.mb-5 {
    margin-bottom: 20px !important;
}

/* Margin - Left */
.ml-0 {
    margin-left: 0px !important;
}
.ml-1 {
    margin-left: 4px !important;
}
.ml-2 {
    margin-left: 8px !important;
}
.ml-3 {
    margin-left: 12px !important;
}
.ml-4 {
    margin-left: 16px !important;
}
.ml-5 {
    margin-left: 20px !important;
}

/* Margin - Right */
.mr-0 {
    margin-right: 0px !important;
}
.mr-1 {
    margin-right: 4px !important;
}
.mr-2 {
    margin-right: 8px !important;
}
.mr-3 {
    margin-right: 12px !important;
}
.mr-4 {
    margin-right: 16px !important;
}
.mr-5 {
    margin-right: 20px !important;
}

/* Auto Margin */
.mrl-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}
.mtb-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

/* Padding */
.p-0 {
    padding: 0px !important;
}
.p-1 {
    padding: 4px !important;
}
.p-2 {
    padding: 8px !important;
}
.p-3 {
    padding: 12px !important;
}
.p-4 {
    padding: 16px !important;
}
.p-5 {
    padding: 20px !important;
}

/* Padding - Top */
.pt-0 {
    padding-top: 0px !important;
}
.pt-1 {
    padding-top: 4px !important;
}
.pt-2 {
    padding-top: 8px !important;
}
.pt-3 {
    padding-top: 12px !important;
}
.pt-4 {
    padding-top: 16px !important;
}
.pt-5 {
    padding-top: 20px !important;
}

/* Padding - Bottom */
.pb-0 {
    padding-bottom: 0px !important;
}
.pb-1 {
    padding-bottom: 4px !important;
}
.pb-2 {
    padding-bottom: 8px !important;
}
.pb-3 {
    padding-bottom: 12px !important;
}
.pb-4 {
    padding-bottom: 16px !important;
}
.pb-5 {
    padding-bottom: 20px !important;
}

/* Padding - Left */
.pl-0 {
    padding-left: 0px !important;
}
.pl-1 {
    padding-left: 4px !important;
}
.pl-2 {
    padding-left: 8px !important;
}
.pl-3 {
    padding-left: 12px !important;
}
.pl-4 {
    padding-left: 16px !important;
}
.pl-5 {
    padding-left: 20px !important;
}

/* Padding - Right */
.pr-0 {
    padding-right: 0px !important;
}
.pr-1 {
    padding-right: 4px !important;
}
.pr-2 {
    padding-right: 8px !important;
}
.pr-3 {
    padding-right: 12px !important;
}
.pr-4 {
    padding-right: 16px !important;
}
.pr-5 {
    padding-right: 20px !important;
}

.absolute {
    position: absolute !important;
}
.relative {
    position: relative !important;
}
.fixed {
    position: fixed !important;
}
.block {
    position: block !important;
}

.or-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.d-none {
    display: none !important;
}
.or-separator span {
    font-size: 14px;
    color: #757575;
    margin: 0 10px;
    position: relative;
}

.or-separator::before,
.or-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #d3d3d3;
}

/*
GLOBAL ELEMENTS
*/

.panel {
    display: block;
    border-top: 1px solid #e9e9e9;
    padding-bottom: 40px;
}

.panel-label {
    height: 40px;
    font-size: 12px;
    color: #c9c9c9;
    padding: 0 15px;
    display: flex;
    align-items: center;
    width: fit-content;
}

.panel-label:hover {
    color: black;
}

footer {
    display: block;
    margin: 0 auto;
    max-width: 1100px;
    padding: 16px 0px;
    text-align: left;
}

.ul-footer {
    display: flex;
    margin: 0 auto;
    padding: 1rem 0;
    align-content: center;
}

.li-footer {
    list-style: none;
    font-size: 0.85rem;
    padding: 0 1.25rem 0 0;
}

/*
MAIN NAVIGATION
*/

.nav {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.95) !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 13px;
    padding: 0 16px;
    justify-content: space-between;
    position: relative;
}

.nav-brand-link {
    text-decoration: none;
    color: black;
}

.nav-brand:after {
    content: "/";
    padding: 0 5px;
    color: #c9c9c9;
}

.app-sub-title {
    font-weight: 400;
}

.nav-settings {
    display: flex;
    gap: 0.5rem;
}

.nav > .nav-btn {
    display: none;
}

.nav > #nav-check {
    display: none;
}

.tool-link {
    position: relative;
    color: inherit;
    text-decoration: none;
    margin-inline: 10px;
}

.tool-link:hover {
    text-decoration: underline;
}

/* .tool-link::before,
.tool-link::after {
    content: "";
    position: absolute;
    transition: transform 0.5s ease;
}

.tool-link:before {
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #aaa;
    transform: scaleX(0);
}
.tool-link:hover:before {
    transform: scaleX(1);
} */
/*


APP BODY
*/
#source {
    margin: 0 0 7px 0;
    font-size: 14px;
    font-family: inherit !important;
    color: #455060 !important;
}
/* all type of span, p and inputs, textarea apply that font-family */
span,
p,
a,
input,
textarea {
    font-family: inherit !important;
    /* font-size: 14px; */
}
textarea,input{
     color: #455060 !important;
}

#types {
    padding: 0 0 16px 0;
}
#source_output{
    font-family: inherit !important;
    font-size: 14px !important;
     color: #455060 !important;
}
/* codeMirror font also chnage */
.CodeMirror {
    font-family: inherit !important;
}
 .CodeMirror pre.CodeMirror-line,
        .CodeMirror pre.CodeMirror-line-like {
            font-family:inter, sans-serif !important;
            font-size: 14px !important;
            color: #455060 !important;
        } 
.CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like{
    font-family: inherit !important;
}
/* codeMirror font also chnage */
.CodeMirror {
    font-family: inherit !important;
} 
.CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like{
    font-family: inherit !important;
}

.btn-blue {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.sample-btn,
.clear-btn {
    font-family: inherit;
    margin-bottom: 5px;
    display: inline-block;
}

.sample-btn:hover,
.clear-btn:hover {
    text-decoration: underline;
    cursor: pointer;
}

.submit-btn,
.all-btns {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.black-btn {
    color: #fff;
    background-color: #24292e;
    border: none;
}

.white-btn {
    color: #24292e;
    background-color: #fff;
    border: 1px solid #d3d3d3;
}

.submit-btn,
.blue-btn {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
    padding: 5px 30px;
}

.submit-btn:hover,
.blue-btn:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
}

.submit-btn:focus,
.submit-btn.focus,
.blue-btn.focus,
.sample-btn:focus,
.clear-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.sample-btn,
.clear-btn {
    font-size: 12px;
    padding: 5px;
    margin-bottom: 10px;
}

.clear-btn {
    display: table;
    margin-left: auto;
}

.content :is(ul, li) {
    line-height: 2;
}

/*
APP DESCRIPTION
*/

.description {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.details {
    max-width: 750px;
    width: 100%;
    margin-right: 16px;
}

.sidebar {
    max-width: 300px;
    width: 100%;
    /* border: 1px solid red; */
}

.contribute {
    display: block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    color: #fff;
    background-color: #565f69;
    border-color: #007bff;
    text-decoration: none;
}

/* Inline Section Tool */
.inline-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.input-section-A {
    width: 50%;
    min-height: 350px;
    /* background-color: #fff; */
}

.output-section-B {
    width: 50%;
    position: relative;
    min-height: 350px;
    /* margin-top: 10px; */
}

/*
CARBON ADS
*/

#carbonads {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial,
        sans-serif;
}

#carbonads {
    display: block;
    overflow: hidden;
    max-width: 728px;
    position: relative;
    background-color: hsl(0, 0%, 99%);
    border: solid 1px #eee;
    font-size: 22px;
    box-sizing: content-box;
}

#carbonads > span {
    display: block;
}

#carbonads a {
    color: inherit;
    text-decoration: none;
}

#carbonads a:hover {
    color: inherit;
}

.carbon-wrap {
    display: flex;
    align-items: center;
}

.carbon-img {
    display: block;
    margin: 0;
    line-height: 1;
}

.carbon-img img {
    display: block;
    height: 90px;
    width: auto;
}

.carbon-text {
    display: block;
    padding: 0 1em;
    line-height: 1.35;
    text-align: left;
}

.carbon-poweredby {
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 6px 10px;
    background: repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 5px,
            hsla(0, 0%, 0%, 0.025) 5px,
            hsla(0, 0%, 0%, 0.025) 10px
        )
        hsla(203, 11%, 95%, 0.8);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 8px;
    border-top-left-radius: 4px;
    line-height: 1;
}

@media (width <=1024px) {
    .nav {
        z-index: 9999;
    }

    .nav > .nav-btn {
        display: inline-block;
        position: absolute;
        right: 0px;
        top: 0px;
    }

    .nav > .nav-btn > label {
        display: inline-block;
        padding: 13px;
        cursor: pointer;
    }

    .nav > .nav-btn > label > span {
        display: block;
        width: 25px;
        height: 10px;
        border-top: 2px solid #aaa;
    }

    .nav > .nav-links {
        position: absolute;
        display: block;
        width: 100%;
        background-color: #fff;
        height: 0px;
        transition: all 0.3s ease-in;
        overflow-y: hidden;
        top: 50px;
        left: 0px;
    margin-top: 10px;
    }

    .nav > .nav-links > a {
        display: flex;
            justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
        margin-inline: 10px;
        font-size: 16px;

    }

    .nav > #nav-check:not(:checked) ~ .nav-links {
        height: 0px;
    }

    .nav > #nav-check:checked ~ .nav-links {
        height: calc(100vh - 50px);
        overflow-y: auto;
    }

    .tool-link:hover {
        font-weight: 700;
    }
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
    .carbon-text {
        font-size: 14px;
    }
    .input-section-A,
    .output-section-B {
        width: 100%;
    }

    .inline-section {
        flex-direction: column;
    }
}
@media (width <=768px) {
    .d-none-mob {
        display: none !important;
    }
}
