html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    background: transparent;
    border: 0;
    font-size: 100%;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: none;
}

:focus {
    outline: 0;
}

del {
    text-decoration: line-through;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    /* font-family: "Klee One", "Courier New", sans-serif; */
    font-size: 1em;
    padding: 0;
    margin: 0;
    overflow: hidden;
    --default-opacity: 0.4;
    --default-br: 4px;
    --default-transition: 0.3s;
    --theme-color-raw: 67, 61, 138;
    --theme-color: rgb(var(--theme-color-raw));
    --theme-bg-raw: 255, 255, 255;
    --theme-bg: rgb(var(--theme-bg-raw));
}

body,
html {
    height: 100%;
    width: 100%;
}

textarea#content {
    font-family: "Courier New", "Klee One", sans-serif;
    float: left;
    width: 100%;
    height: calc(100vh - 90px);
    /* height: 92%; */
    color: var(--theme-color);
    font-size: x-large;
    resize: none;
    padding-left: 10px;
    /* padding-right: 10px; */
    line-height: 1.5em;
    border: none;
    margin: 0;
    padding-top: 20px;
    background-color: #f5f5f5;
    box-sizing: border-box; /* Ensure padding is included in the width */
}

/* The toast - position it at the bottom and in the middle of the screen */
#toast {
    visibility: hidden;
    /* Hidden by default. Visible on click */
    min-width: 100px;
    /* Set a default minimum width */
    margin-left: -50px;
    /* Divide value of min-width by 2 */
    background-color: var(--theme-color);
    /* Black background color */
    color: var(--theme-bg);
    /* White text color */
    text-align: center;
    /* Centered text */
    border-radius: var(--default-br);
    /* Rounded borders */
    padding: 16px;
    /* Padding */
    position: fixed;
    /* Sit on top of the screen */
    z-index: 1;
    /* Add a z-index if needed */
    left: 50%;
    /* Center the toast */
    bottom: 50px;
    /* 30px from the bottom */
}

/* Show the toast when clicking on a button (class added with JavaScript) */
#toast.show {
    visibility: visible;
    /* Show the toast */
    /* Add animation: Take 0.5 seconds to fade in and out the toast.
         However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the toast in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 50px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 50px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 50px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 50px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

div.sticky-top-bar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding: 5px;
    background-color: var(--theme-bg);
    font-size: 1em;
    text-align: end;
}

.copy-button,
.download-button,
.restore-button,
.delete-button {
    display: inline-block;
    outline: 0;
    border: none;
    cursor: pointer;
    height: 40px;
    padding: 12px 17px;
    border-radius: 50px;
    background-color: #d6d6d6;
    color: #222;
    font-size: 16px;
    font-weight: 500;
}

.copy-button:hover {
    color: #00b33c;
}

.download-button:hover {
    color: #1625a8;
}


.restore-button:hover {
    color: #0000ff;
}

.delete-button:hover {
    color: #ff0000;
}

select {
    border: none;
    height: 40px;
    background-color: #d6d6d6;
    border-radius: 30px;
    outline: 0;
    cursor: pointer;
}

select#font {
    font-size: 16px;
    height: 40px;
}

.charbar {
    display: inline-block;
    outline: 0;
    border: none;
    padding: 12px 17px;
    border-radius: 50px;
    background-color: #d6d6d6;
    color: #222;
}

.colorpicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 50px;
    background-color: #d6d6d6;
    width: 35px;
    height: 35px;
    cursor: pointer;
    position: relative;
    top: 6px;
}

.colorpicker::-webkit-color-swatch {
    border-radius: 50%;
}

.colorpicker::-moz-color-swatch {
    border-radius: 50%;
}

.logo {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--default-br);
    background-color: var(--theme-color);
}

.toolbar {
    display: inline;
}

.logod {
    display: inline;
    float: left;
}

.footer {
    text-align: center;
    position: fixed; /* Position the footer as fixed */
    bottom: 0; /* Place it at the bottom of the viewport */
    left: 0;
    width: 100%; /* Make it span the full width */
    background-color: var(--theme-color); /* Adjust the background color as needed */
    color: var(--theme-bg);
    padding: 10px 0; /* Add some padding for spacing */
    font-size: 14px; /* Adjust the font size as needed */
    z-index: 1; /* Ensure it's on top of other content */
}

.footer a {
    color: unset;
    text-decoration: none;
    font-weight: 900;
    border-bottom: 2px dotted; /* Add an underline on hover for the hyperlink */
}

.footer a:hover {
    border-bottom: 2px dotted; /* Add an underline on hover for the hyperlink */
}

a.external::after {
    content: "↗";
    color: var(--theme-bg);
    position: relative;
    top: -3px;
    right: -2px;
}

.scroll-button-bottom {
    bottom: 50px; /* Adjust the position as needed */
  }

  .scroll-button-top {
    top: 80px; /* Adjust the position as needed */
  }

  .scroll-button:hover {
    opacity: 1;
  }

  .scroll-button {
    position: fixed;
    right: 20px; /* Adjust  var(--theme-color)the position as needed */
    background-color: rgb(var(--theme-color-raw));
    color: #f7f1f1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    font-size: 30px;
    opacity: var(--default-opacity);
    transition: opacity var(--default-transition);
    font-weight: 500;
    z-index: 550;
  }
  
  .textarea-container {
    position: relative; /* Create a container to position the buttons */
  }

#content {
    padding: 20px !important;
    color: var(--theme-color) !important;
    background-color: var(--theme-bg) !important;
}

body {
    background-color: var(--theme-bg) !important;
}

input, select, .charbar {
    border-radius: var(--default-br);
    border: none;
}

select {
    padding-left: 20px;
    padding-right: 10px;
}

.copy-button, .download-button, .restore-button, .delete-button, .colorpicker {
    border-radius: var(--default-br);
    border: none;
}
.colorpicker {
    height: 40px;
    width: 40px;    top: 0px;
    background-color: #00000000;
}
.logod {
    height: 100%;
    display: flex;
    align-items: center;
}

.toolbar {
    height: 100%;
    display: flex;
    align-items: center;
    float: right;
    gap: 6px;
}

.charbar {
    position: absolute;
    bottom: 50px;
    z-index: 500;
    right: 10px;
    opacity: var(--default-opacity);
        transition: opacity var(--default-transition);
}

.charbar:hover {
    opacity: 1;
}

.sticky-top-bar {
    display: block;
    height: 40px;
}

.sticky-top-bar:hover {
    opacity: 1;
}

#colorpicker {
    background-color: white;
    border-radius: 100% !important;
}

#bgcolorpicker {
    background-color: white;
    border-radius: 100% !important;
}