* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header */
header{
    height:50px;
    background-color:#3e60b4;
    color:white;
    font-weight:bold;
    display: flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}
body {
    background: 
        linear-gradient(to bottom, rgba(255,255,255,0) 60%, #4caf50 100%),
        url("../ImageAssets/background.png") no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.titleText {
    font-size: 50px;
    color: #3e60b4;
    font-weight: bold;
    margin: auto;
    text-shadow:0px 0px 5px white;
}

.titleBox {
    margin: auto;
    padding: 10px;
    justify-content: center;
    text-align: center;
}

.searchContainer {
    text-align: center;
    margin: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.inputWrapper {
    position: relative;
    width: 300px; 
}

#searchBar {
    width: 100%;
    padding: 8px;
    font-size: 18px;
}

.suggestionsBox {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    width: 100%;
    top: 100%; 
    z-index: 10;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    box-sizing: border-box;
}

.suggestionItem {
    padding: 8px 12px;
    cursor: pointer;
}

.suggestionItem:hover {
    background-color: #eee;
}

.graphBox {
    background-color: #f0c209;
    margin: 10px auto;
    width: fit-content;
    max-width: 1000px;
    padding: 15px;
    border-radius:20px;
}

.graphData {
    height: 700px;  
    width: 900px;   
    background-color: white;
    padding: 10px;
}
.dynamaxSection {
    margin-top: 30px;
    text-align: center;
}

.defenseSelector {
    margin-bottom: 10px;
    font-size: 18px;
}

#dynamaxChart {
    max-width: 900px;
    margin: 0 auto;
}
.dynamaxNote {
    text-align: center;
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}
.toggleButtons {
    text-align: center;
    margin-bottom: 10px;
}

.toggleButtons button {
    padding: 8px 16px;
    margin: 0 5px;
    font-size: 16px;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.toggleButtons .activeMode {
    background-color: #3e60b4;
    color: white;
    font-weight: bold;
}
canvas {
    width: 100% !important;
    height: 100% !important;
}
.gmaxToggle {
    text-align: center;
    margin-bottom: 10px;
}

.gmaxToggle button {
    padding: 6px 14px;
    margin: 0 5px;
    font-size: 15px;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.gmaxToggle .activeMode {
    background-color: #930b5b;
    color: white;
    font-weight: bold;
}




/*Header Details */
.link-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: sans-serif;
    transition: background-color 0.3s ease;
    margin-left:10px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 16px;
}

.ranking-table th,
.ranking-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #ccc;
}

.ranking-table th {
    background-color: #0b1a40;
    color: #f2f2f2;
}

.ranking-table tr:nth-child(even) {
    background-color: #b3b3b3;
}

/* Dynamax Result Box */

/* Container for each Pokémon search result */
.pkmnResultBox {
    margin-left: auto;
    margin-right: auto;
    background-color: #f0f4ff;
    border: 1px solid #3e60b4;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    max-width: 420px;
    box-shadow: 0 2px 6px rgba(62, 96, 180, 0.25);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1a1a1a;
}

/* Pokémon name header */
.pkmnResultBox h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #2a3f87;
    font-weight: 700;
    font-size: 1.5rem;
}

/* The info table */
.pokemon-info {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

/* Table body rows */
.pokemon-info tbody tr {
    border-bottom: 1px solid #cbd4f7;
}

/* Left column: labels */
.pokemon-info th {
    text-align: left;
    padding: 8px 12px;
    background-color: #3e60b4;
    color: white;
    font-weight: 600;
    width: 45%;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* Right column: values */
.pokemon-info td {
    text-align: left;
    padding: 8px 12px;
    background-color: #e4e9ff;
    color: #1a1a1a;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Remove bottom border for last row */
.pokemon-info tbody tr:last-child {
    border-bottom: none;
}

/* Responsive: on small screens, table fits nicely */
@media (max-width: 480px) {
    .pkmnResultBox {
        max-width: 100%;
        padding: 14px 16px;
    }
    .pokemon-info th,
    .pokemon-info td {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
}






