:root{
  --text-color: #C4CBCA ;
  --background-color: #002500;
  --accent-text-color: #55944C;
  --heading-color: #A92AB7;
  --link-color: #0F8FA9;

  --heading-font: 'Instrument Serif', serif;
  --body-font: 'Inconsolata', monospace;
}


html {
  line-height: 1.45;
  color: var(--text-color);
  font-size: 24px;
  background-color: var(--background-color);
}


body {
    font-family: var(--body-font);
    font-weight: 400;
    margin: 1rem;
  }

main {
    margin-inline: auto;
    max-width: 120ch;
}

main * {

  margin-block: 1 1rem;
}

header {
    margin-inline: auto;
    max-width: 120ch;
}

nav {
  font-family: var(--body-font);
  display: flex;
  flex-wrap: wrap;
}


nav a {
  margin: 10px;
  color: var(--heading-color);
  border: 5px dotted var(--accent-text-color);
  padding: 10px;
  padding-top: 15px;
 
}

header h1 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 2.8em;
  color: var(--heading-color);
}

a {
  color: var(--link-color)
}

abbr {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--heading-color);
  text-decoration-thickness: 2px;
}

a:hover {
  text-decoration: none;
}

blockquote {
  margin-inline: 1.5rem 0;
  border-inline-start: 4px dotted var(--text-color);
  padding-inline: 1rem;
  font-size: 0.9rem;
  color: var(--accent-text-color);
}

ul, ol {
  padding-inline-start: 1.5rem;
}

li {
  margin-block-start: 0;
  margin-block-end: 0.5rem;
}

li::marker {
  color: var(--heading-color);
}

pre {
  padding: 1rem;
  background-color: var(--text-color);
  color: var(--background-color);
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.75rem;
}

figure {
  margin-inline: 0;
}

figure img {
  display: block;
  margin-inline: auto;
  border-radius: 4px;
}

figcaption {
  margin-block-start: 0.5rem;
  font-size: 0.8rem;
}

.intro {
  margin-block-end: 2rem;
  font-size: 1.2em;
}

.caps {
  text-transform: uppercase;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.1em;
}

main h1 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  margin-block-start: 1.5rem;
  font-size: 1.8em;
  margin-block-end: 0.5rem;
}

main h2 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  margin-block-start: 1.5rem;
  font-size: 1.4em;
  margin-block-end: 0.5rem;
}

thead {
  color: var(--accent-text-color);
  margin-block-start: 1.5rem;
  margin-block-end: 0.5rem;
  font-size: 1.2em;
}

td {
  margin-block-start: 1.5rem;
  margin-block-end: 0.5rem;
  font-size: 0.9em;
  padding: 1rem;
}

.td-row-titles {
  color: var(--accent-text-color);
  font-weight: bold;
  padding-inline: 1rem;

}

table {
  border-collapse: collapse;
}
table td {
  border: 3px dotted var(--text-color); 
}

table th {
  border-right: 3px dotted var(--text-color);
}

table tr td:first-child {
  border-left: 0;
}

table tr:last-child td {
  border-bottom: 0;
}
table tr td:last-child {
  border-right: 0;
}

main p {
  font-family: var(--body-font);
  font-size: 1em;
}
main details {
  font-family: var(--body-font);
  color: var(--accent-text-color)
}

main summary {
  font-size: 18;
  font-weight: 700;
}

footer {
   margin-block-start: 3rem;
   padding-block: 1.5rem 3rem;
   border-block-start: 2px dotted var(--heading-color);
   margin-inline: auto;
   max-width: 120ch;
   color: var(--accent-text-color);
   font-size: 0.9rem;
}

footer * {
  margin: 0;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}
.error-message ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}
.field-error {
                border: 2px solid #dc3545 !important;
                background-color: #fff5f5;
}
.field-error-text {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 3px;
    display: block;
}

.required-field::after {
                content: " *";
                color: var(--heading-color);
            }

.ascii-gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, max-content)); */
    gap: 20px;
    justify-content: center;
    max-width: 100%;
}

.ascii-container {
    border-radius: 10px;
    padding: 10px;
    background: var(--background-color);
    position: relative;  
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: fit-content;
    height: fit-content;
    max-width: 100%; 
}
                    
.ascii-title {
    color: var(--heading-color);
    font-size: 18px;
    margin-bottom: 10px;
    font-family: var(--body-font),monospace;
    opacity: 0;
    visibility: hidden;  /* Add this */
    transition: opacity 0.3s ease, visibility 0.3s ease;  /* Update this */
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--background-color);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px dotted var(--heading-color);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

.ascii-container:hover .ascii-title {
    opacity: 1;
    visibility: visible;

}
        
.ascii-art {
    font-family: var(--body-font), Courier, monospace;
    font-size: 3px;
    line-height: 3px;
    letter-spacing: 0;
    margin: 0;
    padding: 5px;
    background: var(--background-color);
    color: var(--text-color);
    overflow: visible;
    white-space: pre;
    transition: color 0.3s ease;
    width: fit-content;
}
        
.gallery-header {
    text-align: center;
    color: var(--accent-text-color);
    margin: 20px 0;
}

.ascii-container:hover .ascii-art {
    color: var(--accent-text-color);
}

.no-files {
    color: rgb(111, 11, 11);
    font-size: 20px;
    text-align: center;
    margin-top: 50px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--background-color);
}

.modal-content {
    background-color: var(--background-color);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    border: 2px dotted;
    width: 80%;
    max-width: 800px;
    color: var(--text-color);
}

.close {
    color: var(--heading-color);
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: var(--accent-text-color);
}

.modal-title {
    color: var(--heading-color);
    font-size: 28px;
    margin-bottom: 20px;
    font-family: var(--body-font),monospace;
    padding-bottom: 10px;
}

.plant-details {
    font-family: var(--body-font),'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.plant-details-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 8px 0;
    border-bottom: 1px dotted var(--text-color);
}

.plant-details-label {
    color: var(--accent-text-color);
    font-weight: bold;
}

.plant-details-value {
    color: var(--text-color);
    word-wrap: break-word;
}

img {
  max-width: 100%;
}



.submit-button {
  font-family: 'Inconsolata', 'monospace';
  background-color: var(--link-color);
}

.merriweather-regular> {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.merriweather-regular-italic> {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-variation-settings:
    "wdth" 100;
}

.merriweather-black {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.merriweather-black-italic {
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: italic;
  font-variation-settings:
    "wdth" 100;
}


.inconsolata-regular {
  font-family: "Inconsolata", monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 87.5;
}

.instrument-serif-regular {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.instrument-serif-regular-italic {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
}

.space-mono-regular {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.space-mono-bold {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.space-mono-regular-italic {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.space-mono-bold-italic {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: italic;
}

.averia-serif-libre-light {
  font-family: "Averia Serif Libre", serif;
  font-weight: 300;
  font-style: normal;
}

.averia-serif-libre-regular {
  font-family: "Averia Serif Libre", serif;
  font-weight: 400;
  font-style: normal;
}

.averia-serif-libre-bold {
  font-family: "Averia Serif Libre", serif;
  font-weight: 700;
  font-style: normal;
}

.averia-serif-libre-light-italic {
  font-family: "Averia Serif Libre", serif;
  font-weight: 300;
  font-style: italic;
}

.averia-serif-libre-regular-italic {
  font-family: "Averia Serif Libre", serif;
  font-weight: 400;
  font-style: italic;
}

.averia-serif-libre-bold-italic {
  font-family: "Averia Serif Libre", serif;
  font-weight: 700;
  font-style: italic;
}


.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--text-color);
    margin-bottom: 20px;
}

.modal-tabs .tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.modal-tabs .tab-button:hover {
    background-color: var(--text-color);
    color: var(--background-color)
}

.modal-tabs .tab-button.active {
    border-bottom-color: var(--accent-text-color);
    background-color: var(--text-color);
    color: var(--background-color);
    font-weight: bold;
}

.tab-content {
    display: none;
    color: var(--accent-text-color)
}

.tab-content.active {
    display: block;
}

/* Usage data table styles */
/* Usage data table container with scroll */
#usageDetails {
    overflow-x: auto;
    max-width: 100%;
}

.usage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
    white-space: nowrap;
    
}

.usage-table th,
.usage-table td {
    padding: 16px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 800px;
    
}


.usage-table th {
    background-color: var(--background-color);
    font-weight: bold;
    position: sticky;
    top: 0;
}

.usage-table tr:hover {
    background-color: var(--text-color);
}

