@tailwind base;
@tailwind components;
@tailwind utilities;
@import "tailwindcss";
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap'); /* EB Garamond*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Roboto+Slab:wght@100..900&display=swap'); /* Roboto Slab */


/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
/* src/exports/styles/trix.css */
.trix-content {
  border: 1px solid var(--rhino-border-color);
  border-radius: 0px 0px var(--rhino-border-radius) var(--rhino-border-radius);
  margin: 0;
  padding: 0.4em 0.6em;
  min-height: 200px;
  outline: transparent;
  overflow-wrap: break-word;
  word-break: break-word;
}
.trix-content[contenteditable=true] {
  white-space: pre-wrap;
}
.trix-content:is(:focus, :focus-within) {
  border-color: var(--rhino-button-active-border-color);
}
.trix-content :is(img, svg, figure) {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.trix-content :is(figure, p) {
  padding: 0;
  margin: 0;
}
.trix-content figure {
  position: relative;
}
.trix-content figcaption {
  line-break: anywhere;
  display: inline-block;
  white-space: normal;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  text-align: center;
  vertical-align: top;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.trix-content[contenteditable=true] figcaption {
  white-space: break-spaces;
}
.trix-content .rhino-upload-error {
  background-color: rgba(255, 0, 0, 0.3);
}
.trix-content:not([readonly]) figure:is(:focus-within, :focus, .has-focus) :nth-child(2) {
  outline: transparent;
  box-shadow: var(--rhino-focus-ring);
}
.rhino-attachment-editor::part(delete-button),
.rhino-attachment-editor::part(file-metadata) {
  display: none;
}
.trix-content:not([readonly]) figure:is(:focus-within, :focus, .has-focus) .rhino-attachment-editor::part(delete-button),
.trix-content:not([readonly]) figure:is(:focus-within, :focus, .has-focus) .rhino-attachment-editor::part(file-metadata) {
  display: flex;
}
.trix-content .placeholder {
  position: absolute;
  pointer-events: none;
  color: var(--rhino-placeholder-text-color);
  cursor: text;
  content: "";
}
.trix-content figure.attachment figcaption {
  position: relative;
}
.trix-content p.is-editor-empty:first-child::before,
.trix-content figure[data-trix-attachment].has-focus figcaption.is-empty::before {
  color: var(--rhino-placeholder-text-color);
  content: attr(data-placeholder);
  pointer-events: none;
}
.trix-content figure[data-trix-attachment]:not(.has-focus) figcaption.is-empty::before {
  content: attr(data-default-caption);
  pointer-events: none;
}
.trix-content ul {
  list-style: disc;
}
.trix-content figure[data-trix-attachment].has-focus figcaption.is-empty::before {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0%);
}
.trix-content p.is-editor-empty:first-child::before {
  float: left;
  height: 0;
  pointer-events: none;
}
.trix-content {
  box-sizing: border-box;
}
.trix-content * {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
.trix-content h1 {
  font-size: 1.2em;
  line-height: 1.2;
}
.trix-content blockquote {
  border: 0 solid #ccc;
  border-inline-start-width: 0.3em;
  margin-inline-start: 0.3em;
  padding-inline-start: 0.6em;
}
.trix-content li {
  margin-inline-start: 1em;
}
.trix-content :where(pre) {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.5em;
  white-space: pre;
  background-color: #eee;
  overflow-x: auto;
}
.trix-content img {
  max-width: 100%;
  height: auto;
}
.trix-content .attachment {
  display: block;
  position: relative;
  max-width: 100%;
}
.trix-content .attachment a {
  color: inherit;
  text-decoration: none;
}
.trix-content .attachment a:hover,
.trix-content .attachment a:visited:hover {
  color: inherit;
}
.trix-content .attachment__caption {
  text-align: center;
  margin-top: 0.5em;
}
.trix-content .attachment__caption .attachment__name + .attachment__size::before {
  content: " \b7  ";
}
.trix-content .attachment--preview {
  width: 100%;
  text-align: center;
  margin: 0.6em 0;
}
.trix-content .attachment--preview .attachment__caption {
  color: #666;
  font-size: 0.9em;
  line-height: 1.2;
}
.trix-content .attachment.attachment--file {
  color: #333;
  line-height: 1;
  margin: 0 2px 2px 2px;
  padding: 0.4em 1em;
  border: 1px solid var(--rhino-border-color);
  border-radius: var(--rhino-border-radius);
}
.trix-content .attachment-gallery {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.trix-content figure.attachment {
  display: inline-block;
  position: relative;
  white-space: normal;
}
.trix-content .attachment-gallery > p {
  width: 0px;
  padding: 0;
  flex-basis: 0%;
  max-width: 0%;
  flex-shrink: 1;
  flex-grow: 0;
}
.trix-content .attachment-gallery .attachment {
  flex: 1 0 100%;
  padding: 0 0.5em;
  max-width: 100%;
  white-space: normal;
}
.trix-content .attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]) {
  flex: 1 0 33%;
  padding: 0 0.5em;
  max-width: 33%;
  white-space: normal;
}
.trix-content .attachment-gallery > :is(.attachment, action-text-attachment):first-of-type:nth-last-of-type(1) ~ :is(.attachment, action-text-attachment),
.trix-content .attachment-gallery > :is(.attachment, action-text-attachment):first-of-type:nth-last-of-type(1) {
  padding: 0;
  flex-basis: 100%;
  max-width: 100%;
}
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(2),
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(2) ~ :is(.attachment--preview, action-text-attachment[previewable=true]),
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(4),
.attachment-gallery > :is(.attachment--preview, action-text-attachment[previewable=true]):first-of-type:nth-last-of-type(4) ~ :is(.attachment--preview, action-text-attachment[previewable=true]) {
  flex-basis: 50%;
  max-width: 50%;
}
.trix-content .attachment-gallery.attachment-gallery--2 action-text-attachment > .attachment,
.trix-content .attachment-gallery.attachment-gallery--4 action-text-attachment > .attachment,
.trix-content .attachment-gallery action-text-attachment > .attachment {
  max-width: 100%;
}
.trix-content {
  --rhino-focus-ring: 0px 0px 4px 1px var(--rhino-button-active-border-color);
  --rhino-border-radius: 4px;
  --rhino-danger-border-color: red;
  --rhino-danger-background-color: #ffdddd;
  --rhino-text-color: #374151;
  --rhino-border-color: #cecece;
  --rhino-placeholder-text-color: #cecece;
  --rhino-button-text-color: #889;
  --rhino-button-border-color: #cecece;
  --rhino-button-disabled-text-color: #d1d5db;
  --rhino-button-disabled-border-color: #d1d5db;
  --rhino-button-disabled-background-color: #d1d5db;
  --rhino-button-active-border-color: #005a9c;
  --rhino-button-active-background-color: rgb(226 239 255);
  --rhino-toolbar-text-color: hsl(219, 6%, 43%);
  --rhino-toolbar-icon-size: 24px;
  --rhino-dialog-border-color: hsl( var(--rhino-button-focus-background-color-hsl) / 50% );
  --rhino-button-focus-background-color: hsl( var(--rhino-button-focus-background-color-hsl) );
  --rhino-button-focus-background-color-hsl: 219 26% 95%;
  display: block;
  color: var(--rhino-text-color);
  font-family: "EB Garamond";
  font-size: larger;
}
.rhino-toolbar-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--rhino-border-color);
  border-radius: var(--rhino-border-radius);
  padding: 0.2em 0.4em;
  color: inherit;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 2px;
}

.rhino-editor::part(toolbar__button) {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--rhino-border-color);
  border-radius: var(--rhino-border-radius);
  padding: 0.2em 0.4em;
  color: inherit;
  width: 26px;
  height: 26px;
  padding: 0;
  margin: 2px;
}

@media (min-width: 768px){
  .rhino-toolbar-button {
    width:  33px;
    height: 33px;
  }

  .rhino-editor::part(toolbar__button) {
    width:  33px;
    height: 33px;
  }
}

.rhino-toolbar-button:is([aria-disabled=true], :disabled) {
  color: var(--rhino-button-disabled-text-color);
  border-color: var(--rhino-button-disabled-border-color);
}
.rhino-toolbar-button[aria-disabled=true]:focus {
  border-color: var(--rhino-button-disabled-border-color);
}
.rhino-toolbar-button svg {
  min-height: var(--rhino-toolbar-icon-size);
  min-width: var(--rhino-toolbar-icon-size);
  max-height: var(--rhino-toolbar-icon-size);
  max-width: var(--rhino-toolbar-icon-size);
}
.rhino-toolbar-button:is(:focus, :hover):not([aria-disabled=true], :disabled) {
  outline: transparent;
  box-shadow: var(--rhino-focus-ring);
  border-color: var(--rhino-button-active-border-color);
}
.rhino-toolbar-button:is(:focus, :hover):not([aria-disabled=true], :disabled, [aria-pressed=true], [part~=toolbar__button--active]) {
  background-color: var(--rhino-button-focus-background-color);
}
.rhino-toolbar-button:is([aria-disabled=true], :disabled):not([part~=toolbar__button--active]) {
  color: var(--rhino-button-disabled-text-color);
  border-color: var(--rhino-button-disabled-border-color);
}
.rhino-toolbar-button:is(:focus, :hover):is([aria-disabled=true], :disabled):not([part~=toolbar__button--active]) {
  outline: transparent;
  color: var(--rhino-button-disabled-text-color);
  border-color: var(--rhino-button-disabled-border-color);
  box-shadow: 0 0 0 1px var(--rhino-button-disabled-border-color);
}
/*# sourceMappingURL=trix.css.map */
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
*
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap'); /* EB Garamond*/
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Roboto+Slab:wght@100..900&display=swap'); /* Roboto Slab */

@layer base {
  @font-face {
    font-family: "Baskerville";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: font-url(/fonts/Baskerville.ttc) format('tcc');
  }
}

#editor::part(toolbar__base) {
  justify-content: center;
  border-color: transparent;
  border-width: 0px;
}

#editor::part(toolbar__button) {
  border-color: transparent;
  border-width: 0px;
  border-radius: 0%;
}

#editor::part(toolbar__button):hover {
  border-color: transparent;
  border-width: 0px;
  background-color: #393939!;
  box-shadow: none;
}

#editor button{
  border-color: transparent;
  border-width: 0px;
  border-radius: 0%;
}

#editor button:hover{
  border-color: transparent;
  border-width: 0px;
  background-color: #393939!;
  box-shadow: none;
}

#editor button:active, #editor button.active{
  border-color: transparent;
  border-width: 0px;
  background-color: #B0BCBD;
  box-shadow: none;
}



#editor::part(toolbar__button--active) {
  border-color: transparent;
  border-width: 0px;
  background-color: #B0BCBD;
}

@media (min-width: 768px){
  #editor::part(toolbar) {
    position: sticky;
    top: 121px;
    background: white;
    z-index: 10;
  }
}

@media (max-width: 768px){
  #editor::part(toolbar) {
    position: sticky;
    top: 101px;
    background: white;
    z-index: 10;
  }
}

#editor .trix-content{
  border-color:transparent;
  border-width: 0px;
}

#title:focus{
  --tw-ring-shadow: 0 0 #000 !important;
}

/* summary > h2:hover{
  color: #798B76;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;
} */

/* details > summary::-webkit-details-marker{
  background-color: orange !important;
} */

summary {
  list-style: none;

  /* &:hover{
    font-weight: bolder;
    color: #798B76;

  } */
  /* &::-webkit-details-marker {
    content: "";
  } */

  &::marker {
    content: "";
  }
  
  &::before{
    font-weight: 400;
  }
  &::after {
    /* Custom marker dimensions */
    font-weight: bolder;
  }
}

::-webkit-validation-bubble-message {
  font-family: 'Courier New', Courier, monospace;
}

@media (max-width: 768px){
  .dropcap{
    float: left;
    font-size: 110px;
    vertical-align: top;
    line-height: 85px;
    height: 85px;
    margin-right: 8px;
  }
}

@media (min-width: 768px){
  .dropcap{
    float: left;
      font-size: 220px;
      vertical-align: top;
      line-height: 160px;
      height: 150px;
      margin-right: 20px;
  }
}

#content p{
  display: block;
  min-height: 28.8px;
  line-height: 28.8px;
}


/* The toggle*/
/* The switch - the box around the slider */
@media (min-width: 768px){
  .switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 1px;
    background-color: white;
    -webkit-transition: .1s;
    transition: .1s;
    border: 1px solid rgb(209, 213, 219);
    /* border-color: #B0BCBD; */
  }
}

@media (max-width: 768px){
  .switch {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 12px;

  }

  .slider:before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  left: 2px;
  bottom: 1px;
  background-color: white;
  -webkit-transition: .1s;
  transition: .1s;
  border: 1px solid rgb(209, 213, 219);
  /* border-color: #B0BCBD; */
  }
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f9fafb;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #798B76;
}

input:focus + .slider {
  box-shadow: 0 0 1px #798B76;
}

input:checked + .slider:before {
  -webkit-transform: translateX(10px);
  -ms-transform: translateX(10px);
  transform: translateX(10px);
}

input:disabled + .slider{
  cursor: not-allowed;
  background-color: #ccc;
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
  border: 1px solid rgb(209, 213, 219);
}

.slider.round:before {
  border-radius: 50%;
}

.loading-spinner{
  background-color: #798B76;
}



/* defaults for unordered and ordered list to fix issues.*/
ul, ol { 
    display: block;
    list-style: disc outside none;
    margin: 1em 0;
    padding: 0 0 0 40px;
}
ol { 
    list-style-type: decimal;
}

p {
  hyphens: manual;
}
