@charset "utf-8";

:root {
    --logoImg: url(../img/dkse_logo_light.svg);
    --tSpeed: 12s;
    --mainBg: #e3e3e3;
    --mainInk: #333333;

    --kopixA: #1e90ff;
    --kopixB: #4169e1;
    --kopixC: #1843c3;
}

@media(prefers-color-scheme: dark) {
    :root {
        --logoImg: url(../img/dkse_logo_dark.svg);
        --tSpeed: 20s;
        --mainBg: #1a1717;
        --mainInk: #ffffff;

        --kopixA: #005fbb;
        --kopixB: #1a3da6;
        --kopixC: #1437a0;
    }
}

@-webkit-keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background: var(--mainBg);
}

main {
    padding: 10px;
}

#headerIn {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr 160px;
    grid-template-rows: 50px 50px;
    width: 100%;
    height: 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.dkseLogo {
    font-size: 50px;
    grid-column: 1;
    grid-row: 1/4;
    line-height: 40px;
    padding-left: 10px;
}

.dkseLogo::after {
    content: '';
    position: absolute;
    display: inline-block;
    background-image: var(--logoImg);
    background-size: 80px;
    top: 18px;
    left: 25px;
    width: 80px;
    height: 64px;
}

/* -------------------------------- 

ticker

-------------------------------- */

.ticker {
	width: 100%;
    height: 66px;
	overflow:hidden;
	white-space:nowrap;
    background: #333;
    font-size: 25px;
    position: relative;
    box-shadow: 3px 6px 9px rgba(0,0,0,0.3);
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}

.ticker::before, .ticker::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 0;
    height: 100%;
    width: 55px;
    background: transparent;
    pointer-events: none;
    -webkit-transition: opacity .2s;
    transition: opacity .2s;
}

.ticker::before {
    left: 0;
    background: -webkit-linear-gradient(to right, rgba(24, 24, 24, .5), rgba(0, 0, 0, 0));
    background:         linear-gradient(to right, rgba(24, 24, 24, .5), rgba(0, 0, 0, 0));
}

.ticker::after {
    right: 0;
    background: -webkit-linear-gradient(to left, rgba(24, 24, 24, .5), rgba(0, 0, 0, 0));
    background:         linear-gradient(to left, rgba(24, 24, 24, .5), rgba(0, 0, 0, 0));
}

.ticker div {
	display:inline-block;
	padding:0;
	-webkit-animation:tScroll var(--tSpeed) linear infinite;
	        animation:tScroll var(--tSpeed) linear infinite;
}

@-webkit-keyframes tScroll {
	0% { transform:translateX(4px); }
	100% { transform:translateX(-100%); }
}

@keyframes tScroll {
	0% { transform:translateX(4px); }
	100% { transform:translateX(-100%); }
}

.ticker div ul {
	display:inline-block;
    width: 70px;
	margin:0 30px;
	padding:0;
}

.ticker div ul li {
    text-align: right;
    margin-top: -6px;
}

.ticker div ul li:nth-of-type(1) {
    color: darkorange;
}

.ticker div ul li:nth-of-type(2) {
    color: darkorange;
}

.ticker div ul .tipl {
    color: #ff5050;
}

.ticker div ul .timi {
    color: yellowgreen;
}

/* -------------------------------- 

desktop panels

-------------------------------- */

#panelSet {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#panelSet::before {
    background-image: url(../img/item_x4.webp);
    background-size: 160px;
    content: '';
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 1;
    top: -34px;
    right: 150px;

    transform: scale(-1, 1);
    background-position-x: 0px;
	-webkit-animation:wink 4s step-end infinite;
	        animation:wink 4s step-end infinite;
}

@-webkit-keyframes wink {
	0% { background-position-x: 0px; }
	85% { background-position-x: -40px; }
}

@keyframes wink {
	0% { background-position-x: 0px; }
	85% { background-position-x: -40px; }
}

#panelSet::after {
    background-image: url(../img/item_x4.webp);
    background-size: 160px;
    content: '';
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 1;
    top: -34px;
    right: 50px;

    background-position-x: 0px;
	-webkit-animation:jump 5s ease-in-out infinite;
	        animation:jump 5s ease-in-out infinite;
}

@keyframes jump {
	45% { top: -34px;right: 50px; }
	50% { top: -80px;right: 55px; }
	55% { top: -34px;right: 60px; }
}

.panel {
    height: 300px;
    border: 5px solid #333;
    border-radius: 5px;
    position: relative;
    box-shadow: 3px 6px 9px rgba(0,0,0,0.3);
}

/* -------------------------------- 

panel 1

-------------------------------- */

#panel1 {
    padding-top: 45px;
    /* gradient animation */
    background: linear-gradient(-45deg, var(--kopixA), var(--kopixB), var(--kopixA), var(--kopixB));
    background-size: 400% 400%;
    -webkit-animation: gradient 15s ease infinite;
            animation: gradient 15s ease infinite;
    /* gradient animation */
}

#panel1 .kopix {
    color: #f3f3f3;
    position: absolute;
    top: 0px;
    left: 12px;
}

#kopixView {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    color: #f3f3f3;
    margin: -10px 10px 0;
}

#kopixView .plus {
    color: #ff5050;
}

#kopixView .minus {
    color: greenyellow;
}

#kopixView .k1 {
    font-size: 50px;
}

#kopixView div span {
    font-size: 20px;
    position: absolute;
    right: 12px;
}

#kopixView .k1 span {
    font-size: 30px;
    bottom: -2px;
}

#kopixView .k2 span {
    bottom: -10px;
}

#kopixView .k3 span {
    bottom: -10px;
}

#kopixView .k4 span {
    bottom: -10px;
}

#kopixView .k5 span {
    bottom: -5px;
}

#kopixView .panelViewCurrent {
    margin-top: -20px;
    padding-bottom: 10px;
    font-size: 80px;
}

#kopixView div:nth-of-type(odd) {
    position: relative;
    text-align: right;
    padding-right: 10px;
    margin-bottom: 10px;
    display: inline;
}

#kopixView div:nth-of-type(even) {
    display: inline;
    background-color: var(--kopixC);
    padding-left: 15px;
}

#kopixView div:nth-of-type(2) {
    border-radius: 12px 12px 0 0;
}

#kopixView div:last-of-type {
    padding-bottom: 15px;
    border-radius: 0 0 12px 12px;
}

/* -------------------------------- 

panel 2

-------------------------------- */

#panel2 {
    background-color: #44446f;
    padding-top: 20px;
    color: #f3f3f3;
    /* gradient animation */
    background: linear-gradient(-45deg, #212941, #213141, #292141, #312141);
    background-size: 400% 400%;
    -webkit-animation: gradient 15s ease infinite;
            animation: gradient 15s ease infinite;
    /* gradient animation */
}

.rateDisp, #charge {
    font-size: 20px;
    margin: 0 10px 15px;
}

.rateDispK, .equal, .rateDispLC, #charge {
    font-size: 50px;
    margin: 0 3px;
}

.rateDispK::before, .rateDispLC::before, #charge::before {
    background-image: url(../img/item_x4.webp);
    background-size: 80px;
    content: '';
    display: inline-block;
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

#charge::before {
    margin: 0 5px;
}

.rateDispLC::before, #charge::before {
    background-position-x: -40px;
}

.coinText {
    position: relative;
    font-size: 20px;
}

.coinText::before {
    content: 'レオパ';
    position: absolute;
    top: -11px;
    width: 35px;
}

#chargeBox a {
    color: #fff;
}

/* -------------------------------- 

input spin

-------------------------------- */

.spinWrap {
    margin: 0 70px;
    position: relative;
    display: block;
    width: 174px !important;
    height: 50px;
}

.spinWrap input::-webkit-outer-spin-button,
.spinWrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.spinWrap input {
    font-size: 40px;
    font-family: dekisokonai;
    width: 100%;
    height: 100%;
    padding-bottom: 10px;
    text-align: center;
    border-radius: 5px;
    border: 2px solid transparent;
}

.spinWrap input:invalid {
    border: 2px solid #ff5050;
}

.inputError  {
    display: none;
}

.inputError::after {
    position: absolute;
    top: -25px;
    left: 4px;
    font-size: 22px;
    color: #ff5050;
    content: '1いじょうのはんかくすうじで！';
}

input:invalid + .inputError  {
    display: inline;
}

.spinWrap .spinBuy {
    position: absolute;
    top: 25px;
    width: 50px;
    height: 50px;
    transform: translate(0, -50%);
    font-size: 40px;
    color: #333;
    background: #f3f3f3;
    padding: 0px 0px;
    text-align: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border-radius: 5px;
    border: 2px solid transparent;
}

.spinWrap .spinBuyDown {
    left: -60px;
}

.spinWrap .spinBuyUp {
    right: -60px;
}

/* -------------------------------- 

buy sell

-------------------------------- */

#chargeBox {
    margin-left: 12px;
}

#buttonPanel {
    display: grid;
    grid-template-columns: 75px 1fr;
}

#buyButton, #sellButton, #buyMax, #sellMax {
    margin-top: 10px;
    margin-left: 10px;
    font-size: 25px;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
    padding: 0 0 10px;
    cursor: pointer;
}

#buyMax {
    color: #333333;
    width: 65px;
    background-color: #ff5050;
    border: solid 2px #ff5050;
}

#sellMax {
    color: #333333;
    width: 65px;
    background-color: greenyellow;
    border: solid 2px greenyellow;
}

#buyButton, #sellButton {
    width: 160px;
    border: solid 2px #f3f3f3;
}

#buyButton {
    margin-left: 10px;
}

#buyButton span {
    color: #ff5050;
}

#sellButton span {
    color: greenyellow;
}

#buyButton:hover {
    color: #ff5050;
    border: solid 2px #ff5050;
}

#sellButton:hover {
    color: greenyellow;
    border: solid 2px greenyellow;
}

/* -------------------------------- 

panel 3

-------------------------------- */

#panel3 {
    color: #f3f3f3;
    background-color: #1e1e1e;
    text-align: right;
}

.excTxt, .chaTxt {
    position: absolute;
    top: 0;
    left: 12px;
    display: inline-block;
}

.offChart {
    display: none !important;
}

.onTxt {
    display: inline-block;
    color: #ff5050;
    padding: 0 10px 8px;
}

.ofTxt {
    display: inline-block;
    color: darkgray;
    cursor: pointer;
    padding: 0 10px 8px;
}

/* -------------------------------- 

panel 4

-------------------------------- */

#panel4 {
    padding: 10px 10px 30px;
    background-image: url(../img/door_wallpaper.jpg);
    background-position: center;
    background-size: cover;
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: 80px 80px 80px 1fr;
    color: #fff;
}

#dkseFile {
    grid-column: 1/2;
    grid-row: 1/2;
    cursor: pointer;
}

#dkseFile span {
    margin-top: 42px;
    position: absolute;
    margin-left: 8px;
    font-size: 20px;
}

#dkseFile::after {
    background-image: url(../img/door_dkse.svg);
    background-size: 48px;
    content: '';
    display: inline-block;
    margin-left: 15px;
    position: absolute;
    width: 48px;
    height: 48px;
}

#slacksApp {
    grid-column: 1/2;
    grid-row: 2/3;
    cursor: pointer;
}

#slacksApp span {
    margin-top: 42px;
    position: absolute;
    margin-left: 14px;
    font-size: 20px;
}

#slacksApp::after {
    background-image: url(../img/door_slacks.svg);
    background-size: 48px;
    content: '';
    display: inline-block;
    margin-left: 15px;
    position: absolute;
    width: 48px;
    height: 48px;
}

#dkseLog {
    grid-column: 1/2;
    grid-row: 3/4;
    cursor: pointer;
}

#dkseLog span {
    margin-top: 42px;
    position: absolute;
    margin-left: 10px;
    font-size: 20px;
}

#dkseLog::after {
    background-image: url(../img/door_log.svg);
    background-size: 48px;
    content: '';
    display: inline-block;
    margin-left: 15px;
    position: absolute;
    width: 48px;
    height: 48px;
}

#logList {
    color: rgba(20, 20, 20, 0.6);
}

#logList li:first-child {
    color: #333;
}

#logList li:last-child {
    color: rgba(20, 20, 20, 0.4);
}

.window {
    overflow: hidden;
    grid-column: 2/3;
    grid-row: 1/4;
    background-color: rgba(255, 255, 255, 0.8);
    position: relative;
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
}

.onView {
    display: inline;
}

.offView {
    display: none;
}

.windowClose {
    background-color: #ff5050;
    width: 40px;
    height: 25px;
    font-size: 20px;
    padding-left: 16px;
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.windowTitle {
    display: inline-block;
    font-size: 20px;
    color: #333;
    position: absolute;
    top: 0;
    left: 40px;
    padding-left: 5px;
    width: calc(100% - 40px);
    height: 25px;
}

.windowContents {
    padding: 25px 0px 0px;
    color: #333;
}
#dkseWindow .windowTitle {
    background-color: rgb(13, 145, 21, 0.8);
    color: #fff;
}

#dkseWindow .windowContents {
    padding: 25px 10px;
}

#slacksWindow {
    background-color: transparent;
    padding: 0;
}

#slacksWindow .windowTitle {
    background-color: rgba(114, 47, 116, .8);
    color: #fff;
}

#slacksWindow .windowContents {
    display: grid;
    grid-template-columns: 60px 1fr;
}

#dkseLogWindow .windowTitle {
    background-color: rgba(58, 124, 115, 0.8);
    color: #fff;
}

#dkseLogWindow .windowContents {
    padding: 25px 10px;
}

.side {
    font-size: 12px;
    color: #fff;
    background-color: rgba(114, 47, 116, .8);
}

.side ul li{
    padding: 0 0 3px 3px;
}

.actChannel {
    background-color: #1a688f;
    cursor: pointer;
}

.chat {
    background-color: rgb(255, 255, 255, 0.8);
    font-size: 25px;
    padding-left: 5px;
}

#chatBox div:nth-of-type(odd) {
    margin-top: 0px;
    margin-bottom: 3px;
}

#chatBox div:nth-of-type(even) {
    margin-top: -5px;
    padding-left: 30px;
    padding-bottom: 6px;
}

.user0::before, .user1::before, .user2::before, .user3::before, .user4::before, .user5::before {
    content: '';
    transform: translate(0, 50%);
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 5px;
	background-image: url(../img/slacksusers.webp);
    background-size: 144px;
}

.user0::before {
    background-position-x: 0px;
}

.user1::before {
    background-position-x: -24px;
}

.user2::before {
    background-position-x: -48px;
}

.user3::before {
    background-position-x: -72px;
}

.user4::before {
    background-position-x: -96px;
}

.user5::before {
    background-position-x: -120px;
}

/* -------------------------------- 

desk

-------------------------------- */

#desktop {
    position: relative;
    width: 100%;
    background: -webkit-linear-gradient(20deg, #c8c8c8, #949494);
    background:         linear-gradient(20deg, #c8c8c8, #949494);
    height: 135px;
    border-bottom: 15px solid #949494;
}

#desktop::before {
    width: auto;
    max-width: 520px;
    object-fit: cover;
    object-position: 100% 100%;
    content: url(../img/desk_keyboard.webp);
    position: absolute;
    top: 0px;
    right: 30px;
    overflow: hidden;
}

#desktop::after {
    background-image: url(../img/item_x4.webp);
    background-size: 160px;
    content: '';
    width: 40px;
    height: 40px;
    position: absolute;
    z-index: 1;
    top: 0px;
    left: -10px;

    transform: scale(-1, 1);
    background-position-x: 0px;
	-webkit-animation:wink 4s step-end infinite;
	        animation:wink 4s step-end infinite;
}

#deskbottom {
    position: relative;
    width: 100%;
    height: 220px;
    background: -webkit-linear-gradient(to top, #464646, #3a3a3a);
    background:         linear-gradient(to top, #464646, #3a3a3a);
}

#deskbottom:before {
    background-image: url(../img/desk_mac_pro.webp);
    background-size: 200px;
    content: "";
    width: 200px;
    height: 200px;
    position: absolute;
    bottom: 0px;
    right: 340px;
    background-position-y: 0px;
    overflow: hidden;
}

#deskwork::before {
    width: auto;
    max-width: 560px;
    object-fit: cover;
    object-position: 100% 100%;
    content: url(../img/desk_rapo_0.webp);
    position: absolute;
    bottom: 0;
    right: 0px;
    margin-top: -200px;
    overflow: hidden;
}

#deskwork:after {
    background-image: url(../img/desk_rapo_1.webp);
    background-size: 150px;
    content: "";
    width: 150px;
    height: 130px;
    position: absolute;
    z-index: 1;
    bottom: 245px;
    right: 200px;
    background-position-y: 0px;
    overflow: hidden;
}

#deskwork:hover:after, .typing::after {
	-webkit-animation:type .2s step-end infinite;
	        animation:type .2s step-end infinite;
}

@-webkit-keyframes type {
	0% { background-position-x: 0px; }
	50% { background-position-y: 130px; }
}

@keyframes type {
	0% { background-position-y: 0px; }
	50% { background-position-y: 130px; }
}

/* -------------------------------- 

notice

-------------------------------- */

.notice {
    z-index: 99;
    width: 90%;
    max-width: 720px;
    height: 70px;
    padding: 20px;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    background-color: rgba(256, 256, 256, 0.5);
    font-size: 30px;
    text-align: center;
    
    position: fixed;
    inset: 0;
    margin: 10px auto 0;
}

.hidden {
    display: none;
}

.popup {
    animation: popup 2.5s forwards;
}

@keyframes popup {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    15%, 85% {
        transform: none;
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }
}

/* -------------------------------- 

save load menu

-------------------------------- */

.slMenu {
    width: 90%;
    max-width: 280px;
    padding: 10px 10px 5px;
    margin: 0 auto 10px;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    background-color: rgba(256, 256, 256, 0.6);
    position: absolute;
    bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    left: 50%;
    transform: translateX(-50%);
}

input[type="file"] {
    display: none;
}

#saveBtn, #loadBtnL {
    padding-bottom: 10px;
    background: none;
    text-align: center;
    font-family: dekisokonai;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 30px;
}

#saveBtn:hover, #loadBtnL:hover {
    border-color: #333;
}

.emoji {
    font-size: 20px;
}

/* -------------------------------- 

dark

-------------------------------- */

@media(prefers-color-scheme: dark) {
    .notice, footer, .slMenu {
        background-color: rgba(0, 0, 0, .5);
    }

    #saveBtn:hover, #loadBtnL:hover {
        border-color: var(--mainInk);
    }
}


/* -------------------------------- 

responsive

-------------------------------- */

@media only screen and (max-width:1024px) {
    #panelSet {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width:736px) {
    #topGo {
        display: none;
    }

    #panelSet {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }

    #kopixView {
        font-size: 30px;
    }

    #panel4 p {
        font-size: 25px;
    }

    .slMenu {
        margin-bottom: 25px;
    }
}