

@font-face {
    font-family: aclonica;
    src: url('fonts/aclonica-regular.ttf'); 
}

@font-face {
    font-family: marius-default;
    src: url('fonts/default.ttf'); 
}

@font-face {
    font-family: kosugimaru;
    src: url('fonts/kosugimaru.ttf'); 
}


html {
  font-family: marius-default, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: aclonica, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

pre, code {
	font-family: kosugimaru, 'Courier New', monospace;
}

.bxdata {
	font-family: kosugimaru, 'Courier New', monospace;
  font-size: 0.9em;
  padding: 0 0.5em;
  background-color: #073642;
  white-space: pre-wrap;
}

.monster_container {
	font-family: kosugimaru, 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #073642;
}

.monster_image_container {
    border: 1px solid #626262;
    max-width: 75%;
    margin-left: 5px;
}

footer {
    text-align: center;
}

nav ul li a {
    font-size: 1.75em;
    position: relative;
    margin: 0 5px; /* Space between links and separators */
}

nav ul li a::before {
    content: '::';
    color: #626262;
    position: absolute;
    left: -2.5px; /* Adjust as needed to position correctly */
}

/* Hide the separator for the first link */
nav ul li:first-child a::before {
    content: '';
}


.extra-nav a {
    font-size: 1.25em;
    position: relative;
    margin: 0 5px; /* Space between links and separators */
}


.extra-nav-element {
    font-size: 1.25em;
    position: relative;
    margin: 0 5px; /* Space between links and separators */
}

.extra-nav a::before {
    content: '::';
    color: #626262;
    position: absolute;
    left: -2.5px; /* Adjust as needed to position correctly */
}


.extra-nav a:first-child::before {
    content: '/';
}

ul {
	list-style-type: '+ ';
}

ul ul {
	list-style-type: '- ';
}

        .terrain-button {
            padding: 10px 20px;
            font-size: 16px;
            cursor: pointer;
        }

.terrain-button-description {
    font-size: 0.8em;
}


.tool-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 5px;
}


.tool-link-box {
  background-color: #073642;    
    padding: 10px;
    text-align: center;
    border: 2px solid #626262;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


.tool-link-box a {
    text-decoration: none;
    font-size: 1.25em;
}

/* Responsive Styles */
@media (min-width: 768px) {
    /* style tool-grid and tool-link-box for mobile here */
    .tool-grid {
        display: flex;
        flex-direction: column;
}

    .tool-link-box {
        background-color: transparent;
        padding: 0px;
        border: 0px;
        box-shadow: 0px;
    }

    .tool-link-box a {
        font-size: 1.1em;
    }
}
       
.button-item {
  display: flex;
  flex-direction: column; /* Stack button and description vertically */
  align-items: center; /* Center items horizontally */
}




/* following is for the novels wit h chapters etc. */
.chapter {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.paragraph-container {
  position: relative;
  width: 100%;
  margin-bottom: 1em;
}

.comment {
  position: absolute;
  right: 0;
  top: 0;
	font-family: kosugimaru, 'Courier New', monospace;  
  color: #2E8B57; /* Dark green */
  /*background: #f9f9f9;*/
  padding: 5px 10px;
  border-left: 1px solid #ccc;
  white-space: pre-wrap;
  max-width: 200px;
  font-size: 0.9em;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.toc li {
    list-style-type: none;
}

.toc .level-1 {
    margin-left: 0;
}

.toc .level-2 {
    margin-left: 20px;
}

.toc .level-3 {
    margin-left: 40px;
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  font-size: 1.1em;    
}

.category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    /*font-size: 16px;*/
    padding: 0;
}

.category-toggle .icon {
    font-weight: bold;
    transition: transform 0.3s;
}

.category-container {
    margin-bottom: 10px;
}


.star {
  font-size: 1.5em;
  display: inline-block;
  margin: 0 2px;
}

.star.full {
  color: gold;
}

.star.half {
  color: gold;
  text-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.star.empty {
  color: #ccc;
}
