:root {
  --main-color: #0b6d3b;
  --accent-color: #BCD23F;
  --accent2-color: #d2d4c1;
  --background-color: white;
  --text-color: black;
  --table-accent-color: #f4f4f4;
}

@font-face {
  font-family: 'HeadingFont';
  src: url('fonts/Comfortaa-VariableFont_wght.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MainFont';
  src: url('fonts/47cbc4e2adbc5db9-s.p.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.text-highlight {
    color: var(--accent-color);
}

div.box-highlight {
    display: inline-block;
    margin-top: 15px;
    border-color: var(--main-color);
    background-color: #BCD23F;
    padding-left: 16px;
    padding-right: 16px;
}

div.box-highlight p {
    line-height: 1.5;
}

body {
    background-color: var(--background-color);
    margin: 0;
    /*font-family: Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif;*/
    font-family: 'MainFont', sans-serif;
    line-height: 1.5;
}

.hwind {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

div#maindiv {
    position: relative;
    max-width: 820px;
    top: 20px;
    overflow: visible;
    margin: 0 auto;
    width: 90%;
    padding-bottom: 50px;
}

div#inputArea {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

div#inputArea fieldset {
    min-width: 0 px;
    padding: 15px 15px;
    margin-left: 0px;
    border-width: 2px;
    border-style: solid;
    border-color: var(--accent2-color);
    line-height: 32px;
}

div#inputArea fieldset legend {
    color: var(--main-color);
}

div.topPart {
    top: 0px;
    height: 17px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--main-color);
}

/* w screan */

/* Animation for rotating the circle */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Apply the spin animation to the SVG element */
.spinner {
    animation: spin 2s linear infinite;
}

/* Style the container */
div#waiting_overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #202020;
    opacity: 80%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.menuButton {
    display: flex;
    position: relative;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

div.menuButton:hover {
    color: var(--main-color);
}

div.menuButton:active {
    transform:translate(2px, 2px); /* Slight scale-up on click */
}

div#menulist {
    left: 0;
    position: absolute; /* Position the menulist relative to the menu button */
    background-color: var(--background-color); /* Background color for the dropdown */
    border: 1px solid var(--main-color); /* Optional border for styling */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
    z-index: 20; /* Ensure it appears above other elements */
    padding: 10px; /* Add padding for spacing */
}

div#menulist div.menuitem {
    padding: 10px; /* Add padding for spacing */
    cursor: pointer;
}

div#menulist div.menuitem:hover {
    background-color: var(--main-color); /* Change background color on hover */
    color: var(--background-color); /* Change text color on hover */
}


div.dialogPage {
    left: 0;
    position: absolute;
    background-color: var(--background-color);
    border: 1px solid var(--main-color);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 20;
    padding: 25px;
    display: none;
}

div#inputPage {
    font-size: 17px;
}

input.button {
    background-color: var(--background-color); /* Primary blue */
    color: var(--main-color); /* White text */
    border-radius: 5px; /* Rounded corners */
    padding: 7px 10px;
    margin-top: 20px;
    margin-left: 0px;
    font-size: 18px; /* Legible text */
    cursor: pointer;
    border-color: var(--main-color);
}

input.button:hover {
    background-color: #bcc4cc; /* Darker blue on hover */
}

input.button:active {
    transform:translate(2px, 2px); /* Slight scale-up on click */
}

input.button:disabled {
    background-color: #f0f0f0; /* Lighter grey background */
    color: #a0a0a0; /* Grey text */
    border-color: #d0d0d0; /* Lighter border */
    cursor: not-allowed; /* Show not-allowed cursor */
}

div.menu {
    padding-top: 17px;
}

/* Input text boxes */
div#inputPage input.input_number {
    font-size: 17px;
    width: 84px;
}

div#inputPage input.inputError {
    border-color: red;
}

div#inputPage input.input_text {
    font-size: 17px;
    width: 160px;
}

div#inputPage input.input_bool {
    width: 18px;
    height: 18px;
}

div#inputPage select {
    font-size: 17px;
}

div.tabs input {
    all: unset;
    cursor: pointer;
    font-size: 18px;
    position: absolute;
    z-index: 5;
    color: var(--accent-color);
}

div.tabs input.selected_tab {
    color: var(--main-color);
}

div.tabs svg {
    position:relative;
}

div#maindiv h1 {
    font-size: 32px;
    font-weight: normal;
    margin-bottom: 10px;
    margin-top: 24px;
    color: var(--main-color);
    font-family: 'HeadingFont', sans-serif;
}

div#maindiv h2 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 10px;
    margin-top: 24px;
    color: var(--main-color);
    font-family: 'HeadingFont', sans-serif;
}

.title {
    font-size: 48px;
    font-weight: normal;
    margin-top: 12px;
    color: var(--main-color);
    line-height: 55x;
    margin-bottom: 10px;
    font-family: 'HeadingFont', sans-serif;
}

#outputPage div.warning_icon {
    position: absolute;
    right: -12px;
    transform: translateY(-20%);
    color: rgb(255, 102, 0);
    font-size: 38px;
    font-weight: bold;
    user-select: none;
}

#outputPage div.figure {
    text-align: center;
}

#outputPage div svg {
    margin-left: -5%;
    max-width: 110%;
    height: auto;
    object-fit: contain;
}

#outputPage div.fineprint {
    font-size: smaller;
    color: grey;
}

#outputPage table {
    border-collapse: collapse;    /* Ensure borders are collapsed for a clean look */
    margin: 20px auto;
}


/* Table borders */
#outputPage table th,
#outputPage table td {
    padding: 8px;                 /* Add padding for better spacing */
    font-variant-numeric: tabular-nums;
}

/* Table header formatting */
#outputPage table th {
    background-color: #f9f9f9;    /* Light grey background for headers */
    font-weight: bold;            /* Bold text for headers */
}

/* Alternating row colors for readability */
#outputPage table tr:nth-child(even) {
    background-color: #f9f9f9;    /* Light grey for even rows */
}

#outputPage table tr:nth-child(odd) {
    background-color: var(--background-color);    /* White for odd rows */
}

/* Caption styling */
#outputPage table caption {
    caption-side: top;            /* Place caption above the table */
    font-weight: bold;            /* Bold text for emphasis */
    font-size: 16px;              /* Slightly larger font size */
    margin-bottom: 10px;          /* Add spacing between caption and table */
}

/* Fine-tuning text in table */
#outputPage table td, #outputPage table th {
    vertical-align: middle;       /* Vertically center text */
    line-height: 1.5;             /* Increase line height for better readability */
}


/* selectionTable */
table.selectionTable {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

table.selectionTable tr:nth-child(odd) {
    background-color: #f9f9f9;
}

table.selectionTable tr:nth-child(even) {
    background-color: #ffffff;
}

table.selectionTable tbody tr:hover {
    background-color: #d3e5ff;
    cursor: pointer;
}

table.selectionTable th, table.selectionTable td {
    padding: 5px;
    border: 1px solid #ddd;
    text-align: left;
}

table.selectionTable tr:active {
    color: #ffffff;
    background-color: var(--main-color);
    transform:translate(2px, 2px); /* Slight scale-up on click */
}

span.lightText {
    color: #808080;
}

.main-footer {
    width: 100%;
    background: #f7f7f7;
    border-top: 1px solid #e0e0e0;
    padding: 18px 0;
    text-align: center;
    font-size: 15px;
    color: #444;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.main-footer a {
    color: var(--main-color);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.main-footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}