:root {
    --bg-color: #fff;
    --text-color: #000;
    --highlight: #1793ff;
    --border-color: #eee;
    --outline-color: #ccc;
    --button-color: #08f;
    --hover-color: rgba(240, 240, 240, .8);
		--shadow-color: #ddd;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #e0e0e0;
        --highlight: #4a90e2;
        --outline-color: #444;
        --border-color: #222;
				--shadow-color: #444;
        --hover-color: rgba(40, 40, 40, .8);
    }
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    background-color: var(--bg-color);
    color: var(--text-color);
}

canvas {
    cursor: text;
    min-width: 0;
    flex: 1;
    height: 100%;
}

.canvas-wrapper {
    cursor: text;
    min-width: 0;
    position: relative;
    flex: 1;
    height: 100%;
}

.sidebar {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
    flex-direction: column;
    z-index: 5;
    overflow-y: scroll;
    overflow-x: hidden;
    width: 0px;
    scrollbar-width: thin;
    scrollbar-color: #aaa transparent;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.sidebar.click {
    width: 320px;
    border-right: 1px solid var(--border-color);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 10px;
}

div.text-option-container {
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 4;
	background-color: var(--bg-color);
	display: flex;
	box-shadow: 0 0 5px var(--shadow-color);
	border-radius: 20px;
	overflow: hidden;
	height: 40px;
}

div.text-option-container.status {
	bottom: 10px;
	top: unset;
}

div.text-option-container.status button.text-option {
	font-size: 14px;
}

button.text-option {
	flex-basis: 0;
	flex: 1;
	margin: 0;
	border-radius: 0;
	z-index: 4;
	border: none;
	background-color: transparent;
	font-size: 16px;
	color: var(--text-color);
	display: flex;	
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	min-width: 50px;
}

button.text-option#bold {
	font-weight: bold;
}

button.text-option#italic {
	font-style: italic;
}

button.text-option:hover {
	background-color: var(--hover-color);
}

div.color-icon {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: linear-gradient(90deg, #1CB5E0 0%, #000851 100%)
}

.state-modal {
    display: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: IBM Plex Mono;
    box-shadow: 0 0 5px var(--border-color);
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
    margin-top: 5px;
}

.note-list {
    display: none;
    flex: 1;
    padding-top: 50px;
}

.note-element {
    height: 25px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 10px 0;
    padding: 6px 6px;
    font-family: Inter;
    text-align: left;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    max-width: 300px;
    width: 100%;
    color: #888;
    border: 1px solid transparent;
}

.note-element:hover {
    background-color: var(--hover-color);
    border: 1px solid var(--border-color);
}

.sync-row {
    height: 25px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
    padding: 6px 6px;
    font-family: Inter;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    max-width: 300px;
    width: 100%;
    color: inherit;
    border: 1px solid transparent;
}

.sync-status-offline {
    color: #e74c3c;
    font-weight: 500;
}

.sync-status-action {
    color: #4a90e2;
    cursor: pointer;
    font-weight: 500;
}

.sync-status-action:hover {
    opacity: 0.8;
}

.trigger-sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
		box-shadow: 0 0 5px var(--shadow-color);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    z-index: 6;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.trigger-sidebar:hover {
    background-color: var(--outline-color);
}

.ball {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-color);
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    max-width: 400px;
    table-layout: fixed;
    border-color: #ccc;
}

td {
    padding: 0px 15px;
    text-align: center;
    font-family: 'IBM Plex Mono';
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    color: inherit;
}

td.bold {
    font-weight: bold;
}

.time-hours {
    font-size: 14px;
}

.time-minutes {
    font-size: 12px;
    position: relative;
    top: -6px;
    left: 5px;
}

.new-note {
	color: var(--text-color);
}

.selected-note-row {
    color: var(--bg-color);
    background-color: var(--button-color);
}

.selected-note-row:hover {
    color: var(--bg-color);
    background-color: var(--button-color);
    border: 1px solid transparent;
}

#canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#zoomScroller {
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
  z-index: 3;
  background: transparent;
}

#zoomScroller::-webkit-scrollbar {
  width: 0;
  height: 0;
}

#zoomScroller .zoom-step {
  scroll-snap-align: start;
  height: 100%;
  width: 100%;
  flex: 0 0 100%;
  position: relative;
  pointer-events: none;
}

#zoomScroller {
  display: flex;
  flex-direction: column;
}

@media (max-width: 500px) {
    .sidebar.click {
        width: 100%;
        border-right: none;
    }
}
