/* Races Container */
.races-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 10px;
    background-color: #000;
    color: #fff;
}

/* Race Buttons Section */
.race-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    background-color: #111;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.race-buttons button {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-height: 44px;
}

.race-buttons button:hover {
    background-color: #555;
    transform: scale(1.05);
}

.race-buttons button:active {
    transform: scale(0.98);
}

.race-buttons button:focus {
    outline: none;
    box-shadow: 0 0 5px 2px rgba(255, 204, 0, 0.5);
}

/* Race Info Section */
.race-info {
    flex: 1;
    background-color: #222;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: justify;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.race-info img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid #333;
}

.race-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.race-info p {
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 15px;
}

/* Skills Section */
.skill-links h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.skill-links .skill {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid #555;
}

/* TABLET - Responsive Design (768px and below) */
@media screen and (max-width: 768px) {
    .races-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px;
    }

    .race-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        min-width: auto;
        padding: 12px;
        background-color: transparent;
        box-shadow: none;
    }

    .race-buttons button {
        flex: 1;
        min-width: 80px;
        padding: 12px 10px;
        font-size: 14px;
        min-height: 44px;
    }

    .race-info {
        padding: 16px;
        margin-top: 0;
    }

    .race-info img {
        max-height: 250px;
    }

    .race-info h2 {
        font-size: 20px;
    }

    .race-info p {
        font-size: 14px;
    }

    .skill-links h3 {
        font-size: 17px;
    }

    .skill-links .skill {
        font-size: 14px;
    }
}

/* MOBILE - Small Phones (480px and below) */
@media screen and (max-width: 480px) {
    .races-container {
        gap: 12px;
        padding: 8px;
    }

    .race-buttons {
        gap: 6px;
        padding: 10px;
    }

    .race-buttons button {
        flex: 1 1 45%;
        min-width: 70px;
        padding: 10px 8px;
        font-size: 12px;
        min-height: 44px;
    }

    .race-info {
        padding: 12px;
    }

    .race-info img {
        max-height: 180px;
        margin-bottom: 12px;
    }

    .race-info h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .race-info p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .skill-links h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .skill-links .skill {
        font-size: 13px;
        margin-bottom: 6px;
        padding-left: 8px;
    }
}