﻿body {
    font: bold 15px arial,verdana;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f0f0f0;
    width: 100%;
}

h1 {
    font-size: 18px;
    margin-bottom: 5px;
}

.strapline {
    font-size: 14px;
    font-weight: lighter;
    margin-bottom: 15px;
}

.welcome-message {
    display: flex;
    width: 100%;
    max-width: 1000px;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
}

    .welcome-message ol {
        margin: 0;
        padding: 0 0 0 20px; /* Indent the numbered list */
        list-style-type: decimal; /* Default numbering style */
    }

    .welcome-message ul {
        margin: 5px 0 0 20px; /* Indent the sub-list */
        padding: 0;
        list-style-type: disc; /* Dotted style for the sub-list */
    }

    .welcome-message li {
        margin: 5px 0; /* Add spacing between items */
    }


    .welcome-message .title {
        font-size: 16px;
        font-weight: 600;
    }

    .welcome-message .numbering {
        font-size: 14px;
        font-weight: lighter;
    }

    .welcome-message .message {
        font-size: 14px;
        font-weight: normal;
    }

    .welcome-message .spacer {
        margin-bottom: 15px;
    }


/* Canvas styling */
canvas {
    border: 1px solid #ccc;
    cursor: grab;
}

    canvas:active {
        cursor: grabbing;
    }

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /*gap: 10px;*/
    margin-bottom: 10px;
    width: 100%;
}

.controls-container {
    width: 80%;
    /*max-width: 1000px;*/
    margin: 0 0 0 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

.controls-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    background-color: #cdcdcd;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

.controls-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 15px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
}

    .control-group label {
        margin-bottom: 5px;
        text-align: center;
    }

    .control-group input {
        width: 60px;
        text-align: center;
        margin-bottom: 5px;
    }

    .control-group button {
        width: 30px;
        height: 30px;
    }


.file-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 50px;
    background-color: transparent; /* Light background for better contrast */
}

    .file-container h2 {
        font-size: 18px; /* Slightly larger font for better readability */
        color: #333; /* Darker text color */
        margin-bottom: 10px;
        text-align: center;
        font-weight: bold;
    }

    /* Styles for inner child divs */
    .file-container div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .file-container .file-upload {
        width: 100%;
        max-width: 400px;
        background: #fff;
        border: 2px dashed #007BFF;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

        .file-container .file-upload input {
            border: 1px solid #c0c0c0;
            padding: 15px;
            display: none;
        }

        .file-container .file-upload .upload-label {
            display: inline-block;
            background-color: #007BFF;
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

    .file-container .dragover {
        border-color: #0056b3;
    }

    .file-container .file-download {
        width: 100%;
        max-width: 400px;
        background: #fff;
        border: 2px dashed #007BFF;
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

        .file-container .file-download button {
            border: 1px solid #c0c0c0;
            padding: 15px;
            display: none;
        }

        .file-container .file-download .download-label {
            display: inline-block;
            background-color: #007BFF;
            color: #fff;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

    .file-container .clear-canvas {
        text-decoration: underline;
        cursor: pointer;
    }


.draggable-control {
    position: absolute;
    display: flex; /* Flex */
    align-items: center;
    justify-content: space-between;
    width: 50px; /* Width including triangles */
    height: 100px;
    cursor: ew-resize;
    user-select: none; /* Prevent text selection */
}

.draggable-line {
    position: relative;
    background-color: blue;
    width: 10px;
    height: 100%;
}

.triangle {
    position: relative;
    width: 0;
    height: 0;
    border-style: solid;
}

.triangle-left {
    position: relative;
    border-width: 10px 15px 10px 0;
    border-color: transparent blue transparent transparent;
}

.triangle-right {
    position: relative;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent blue;
}

#output {
    position: relative;
    top: 20px;
    left: 20px;
    font-size: 16px;
    user-select: none; /* Prevent text selection */
}

/* Colour Pallet */
.palette {
    margin-top: 0;
}

    .palette label {
        margin-bottom: 5px;
    }

.palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 35px);
    grid-gap: 10px;
    justify-content: start;
}

.palette-item {
    width: 25px;
    height: 25px;
    cursor: pointer;
    border: 1px solid #aaa;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* File, Controls, Advanced dropdown */
.dropdown-container {
    width: 80%;
    /*max-width: 1000px;*/
    margin: 0 0 0 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

.dropdown-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    background-color: #cdcdcd;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

    .dropdown-bar span:first-child {
        margin-right: 15px;
    }

.dropdown-triangle {
    font-size: 18px;
    transition: transform 0.3s;
}

.dropdown-content {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 15px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}
