* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.cards {
    height: 92vh;
    font-size: 1.3rem;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    padding: 2rem;
    gap: 2rem;
}

.card {
    list-style: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3);
}

.card--first {
    grid-column: 1 / 5;
    grid-row: 1 / 7;
    padding: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
}

.card--first > h2 {
    color: #667eea;
    text-align: center;
    font-size: 2.4rem;
}

.inputField {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inputField > input {
    width: 100%;
    height: 5rem;
    font-size: 1.8rem;
    font-family: sans-serif;
    padding: 0 2rem;
    border: 2px solid #e0e0e0;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.inputField > input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.inputField > button {
    width: 100%;
    height: 5rem;
    font-size: 1.8rem;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inputField > button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.card--second {
    grid-column: 5 / 13;
    grid-row: 1 / 9;
    padding: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-display {
    text-align: center;
    width: 100%;
}

.info-display h3 {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 2rem;
}

.info-display p {
    font-size: 1.8rem;
    color: #666;
    line-height: 1.6;
}

#js--pokemon-info {
    font-size: 1.6rem;
    color: #555;
    line-height: 1.8;
}

.pokemon-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.pokemon-stat:last-child {
    border-bottom: none;
}

.stat-name {
    font-weight: 600;
    color: #764ba2;
    text-transform: capitalize;
}

.stat-value {
    font-weight: 700;
    color: #667eea;
}

.pokemon-types {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.type-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.card--third {
    grid-row: 7 / 13;
    grid-column: 2 / 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1.5rem;
}

.card--third > h2 {
    color: #667eea;
    font-size: 2.2rem;
    text-align: center;
}

.pokemon-name {
    font-size: 2.4rem;
    color: #764ba2;
    font-weight: bold;
    text-transform: capitalize;
    min-height: 3rem;
}

.card--third > img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.button-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.card--third > .button-group > button {
    flex: 1;
    max-width: 15rem;
    height: 5rem;
    font-size: 1.6rem;
    font-weight: 600;
    font-family: sans-serif;
    border: none;
    color: white;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#js--catch-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

#js--catch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

#js--catch-button.success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

#js--catch-button.failed {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

#js--new-pokemon-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#js--new-pokemon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@media screen and (max-width: 87.5rem) {
    .card--second {
        grid-row: 1 / 13;
    }
    .card--third {
        grid-column: 1 / 5;
    }
}

@media screen and (max-width: 52.5rem) {
    .card--first, .card--second {
        display: none;
    }
    .card--third {
        grid-column: 1 / 15;
        grid-row: 1 / 15;
    }
}