@charset "utf-8";

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Yu Gothic UI', 'ヒラギノ角ゴシック', 'Hiragino Sans', 'Meiryo UI', 'メイリオ', Meiryo, sans-serif;
    color: #ebdec2;
    background-color: #2d2d2d;
    width: 100%;
    height: auto;
}

a:link,
a:visited {
    color: #0066ff;
    font-weight: bold;
    text-decoration: none;
}

a:hover {
    color: #ff0000;
    text-decoration: underline;
}

a:active {
    color: #ff0000;
    text-decoration: underline;
}

p {
    padding-top: -10px;
}

h2 {
    color: #FFF;
    padding: 0;
    margin: 0;
    font-style: italic;
    height: auto;

    background: linear-gradient(transparent 65%, gray 35);
    text-align: right;
    text-shadow: 1px 1px 3px #FFF;
}

.counter {
    font-size: 12px;
    text-align: center;
    color: #ccc;
    margin-top: 10px;
}

.counter span {
    font-family: monospace;
    letter-spacing: 2px;
    color: #9eff00;
    background: #111;
    padding: 2px 6px;
    border: 1px solid #555;
}

#siteInfo {
    margin: 24px auto 0;
    width: 260px;
    color: #ddd;
    font-size: 12px;
    text-align: center;
}

.counterNumber {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    background: #000;
    color: #9eff00;
    border: 1px solid #666;
    font-family: monospace;
    letter-spacing: 2px;
    font-size: 14px;
}

.infoLine {
    margin: 12px 0;
    border-top: 1px solid #777;
}

.historyEntry {
    margin-bottom: 16px;
}

.updateHistory {
    text-align: left;
}

.historyTitle {
    text-align: center;
    margin-bottom: 8px;
}

.historyDate {
    color: #9eff00;
    border-left: 2px solid #9eff00;
    padding-left: 6px;
    margin-bottom: 4px;
}

.updateHistory ul {
    margin: 0;
    padding-left: 1.5em;
}

#wrap {
    width: 100%;
    text-align: center;

}

#top {
    text-align: center;
    min-width: 390px;
}

#mainBlock {
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#attribute {
    padding: 0;
    width: 100%;
    height: auto;
}

.attributeBlock {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

input[type=checkbox],
input[type=radio] {
    position: absolute;
    white-space: nowrap;
    width: 1px;
    height: 1px;
    border: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    flex: 1;
}

input[type=checkbox]:hover {
    background-color: #5e5e5e;
}

input[type=checkbox]:checked+label {
    background: #777;
    font-weight: 500;
    color: #141414;
}

label {
    color: #fff;
    min-width: 60px;
    padding: 10px;
    margin: 1px;
    background: #444;
}

.type {
    min-width: 125px;
}

.attri {
    width: 76px;
}

#ather {
    background: #acdef1;
    color: #141414;
    font-weight: 500;

}

#search {
    flex-grow: 1;
}

.spacer {
    width: 100%;
}

#result {
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #FFF;
    width: 100%;
    height: 400px;
    margin-top: 10px;
    margin-bottom: 0;
    overflow: auto;
    align-content: start;
}

#explanation {
    width: 100%;
    height: 340px;
}

#learn {
    background: linear-gradient(transparent 50%, #000, #000, #000);
    padding-right: 10px;
    margin-left: 5px;
}

#learnLocation {
    width: 98%;
    height: 95px;
    bottom: 0;
    text-align: left;
    margin: 0;
    margin-left: 10px;
    color: #FFF;
    text-shadow: 1px 1px 2px #000;
}


#expBlock1 {
    display: flex;
}

#icon {
    width: 30%;
    margin-left: 5px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#noAndimg {
    display: flex;
    padding-left: 5px;
    width: 100%;
    text-align: center;
}

#img100 {
    width: 90px;
    height: 90px;
}

#number {
    width: 70px;
    padding: 0;
    margin: 0;
    margin-top: 5px;
    background-color: #5e5e5e;
    color: #FFF;
    text-shadow: 1px 1px 3px black;
}

#magicTitle {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 12px;
    text-align: left;
}

#titleDetail {
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
}

#magicDetail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.tar {
    padding: 0;
    margin: 0;
    min-width: 0;
    background-color: #141414;
    color: #00BE20;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 1);
}

#type,
#attackAttribute,
#rank {
    font-size: 30px;
    color: #FFF;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 5px;
}

#expBlock2 {
    display: flex;
    justify-content: space-between;
    padding: 0;
    padding-left: 20px;
    padding-right: 10px;
    margin: 0;
    color: #FFF;
}

#mOra {
    float: left;
}

#power,
#distance,
#range {
    text-align: right;
}

.gray {
    color: #999;
    text-shadow: 1px 1px 2px #000;
}

#expBlock3 {
    display: flex;
    color: #ebdec2;
}

#cast {
    margin-left: 10px;
    flex-grow: 2;
    text-align: right;
    border-bottom: 5px solid #999;
    border-radius: 2px;
}

#recast,
#mp {
    margin-right: 10px;
    margin-left: 10px;
    flex-grow: 1;
    text-align: right;
    border-bottom: 5px solid #999;
    border-radius: 2px;
}

#casttime,
#recasttime,
#pmp {
    margin-bottom: -10px;
    margin-top: -5px;
    font-size: 34px;
    color: #FFF;
    text-shadow: 1px 1px 3px #000;
}

#explanatory {
    color: #FFF;
    text-shadow: 1px 1px 3px #000;
    margin: 5px;
    margin-left: 10px;
    text-align: left;
    box-shadow: 0px -1px 2px 1px #FFF;
    height: 137px;
    overflow: auto;
}

/* .hotbar {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 10px;
    background: #453F3E;
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-radius: 5px;
    box-shadow: 1px 1px 1px rgba(255, 255, 255, 0.95);
} */

.title {
    font-family: 'Calibri', 'Arial Narrow', 'Arial', sans-serif;
    font-size: 40px;
    color: #5e5e5e;
    align-items: flex-end;
    text-shadow: 1px 1px 3px #FFF;
}

.leftBlock {
    width: 60%;
}

.rightBlock {
    width: 40%;
    position: relative;
    box-shadow: 1px 1px 3px #FFF;
}

.outline {
    bottom: 0;
    display: inline-block;
    color: #adffff;
    /* 文字の色 */
    font-size: 36px;
    /* 文字のサイズ */
    letter-spacing: 2px;
    /* 文字間 */
    text-shadow:
        1px 1px 4px #003eb1,
        -1px 1px 4px #003eb1,
        1px -1px 4px #003eb1,
        -1px -1px 4px #003eb1,
        1px 0px 4px #003eb1,
        0px 1px 4px #003eb1,
        -1px 0px 4px #003eb1,
        0px -1px 4px #003eb1,
        /* 文字の影 */
        2px 2px 5px #b6d8ff,
        -2px 2px 5px #b6d8ff,
        2px -2px 5px #b6d8ff,
        -2px -2px 5px #b6d8ff;
}

.skill {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 60px;
    height: 60px;
}

.resultItem {
    width: 85px;
    margin: 5px;
    height: 120px;
    line-height: 16px;
    list-style: none;
    cursor: grab;
}

.resultItem:active {
    cursor: grabbing;
}

.skillIcon {
    width: 60px;
    height: 60px;
}

.green {
    color: #00BE20;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 1);

}

.orange {
    color: #FE7B1A;
    text-shadow: 1px 2px 2px rgba(0, 0, 0, 1);
}

h1 {
    padding-bottom: 0;
}

span {
    vertical-align: baseline;
}

.middleBlock {
    width: 100%;
    margin-top: 12px;
}


#hotbar {
    margin-top: 6px;
    padding-top: 12px;
    padding-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(12, 50px);
    justify-content: center;
    gap: 4px;

    background:
        linear-gradient(#2e2e2e, #1b1b1b);

    border-top: 1px solid #888;
    border-left: 1px solid #888;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;

    border-radius: 4px;
}

.hotbarSlot {
    width: 50px;
    height: 50px;
    background: #2a2a2a;

    border-top: 1px solid #111;
    border-left: 1px solid #111;
    border-right: 1px solid #777;
    border-bottom: 1px solid #777;

    border-radius: 6px;

    box-shadow: inset 0 0 3px #000;

}

.hotbarSlot[data-number] {
    cursor: grab;
}

.hotbarSlot[data-number]:active {
    cursor: grabbing;
}

#hotbarHeader {
    width: 100%;
    max-width: 980px;

    margin: 0 auto;
    padding: 4px 8px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #ebdec2;
    font-size: 18px;
    text-shadow: 1px 1px 2px #000;
}

#hotbarHeader span:first-child {
    border-left: 3px solid #adffff;
    padding-left: 8px;
}

.hotbarSlot {
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.hotbarIcon {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin: -3px;
    border-radius: 6px;
}

#toggleHotbar {
    display: none;
}

.tool-credit {
  margin-top: 24px;
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: #777;
  line-height: 1.8;
}

.tool-credit span {
  display: block;
}

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

    #top {
        min-width: 0;
        padding: 0 10px;
    }

    .title {
        font-size: 30px;
    }

    .outline {
        font-size: 24px;
    }

    #mainBlock {
        display: block;
        width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .leftBlock,
    .rightBlock {
        width: 100%;
        box-sizing: border-box;
    }

    .rightBlock {
        margin-top: 12px;
    }

    #toggleHotbar {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 10px;
        background: #444;
        color: #FFF;
        border: 1px solid #777;
        border-radius: 6px;
    }

    .middleBlock {
        display: none;
    }

    .middleBlock.open {
        display: block;
    }

    .attributeBlock {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 1px;
        justify-content: flex-start;
    }

    .attributeBlock label {
        margin: 0;
        min-width: 0;
        box-sizing: border-box;
        text-align: center;
    }

    .attributeBlock label.type,
    #ather,
    .attributeBlock label[for="tank"],
    .attributeBlock label[for="healer"],
    .attributeBlock label[for="dps"] {
        flex: 0 0 calc((100% - 3px) / 4);
    }

    .attributeBlock label.attri {
        flex: 0 0 calc((100% - 5px) / 6);
    }

    #ather {
        white-space: nowrap;
        font-size: 13px;
    }

    #search {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    #result {
        height: 300px;
        display: grid;
        grid-template-columns: repeat(auto-fill, 72px);
        justify-content: center;
        align-content: start;
        gap: 8px;
    }

    .resultItem {
        margin: 4px;
        width: 68px;
        height: 115px;
        font-size: 12px;
    }

    #explanation {
        height: auto;
    }

    #magicDetail {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .tar {
        width: auto;
        min-width: 0;
        min-height: 72px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .tar p {
        margin: 6px 0 0;
        padding: 0;
        line-height: 1;
    }

    #type,
    #attackAttribute,
    #rank {
        font-size: 28px;
        margin: 6px 0 0;
        padding: 0;
        line-height: 1;
    }

    #expBlock2 {
        flex-wrap: wrap;
        gap: 6px;
    }

    #expBlock3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    #cast,
    #recast,
    #mp {
        margin: 0;
        flex: none;
        text-align: right;
    }

    #casttime,
    #recasttime,
    #pmp {
        font-size: 30px;
        margin-top: -2px;
        margin-bottom: -6px;
        line-height: 1;
    }

    #learnLocation {
        height: auto;
        min-height: 80px;
    }

    #hotbar {
        grid-template-columns: repeat(6, 50px);
        justify-content: center;
        gap: 4px;
    }
}
