:root {
    /*--color-white: white;*/
    --color-white: #fff;
    /*copied from cohost*/
    --color-notWhite: #FFF9F2;
    --color-notBlack: #191919;
    --color-bg: #191919;
    --color-notGrey: #5b5b5b;
    --color-notGray: #BFBAB5;
    --color-cherry: #83254F;
    --color-strawberry: #E56B6F;
    --color-mango: #FFAB5C;
    --color-longan: #FFD8A8;
}

[data-theme="dark"] {
    --color-white: #000;
    --color-notWhite: #191919;
    --color-notBlack: #FFF9F2;
    --color-bg: #191919;
    /*#090909;*/
    --color-notGrey: #BFBAB5;
    --color-notGray: #5b5b5b;
    --color-cherry: #83254F;
    --color-strawberry: #E56B6F;
    --color-mango: #FFAB5C;
    --color-longan: #FFD8A8;
}
/*to change specifics:
[data-theme="dark"] body {
whatever u want
}
*/
@font-face {
    font-family: 'Doka';
    src: url('/font/Doka_Regular.ttf');
}
@font-face {
    font-family: 'Doka';
    src: url('/font/Doka_Bold.ttf');
    font-weight: bold;
}
@font-face {
    font-family: 'Cozette';
    src: url('/font/Cozette.ttf');
}  
::selection {background:#FFAB5C;
  color: #83254F;}
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid black;
  position: absolute;
  right:0;
  margin: 8px;
}
.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display:none;
}

.slider {
  background-color: var(--color-longan);
  inset: 0;
  cursor: pointer;
  position: absolute;
  transition: .4s;
}

.slider:before {
  background-color: var(--color-cherry);
  content: url("images/emoji/eggbug_smile_hearts.png");
  height: 24px;
  position: absolute;
  transition: .4s;
  width: 24px;
}

input:checked + .slider {
  background-color: var(--color-notWhite);
}

input:checked + .slider:before {
  transform: translateX(24px);
  content: url("images/emoji/eggbug_asleep.png");
}

#message-box {
  background-color: var(--color-white);
  color: inherit;
  font-size: 16px;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 3px;
  /*border: 2px solid var(--color-notBlack);*/
  outline: 2px solid var(--color-notBlack);
}
#message-box:focus {outline-color: var(--color-cherry);}

#send-message {
  font-size: 18px;
  font-weight: bold;
  background-color: var(--color-cherry);
  color: var(--color-white);
  border: none;
  border-radius: 18px;
  margin: .5em;
  padding: .3rem 3rem;
  cursor: pointer;
}
#send-message:hover {
    outline: 2px solid var(--color-cherry);
    outline-offset: 2px;
}
.askbox {
    background-color: var(--color-notWhite);
    border: 1px solid var(--color-strawberry);
    border-radius: 8px;
    padding: 1em;
    margin: 1em 0;
    width: 100%;
}
.askbox summary {
    padding: .5em 0;
    font-weight: bold;
    color: var(--color-cherry);
}

#username {font-weight: bold;}
#username span {
    color: var(--color-notGrey);
}
#username button {
    cursor: pointer;
    background: var(--color-cherry);
    color: var(--color-white);
    font-weight: bold;
    border: none;
    border-radius: 12px;
    padding: .25em  .75em;
}
#username button:hover {
    background: var(--color-mango);
}
.icon-anon {
    content: url(images/anon.png);
    height: 32px;
    width: 32px;
    border-radius: 4px;
    display: inline-block;
}

.icon-eggbug {
    content: url(images/eggbug.png);
    height: 32px;
    width: 32px;
    border-radius: 4px;
    display: inline-block;
}

#usericon {
    display:flex;
    gap: 8px;
    line-height: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}
#usericon label {display: inline-block;}
#usericon img {
  height: 32px;
  width: 32px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  image-rendering: pixelated;
}
#usericon input { appearance: none;
  height: 10px;
  width:10px;
  border: 2px solid var(--color-notBlack);
  border-radius: 50%;
  background-color: var(--color-notWhite);
}
#usericon input:checked {
  background-color: var(--color-mango);
  border-color: var(--color-cherry);
}
.icon {
  height: 32px;
  width: 32px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: text-bottom;
  image-rendering: pixelated;
}
.eggbug {content: url(/ask/images/eggbug.png);}
.anon {content: url(/ask/images/anon.png);}

.emoji {
    display: inline-block;
}
.emote {
    display: inline-block;
    position: relative;
    bottom: 2px;
    min-width: 24px;
    min-height: 24px;
    vertical-align: bottom;
}

html {
    font-family: 'Doka';
    font-feature-settings: normal;
    font-variation-settings: normal;
    scroll-behavior: smooth;
    font-size: 16px;
    tab-size: 4;
}
* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    margin: 1em;
    padding-left: 10px;
}

section {
    max-width: 760px;
    width: 100%;
}

body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-notBlack);
    font-weight: normal;
    line-height: 1.5em;
}

p {
    margin-block-start: 0.8em;
    margin-block-end: 0.8em;
}

details > summary {
    cursor: pointer;
}

.summary-heading {
    font-weight:bold;
    margin-top: 1.5em;
    font-size: 1.2em;
}

small {font-size: smaller;}

#flex {
    display: flex;
    max-width: 1280px;
    margin: auto;
}

h1 {
    margin-block-start: 0;
    margin-block-end: 0;
    line-break: normal;
    line-height: 1.5em;
}

h4 {
    margin-block-start: 1em;
    margin-block-end: .2em;
}

header {
    top: 0;
    text-decoration: none;
    width: 100%;
    z-index: 2;
}
#banner {
    background-color: var(--color-cherry);
}
#banner h1 {
    padding: 20px;
    text-align: center;
}
#banner > a {color: white;}
#banner > a:visited {color: white;}
#banner > a:hover {color: var(--color-mango);}

main {
    margin-block-start: 0.8em;
    margin-block-end: 1em;
    max-width: 700px;
    margin: 1.5em auto;
}

aside {
    margin: auto;
    margin-top: 140px;
    min-width: 200px;
    color: var(--color-white);
    box-shadow: rgb(0,0,0,.2) 2px 4px 5px;
    border-radius: 8px;
    padding: 1em;
}
aside a {color: var(--color-white);}
aside a:visited {color: var(--color-white);}
aside a:hover {color: var(--color-mango);}
aside li > a:hover {color: var(--color-mango);}
aside p > a {
    font-weight: bold;
    color: var(--color-mango);
}
aside p > a:visited {color: var(--color-mango);}
aside p > a:hover {text-decoration: underline;}

#sidebar-left {
    margin-left: 20px;
    border: 1px solid var(--color-notGrey);
    min-width: 300px;
}
#sidebar-left ul {
    padding-left: 0;
}
#sidebar-left li {
    list-style: none;
    line-height: 1.8em;
}
#sidebar-right {
    margin-left: 740px;
    border: 1px solid var(--color-mango);
    max-width: 300px;
}
#sidebar-right li > a:hover {color: var(--color-mango);}

a {
    text-decoration: none;
    color: var(--color-notBlack);
}
a:visited {color: var(--color-cherry)}
.post a:visited {color: var(--color-notBlack)}

.navbar {
    height: auto;
    max-width: 760px;
    font-size: 20px;
    margin: 0 auto;
}
.navbar ul {
    display: flex;
    max-width: 700px;
    margin: auto;
    padding: .5em 0;
    list-style-type: "";
    justify-content: space-evenly;
}
.navbar li {
    list-style-type: "";
}
.navbar a {
    font-weight: bold;
    color: white;
}
.navbar a:hover {text-decoration: underline;}

.post {
    background-color: var(--color-white);
    margin: 2em 0;
    max-width: 700px;
    box-shadow: black 4px 4px 12px;
    border-radius: 6px;
    line-height: 1.75em;
    overflow-wrap: break-word;
}

.post a {text-decoration: underline;}
.post a:hover {text-decoration: none;}

.post-header {
    background: var(--color-notWhite);
    color: var(--color-notGrey);
    padding: .5em;
    border-bottom: 1px solid var(--color-notGray);
    border-radius: 6px 6px 0 0;
    line-height: 1.5em;
}
.post-header > strong {color: var(--color-notBlack);}
.post-footer {
    background: var(--color-notWhite);
    color: var(--color-notGrey);
    padding: .5em;
    border-top: 1px solid var(--color-notGray);
    border-radius: 0 0 6px 6px;
    text-align: right;
}

.like-button, .liked-button {
    margin: 0;
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}
.like-button {background-image: url(images/heart.svg);}
.liked-button {
    position:absolute;
    inset:0;
    background-image: url(images/hearted.svg);
    background-size:cover;
    pointer-events: none;
}

.post-footer details {
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: auto;
}
.post-footer details > summary {
    position:absolute;
    inset:0;
    background-image: url(images/heart.svg);
    background-size:cover;
    list-style: none;
    font-size:0;
}
.post-footer details > summary::-webkit-details-marker {display: none;}
.post-footer details > summary:focus {color: var(--color-cherry);}

.content {margin: 1em;}
.content h2 {
    max-width: 700px;
    margin:auto;
    padding-top: .5em;
    font-family: 'Cozette';
}

.bubble {
    background-color: var(--color-notWhite);
    border: solid 1px var(--color-strawberry);
    margin: 1em;
    padding: 1em;
    border-radius: 8px;    
}
.bubble p:last-child{margin-bottom:4px;}
.asker {
    color: #93817f;
    font-weight: bold;
}
.asker img {
    display: inline-block;
    /*image-rendering: pixelated;*/
    border-radius: 4px;
}
.ask {padding-left: 36px;}
.response {margin: 1em;}
.response img {margin: auto;}

.tags {
    margin: 1em;
    font-size: small;
    color: var(--color-notGrey);
    max-width:90%;
}
.tags a {
    color: var(--color-notGrey);
    text-decoration: none;
    margin-right: .5em;
    font-weight: bold;
}
.tags a:visited {
    color: var(--color-notGrey);
}
.tags a:hover {
    text-decoration: underline;
}
.tags span {margin-right: .5em;}
.tags li {display: inline-block;
    margin-right: 1em;
    list-style-type: "";
}

.cw {
    background-color: var(--color-notWhite);
    margin: 1em;
    border: 1px solid var(--color-strawberry);
    border-radius: 8px;
    padding: .5em 1em;
    color: var(--color-cherry);
    font-weight: bold;
}
.readmore summary {
    color: var(--color-cherry);
    font-weight: bold;
    list-style: none;
}
.readmore[open] summary {display:none;}

img {
    display: block;
    max-width: 100%;
}

.post-header-right {
    float:right;
    margin-top:.45em;
}

footer {
    height: 40px;
    padding: 10px;
    font-size: smaller;
    text-align: center;
    margin: auto;
    color: white;
}
footer > a {color:white; text-decoration: underline;}
footer > a:visited {color:white;}
footer > a:hover {text-decoration: none;}

@media only screen and (max-width: 800px) {
    #flex {flex-wrap: wrap;}
    aside {display:none;}
    .navbar {margin: 0 auto;}
    #banner h1 {
        text-align: center;
        display: block; width: 100%;
        margin-left: 0;
        font-family: 'Cozette';
    }
}
body {cursor: url(https://softfuton.neocities.org/img/cursor.gif), progress !important;}
a:hover {cursor: url(https://softfuton.neocities.org/img/cursor_hover.png), progress !important;}