@import url('https://fonts.googleapis.com/css2?family=Spline+Sans+Mono:ital,wght@0,300..700;1,300..700&display=swap');



:root {
  --body-bg: #ffffff;
  --bg-color: #fffffff0;
  --text-color: #333333;
  --border-color: #cccccc;
  --highlight-bg: #edededcc;
  --alternate-bg: #fafafacc;
}

body.dark-theme {
  --body-bg: #1a1a1a;
  --bg-color: #1a1a1af0;
  --text-color: #e0e0e0;
  --border-color: #444444;
  --highlight-bg: #2a2a2acc;
  --alternate-bg: #222222cc;
}


/** {
	margin: 0;
	padding: 0;
}*/


body {
    background-color: var(--body-bg);
    color: var(--text-color);
    font-size: 16px;
    font-family: "Spline Sans Mono", monospace;
    font-optical-sizing: auto;
    overflow-y: scroll;
    font-weight: 300;
}

.wrap {
    max-width: 960px;
    width: calc(100% - 80px);
    margin: 0px auto 80px;
    position: relative;
}

header {
    padding: 20px 0;
}

header h1 {
    font-size: 20px;
}

header h1 small {
    display: block;
    font-size: 14px;
    font-weight: 300;
}

header .how-to {
    font-size: 12px;
}

header ol {
    display: flex;
    flex-align: top;
    gap: 24px;
    flex-direction: column;
}

#theme-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
}


#drop-zone {
    color: var(--text-color);
    border: 2px dashed var(--border-color);
    height: 50vh;
    padding: 20px;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body:has(.item.cols) #drop-zone {
    height: 100px;
}

#info span {
    display: block;
}

table {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

table tr td {
    border-top: 1px solid var(--border-color);
    padding: 4px;
    font-size: 12px;
    width: 50%;
    line-break: anywhere;
    vertical-align: top;
}

table tr:nth-child(odd) td {
    background: var(--highlight-bg);
}

table tr:nth-child(even) td {
    background: var(--alternate-bg);
}

.cols {
    display: flex;
    gap: 24px;
    align-items: start;
    position: relative;
}

.cols>div {
    position: sticky;
    top: 10px;
    width: 100%;
}

.item.cols {
    display: flex;
    gap: 24px;
    align-items: start;
    position: relative;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 40px;
}

.item.cols>div {
    position: sticky;
    top: 10px;
    width: 100%;
}

.preview-wrap {
    display: flex;
    margin: 20px 0;
}

.preview {
    display: block;
    max-width: 100%;
    width: 100%;
    margin: auto;
    max-height: 50vh;
    object-fit: contain;
}

@media(min-width: 801px) {
    .preview-wrap {
        width: 50%;
        min-width: 50%;
        max-width: 50%;
    }
}

@media(max-width: 800px) {
    .item.cols {
        flex-direction: column;
    }
}

#select-files {
    background-color: #3D5985ff;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 12px 4px;
    cursor: pointer;
    transition-duration: 0.4s;
    border-radius: 8px;
}

#select-files:hover {
    background-color: #3D5985ce;
}

#drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drop-zone p {
    margin-bottom: 20px;
}

.preview-wrap {
    /*	background: #ccc;*/
    display: flex;
    margin: 20px 0;
}

.preview {
    display: block;
    max-width: 100%;
    width: 100%;
    margin: auto;
    max-height: 50vh;
    object-fit: contain;
}
.preview, .preview:hover {
    cursor: crosshair;
}



.preview-wrap {
    position: relative;
    display: inline-block;
    
}
.preview-wrap img{
    display: block;
    cursor: crosshair;
}


.coord-display {
    margin-top: 5px;
    font-size: 14px;
        position: absolute;
    top: 100%;
}

.dot {
    cursor: crosshair;
    position: absolute;
    margin-top: -4px;
    margin-left: -4px;
    width: 6px;
    height: 6px;
    background-color: red;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid #fff;
}

.allMetaDataSpan {
    font-size: 14px;
}

.img-data>div {
     background: var(--bg-color);
    padding: 20px;
}

h4 {
    margin-bottom: 12px;
}


@media(min-width: 801px) {
    header ol {
        flex-direction: row;
    }

    #preview-wrap {
        width: 50%;
        min-width: 50%;
        max-width: 50%;
    }

    /*.cols #preview-wrap{ order: 2; }
	.cols .img-data{ order: 1; }*/

}

@media(max-width: 800px) {
    .cols {
        flex-direction: column;
    }
}



.noselect {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}