body{
    overflow: hidden;
}
@font-face {
    font-family: 'CrossStitch3';
    src: url('../fonts/CrossStitch3.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
#container{
    display: flex;
    flex-direction: column;
    width: 100%; /* Example width */
    height: 100%; /* Example height */
    flex: 1 1 auto;
}
.top-section {
    display: flex;
    overflow: hidden;
}

#corner {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    z-index: 10;
}

#hRulerContainer {
    flex: 1;
    height: 14px;
}

#hRuler {
    display: block;
}

/* Content Wrapper (Vertical Ruler + Main Content) */
.content-wrapper {
    display: flex;
    flex: 1; /* Takes remaining space */
    overflow: hidden;
}

/* Vertical Ruler */
#vRulerContainer {
    width: 14px;
}

/* Main Content */
.main-content {
    /* flex: 1; Takes remaining space within the wrapper */
    overflow: auto;
    background: #fff;
    position: relative;
}
#thumbnail{
    position: fixed;
    top:4px;
    left: 4px;
    background-color: white;
    box-shadow: 2px 2px 6px black;
    height: 200px;
    overflow:hidden;
    border: 2px solid silver;  
}

#thumbnail img{
    display: block;
    max-height: 100%;
    max-width: 100%;
}
#thumbCanv{
    position: absolute;
    top: 0;
    left: 0;
}

#patternMenu{
    position: fixed;
    top:206px;
    left: 4px;
    background-color: white;
    box-shadow: 2px 2px 6px black;
    overflow:hidden;
    border: 2px solid silver;  
}

#patternMenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#patternMenu li {
    margin: 1px;
    cursor: pointer;
    text-align: center;
}

.done{
    color: silver;
    background-color: rgba(0,0,0,0);
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    color: #5f6368;
    border-radius: 5px;
    padding: 1px;
}
.material-symbols-outlined:hover {
    background-color: silver;
    cursor: pointer;
}
.selected {
    background-color: #5f6368;
    color: white;
}

.patternCanvas{
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

#statusBar {
    /* height:28px; */
    position: fixed;
    bottom: 0;
    /* border: 1px solid #5f6368; */
    border-radius: 1px;
    background-color: whitesmoke;
    width: 100%;
    display: flex;
    align-items: center;
    -webkit-user-select: none; /* Safari */
    user-select: none; /* Standard syntax */
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8); /* Slight white overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#colourDict {
    position: fixed;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    background-color: #f3f3f3;
    max-height: 50%;
    overflow: auto;
    /* display: none; */
    box-shadow: 2px 2px 6px black;
    border: 2px solid silver;
    display: inline-block;
}

#colourDict table{
    border-collapse: collapse;
}
#colourDict td{
    padding: 0 2px;
}

.glyph{
    font-family: CrossStitch3;
}

.selectedGlyph{
    border: 1px solid silver;
    border-radius: 3px;
    margin: 0 2px;
}

.statusDiv {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    display: inline-flex;
    padding: 0 5px;
    margin: 0 5px;
    border: 1px solid silver;
    border-radius: 3px;
    cursor: default;
}
