/* General */
body {
    background:
        radial-gradient(circle at top, #2a4fff33, transparent 60%),
        radial-gradient(circle at bottom, #6ba4ff22, transparent 70%),
        black;
    font-family: Verdana, sans-serif;
    margin: 0;
    color: white;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

section {
    margin-bottom: 50px;
}

article {
    background-color: rgba(24, 14, 64, 0.85);
    border: 1px solid rgba(106, 167, 255, 0.5);
    border-radius: 10px;
    padding: 20px 25px;
    margin-top: 25px;
    box-shadow:
        inset 0 10px 10px -10px rgba(107, 164, 255, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.5);
}

h2 {
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 6px;
    font-size: 22px;
    border-bottom: 1px solid rgba(106, 167, 255, 0.5);
    color: #c9d8ff;
}

article h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(106, 167, 255, 0.5);
}

article h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6ba4ff;
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: none;
    background: none;
    cursor: pointer;
    display: block;
    z-index: 1000;
}

#scrollTopBtn img {
    width: 75px;
    height: auto;
}

/* Header */
header {
    text-align: center;
    padding: 15px 0;
}

header img {
    max-width: 100%;
    height: auto;
}


/* Main content */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 20px;
}

#main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgb(24, 14, 64);
    color: #ffffff;
    border: 2px solid white;
    padding: 35px 20px;
    box-sizing: border-box;
    box-shadow:
        inset 0 12px 12px -12px rgba(107, 164, 255, 0.25),
        inset 0 -12px 12px -12px rgba(107, 164, 255, 0.25);
}

.section-box {
    background-color: rgb(24, 14, 64);
    border: 1px solid #6ba4ff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}


/* Flex */
.main-flexbox {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 30px;
    align-items: start;
}

.mog-image img {
    max-width: 100%;
    height: auto;
}

.main-drive {
    text-align: center;
}

/* Updates */
.updates-section {
    background-color: rgb(15, 10, 40);
    border: 1px solid #6ba4ff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(106, 167, 255, 0.4);
}

.updates-section li {
    margin-bottom: 12px;
    line-height: 1.6;
}


/* Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    border-collapse: collapse;
    min-width: 600px;
    width: 100%;
    font-size: 14px;
}

td {
    border: 1px solid #6ba4ff;
    padding: 12px;
    text-align: center;
}

table img {
    max-width: 100px;
    height: auto;
}

/* Legend grid */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 16px;
    justify-items: center;
}

.legend-grid>a {
    display: inline-flex !important;
    width: auto !important;
}

.legend-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legend-grid a:hover .legend-icon {
    transform: scale(1.12);
    box-shadow: 0 0 10px rgba(106, 167, 255, 0.8);
}


/* Nav */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background: transparent;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.nav-btn {
    width: 130px;
    height: 72px;
    background: linear-gradient(to bottom,
            #b6b3ff 0%,
            #8c88e8 45%,
            #5e5bc4 55%,
            #3f3c96 100%);
    border: 2px solid #ffffffcc;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 0 #ffffffaa,
        inset 0 -2px 0 #2b2a70,
        0 4px 6px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-btn img {
    max-width: 95%;
    max-height: 95%;
    pointer-events: none;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 0 #ffffffdd,
        inset 0 -2px 0 #2b2a70,
        0 6px 10px rgba(0, 0, 0, 0.7);
}

.nav-btn.active {
    outline: none;
    box-shadow:
        inset 0 2px 0 #ffffff,
        inset 0 -2px 0 #2b2a70,
        0 0 10px 4px rgba(255, 255, 255, 0.7);
}

.nav-btn:active {
    transform: translateY(1px);
}


/* Cards */
.cards {
    margin: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card .rarity {
    font-weight: bold;
    text-align: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}

.card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

article .cards {
    margin: 15px 0 25px 0;
}


.chara {
    margin: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.cardchara img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Links */
a {
    color: #6ba4ff;
    text-decoration: none;
}

a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 700px) {
    .nav-btn {
        width: 90px;
        height: 56px;
    }

    .nav-btn img {
        max-height: 32px;
    }
}