body {
    background-image: url("../bg/sakura.png");
    background-repeat: repeat;
    background-color: #fefefe;
    font-size: 12px;
    padding: 20px;
    font-family: sans-serif;
}

.page-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 10px;
}

h1 {
    text-align: center;
    margin-bottom: 16px;
}

a {
    color: #ff1493 !important;
    text-decoration: none;
}

a:hover {
    color: #ff69b4 !important;
    text-decoration: underline;
}

.info-section {
    text-align: center;
    margin-bottom: 20px;
}

.info-section p {
    margin: 0.5em 0;
}

.diffmap {
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 12px;
}

.diffmap th,
.diffmap td {
    border: 1px solid #aaa;
    padding: 4px 8px;
    text-align: center;
}

.diffmap-wrapper {
    overflow-x: auto;
}

#bms-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

#bms-table th,
#bms-table td {
    padding: 3px 6px;
    border: 1px solid #aaa;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

#bms-table td:nth-child(2),
#bms-table td:nth-child(3) {
    text-align: center;
}

#bms-table td:nth-child(7) {
    text-align: right;
}

.column-header th {
    background-color: #ffaeae;
    color: #440000;
    font-weight: bold;
    text-align: center;
    font-size: 12px;
}

.level-header th {
    background-color: black;
    color: #ffeeee;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #222;
}

@media (max-width: 768px) {
    body, html {
        margin: 0;
        padding: 0;
        width: 100%;
        font-size: 9px;
        overflow-x: hidden;
    }

    .page-wrapper {
        padding: 8px;
        box-sizing: border-box;
        width: 100%;
    }

    #bms-table th,
    #bms-table td,
    .diffmap,
    .diffmap th,
    .diffmap td {
        font-size: 9px;
        padding: 2px 4px;
    }
}

@media (max-width: 480px) {
    body, html {
        margin: 0;
        padding: 0;
        width: 100%;
        font-size: 6px;
        overflow-x: hidden;
    }

    .page-wrapper {
        padding: 2px;
        box-sizing: border-box;
        width: 100%;
    }

    #bms-table th,
    #bms-table td,
    .diffmap,
    .diffmap th,
    .diffmap td {
        font-size: 6px;
        padding: 1px 2px;
    }
}
