/*
    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-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>
*/

/* Main */
#c_rightButton,
#c_leftButton {
  margin-top: 0px !important;
}
.c-comment a {
  letter-spacing: 0.5px;
  color: var(--link-inner);
  text-decoration: underline wavy 1px;
  text-decoration-thickness: 1px;
  font-weight: bold;
  position: relative;
  text-shadow: none;
}

#c_container {
  margin-bottom: 5px;
}

.c-comment a:hover {
  color: var(--link-inner-hover) !important;
  text-decoration: underline wavy 1px !important;
  text-shadow: 2px 2px var(--link-outline-hover), 1px 1px var(--link-outline-hover), 2px 1px var(--link-outline-hover), 1px 2px var(--link-outline-hover), 0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover),
    0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover),
    0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover), 0 0 1px var(--link-outline-hover) !important;
}

p:not(:last-of-type) {
  margin-bottom: 0px !important;
}

#c_widget {
  box-sizing: border-box;
  height: 100%;
  overflow: auto;
  background-image: url("bow-bg.gif"); /* F2U background provided by https://sadgrl.online/webmastery/downloads/tiledbgs */
  background-attachment: fixed;
  font-family: "Trebuchet MS";
}

/* Input section */
#c_inputDiv {
  text-transform: lowercase;
  border-radius: 5px;
}

#c_widgetTitle {
  margin: 0;
  padding: 0;
  font-style: italic;
  text-decoration: underline;
  text-align: center;
}

.c-inputWrapper {
  display: block;
  margin-top: 5px;
  margin-bottom: 5px;
  text-indent: 10px;
}
.c-input {
  padding: 3px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  outline: none;
  flex-direction: column;
  gap: 5px;
}
.c-input:focus {
  border: 1px solid #fb96d8;
}

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

/* Comment section */
.c-comment {
  background: var(--window-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: var(--shadows-inset);
  overflow: auto;
  padding: 6px;
  text-align: left;
  margin-bottom: 5px;
}
.c-comment img {
  display: inline-block;
  margin-top: 5px;
  max-height: 500px;
}
.c-comment:last-of-type {
  margin-bottom: 0px;
}
.c-comment.forminput {
  text-align: left;
}

.c-replyContainer {
  scrollbar-width: thin;
  border-radius: 5px;
  padding: 6px;
  margin-top: 5px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-left: 3px solid var(--border-color);
}
.c-reply {
  overflow: auto;
  padding: 5px;
  text-align: left;
  margin-bottom: 5px;
}

.c-reply:not(:first-of-type) {
  border-top: 1px solid var(--border-color);
}
.c-reply:last-child {
  margin-bottom: 0;
}

.c-timestamp {
  text-transform: lowercase;
  margin: 0;
}
p.c-timestamp {
  display: block;
  margin: 0;
}

.c-link {
  display: block;
  margin: 0;
}

.c-linkrev i {
  opacity: 60%;
  color: var(--text);
}

p.c-link:not(:last-of-type) {
  margin-bottom: 0px;
}
.c-image {
  display: block;
}

.c-symbol {
  margin: 0 5px;
  display: inline-block;
}

#c_widget button {
  display: block;
  padding: 3px 7px !important;
}

.c-name {
  text-decoration: underline;
  font-size: 30px;
  font-weight: lighter;
  letter-spacing: 0.5px;
  line-height: 20px;
  font-family: enchantedland;
}

.c-timestamp,
.c-mood,
.c-song,
.c-link {
  opacity: 75%;
}

.c-site {
  text-transform: lowercase;
}
.c-text {
  margin: 0;
  text-align: left;
}
.c-text:before {
  content: "- - - - - - - - - - - - - - - - - - - - - - - -";
  display: block;
  opacity: 60%;
}
.c-replyButton button {
  margin-top: 5px !important;
}
/* Pagination */
#c_pagination {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  gap: 5px !important;
}

details.formreplybox {
  display: flex;
  flex-direction: column;
}

#c_widget summary {
  text-align: left;
  margin-left: 20px;
}

#c_widget summary h3 {
  display: inline-block;
  margin-left: 10px;
}

.c-replyButton {
  margin-top: 10px;
}
.c-expandButton {
  margin-top: 10px;
}

.c-paginationButton {
  width: 100px;
  display: inline-block;
  margin: 0px !important;
}
.c-groupwrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;

  & .c-inputWrapper {
    width: 300px;

    & input {
      width: calc(100% - 8px);
    }
  }
}

.custom-editor-wrapper textarea {
  border: 1px solid #ccc;
  padding: 4px;
  margin: 1rem;
  border-radius: 4px;
  box-shadow: 0 3px 0px -1px rgba(0, 0, 0, 0.05);
}

.tox-tinymce {
  line-height: 13px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
}
