body {
    background-color: rgb(0, 0, 0);
}
footer {
    background-color:black;
    position:fixed;
    bottom:0;
    width:100%;
    height:40px;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ref1 start :https://wemo.tech/535 */
::-webkit-scrollbar{
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track{
  background: #fff;
  box-shadow: inset 0 0 2px #777; 
}
::-webkit-scrollbar-thumb{
  background: #ccc;
  border-radius: 10px;
  box-shadow: none;
}
/* ref1 end */
#topView, footer, header {
    background-image: url("/images/black-paper.png");
}
.social_google_login_button {
    width:220px;
    height:53px;
    background-image: url('/images/social_google_icon_normal.png');
    background-size: contain;
}
.social_google_login_button:hover {
    background-image: url('/images/social_google_icon_focus.png');
    background-size: contain;
}
.social_google_login_button:active {
    background-image: url('/images/social_google_icon_pressed.png');
    background-size: contain;
}

.preload {
    display: none;
}

.oauth_button {
    margin: 5px;
    width:220px;
    height: 40px;
    padding:0px;
    border:0;
    border-radius: 2px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.2), 0 1px 5px 0 rgba(0,0,0,0.12);
    line-height: 40px;
    font-weight:bold;
}
.oauth_button_list {
    padding: 0;
}
.oauth_button_list li button.oauth_button:hover {
    box-shadow: 0 3px 2px 0 rgba(0,0,0,0.24), 0 4px 1px -2px rgba(0,0,0,0.3), 0 1px 5px 0 rgba(0,0,0,0.22);
}
.oauth_button span {
    vertical-align: middle;
}

.oauth_button_image {
    margin-left: 5px;
    display:inline-block;
    width:220px;
    line-height:40px;
    padding:0px;
    background:none;
    border:0;
}
.register_button {
    background-color: #f2691d;
    font-size:1.3em;
    color:white;
}
.twitter_button {
    background-color:#1da1f2;
    color:white;
}
.facebook_button {
    background-color:#1877f2;
    color:white;
}
.github_button {
    background-color:#ffffff;
    color:#000000;
}
.guest_button {
    color:#000000;
    text-align:center;
    background-color:#f4b400;
}

#user-name {
}
.userinfo_thumbnail {
    height: 60px;
}
.userinfo_thubBox {
    padding: 30px 15px;
}
.userinfo_infoBox {
    padding: 0px 15px;
    min-width: 200px;
}
.userinfo_plan, .userinfo_validperiod, .userinfo_socialprovider {
    margin-bottom: 5px;
}
.inline-block {
    display:inline-block;
}

#userthubnail {
    max-height: 32px;
    margin-right: 10px;
    vertical-align: top;
}
.tab-box {
    height: 80%;
    width: auto;
    overflow-x: auto;
    overflow-y:hidden;
}
main {
    position: absolute;
    top:40px;
    width: 100vw;
    height: calc(100vh - 80px);
    overflow:auto;
}
@media (max-width:450px) {
    .infcontrol-box {
        margin:0 5px;
        height:80%;
        display:flex;
    }
    #my-page {
        display: none;
    }
    .infcontrol-box button {
        font-size: 10px;
        padding:0;
        margin: 0 5px;
        display:block;
        height:32px;
        line-height:32px;
    }
    #user-info {
        padding:0;
        background-color: rgba(235, 200, 3, 0.2);
        cursor: pointer;
        line-height: 32px;
        white-space: nowrap;
    }
    #user-info:hover {
        background-color: rgba(240, 215, 77, 0.3);
    }
    #user-name {
        display: none;
    }
    #userthubnail {
        margin-right:0;
    }
    .head-tab {
        width: initial;
        font-size: 1em;
        margin-left: 5px;
    }
    .head-logo h3 {
        font-size: 1.6em;
        padding:0px;
        text-align:center;
        margin:0 5px;
    }
    .head-logo h3 img {
        margin:0 5px 0 0;
    }
    .tab-box {
    }
    .head-logo {
        margin-right:auto;
        width: 160px;
    }
    .popWindow {
        position: relative;
        text-align:center;
        background-color: rgba(0,0,0,0.6);
        padding: 30px 10px;
        border: solid 1px white;
    }
    .popWindow h3 {
        font-size:1.6em;
        font-weight:bold;
        margin:0px;
    }
    #topView > .popWindow {
        position: absolute;
        top:0;
    }
    .grid-container {
        overflow: hidden;
        position: relative;
        height: 100%;
        width:100%;
        min-height: 100%;
        min-width:100%;
        background-color:#FEFEFE;
        background-image:   repeating-linear-gradient(to bottom, gray, gray 1px, transparent 1px, transparent 19px, gray 19px, gray 20px),
                            repeating-linear-gradient(to right, gray, gray 1px, transparent 1px, transparent 19px, gray 19px, gray 20px);
    }
    .form-title {
        font-size:12px;
        line-height: 12px;
        text-align:center;
        margin:0px;
    }
    .mdl-textfield {
        padding: 10px 0;
    }
    .mdl-textfield__label {
        top: 18px;
    }
    .url-submitbutton {
        margin-right: 0;
    }
    .url-submit > .mdl-button {
        height: 30px;
    }
}
@media (min-width:451px) {
    .infcontrol-box {
        margin:0 10px;
        height:80%;
        display:flex;
    }
    .infcontrol-box button {
        margin: 0px 7px;
        display:block;
        height:32px;
        line-height:32px;
    }
    #user-info {
        padding:0 10px;
        background-color: rgba(235, 200, 3, 0.2);
        cursor: pointer;
        line-height: 32px;
        white-space: nowrap;
    }
    #user-info:hover {
        background-color: rgba(240, 215, 77, 0.3);
    }
    .head-tab {
        width: initial;
        font-size:1.6em;
        margin-left: 10px;
    }
    .head-logo h3 {
        padding:0px;
        text-align:center;
        margin:0 10px;
    }
    .head-logo h3 img {
        margin:0 10px 0 0;
    }
    .head-logo {
        margin-right:auto;
    }
    .popWindow {
        position: relative;
        text-align:center;
        background-color: rgba(0,0,0,0.6);
        padding: 30px;
        border: solid 1px white;
    }
    .popWindow h3 {
        font-size:1.8em;
        font-weight:bold;
        margin:0px;
    }
    .grid-container {
        overflow: hidden;
        position: relative;
        height: 100%;
        width:100%;
        min-height: 100%;
        min-width:100%;
        background-color:#FEFEFE;
        background-image:   repeating-linear-gradient(to bottom, gray, gray 1px, transparent 1px, transparent 39px, gray 39px, gray 40px),
                            repeating-linear-gradient(to right, gray, gray 1px, transparent 1px, transparent 39px, gray 39px, gray 40px);
    }
    .form-title {
        font-size:18px;
        text-align:center;
        margin:0px;
    }
    .url-submitbutton {
        margin-right:20px;
    }
}
@media (min-width:700px) {
    .infcontrol-box {
        margin:0 30px 0 10px;
        height:80%;
        display:flex;
    }
    .infcontrol-box button {
        margin: 0px 20px;
        display:block;
        height:32px;
        line-height:32px;
    }
}
.head-tab {
    color:white;
    background-color:#333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    padding:0 7px;
}
.head-tab:hover {
    background-color: #555;
    transition: all 0.3s;
}
.head-tab span {
    white-space: nowrap;
}
.selected-tab {
    background-color:#444;
}
.selected-tab:hover {
    background-color:#666;
}
#sign-out {
    white-space: nowrap;
}
/*--- grid container start ---*/
#add-button {
    position: fixed;
    left: calc(98vw - 56px);
    top: calc(80px + 56px + 28px);
    z-index: 50;
}
#settings-button {
    position: fixed;
    left: calc(98vw - 56px);
    top: 80px;
    z-index: 50;
}
#debug-button {
    position: fixed;
    right: 0;
    bottom: 40px;
    border: none;
    z-index: 50;
    font-size:1.3em;
    opacity: 0.7;
}
.box-contents {
    background-color:white;
    width: 100%;
    height: 100%;
}
.close-button {
    position:absolute;
    width:30px;
    height: 30px;
    top:5px;
    right:5px;
    cursor:pointer;
}
.og-wait-display {
    position:absolute;
    width:100%;
    height:100%;
    left:0;
    top:0;
    z-index:50;
    background-color:rgba(0,0,0,.4);
    text-align:center;
}
.loader-box {
    display:inline-block;
    position: relative;
}
.url-textfield {
    width:90%;
    margin:0 5%;
}
.url-textfield_input {
    text-align:center;
}
.url-submit {
    text-align:right;
}

.og-box, .og-box-sq {
    height:100%;
    width:100%;
}
.og-box > a {
    display:block;
    width:calc(100% - 2px);
    height:6em;
    max-height:80%;
    border:solid 1px #DDD;
}
.og-box-sq > a {
    position: relative;
    display:block;
    width:100%;
    height:100%;
}
.og-image {
    width:6em;
    float:left;
    height:100%;
    overflow:hidden;
    position: relative;    
}
.og-box-sq .og-image {
    position: relative;
    width:100%;
    height:100%;
    overflow:hidden;
}
.og-box .og-image > img {
    max-height:100%;
    /*transform: translate( calc(3em - 50%),0);*/
    transform: translate( -50%, -50%);
    position:absolute;
    top:50%;
    left:50%;
}
.og-box-sq .og-image > img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-height:100%;
    transform: translate( -50%, -50% );
}
.og-box .memo-area {
    position: relative;
    height: calc(100% - 6em - 2px);
    min-height: 20%;
    overflow: auto;
}
.og-box-sq .memo-area {
    position: relative;
    display: none;
}
.og-info {
    width: calc(100% - 6em - 20px);
    float:left;
    background-color:white;
    height: calc(100% - 15px);
    padding:10px 10px 5px 10px;
    overflow:hidden;
    color:black;
}
.og-box-sq .og-info {
    position: absolute;
    width: 100%;
    bottom:0;
    left:0;
    background-color: rgba(255,255,255,.6);
    height: calc(50% - 15px);
    padding:5px 0px 0px 0px;
    overflow:hidden;
    color:black;
    /*opacity: 0.5;*/
}
.og-info-wide {
    width: calc(100% - 20px);
    float:left;
    background-color:white;
    height: calc(100% - 15px);
    padding:10px 10px 5px 10px;
    overflow:hidden;
    color:black;
}
.og-info > h3, .og-info-wide > h3 {
    font-size:16px;
    margin: 0px;
    font-weight:bold;
    line-height:20px;
    height:20px;
    overflow:hidden;
}
.og-box .og-info > span, .og-info-wide > span {
    display:block;
    line-height:1.3em;
    font-size:13px;
    margin-top:5px;
    /*overflow:hidden;*/
}
.og-box-sq .og-info > span {
    display:block;
    line-height:1.3em;
    font-size:13px;
}
.og-box .og-desc {
    max-height: calc(100% - 44px);
    overflow-y: auto;
}
.og-box-sq .og-desc {
    height: calc(100% - 36px);
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
}
.og-url {
    color:gray;
    max-height:16px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}
.og-box-sq .og-url {
    font-weight: bold;
    color:rgb(165, 19, 19);
}
.resize-drag {
    position: absolute;
    background-color: #DDD;
    color: black;
    font-size: 20px;
    font-family: sans-serif;
    border-radius: 2px;
    padding: 5px;
    margin: 0px;
    touch-action: none;

    width: 320px;
    height: 200px;
    left:0;
    top:0;

    /* This makes things *much* easier */
    box-sizing: border-box;
    /*overflow: hidden;*/
}
.head-alert-msg {
    height:30px;
    width:100%;
    background-color:red;
    position:absolute;
    top:0px;
    color:white;
}
.msg-close-button {
    position:absolute;
    right:10px;
    top:0;
    bottom:0;
    margin:auto;
    width:24px;
    height:24px;
    cursor: pointer;
    border: solid 1px red;
    background-color: rgba(0,0,0,.3);
}
.msg-close-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border: solid 1px gray;
    transition: all 0.3s;
}
.resize-edge-top {
    position:absolute;
    /*background-color:red;/**/
    height:7px;
    width:calc(100% - 7px * 2);
    left: auto; bottom: auto;
    right:7px;
    top:0px;

    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -khtml-user-select:none;
    -webkit-user-drag:none;
    -khtml-user-drag:none;
}
.resize-edge-left {
    position:absolute;
    /*background-color:blue;/**/
    width:7px;
    height:calc(100% - 7px * 2);
    right: auto; top: auto;
    left:0px;
    bottom:7px;

    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -khtml-user-select:none;
    -webkit-user-drag:none;
    -khtml-user-drag:none;
}
.resize-edge-right {
    position:absolute;
    /*background-color:green;/**/
    width:7px;
    height:calc(100% - 7px * 2);
    left: auto; bottom: auto;
    top:7px;
    right:0px;

    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -khtml-user-select:none;
    -webkit-user-drag:none;
    -khtml-user-drag:none;
}
.resize-edge-bottom {
    position:absolute;
    /*background-color:yellow;/**/
    height:7px;
    width:calc(100% - 7px * 2);
    top: auto; right: auto;
    left:7px;
    bottom:0px;

    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -khtml-user-select:none;
    -webkit-user-drag:none;
    -khtml-user-drag:none;
}
.resize-edge-top.resize-edge-left {
    /*background-color:orange;/**/
    width:10px;
    height:10px;
    right: auto;bottom: auto;
    left:0;top:0;
}
.resize-edge-top.resize-edge-right {
    /*background-color:orange;/**/
    width:10px;
    height:10px;
    left: auto;bottom: auto;
    right:0;top:0;
}
.resize-edge-bottom.resize-edge-right {
    /*background-color:orange;/**/
    width:10px;
    height:10px;
    top: auto;left: auto;
    right:0;bottom:0;
}
.resize-edge-bottom.resize-edge-left {
    /*background-color:orange;/**/
    width:10px;
    height:10px;
    top: auto;right: auto;
    left:0;bottom:0;
}
.moveicon {
    position:absolute;
    /*background-color:white;*/
    width:24px;
    height:24px;
    bottom: auto;left: auto;
    right:5px;top:5px;
    opacity: 0.3;
    transition: all 0.3s;

    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -khtml-user-select:none;
    -webkit-user-drag:none;
    -khtml-user-drag:none;
}
.moveicon:hover {
    opacity:1;
    transition: all 0.3s;
}
.settingsicon {
    position:absolute;
    /*background-color:white;*/
    width:24px;
    height:24px;
    bottom: auto;left: auto;
    right:5px;top:29px;
    opacity: 0.3;
    transition: all 0.3s;
    cursor: pointer;
}
.settingsicon:hover {
    opacity: 1;
    transition: all 0.3s;
}
.settingsicon > .setting-menu {
    height: 0;
}
.settingsicon:hover > .setting-menu {
    opacity: 1;
    left: -24px;
    height:auto;
    width: 48px;
    top: 100%;
    padding-left: 0;
    transition: all 0.3s;
}
.setting-menu {
    position: absolute;
    /*background-color: #DDD;*/
    opacity: 0;
    top: 100%;
    display: flex;
    flex-wrap: wrap;
    height:0;
    padding-left: 0;
    overflow: hidden;
}
.setting-menu > .material-icons {
    opacity: 0.6;
    z-index: 10;
}
.setting-menu > .material-icons:hover {
    opacity: 1;
    transition: all 0.3s;
}

.cell-memo {
    overflow-wrap: break-word;
    margin: 0;
    line-height: 1.3;
    overflow-y: auto;
    height: 100%;
    white-space: pre-wrap;
}
.cell-memoedit-button {
    padding: 0;
    border: 0;
    height: 24px;
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: transparent;
    opacity: 0.3;
    cursor: pointer;
}
.cell-memoedit-button:hover {
    opacity: 1;
    transition: all 0.3s;
}
.cell-memoedit-button-icon {
    display: inline-block;
}
.cell-memoedit-textarea {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    resize:  none;
}
.cell-memoedit-commit-button {
    position:absolute;
    right:5px;
    top:5px;
    padding:0;
    border:0;
    opacity: 0.3;
    cursor: pointer;
}
.cell-memoedit-commit-button:hover {
    opacity: 1;
    transition: all 0.3s;
}
.color-label {
    display:block;
    width:24px;
    height:24px;
    opacity:0.6;
    cursor: pointer;
}
.color-label:hover {
    opacity: 1;
    width:22px;
    height:22px;
    border: solid 1px black;
    transition: opacity 0.3s;
}
/*--- grid container end ---*/

/*--- bookmarklet start ---*/
.grid-container_bm {
    overflow: hidden;
    position: absolute;
    top:40px;
    height: calc(100vh - 40px);
    width:100vw;
    background-color:#FEFEFE;
    background-image:   repeating-linear-gradient(to bottom, gray, gray 1px, transparent 1px, transparent 39px, gray 39px, gray 40px),
                        repeating-linear-gradient(to right, gray, gray 1px, transparent 1px, transparent 39px, gray 39px, gray 40px);
}
/*--- bookmarklet end   ---*/

/*--- plans start ---*/
.plan_table {
    border: solid 2px;
    border-bottom: solid 1px;
    border-spacing: 0;
    background-color: rgba(0,0,0,.25);
}
.plan_table th {
    border-bottom: solid 1px white;
}
.plan_table td {
    border-left: solid 1px white;
    border-bottom: solid 1px white;
}
.plan_gest {
    width: 25%;
    background-color: rgba(0,0,255,.3);
}
.plan_free {
    width: 25%;
    background-color: rgba(0,255,0,.3);
}
.plan_fanbox {
    width: 30%;
    background-color: rgba(255,0,0,.3);
}
/*--- plans end ---*/

/*--- this loading spinner from https://projects.lukehaas.me/css-loaders/ ---*/
/*--- Released under the MIT license */
/*--- Created by @lukehaas */
/*--- GitHub https://github.com/lukehaas/css-loaders */
.loader {
  font-size: 10px;
  margin: 50px auto;
  text-indent: -9999em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #ffffff;
  background: -moz-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: -webkit-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: -o-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: -ms-linear-gradient(left, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
  position: relative;
  -webkit-animation: load3 1.4s infinite linear;
  animation: load3 1.4s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #ffffff;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: black;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.loader2,
.loader2:after {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}
.loader2 {
  margin: 60px auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 10px solid rgba(255, 255, 255, 0.2);
  border-right: 10px solid rgba(255, 255, 255, 0.2);
  border-bottom: 10px solid rgba(255, 255, 255, 0.2);
  border-left: 10px solid #ffffff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/*---  spinner end ---*/
