@charset "UTF-8";
/* @import url("https://fonts.cdnfonts.com/css/overpass"); */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Overpass:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@use "reset";
:root {
    --foreground: rgb(43, 43, 43); /*#2b2b2b*/
    --background: rgb(247, 247, 247); /*#f7f7f7*/
    --gray: rgba(0, 0, 0, 0.05);
    --dark-gray: rgba(0, 0, 0, 0.25);
}
body {
    background: var(--background);
    color: var(--foreground);
    font-family: monospace, Inter, system-ui,; /*"Overpass", sans-serif;*/
    /* font-feature-settings: "palt"; */
    cursor: pointer;
}
body.dark {
    --foreground: rgba(255, 255, 255, 0.8);
    --background: rgba(0, 0, 0, 0.95);
    --gray: rgba(255, 255, 255, 0.1);
    --dark-gray: rgba(155, 155, 155, 0.3);
}
body main {
    width: 100%;
    height: 100%;
}
body main canvas#grid {
    position: absolute;
    /* width: 100%;
    height: 100%; */
    
    background-image: radial-gradient(var(--dark-gray) 1px, transparent 0);
    background-size: 10px 10px;

    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}
body main section#board {
    /*min-width: 100%;*/
    /*min-height: 100%;*/
    margin: 25px;
    position: absolute;

    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;

}
body main section#board.active {
    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}
body main section#board div#selection {
    position: absolute;
    background-color: var(--gray);
}
body main section#board div.memo {

    font-family: "monaco";
    background-color: var(--background);
    position: absolute;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid var(--foreground);
    user-select: none;
    opacity: 0.95;


    text-align:justify;
    word-break:break-all; 
    text-justify:inter-ideograph;
    text-justify:inter-character;
    word-wrap:break-word;
    overflow-wrap:break-word;

    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
body main section#board div.memo.active {
    user-select: auto;
    box-shadow: 10px 10px var(--dark-gray);
    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}
body main section#board div.memo.active div.close, body main section#board div.memo.active textarea.input {
    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}
body main section#board div.memo div.menu {

    z-index: 1001;
    position: absolute;

    top: 0px;
    right: 0px;
    /*color: var(--foreground);*/

    opacity: 0.5;
    color: #5c5c5c;
    font-size: 14px;
    font-weight: thin;
    text-align: center;
    line-height: 16px;
    width: 16px;
    height: 16px;

    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    /* border-bottom: 1px solid var(--foreground); */
}
body main section#board div.memo div.close {
    z-index: 1001;
    position: absolute;
    top: 0px;
    left: 0px;
    opacity: 0.5;
    color: #5c5c5c;
    font-size: 13px;
    font-weight: thin;
    text-align: center;
    line-height: 16px;
    width: 16px;
    height: 16px;

    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    /* border-bottom: 1px solid var(--foreground); */
}

body main section#board div.memo div.pin {
    position: absolute;
    top: 0px;
    right: 20px;
    opacity: 1;
    color: var(--dark-gray);
    font-size: 10px;
    font-weight: thin;
    text-align: center;
    line-height: 20px;
    width: 16px;
    height: 16px;

    user-select: none !important;
    -moz-user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    /* border-bottom: 1px solid var(--foreground); */
}

body main section#board div.memo div.drag {
    cursor: grab;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 20px;
    z-index: 1000;
    /* margin: 1px; */
    /* border-bottom: 1px solid var(--foreground); */
}
body main section#board div.memo div.title {

    font-size: 10px;
    font-family: "monaco";

    border: solid 0px #333;
    border-radius: 4px;
    background-color: var(--gray);
    backdrop-filter: blur(2px);

    /* box-shadow: 10px 10px var(--dark-gray); */

    position: absolute;
    z-index: 1;
    top: 2.5em;
    left: 1.5em;
    text-align: center;
    vertical-align: center;

    padding: 2px;
    padding-inline: 4px;

    height: 1.4em;
    line-height: 1.4em;
    /* width: 15%; */
    max-width: 100%;

    font-weight: 900;
    margin: 0;
    outline: 0;
    resize: none;

    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

    /* margin: 1px; */
    /* border-bottom: 1px solid var(--foreground); */
}

body main section#board div.memo div.counter {
    border-radius: 6px;
    background-color: rgba(150, 150, 150, 0.1);
    backdrop-filter: blur(2px);


    position: absolute;
    z-index: 1000;
    bottom: 10px;
    right: 10px;
    padding-inline: 8px;
    color: var(--foreground);
    /* background-color: var(--background); */
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    height: 16px;
    /* border-bottom: 1px solid var(--foreground); */
}
body main section#board div.memo div.resize {
    cursor: nw-resize;
    position: absolute;
    background-color: solid var(--foreground);
    right: 2px;
    bottom: 2px;
    width: 8px;
    height: 8px;
    opacity: 0.3;
    border-bottom: 1.5px solid var(--foreground);
    border-right: 1.5px solid var(--foreground);
}
body main section#board div.memo textarea.input {
    caret-color: #4d4d4d;
    position: absolute;
    top: 17px;
    left: 0px;
    width: calc(100% - 32px);
    height: calc(100% - 49px);

    padding: 16px;
    margin: 0;
    border: 0;
    outline: 0;
    resize: none;
    overflow: auto;
    font-family: "Overpass", "Inter";
    font-size: 12.5px;
    font-weight: 500;

    /*文字詰など*/
    font-feature-settings: "palt";
    text-align:justify;
    word-break:break-all;
    text-justify:inter-ideograph;
    text-justify:inter-character;
    word-wrap:break-word;
    overflow-wrap:break-word;

    cursor: text;
    background: var(--background);
    color: var(--foreground);
    scrollbar-color: var(--foreground) transparent;
    scrollbar-width: thin;

    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -webkit-touch-callout: none;
}
body main section#board div.memo textarea.input::-webkit-scrollbar {
    width: 1px;
    height: 6px;
}
body main section#board div.memo textarea.input::-webkit-scrollbar-track {
    margin-top: 8px;
    margin-bottom: 13px;
    background: transparent;
}
body main section#board div.memo textarea.input::-webkit-scrollbar-thumb {
    background: var(--foreground);
}
body main section#board div.memo textarea.input::-webkit-scrollbar-thumb:hover {
    background: var(--foreground);
}
body main section#board div.memo textarea.input::-webkit-scrollbar-thumb:active {
    background: var(--foreground);
}
body main section#board div.memo textarea.input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}
body main section#board div.memo div.input {
    caret-color: #E81449;
    position: absolute;
    top: 17px;
    left: 0px;
    width: calc(100% - 32px);
    height: calc(100% - 49px);
    padding: 16px;
    margin: 0;
    border: 0;
    outline: 0;
    resize: none;
    overflow: auto;
    font-family: "Overpass", "Inter";
    font-size: 12.5px;
    font-weight: 500;

    /*文字詰など*/
    font-feature-settings: "palt";
    text-align:justify;
    word-break:break-all;
    text-justify:inter-ideograph;
    text-justify:inter-character;
    word-wrap:break-word;
    overflow-wrap:break-word;

    cursor: text;
    background: var(--background);
    color: var(--foreground);
    scrollbar-color: var(--foreground) transparent;
    scrollbar-width: thin;

    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -webkit-touch-callout: none;
}
body main section#board div.memo div.input::-webkit-scrollbar {
    width: 1px;
    height: 6px;
}
body main section#board div.memo div.input::-webkit-scrollbar-track {
    margin-top: 8px;
    margin-bottom: 13px;
    background: transparent;
}
body main section#board div.memo div.input::-webkit-scrollbar-thumb {
    background: var(--foreground);
}
body main section#board div.memo div.input::-webkit-scrollbar-thumb:hover {
    background: var(--foreground);
}
body main section#board div.memo div.input::-webkit-scrollbar-thumb:active {
    background: var(--foreground);
}
body main section#board div.memo div.input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

