/* Theme Restyles */
.streetpassBody {
    background-image: 
    linear-gradient(rgba(165, 165, 165, 0.5), rgba(199, 198, 198, 0.5)),
    /* Shoutout to this video for making textures seamless: https://www.youtube.com/watch?v=FR3Z0zr1RaY */
    url(../imgs/streetpass/streetpassTile.png);
    background-color: rgb(156, 235, 163);
}

.streetpassBody .sidebar {
    background-color: rgb(84, 109, 85);
    border-right: 1px solid rgb(24, 37, 0);
    color: rgb(158, 199, 206);
}

.streetpassBody .sidebar a {
    color: rgb(194, 216, 192);
}


.streetpassBody main {
    background-color: rgb(132, 196, 135);

    min-width: 80%;
    border-left: 1px solid rgb(24, 37, 0);
}


/* Mobile stuff */
@media (max-width: 700px) {
    .streetpassBody #mobileNavOpen {
    background-color: rgb(58, 78, 59);
    }

    .streetpassBody #mobileNavMenu {
        background-color: rgb(58, 78, 59);
        color: rgb(158, 199, 206);
    }

    .streetpassBody #mobileNavMenu a {
        color: rgb(194, 216, 192);
    }

}

.streetpassContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 20px;
    text-align: justify;
}

#streetpassBtnContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.plazaContents {
    text-align: center;
    border: 1px solid black;
    background-color: rgb(162, 211, 165);
    margin-bottom: 20px;
}

.plazaContents a {
    text-decoration: none;
    color: #0066cc;
}

.plazaContents a:hover { 
    text-decoration: wavy #2d7dce underline;
    font-style: italic;
}

.plazaContents ul {
    /* Set number of columns */
    column-count: 4; 
    /* Handles reducing of columns when less space */
    column-width: 150px;

    column-gap: 2rem; 
    column-rule: 1px solid #706f6f; 
}

.plazaContents ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    /* Prevents list items from splitting across columns */
    break-inside: avoid; 
}
/*******************************************/
/* Streetpass Stats Console                */
/*******************************************/

/* Console-style box that separates minigame info from the rest of site */
.consoleWrapper {
    background-color: #f0f4f7;
    background-image: radial-gradient(#d3dfeb 15%, transparent 16%); /* Retro dot grid pattern */
    background-size: 16px 16px;
    border: 4px solid #adbece;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.consoleSectionTitle {
    font-family: "Trebuchet MS", sans-serif;
    color: #3e5a75;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 25px;
    padding: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 22px;
    font-weight: bold;
    /* background-color: white; */
    /* background-color: rgba(255, 255, 255, 0.7); */
    border-radius: 20px;
    width: fit-content;
    
}

/* Individual Plaza Games inside the Console */
.consoleGameCard {
    background: #ffffff;
    border: 2px solid #c8d3df;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 0px rgba(200, 211, 223, 0.4);
}

.consoleGameCard:last-child {
    margin-bottom: 0;
}

.consoleCardHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #f9fafb, #ebedf0);
    border-bottom: 1px solid #dcdfe3;
    padding: 8px 12px;
    
    /* Pulls header flush to the card edges */
    margin: -15px -15px 15px -15px;
    border-radius: 6px 6px 0 0;

    gap: 5px;
}

.consoleVectorLogo {
    max-height: 28px;
    width: auto;
}

/* Completion Badges */
.consoleBadges {
    display: flex;
    gap: 6px;
}

.badge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: monospace;
}

.badge.cleared { background: #e3f9e5; color: #1f7a27; border: 1px solid #a3e6a8; }
.badge.perfect { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.consoleMetaStrip {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    /* justify-content: center; */
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #c7cdd3;
}
@media (max-width: 700px) {
    .consoleMetaStrip {
        flex-wrap: wrap;
        justify-content: center;
    }    
}

.consoleThumbContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.consoleGameThumb {
    width: 160px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 2px;
}

.startFinishDate {
    background: #ffffff;
    background: linear-gradient(to bottom, #f9fafb, #ebedf0);
    border-radius: 20px;
    padding: 4px 8px;
    margin-top: 4px;
}

.stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: 1.5rem;
    font-family: Times;

}

.stars::before {
    content: '★★★★★';
    background: linear-gradient(90deg, #ffc107 var(--percent), #e4e5e9 var(--percent));

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: transparent;
}

.consoleStatsBox {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    font-size: 13px;
    color: #555;
    padding-top: 4px; /* Slightly offsets text to align with the top of the image */
}

.plazaStatTag {
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.statTagImg {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.consoleWriteup {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

#dataFromLabel {
    text-align: center;
    display: block;
    font-size: 14px;
}