[v-cloak] {
    /* blank until loaded */
    display: none !important;
}

body {
    font-family: Arial, sans-serif;
}

/* landing */
.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0 2rem;
}

/* single card when skinny */
@media (max-width: 1000px) {
    .landing-card-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-auto-columns: unset;
        grid-auto-flow: unset;
    }
}

.landing-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, width 0.2s;
}

.landing-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* make the text pop out */
.landing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.7));
    z-index: 0;
    pointer-events: none;
}

.landing-card>* {
    position: relative;
    z-index: 1;
}

.landing-card::after {
    content: "↗";
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 1.4rem;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}

.landing-card:hover::after {
    opacity: 0.8;
    transform: translateX(4px);
}

.landing-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.landing-card h2,
.landing-card .basic-stats {
    color: white;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.9),
        0 0 12px rgba(0, 0, 0, 0.8),
        0 0 18px rgba(0, 0, 0, 0.7);
}

/* backgrounds */
.landing-card[data-game="dkc2"] {
    background-image: url("images/dkc2.jpg");
    background-size: 180%;
    /* zoom in */
    background-position: 40% 20%;
    /* shift horizontally & vertically */
}

.landing-card[data-game="smw"] {
    background-image: url("images/smw.png");
    background-size: 150%;
    background-position: 10% 25%;
}

.landing-card[data-game="smb3"] {
    background-image: url("images/smb3.png");
    background-size: 100%;
    background-position: 40% 35%;
}

.landing-card[data-game="smb"] {
    background-image: url("images/smb.png");
    background-size: 100%;
    background-position: 80% 20%;
}

/* general */

.jumbotron {
    text-align: center;
}

@media (max-width: 600px) {
    .jumbotron {
        transform: scale(0.85);
        transform-origin: top center;
        margin-bottom: -20px;
        /* pulls content up to compensate */
    }
}

.parent-container {
    display: flex;
}

.display-row {
    padding: 16px;
    background-color: white;
    border: 1px solid #ddd;
    margin: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 100%;
}

@media (max-width: 768px) {
    .attempt-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .attempt-heading {
        font-size: 1.25rem;
    }

    .text-muted {
        font-size: 0.85rem;
    }
}

span {
    font-weight: bold;
}

.chart {
    margin-bottom: 16px;
}

.text-muted {
    font-size: 0.9em;
}

.pie-pair {
    align-items: center;
}

.pie-pair .chart {
    min-width: 120px;
    /* prevents shrinking too small */
}


/* statsbox */
.card {
    border: none !important;
    /* override card default */
}

.card-title {
    font-size: 2em;
}

.card-subtitle {
    font-size: 1.5em;
}

.card-text {
    font-size: 1.2em;
    margin-bottom: 8px;
}