/* ========== Base Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: "Arial", sans-serif;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========== Utility Classes ========== */
.blur-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
}

.icon-40 {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

/* ========== Layout Containers ========== */
.title-container,
.rules-container {
    margin: 16px;
}

.content-container {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.score-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rules-container {
    max-width: min(600px, 95vw);
}

/* ========== Title Section ========== */
.title-container h1 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pokeball-icon {
    background-image: url("assets/pokeball.svg");
}

/* ========== Content Section ========== */
.content-container p {
    font-size: 24px;
    margin-bottom: 15px;
}

.choices-display,
.result-display {
    margin: 20px 0;
    min-height: 40px;
    font-size: 1.1rem;
    font-weight: bold;
}

.choices-display {
    min-height: 80px;
}

.result-display {
    font-size: 1.3rem;
}

/* ========== Button Section ========== */
.pokemon-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.pokemon-btn {
    width: 80px;
    height: 80px;
    padding: 15px 25px;
    font-size: 16px;
    border: 1px solid;
    border-radius: 20px;
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pokemon-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 0 10px gold;
}

.pokemon-btn--charmander {
    background-color: #ffa07a;
    background-image: url("assets/charmander.svg");
}

.pokemon-btn--squirtle {
    background-color: #add8e6;
    background-image: url("assets/squirtle.svg");
}

.pokemon-btn--bulbasaur {
    background-color: #98fb98;
    background-image: url("assets/bulbasaur.svg");
}

.fight-button {
    padding: 10px 15px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    color: white;
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    cursor: pointer;
}

/* ========== Score Section ========== */
.score-container h2 {
    font-size: 20px;
}

/* ========== Rules Section ========== */
.rules-container h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.rules-container ul li {
    list-style-type: none;
    margin: 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rules-container ul li img {
    flex-shrink: 0;
}

/* Rule Icons */
.rule-icon--charmander {
    background-image: url("assets/charmander.svg");
}

.rule-icon--squirtle {
    background-image: url("assets/squirtle.svg");
}

.rule-icon--bulbasaur {
    background-image: url("assets/bulbasaur.svg");
}

/* ========== Pokémon Name Styling ========== */
.pokemon-name--fire {
    color: #ffa07a;
    font-weight: 500;
}

.pokemon-name--water {
    color: #add8e6;
    font-weight: 500;
}

.pokemon-name--grass {
    color: #98fb98;
    font-weight: 500;
}

/* ========== Footer Section ========== */
.footer {
    width: 100%;
    padding: 15px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ddd;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.github-icon {
    width: 20px;
    height: 20px;
    background-image: url("assets/github-mark.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    filter: invert(1);
}

.github-icon:hover {
    transform: rotate(360deg) scale(1.2);
}
