@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
html {
    font-family: 'Roboto Mono', monospace;
    -webkit-text-size-adjust: auto;
}

body {
    display: block;
    margin: 0px;
    background-color: rgb(36, 36, 36);
}

.edit {
    height: calc(100vh - 49px - 30px - 1.5em);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

#editor {
    left: 0;
    width: 50%;
    height: 100%;
}

.loading {
    color: #fff;
    font-family: 'Roboto Mono';
    font-weight: 800;
    width: 100%;
    height: 100%;
    text-align: center;
    margin: auto;
}

#log {
    display: inline-block;
    left: 0;
    width: 50%;
    height: auto;
}

#log .error {
    background: #de555557;
}

#log .info {
    background: #68dc598c;
}

#log .warn {
    background: #d5dc598c;
}

#log .sys {
    background: #599bdc8c;
}

header {
    /* 上 右 下 左 */
    margin: 5px;
    /* margin: 5px 5px 5px 20px; */
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.header_title {
    font-size: 26px;
    font-weight: 600;
    color: rgb(165, 165, 165);
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.header_title span {
    color: #fff;
}

.header_title.no_br {
    display: inline-block;
    white-space: nowrap;
}

header .buttons {
    color: #fff;
    text-align: center;
}

header .buttons ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
    max-width: 100vw;
}

header .buttons ul li {
    list-style: none;
    width: 50px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 0.5px solid rgb(103, 103, 103);
    border-right: 0.5px solid rgb(103, 103, 103);
}

header .buttons ul li:hover {
    background-color: rgb(65, 65, 65);
}

.nav {
    background-color: rgba(255, 255, 255, 0.031);
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.nav .files {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    height: 100%;
    margin-left: 41px;
    overflow-y: hidden;
    max-width: 50%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav .files::-webkit-scrollbar {
    display: none;
}

.nav .files .add_file,
.nav .files .code_file {
    background-color: rgb(28, 28, 28);
    color: rgba(255, 255, 255, 0.805);
    height: 100%;
    padding: 0 15px 0 15px;
    font-size: small;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(64, 64, 64, 0.552);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-family: 'Roboto Mono';
}

.nav .files .add_file,
.nav .files .code_file.active {
    color: #fff;
    background-color: rgb(0, 0, 0);
    border: 0.5px solid rgb(64, 64, 64);
}

footer {
    /* position: absolute;
    top: 100vh; */
    width: 100%;
    height: 3em;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
}

footer .tool {
    height: 1.5em;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

footer .tool div {
    padding-left: 5px;
}

footer .tool .position {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    font-size: 0.8em;
}

footer .tool .position input[type="text"] {
    display: inline;
}

footer .tool select {
    text-align: center;
    background: none;
    color: #fff;
    border: none;
}

footer .tool select:focus-visible {
    border: none;
    outline: none;
}

footer .copyrighy {
    height: 1.5em;
}

footer small a:active,
footer small a:visited {
    color: #fff;
}


/* 説明表示 */

.info_content {
    position: relative;
}

.info_content:hover .info_bubble {
    display: inline-block;
    white-space: nowrap;
}

.info_bubble {
    position: absolute;
    display: none;
    background-color: rgba(0, 0, 0, 64%);
    left: -20%;
    top: -30%;
    margin-top: 12px;
    font-size: 80%;
    z-index: 100;
    writing-mode: horizontal-tb;
}

.info_bubble p {
    margin: 5px;
}

.bx-x {
    margin-top: 3px;
}

.changeName {
    background: none;
    color: white;
    border: none;
    font-family: 'Roboto Mono';
}

.hide_button i {
    color: #ffffff3d;
}


/* 
.info_bubble {
    position: absolute;
    display: none;
    padding: 2px;
    background-color: rgba(0, 0, 0);
    width: 180px;
    left: -120%;
    top: -100%;
    margin-top: 12px;
    font-size: 80%;
    z-index: 100;
    border-color: #fff;
    border: solid;
    border-top-width: 10px;
}

.info_bubble p {
    margin: 10px;
} */


/* 959px以下に適用されるCSS（タブレット用） */

@media screen and (max-width: 959px) {}

@media screen and (max-width: 860px) {
    header {
        margin: 5px 5px 5px 5px;
        justify-content: center;
    }
    .header_title {
        flex-direction: column;
        margin-right: 0px;
    }
}


/* 480px以下に適用されるCSS（スマホ用） */

@media screen and (max-width: 480px) {}


/* 読み込み画面 */

span.loading {
    display: inline-block;
    white-space: nowrap;
}

span.loading span {
    display: inline-block;
    vertical-align: middle;
}

span.loading span:nth-of-type(1) {
    -webkit-animation: animation 2s ease 0s infinite;
    animation: animation 2s ease 0s infinite;
}

span.loading span:nth-of-type(2) {
    -webkit-animation: animation 2s ease 0.1s infinite;
    animation: animation 2s ease 0.1s infinite;
}

span.loading span:nth-of-type(3) {
    -webkit-animation: animation 2s ease 0.2s infinite;
    animation: animation 2s ease 0.2s infinite;
}

span.loading span:nth-of-type(4) {
    -webkit-animation: animation 2s ease 0.3s infinite;
    animation: animation 2s ease 0.3s infinite;
}

span.loading span:nth-of-type(5) {
    -webkit-animation: animation 2s ease 0.4s infinite;
    animation: animation 2s ease 0.4s infinite;
}

span.loading span:nth-of-type(6) {
    -webkit-animation: animation 2s ease 0.5s infinite;
    animation: animation 2s ease 0.5s infinite;
}

span.loading span:nth-of-type(7) {
    -webkit-animation: animation 2s ease 0.6s infinite;
    animation: animation 2s ease 0.6s infinite;
}

@-webkit-keyframes animation {
    0% {
        margin-top: 0;
    }
    5% {
        margin-top: -1em;
    }
    10% {
        margin-top: 0;
    }
    13% {
        margin-top: -0.5em;
    }
    16% {
        margin-top: 0;
    }
    18% {
        margin-top: -0.2em;
    }
    20% {
        margin-top: 0;
    }
}

@keyframes animation {
    0% {
        margin-top: 0;
    }
    5% {
        margin-top: -1em;
    }
    10% {
        margin-top: 0;
    }
    13% {
        margin-top: -0.5em;
    }
    16% {
        margin-top: 0;
    }
    18% {
        margin-top: -0.2em;
    }
    20% {
        margin-top: 0;
    }
}