@import url('https://fonts.googleapis.com/css2?family=Gill+Sans&family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

body {
    font-family: 'Lato', 'Gill Sans', sans-serif;
    background-color: #3a3a3a;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Pokémon Card Container --- */
.pokemon-card {
    width: 440px;
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background: #f3f3f3; /* Fallback background */
    position: relative;
    color: #1f1f1f;
}

/* --- Card Type Theming (e.g., Electric) --- */
/* You can create more classes like .fire, .water, .grass etc. */
.electric {
    border: 15px solid #FFDE59;
}

.electric .card-header .basic-tag {
    background-color: #FFDE59;
    border: 2px solid #D1B74C;
}

.electric .card-body {
    background: linear-gradient(135deg, #FFF1A8, #FFDE59);
}

/* --- Card Header Section --- */
.card-header {
    display: flex;
    align-items: baseline;
    padding: 15px 20px 10px;
    background: linear-gradient(180deg, #eaeaea, #f3f3f3);
}

.card-header .basic-tag {
    font-size: 14px;
    font-weight: bold;
    padding: 2px 12px;
    transform: skewX(-15deg);
    margin-left: -5px;
}

.card-header .pokemon-name {
    font-size: 28px;
    font-weight: bold;
    flex-grow: 1;
    text-align: center;
    margin: 0 10px;
}

.card-header .hp-section {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-header .hp-text {
    font-size: 12px;
    font-weight: bold;
}

.card-header .hp-value {
    font-size: 24px;
    font-weight: bold;
}

/* --- Card Image Section --- */
.card-image-container {
    padding: 0 20px;
    background: linear-gradient(180deg, #f3f3f3, #e0e0e0);
}

.card-image {
    width: 100%;
    display: block;
    border: 5px solid #c8c8c8;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
}

/* --- Info Bar --- */
.info-bar {
    background: linear-gradient(180deg, #e0e0e0, #c8c8c8);
    border-top: 2px solid #a0a0a0;
    border-bottom: 2px solid #a0a0a0;
    padding: 4px 0;
    margin: 0 20px;
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
}

/* --- Card Body (Attacks) --- */
.card-body {
    padding: 15px 20px;
    border-top: 2px solid #c8c8c8;
}

.attack {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.energy-cost {
    display: flex;
    gap: 4px;
    min-width: 30px; /* Ensures alignment */
}

.attack-details {
    flex-grow: 1;
}

.attack-name {
    font-weight: bold;
    font-size: 18px;
    display: inline;
}

.attack-description {
    font-size: 14px;
    margin: 0;
    padding-left: 5px;
    display: inline;
}

.attack-damage {
    font-size: 24px;
    font-weight: bold;
}

/* --- Stats Bar (Weakness, Resistance, Retreat) --- */
.stats-bar {
    background: linear-gradient(180deg, #f3f3f3, #eaeaea);
    border-top: 1px solid #dcdcdc;
    padding: 8px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 12px;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
}

/* --- Card Footer --- */
.card-footer {
    padding: 10px 20px;
    background-color: #f3f3f3;
    font-size: 10px;
}

.flavor-text {
    font-style: italic;
    margin: 5px 0;
    text-align: center;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 8px;
}

.set-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.regulation-mark {
    border: 1px solid black;
    padding: 1px 4px;
    font-weight: bold;
    font-size: 12px;
}

.copyright-info {
    font-size: 9px;
}

/* --- Universal Symbols --- */
.type-symbol, .energy-symbol {
    width: 24px;
    height: 24px;
}

#input-field {
    position: absolute;
    left:auto;
    right: auto;
    top: 10px;
}