/*
    Below you will be able to freely customize every aspect of the comment widget.
    Most aspects of the widget are 100% able to be customized in CSS, but for strong structural changes,
    you may have to edit the JavaScript file.

    These are all the classes and IDs at your disposal!
    Classes have a c- at the start and IDs have a c_
    You don't need every single one for a good theme, but I tried to give as many options as possible!
*/
/*
    Containers:
        #c_widget - The container <div> for the entire widget
        #c_inputArea - The wrapper <div> around the form
        #c_container - The wrapper <div> around all the comments

    The input form:
        #c_form - The whole input <form>
        #c_widgetTitle - The <h2> title at the top of the form

        .c-inputWrapper- All <div> wrappers for each label/input pair
        .c-label - All <label>s
        .c-input - All <input>s

        #c_nameWrapper - The wrapper <div> for the name field
        .c-nameLabel - The <label> for the name field
        .c-nameInput - The <input> for the name field

        #c_websiteWrapper - The wrapper <div> for the website field
        .c-websiteLabel - The <label> for the website field
        .c-websiteInput - The <input> for the website field

        #c_textWrapper - The wrapper <div> for the text field
        .c-textLabel - The <label> for the text field
        .c-textInput - The <input> for the text field

        #c_submitButton - The submit button (It's an <input> element with a type of "submit")
        #c_replyingText - The text <span> that displays when a user is replying to a comment

    The comment section:
        .c-comment - All comment <div>s
        .c-reply - All reply <div>s (contained within parent comment <div>s)
        .c-replyContainer - The wrapper <div> for all replies
        .c-name - The name of the person submitting the comment/reply (an <h3> element)
        .c-timestamp - The timestamp of when the comment/reply was made (a <span> element)
        .c-site - The website linked at the top of the comment/reply (an <a> element)
        .c-text - The actual text body of the comment/reply (a <p> element)
        .c-replyButton - All reply <button>s
        .c-expandButton - The <button>s to reveal/hide replies (These only show if s_collapsedReplies is set to true in the JS)
        
        #c_pagination - The <div> wrapper for the pagination at the bottom (Only shows if there's more than one page)
        .c-paginationButton - Both left and right directional <button>s
        #c_leftButton - The left <button>
        #c_rightButton - The right <button>
*/

@font-face {
    font-family: "SourceSerif4";
    src: url("../fonts/SourceSerif4.ttf") format('truetype');
    font-display: swap;
}
@font-face {
    font-family: "Nunito";
    src: url("../fonts/Nunito.ttf") format('truetype');
    font-display: swap;
}

* {
 box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background-color: #ccc;
    border: 5px solid white;
}
::-webkit-scrollbar-thumb {
    background-color: black;
    border: 5px solid white;
}

:root {
    --color-white: #fff;
    --color-yellow: #f4d166;
    --color-pink: #f7adbb;
    --color-green: #b1d570;
    --color-orange: #f8ab66;
    --color-blue: #64cced;
    --color-purple: #e0c4e3;
    --color-black: #000000;
}
body {
    background-color: var(--color-white);
    background-image: url("../graphics/sakura-pattern.png");
    background-repeat: repeat;
    background-size: auto;
    color: var(--color-black);
    scroll-behavior: smooth;
    background-attachment: fixed; 

}
.base {
    font-family: "SourceSerif4", 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    background-position: top left;
    background-origin: content-box;
    background-attachment: fixed; 
}
.navi {
    font-family: "Inter", Verdana, Geneva, Tahoma, sans-serif;
    font-size:  clamp(1.25rem, -0.875rem + 8.333vw, 2.25rem);
    margin-top: calc(40% - 15vh);
}
.navi a {
    text-decoration: underline dotted 5px;
    font-weight: bolder;
}
.nav-link, h1, h2, h3, p {
    margin-left: 1rem;
}
.link {
    color: #aeaeae;
    text-decoration: none;
}
.link:hover {
    background-color: aliceblue;
    text-decoration: underline solid 3px skyblue;
    color: #aeaeae;
}
.star {
    vertical-align: middle;
}
.example {
    display: inline-block;
    width: 300px;
    text-align: center;
}
textarea, input {
    font: normal .65rem 'Inter', sans-serif;
    background: #fefefe;
    color: #777;
    padding: 0.5em;
    resize: none;
    float: none;
    margin-top: .5rem;
    max-width: 100%;
    width: 600px;
    display: block;
    border: 2px solid #c4c4c4;
}
textarea {
    height: 150px;
}
input {
    width: 400px;
}
.pink {
    color: var(--color-pink);
}
.yellow {
    color: var(--color-yellow);
}
.yellow:hover, .yellow:focus {
    color: var(--color-white);
    background-color: var(--color-yellow);
}
.green {
    color: var(--color-green);
}
.purple {
    color: var(--color-purple);
}
.purple:hover, .purple:focus {
    color: var(--color-white);
    background-color: var(--color-purple);
}
.blue {
    color: var(--color-blue);
}
.orange {
    color: var(--color-orange);
}
footer {
    color: #777;
    font-size: 0.6rem;
    text-align: center;
}
.box {
    border-left: solid 5px var(--color-black);
    background-color: snow;
    padding-left: 1rem;
    width: 100%;
    max-width: 800px;
}
button, .vote {
    color: var(--color-white);
    background-color: var(--color-black);
    font-family: "SourceSerif4", 'Trebuchet MS', 'Lucida Sans Unicode', Arial, sans-serif;
    box-shadow: none;
}
button:hover, button:active, .vote:hover, .vote:active, #pagination button:hover, #pagination button:active {
    color: var(--color-black);
    background-color: var(--color-white);
    border: 3px dotted var(--color-black);
    scale: none;
}
label {
    font-size: 0.8rem;
    text-align: justify;
    line-height: 1.75rem;
    word-spacing: 0.1rem;
}
  #pagination button {
    border: 1px solid black;
    margin: 3px;
  }
  .join-section {
    max-width: 100%;
    border: 2px solid #c4c4c4;
    background-color: #fffefc;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
  }
  .join-section a {
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    color: var(--color-black);
  }
  .join-section a:hover {
    text-decoration: underline;
    font-style: italic;
  }
.char-icon {
  width: 30px;
  height: auto;
  margin: 0 4px;
  vertical-align: bottom;
}
a {
    text-decoration-thickness: 3px;
}

#c_widget {
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
    padding: 25px;
    background-attachment: fixed;
    font-family: "SourceSerif4", Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    color: #000000;
}

#c_widget button, #c_widget input[type=submit] {
    padding: 5px;
    text-decoration: none;
	text-align: center;
    color: var(--color-white);
    background-color: var(--color-black);
    font-family: "SourceSerif4", 'Times New Roman', Times, serif;
}
#c_widget button:hover, #c_widget input[type=submit]:hover {
    border: 2px dotted var(--color-black);
    background-color: var(--color-white);
    color: var(--color-black);
}
#c_widget button:disabled, #c_widget input[type=submit]:disabled {opacity: 60%;}
#c_widget button:disabled:hover, #c_widget input[type=submit]:disabled:hover {
    color: var(--color-brown);
    border: 1px solid var(--color-white);
}

/* Input section */
#c_inputDiv {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

#c_widgetTitle {
    margin: -10px;
    margin-bottom: 10px;
    padding: 5px;
    text-align: left;
}

.c-inputWrapper {
    display: block;
    text-align: left;
    margin-bottom: 10px;
}
.c-input {
    padding: 4px;
    color: var(--color-brown);
    border: none;
    border-bottom: 1px dotted var(--color-brown);
	outline: none;
    max-width: calc(100% - 10px);
    width: 500px;
    font: normal .65rem 'Inter', sans-serif;
    box-shadow: 0px 0px 1px #777;
    background: #fefefe;
    border: 0px;
    color: #777;
    padding: 0.5em;
    margin-top: .5rem;
    border: 2px solid #c4c4c4;
}
.c-input:focus {
    border: 2px solid var(--color-brown);
}

.c-textInput {
    max-width: calc(100% - 10px);
    width: 500px;
}
#c_submitButton {
    display: block;
}

/* Comment section */
.c-comment {
    margin-bottom: 15px;
    padding: 10px;
    box-shadow: 0px 0px 1px #777;
    background-color: #fffefc;
    max-width: calc(100% - 10px);
    width: 500px;
}
.c-reply {
    display: block;
    width: 90%;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: 0;
    padding-left: 10px;
    border-left: 5px solid var(--color-black);
    background-color: #fffefc;
}
.c-reply:last-child {
    margin-bottom: 0;
}
.c-replyContainer {
    margin: -10px;
    margin-top: 10px;
    padding: 10px;
}

.c-name {
    display: inline-block;
    margin: 0;
    margin-right: 10px;
    padding: 0;
    font-weight: bold;
}
.c-site {
    text-decoration: none;
    color: var(--color-black);
}
.c-site:hover {
    text-decoration: underline;
    font-style: italic;
}
.c-timestamp {
    float: right;
    opacity: 75%;
}
.c-text {
    margin: 0;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
    padding-bottom: 0;
    font-size: 0.75rem;
    text-align: justify;
}

/* Pagination */
#c_pagination {text-align: center;}
.c-replyButton {
    margin-top: 10px;
    margin-right: 4px;
}
.c-expandButton {
    margin-top: 10px;
    margin-left: 4px;
}
.c-paginationButton {
    margin-right: 4px;
    margin-left: 4px;
}
.c-input {
    width: 500px;
    border: 2px solid #c4c4c4;
}
.c-label {
    display: block;
}
/* =========================================
   HTMLCommentBox theme matched to cmtbox.css
   ========================================= */

#HCB_comment_box {
  box-sizing: border-box;
  max-width: 800px;
  font-family: "SourceSerif4", Arial, Helvetica, sans-serif !important;
  font-size: 0.8rem;
  color: var(--color-black);
  box-shadow: none !important;
  background-color: none !important;
}

/* Form fields: yellow-tint example adapted to your palette */
#HCB_comment_box #hcb_form_content,
#HCB_comment_box #hcb_form_email,
#HCB_comment_box #hcb_form_name,
#HCB_comment_box #hcb_form_website {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
  padding: 0.5em;
  font-family: "SourceSerif4", "Times New Roman", Times, serif;
  color: #777;
  background-color: #fffefc;
  border: 2px solid #c4c4c4;
  outline: none;
}
h1, h2, h3 {
    font-family: "SourceSerif4", "Times New Roman", Times, serif !important;
}
#HCB_comment_box #hcb_form textarea, #HCB_comment_box #hcb_form #hcb_form_name {
    font-family: "SourceSerif4", "Times New Roman", Times, serif !important;
}
#HCB_comment_box #hcb_form_name:focus,
#HCB_comment_box #hcb_form_email:focus,
#HCB_comment_box #hcb_form_content:focus,
#HCB_comment_box #hcb_form_website:focus {
  border-color: var(--color-brown, #7a4b2a);
}

/* Larger comment textarea, from the guide */
#HCB_comment_box #hcb_form_content {
  height: 150px;
  resize: vertical;
}

/* Submitted comment text */
#HCB_comment_box blockquote,
#HCB_comment_box .hcb-comment-body {
  margin: 0;
  padding: 10px 0 0;
  color: var(--color-black);
  font-size: 0.75rem;
  text-align: justify;
}

/* Commenter name */
#HCB_comment_box .author-name {
  display: inline-block;
  margin: 0 4px 0 0;
  font-weight: bold;
}

/* Submit button, adapted from the guide */
#HCB_comment_box #hcb_submit,
#HCB_comment_box .submit {
  display: block;
  margin-top: 10px;
  padding: 5px;
  font-family: "SourceSerif4", "Times New Roman", Times, serif;
  color: var(--color-white, #fff);
  background-color: var(--color-black, #000);
  border: 2px dotted var(--color-black, #000);
  border-radius: 0;
  cursor: pointer;
}

#HCB_comment_box #hcb_submit:hover,
#HCB_comment_box .submit:hover {
  color: var(--color-black, #000);
  background-color: var(--color-white, #fff);
  border: 2px dotted var(--color-black, #000);
}

/* Watermark / placeholder text */
#HCB_comment_box .text-blur {
  color: #777;
}

#HCB_comment_box .text-focus {
  color: var(--color-black);
}

/* Global text size, from the guide */
#HCB_comment_box #hcb_form_content,
#HCB_comment_box #hcb_form_email,
#HCB_comment_box #hcb_form_name,
#HCB_comment_box #hcb_form_website,
#HCB_comment_box #hcb_submit,
#HCB_comment_box .author-name,
#HCB_comment_box .hcb-comment-body,
#HCB_comment_box .hcb-comment-tb a {
  font-size: 16px;
  font-family: "SourceSerif4", Arial, Helvetica, sans-serif !important;
}
h3 {
  display: list-item;
  list-style-image: url("../graphics/star_s_03.gif");

}
#HCB_comment_box #hcb_form .hcb-door-out {
  width: 16px !important;
  content: url("../graphics/outlink2.png") !important;
}
#HCB_comment_box .hcb-icon a img[alt="rss"] {
  width: auto !important;
  content: url("../buttons/rss-feed.png") !important;
  box-sizing: border-box;
}

#HCB_comment_box textarea, #HCB_comment_box input.text {
   border: 2px solid #c4c4c4;
   font-family: "SourceSerif4", Arial, Helvetica, sans-serif !important;
}

#HCB_comment_box .hcb-wrapper-half {
  display:block;
  width:50%;
  float:left;
}
#HCB_comment_box .hcb-wrapper {
  clear:both;
  margin-bottom:0.5em;
}
#HCB_comment_box input.text {
  display:block;
  width:95%;
  
}
/* the submit button */
#HCB_comment_box input.submit, #HCB_comment_box #hcb_form .btn-secondary, #HCB_comment_box #HCB_comment_form_box .btn-secondary, #HCB_comment_box #hcb_form .btn, #HCB_comment_box #HCB_comment_form_box .btn {
    margin:0 6px 4px 0;
    background-color: var(--color-black);
    font-family: "SourceSerif4", Arial, Helvetica, sans-serif !important;
    text-decoration:none;
    font-weight:bold;
    color: var(--color-white);
    cursor:pointer;
    width:auto;
    overflow:visible;
    padding: 4px;
    border-radius: 4px;
}
#HCB_comment_box input.submit:hover, #HCB_comment_box #hcb_form .btn-secondary, #HCB_comment_box #HCB_comment_form_box .btn-secondary:hover, #HCB_comment_box #hcb_form .btn, #HCB_comment_box #HCB_comment_form_box .btn:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    border: 2px dotted var(--color-white);
}

#HCB_comment_box span.home-desc {
  opacity:0.4;
}

/* the individual comment display containers */
#HCB_comment_box div.comment {
  border-top: 2px dotted var(--color-black);
  margin-bottom:0.5em;
}

/* the moderator message */
.hcb-mod  b{
  color:var(--color-blue);
}
#HCB_comment_box #hcb_form .home-desc a, #HCB_comment_box .home-desc a {
    color: #aeaeae;
    text-decoration: none;
}
#HCB_comment_box #hcb_form .home-desc a:hover, #HCB_comment_box .home-desc a:hover {
    background-color: aliceblue;
    text-decoration: underline solid 3px skyblue;
    color: #aeaeae;
}
/* next, prev, ok and x link style */
.hcb-link {
  color: gray;
  text-decoration:underline;
}
#HCB_comment_box #hcb_form_content:focus, #HCB_comment_box #hcb_form_email:focus, #HCB_comment_box #hcb_form_name:focus, #HCB_comment_box #hcb_form_website:focus {
    box-shadow: none;
}
#HCB_comment_box #hcb_form textarea, #HCB_comment_box #hcb_form #hcb_form_name {
  width: 100%;       
  max-width: 700px; 
  margin: 0 auto;
}
#HCB_comment_box .author-name {
  position: relative;
  color: var(--color-pink);
  text-shadow:-1px -1px 0 #ffffff,  1px -1px 0 #ffffff, -1px  1px 0 #ffffff,  1px  1px 0 #ffffff,-1px  0px 0 #ffffff,  1px  0px 0 #ffffff, 0px -1px 0 #ffffff,  0px  1px 0 #ffffff;
}
#HCB_comment_box .author hcb-mod {
  visibility: hidden;
  position: relative;

}
#HCB_comment_box .author hcb-mod::after {
  content: "Flora ❤︎";
  visibility: visible;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-green);
  text-shadow:-1px -1px 0 #ffffff,  1px -1px 0 #ffffff, -1px  1px 0 #ffffff,  1px  1px 0 #ffffff,-1px  0px 0 #ffffff,  1px  0px 0 #ffffff, 0px -1px 0 #ffffff,  0px  1px 0 #ffffff;
}
@media only screen and (max-width: 1300px) {
    body, .base {
        background-image: url("../graphics/sakura-pattern.png");
        background-repeat: repeat;
        background-size: auto;
        max-width: 100%;
        width: 900px;
        background-attachment: fixed; 
    }
}
@media only screen and (max-width: 480px) {
    body, .base {
        background-image: url("../graphics/sakura-pattern.png");
        background-repeat: repeat;
        background-size: auto;
        max-width: 100%;
        width: 900px;
        background-attachment: fixed; 
    }
    .navi {
        margin-top: calc(110% - 5vh);
    }
}
