html {
    font-size: 14px;
}

:root {
    --gothic-red: #b22222;
    --dark-bg: #1a1a1a;
    --gothic-black: #1a1a1a;
    --gothic-dark-gray: #2d2d2d;
    --gothic-gray: #3a3a3a;
    --gothic-light-gray: #4a4a4a;
    --gothic-silver: #c0c0c0;
    --gothic-white: #f5f5f5;
    --gothic-dark-red: #800000;
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --shadow-light: rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

a {
    color: var(--gothic-red);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #1c1c1c;
    font-family: 'Cinzel', serif;
}

input {
    background-color: var(--gothic-dark-gray);
    color: var(--gothic-white);
}
    input:focus {
        border-color: var(--gothic-dark-red);
    }

.form-check-input:checked {
    background-color: var(--gothic-red);
    border-color: var(--gothic-red);
}

.siteTitle {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--gothic-red);
    letter-spacing: 1px;
    text-shadow: 0 0 6px rgba(178, 34, 34, 0.4);
}

.pageTitle {
    color: var(--gothic-red);
}

.loginCard {
    background-color: #1c1c1c;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.5s ease;
}

.loginCard h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #e5e5e5;
}

.formControl {
    background-color: #2a2a2a;
    border: 1px solid #555;
    color: #f1f1f1;
}

.formControl::placeholder {
    color: #999;
    opacity: 1;
}

    .formControl:focus {
        background-color: #2a2a2a;
        border-color: var(--gothic-dark-red);
        box-shadow: none;
        color: #fff;
    }

.form-label {
    color: #E5E5E5;
}

.extraLinks {
    text-align: center;
    margin-top: 1rem;
}

    .extraLinks a {
        text-decoration: none;
    }

        .extraLinks a:hover {
            text-decoration: underline;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.canvasContainer {
    width: 100%;
    height: 60vh;
    background-color: var(--gothic-black);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
}

.bgPanel {
    background-color: #1e1e1e;
    color: #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.formLabel {
    font-weight: 500;
    color: #ccc;
}

.formControl.darkInput {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #eee;
}

.formControlColor {
    width: 100%;
    height: 2.5rem;
    padding: 0;
    border: none;
    background-color: transparent;
}

.formRange {
    width: 100%;
}

.roundedPanel {
    border-radius: 16px;
}

.secondaryThemeColor {
    color: var(--gothic-red);
    accent-color: var(--gothic-red);
}
    .secondaryThemeColor a {
        color: var(--gothic-red);
    }

.secondaryThemeButton {
    background-color: var(--gothic-dark-red);
    border: none;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 2px;
}

    .secondaryThemeButton:hover {
        background-color: #a00000;
    }

.leftSpacingButton {
    margin-left: 20px;
}

.thumbnailRow {
    background-color: #1a1a1a;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.thumbnailWrapper {
    flex-shrink: 0; /* prevents flexbox from shrinking width */
}

.thumbnailImage {
    height: 100px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: #222;
    margin: 2px;
}

    .thumbnailImage:hover {
        transform: scale(1.05);
        border-color: var(--gothic-red); /* Dark blood-red accent */
    }

.gothicBorder {
    border: 3.5px solid var(--gothic-red); /* Rich dark red */
    box-shadow: 0 0 5px #400;
    border-radius: 6px;
    background-color: #111;
}

.gothic-dropdown {
    margin-bottom: 4px;
}

.gothic-dropdown label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.gothic-dropdown select {
    background-color: #1a1a1a;
    color: #eee;
    border: 2px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .gothic-dropdown select:hover {
        border-color: #7a1f1f;
        box-shadow: 0 0 8px #7a1f1f;
    }

    .gothic-dropdown select:focus {
        border-color: #aa2b2b;
        box-shadow: 0 0 12px #aa2b2b;
    }

.info-item {
    background: var(--gothic-gray);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--gothic-light-gray);
    box-shadow: 0 4px 8px var(--shadow-light);
}

.info-label {
    font-size: 0.9rem;
    color: var(--gothic-silver);
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.1rem;
    color: var(--gothic-white);
    font-weight: 600;
}

/*.backgroundImage {
    background-image: url('images/darkSky.png');*/ /* Replace with your image path */
    /*background-position: center;*/ /* Centers the image */
    /*background-repeat: no-repeat;*/ /* Prevents image repetition */
    /*background-size: cover;*/ /* Scales the image to cover the entire div */
    /*height: 100vh;*/ /* Sets the div height to 100% of the viewport height */
    /*width: 100vw;*/ /* Sets the div width to 100% of the viewport width */
/*}*/




.gothic-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--shadow-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal-content {
    background: var(--gothic-dark-gray);
    color: var(--gothic-white);
    border: 1px solid var(--gothic-black);
    border-radius: 8px;
    min-width: 300px;
    max-width: 600px;
    width: 50%;
    box-shadow: 0 6px 12px var(--shadow-dark);
    display: flex;
    flex-direction: column;
}

.modal-header, .modal-footer {
    padding: 10px 15px;
    background: var(--gothic-gray);
    border-bottom: 1px solid var(--gothic-black);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--gothic-black);
}

.modal-body {
    padding: 15px;
}

.modal-title {
    margin: 0;
    font-size: 1.1rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--gothic-silver);
    font-size: 1.2rem;
    cursor: pointer;
}

    .close-btn:hover {
        color: var(--gothic-white);
    }


.blackBoldText {
    color: var(--gothic-dark-gray) !important;
    font-weight: bolder !important;
}

#controlBar {
    display: flex;
    justify-content: center;
    align-items: center; 
}

.hidden{
    display:none;
}


/*Checkboxes*/
.gothic-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--dark-bg);
    padding: 1rem;
    border: 1px solid var(--gothic-dark-gray);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px var(--shadow-dark);
    max-width: 250px;
}

.gothic-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gothic-silver);
    user-select: none;
    transition: color 0.2s ease;
}

    .gothic-checkbox:hover {
        color: var(--gothic-white);
    }

    /* Hide default checkbox */
    .gothic-checkbox input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    /* Custom box */
    .gothic-checkbox .checkmark {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 1.2rem;
        width: 1.2rem;
        background-color: var(--gothic-gray);
        border: 2px solid var(--gothic-light-gray);
        border-radius: 0.2rem;
        box-shadow: inset 0 0 4px var(--shadow-dark);
        transition: all 0.2s ease;
    }

    /* Checked state */
    .gothic-checkbox input:checked ~ .checkmark {
        background-color: var(--gothic-red);
        border-color: var(--gothic-red);
        box-shadow: 0 0 6px var(--gothic-red), inset 0 0 3px var(--shadow-dark);
    }

    /* Checkmark symbol */
    .gothic-checkbox .checkmark::after {
        content: "";
        position: absolute;
        display: none;
    }

    .gothic-checkbox input:checked ~ .checkmark::after {
        display: block;
    }

    /* Gothic checkmark style */
    .gothic-checkbox .checkmark::after {
        left: 4px;
        top: 0px;
        width: 5px;
        height: 10px;
        border: solid var(--gothic-white);
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.gothic-radios {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--dark-bg);
    padding: 1rem;
    border: 1px solid var(--gothic-dark-gray);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px var(--shadow-dark);
    max-width: 250px;
}

.gothic-radio {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gothic-silver);
    user-select: none;
    transition: color 0.2s ease;
}

    .gothic-radio:hover {
        color: var(--gothic-white);
    }

    /* Hide default radio */
    .gothic-radio input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    /* Custom circle */
    .gothic-radio .radiomark {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 1.2rem;
        width: 1.2rem;
        background-color: var(--gothic-gray);
        border: 2px solid var(--gothic-light-gray);
        border-radius: 50%;
        box-shadow: inset 0 0 4px var(--shadow-dark);
        transition: all 0.2s ease;
    }

    /* Checked state */
    .gothic-radio input:checked ~ .radiomark {
        border-color: var(--gothic-red);
        box-shadow: 0 0 6px var(--gothic-red), inset 0 0 4px var(--shadow-dark);
    }

    /* Inner dot */
    .gothic-radio .radiomark::after {
        content: "";
        position: absolute;
        display: none;
    }

    .gothic-radio input:checked ~ .radiomark::after {
        display: block;
    }

    /* Gothic dot style */
    .gothic-radio .radiomark::after {
        top: 4px;
        left: 4px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--gothic-red);
        box-shadow: 0 0 4px var(--gothic-red);
    }


/* General styling for the range input */
input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px; /* Track height */
    background: transparent;
    cursor: pointer;
}

/* Set CSS variables for colors */
input[type='range'] {
    --filled-color: var(--gothic-red); /* Green for the filled part */
    --unfilled-color: var(--gothic-light-gray); /* Light gray for the unfilled part */
    --thumb-color: var(--gothic-red);
}

    /* Style the track with a gradient to create the filled/unfilled effect */
    input[type='range']::-webkit-slider-runnable-track {
        width: 100%;
        height: 8px;
        background: linear-gradient(to right, var(--filled-color) 0%, var(--filled-color) var(--fill-percent), var(--unfilled-color) var(--fill-percent), var(--unfilled-color) 100%);
        border-radius: 6px;
    }

    input[type='range']::-moz-range-track {
        width: 100%;
        height: 8px;
        background: linear-gradient(to right, var(--filled-color) 0%, var(--filled-color) var(--fill-percent), var(--unfilled-color) var(--fill-percent), var(--unfilled-color) 100%);
        border-radius: 6px;
    }

    /* Style the thumb (the slider handle) */
    input[type='range']::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 14px;
        height: 14px;
        background: var(--thumb-color);
        border-radius: 50%;
        margin-top: -3px; /* Adjust to center the thumb on the track */
    }

    input[type='range']::-moz-range-thumb {
        width: 14px;
        height: 14px;
        background: var(--thumb-color);
        border-radius: 50%;
        border: none;
    }


.btn {
    padding: 10px;
    background: linear-gradient(135deg, var(--gothic-red) 0%, #8b0000 100%);
    color: var(--gothic-white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px var(--shadow-light);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px var(--shadow-dark);
        background: linear-gradient(135deg, #cc2222 0%, #990000 100%);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-secondary {
    background: linear-gradient(135deg, var(--gothic-light-gray) 0%, var(--gothic-gray) 100%);
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, #5a5a5a 0%, var(--gothic-light-gray) 100%);
    }
