@charset "utf-8";

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* http://www.rain-road.com/font/
   DEKISOKONAIFONT by rain-road
*/
@font-face {
    font-family: dekisokonai;
    src: url('../font/dekisokonaifont.ttf') format('truetype');
    src: url('../font/dekisokonaifont.woff') format('woff');
}

:root {
    --mainBg: #f3f3f3;
    --subBg: #ffffff;
    --mainInk: #333333;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--mainInk);
}

body {
    background-color: #8edbf2;
    background-image: url(../img/home_bg.webp);
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    color: var(--mainInk);
    font-size: 30px;
    font-family:
        dekisokonai,
        'ヒラギノ角ゴ Pro W3',
        'Hiragino Kaku Gothic Pro',
        Osaka,
        'メイリオ',
        Meiryo,
        'ＭＳ Ｐゴシック',
        'MS PGothic',
        sans-serif;
    position: relative;
    min-height: 100vh;
}

#headerBox {
    background: var(--subBg);
}

#game {
    height: 50px;
    text-align: center;
    font-size: 40px;
    grid-column: 1/4;
    grid-row: 1;
    background-color: aquamarine;
}

#game a {
    color: #333333;
}

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

h1 {
    padding-left: 12px;
    margin: 0 0 20px;
    font-size: 50px;
}

h2 {
    padding-left: 12px;
    margin: 0 0 20px;
    font-size: 40px;
}

p {
    padding-left: 12px;
    margin: 0 0 20px;
    font-size: 30px;
}

.link {
    padding-left: 12px;
    margin: 0 0 20px;
    font-size: 30px;
    transition: 1s;
}

.link:hover {
    background: -webkit-linear-gradient(135deg, #3c54f0, #eb3877);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.logo::after {
    content: '';
    position: absolute;
    display: inline-block;
    background-image: url(../img/leopashop_icon.webp);
    background-size: 80px;
    top: 10px;
    left: 130px;
    width: 80px;
    height: 80px;
}

.disp {
    grid-column: 3;
    grid-row: 1/4;
    padding: 5px 10px;
    font-size: 40px;
}

#coin,
#korogi {
    position: relative;
    text-align: right;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 145px;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(243, 243, 243, .5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.footerIn {
    font-size: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px 15px;
}

.footerIn > div {
    display: inline;
}

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

#coin::before {
    background-position-x: -40px;
}

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

menu

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

.homemenu li {
    margin-bottom: 5px;
    width: fit-content;
    height: 45px;
    font-size: 35px;
    border-radius: 5px;
    border: 2px solid transparent;
}

.homemenu li a {
    padding: 0 24px 10px;
    width: fit-content;
    min-width: 300px;
}

.homemenu li:hover {
    border-color: var(--mainInk);
}

.homemenu .new,
.homemenu .passive {
    position: relative;
}

.homemenu .passive:hover {
    border-color: transparent;
}

.homemenu .passive a {
    color: gray;
}

.homemenu .new::after,
.homemenu .passive::after {
    font-size: 20px;
    padding: 0 4px 4px;
    border-radius: 4px;
    position: absolute;
    top: 0;
    right: -25px;
    rotate: 20deg;
}

.homemenu .new::after {
    content: 'NEW!';
    color: orange;
}

.homemenu .passive::after {
    content: 'COMING SOON';
    color: #ff5050;
    border: 2px solid #ff5050;
}

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

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;
}

@keyframes slup {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    70% {
        transform: translate(-50%, -10%);
        opacity: .9;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes sldown {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 100%);
        opacity: 0;
        display: none;
    }
}

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

2D Code

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

.share {
    z-index: 99;
    width: 90%;
    max-width: 280px;
    padding: 20px;
    border-radius: 15px;
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    background-color: rgba(256, 256, 256, 0.6);
    position: fixed;
    bottom: 10px;
    display: flex;
    justify-content: center;
    margin: 0 auto 10px;
    left: 50%;
    transform: translateX(-50%);
}

.qrimgbox {
    position: relative;
    width: 100%;
}

.share::before {
    content: '';
    padding-top: 100%;
    display: block;
}

.sharestart {
    display: none;
}

.shareup {
    animation: slup .5s forwards;
}

.sharehidden {
    animation: sldown .5s forwards;
}

#qrimg {
    position: absolute;
    top: 0;
    left: 0;
    /* gradient animation */
    fill: dimgray;
    -webkit-animation: gradient 15s ease-in-out infinite;
            animation: gradient 15s ease-in-out infinite;
    /* gradient animation */
}

@-webkit-keyframes gradient {
    0% {
        fill: #62a528;
    }
    25% {
        fill: #e9751c;
    }
    50% {
        fill: #3257cf;
    }
    75% {
        fill: #f13369;
    }
    100% {
        fill: #62a528;
    }
}

@keyframes gradient {
    0% {
        fill: #62a528;
    }
    25% {
        fill: #e9751c;
    }
    50% {
        fill: #3257cf;
    }
    75% {
        fill: #f13369;
    }
    100% {
        fill: #62a528;
    }
}

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

responsive

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

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

@media only screen and (max-width:512px) {
    .homemenu li {
        background-color: rgba(243, 243, 243, .5);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }
    .paper,
    .list {
        grid-template-columns: 1fr;
    }

    .footerIn {
        padding: 10px;
    }
    .fence {
        color: transparent;
    }
    #fontby {
        display: block; 
    }
    .notice {
        height: 100px;
    }
    main {
        padding-bottom: 155px;
    }
    .slMenu {
        margin-bottom: 25px;
    }
}