@font-face {
    font-family: 'UnitedStates';
    src: url('../fonts/UnitedStates.eot');
    src: url('../fonts/UnitedStates.eot?#iefix') format('embedded-opentype'),
        url('../fonts/UnitedStates.woff2') format('woff2'),
        url('../fonts/UnitedStates.woff') format('woff'),
        url('../fonts/UnitedStates.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DEATH FONT';
    src: url('../fonts/DEATH-FONT-ver10.eot');
    src: url('../fonts/DEATH-FONT-ver10.eot?#iefix') format('embedded-opentype'),
        url('../fonts/DEATH-FONT-ver10.woff2') format('woff2'),
        url('../fonts/DEATH-FONT-ver10.woff') format('woff'),
        url('../fonts/DEATH-FONT-ver10.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap');

:root {
    --font-Baskerville: 'Libre Baskerville', 'Noto Serif JP', serif;
    --font-US: 'UnitedStates', sans-serif;
    --font-Death: 'DEATH FONT', sans-serif;
    --dark-color: #161615;
    --light-color: #c2c1ac;
    --lighter-color: #dfded6;
    --green-color: #2f5024;
}

body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    background: var(--dark-color);
    color: var(--light-color);
    overflow: auto;

}

.financeBody {
    background: #161615;
    background: url(cards/images/mockup-photos-5nUNdLueQio-unsplash_LR.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}
/* Headers */

.header {
    width: 100%;
    height: 40px;
    background-color: var(--light-color);
    line-height: 1.6em;
    padding: 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
}
.header div {
    z-index: 2100;
    width: fit-content;
}
.header .icon {
    width: 30px;
    height: 30px;
    background-color: var(--light-color);
    margin-top: 5px;
    cursor: pointer;
}
@media (hover: hover) {
    .header .icon:hover img {
        opacity: 0.6;
        transition: opacity 100ms;
    }
}
.header .icon img {
    width: 100%;
    height: 100%;
}
.header .title {
    margin-top: 10px;
}
#financeHeader {
    background-image: url(global-images/bg-texture.png);
    box-shadow: 0 1px 5px #000 ;
    font-family: var(--font-US);
    position: fixed;
    top: 0;
    left: 0;
}
#financeHeader::before {
    content: "";
    width: 100%;
    height: 20px;
    background-image: url(global-images/money-frame.png);
    background-repeat: repeat-x;
    background-size: 312px 19px;
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 2001;
}
#financeHeader div {
    background-color: var(--light-color);
    background-image: url(global-images/bg-texture.png);
    padding: 0 10px;
    color: var(--green-color);
}
@media only screen and (max-width: 600px) {
    .header {
        font-size: 0.9em;
        line-height: 2.2em;
    }
}
@media only screen and (max-width: 400px) {
    .header {
        font-size: 0.7em;
        line-height: 2.2em;
    }
    .header .icon {
        width: 25px;
        height: 25px;
        margin-top: 8px;
    }
    #financeHeader div.icon {
        padding: 0 5px;
    }
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.grid-item {
    color: var(--dark-color);
    padding: 20px 0;
    border-radius: 8px;
    font-family: var(--font-Baskerville);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    filter: drop-shadow(0 0 8px rgba(0,0,0));
}

@media (hover: hover) {
    .grid-item img:hover {
        opacity: 0.8;
        transition-duration: 200ms;
    }
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}
.grid-item.logo {
    background-color: var(--lighter-color);
    padding: 0 20px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgb(0,0,0);
}
.grid-item.logo a {
    display:flex;
    justify-content: flex-start;
    padding: 10px;
    border-radius: 8px;
    color: var(--light-color);
    text-decoration: none;
}
.link-grid.logos a img {
    width: auto;
    height: 45px;
    filter: none;
    mix-blend-mode: multiply;
}
.link-grid.logos a img, .link-grid.logos a span {
    margin: 0 10px;
    vertical-align: middle;
}
.link-grid.logos a span {
    margin-top: 13px;
    color: var(--dark-color);
}

.wanted {
    background-color: var(--light-color);
    box-shadow: 0 0 8px #000;
    padding: 40px 20px;
    text-align: center;
    width: 800px;
    margin: 40px auto;
    max-width: calc(100% - 40px);
    background-image: url(global-images/bg-texture.png);
    background-repeat: repeat-x;
    background-size: 100%;
    background-position-y: 3px;
    border: var(--light-color) solid 1px;
    position: relative;
}
.wanted.action {
    margin: 40px auto 20px auto;
}
.wanted::before {
    content: "";
    width: 100%;
    height: 15px;
    background-image: url(global-images/money-frame.png);
    background-repeat: repeat-x;
    background-size: auto 15px;
    position: absolute;
    top: 3px;
    left: 0;
}
.wanted::after {
    content: "";
    width: 100%;
    height: 15px;
    background-image: url(global-images/money-frame_USD.png);
    background-repeat: repeat-x;
    background-size: auto 15px;;
    position: absolute;
    bottom: 3px;
    left: 0;
}
.wanted h2 {
    font-family: var(--font-US);
    color: var(--green-color);
    margin: 0;
}
.wanted h4 {
    font-family: var(--font-US);
    color: var(--dark-color);
    margin: 10px 0 0 0;
    line-height: 1.4em;
}
.wanted p {
    font-family: var(--font-Baskerville);
    font-weight: 400;
    color: var(--dark-color);
    margin: 10px auto 0 auto;
    width: 400px;
    max-width: calc(100% - 40px);

}
p.jp, span.jp {
    font-family: 'Noto Serif JP', serif;
}

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

.sidebar {
    position: fixed;
    top: 40px;
    bottom: 0;
    width: 300px;
    background-color: var(--dark-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1500;
    overflow-y: auto;
    transition: transform 0.3s ease;
    padding: 4rem 1.5rem 1.5rem 1.5rem;
    overflow: auto;
    -ms-overflow-style: none; 
    scrollbar-width: none;
    height: calc(100% - 40px - 3.5rem - 30px);
    right: 0;
    transform: translateX(100%);
}

.sidebar.home {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.sidebar::-webkit-scrollbar {
    display: none; 
}

.sidebar.active {
    transform: translateX(0);
}

.close-btn {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--title-color);
    transition: color 0.3s;
}

hr.skul {
    border: 0;
    height: 46px;
    background-image: url(global-images/skul-line.png);
    background-repeat: repeat-x;
    background-size: 135px 46px;
    overflow: hidden;
}

hr.bomb {
    border: 0;
    height: 46px;
    background-image: url(global-images/bomb-line.png);
    background-repeat: repeat-x;
    background-size: 135px 46px;
    overflow: hidden;
}

/* Language Switcher */
#languageSwitcher {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    gap: 15px;
}

#languageSwitcher button {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    line-height: 30px;
    transition-duration: 200ms;
    border: #666666 1px solid;
}

@media (hover: hover) {
    #languageSwitcher button:hover {
        background-color: var(--dark-color);
        color: var(--light-color);
    }
}

.displayNone {
    display: none;
}

.space {
    height: 50px;
    display: block;
}

.copies {
    background-color: #131210;
    box-shadow: 0 0 8px #000;
    padding: 30px 30px;
    text-align: center;
    width: 760px;
    margin: 20px auto;
    max-width: calc(100% - 60px);
    background-image: url(global-images/bg-texture.png);
    background-repeat: repeat-x;
    background-size: 100%;
    background-position-y: 3px;
    border: #131210 solid 1px;
    position: relative;
}
.copies p {
    color: var(--light-color);
    line-height: 1.6em;
    margin: 0;
    font-family: var(--font-Baskerville);
    font-weight: 400;
    font-size: 0.9em;
}
.copies p.jp {
    font-family: 'Noto Serif JP', serif;
}
.copies li {
    color: var(--light-color);
    margin-bottom: 15px;
    font-family: var(--font-Baskerville);
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.6em;
}
.copies ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.copies li a, .copies p a {
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    padding: 5px;
}
.copies li a:hover, .copies p a:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transition-duration: 200ms;
}

@media only screen and (max-width: 480px) {
    .wanted h2 {
        font-size: 1.2em;
    }
    .wanted h4 {
        font-size: 1em;
    }
}

.inline-images img {
    width: 50px;
}

.inline-images img:hover {
    opacity: 0.7;
    transition-duration: 200ms;
}