AUSTIN, Texas (AP) — Democrats in deep-red Texas turned out Tuesday in the largest numbers in more than two decades for a midterm primary election, propelling women candidates toward challenges to entrenched male Republicans in Congress and venting their anger at President Donald Trump in the first state primary of 2018.

The biggest question was whether Texas is just the start of what's to come nationwide. Energized Texas Democrats showed up despite the long odds this November of ousting Republicans such as U.S. Sen. Ted Cruz — who released a radio ad after clinching the GOP nomination Tuesday night, telling voters that Democratic opponent Beto O'Rourke "wants to take our guns."

O'Rourke, a congressman from El Paso, has called for banning AR-15-style assault rifles in wake of last month's mass shooting at a Florida high school that killed 17 people.

Neither that tragedy nor a mass shooting at a Texas church last fall played as dominant campaign issues in Texas, but with the GOP's majority in Congress on the line this fall, Democrats came out in force. Republicans kept their edge in the total number of votes cast although Democrats made significant inroads in what had been a lopsided GOP dominance for decades.

Democrats have their sights on flipping three GOP-controlled congressional seats in Texas that backed Hillary Clinton over Trump in 2016, including a Houston district where two women were the top vote-getters in a race likely to go to a May runoff. Another is a sprawling district that runs along the Texas-Mexico border, where Gina Ortiz-Jones advanced to a May runoff and another woman, Judy Canales, was battling to join her.

"I think that a Congress that is only 20 percent women is not where we need to be," Ortiz Jones told The Associated Press on Tuesday night. "This is not a spectator sport, we've got to participate, all of us and that's what's important."

It was also a big night for two Hispanic women, Veronica Escobar and Sylvia Garcia, who won their Democratic primaries and are poised to become the first two Latina congresswomen in a state where a population boom has been driven by Hispanic growth.

College students waited more than an hour to vote in liberal Austin and rural counties offered Democratic candidates for the first time in years. A tide of anti-Trump activism helped propel nearly 50 women to make a run for Congress. Many were running in a record eight open congressional races this year in Texas — two of which are up for grabs after longtime GOP incumbents abandoned plans for re-election amid scandal.

More than one million Democrats cast ballots in the midterm primary for the first time since 2002, which were the first elections after the Sept. 11 attacks. Democrats, who once dominated Texas politics, would have to go back to 1994 to find more voters casting ballots for their party candidates. Since then it has been all Republicans, who have held every statewide office.

There was some good news for Republicans. They cast a record 1.5 million ballots Tuesday, topping the previous GOP record in 2010, and suggesting that voters on both sides were motivated. But the increase in participation was much greater for Democrats.

While 2002 was a recent high water mark for Democratic turnout in Texas, it also showed the limits of the exuberance for turning the state blue. In November that year, the Democrats running for statewide office were all beaten.

For Republicans, the primary was a vivid exhibition of the Trump effect in GOP politics. George P. Bush, the Texas land commissioner, won a contested primary after he cozied-up to a president who once called his dad, Jeb, a pathetic person. Kathaleen Wall, a former GOP megadonor running for Congress in Houston, was also in the hunt for a runoff after she ran TV ads that suggested there was little daylight between her and Trump.

Trump won Texas by 9 points in 2016. It was the smallest margin of victory by a Republican presidential candidate in Texas in 20 years, but Cruz dismissed talk of a Democratic takeover this fall.

"Left-wing rage may raise a bunch of money from people online, but I don't believe it reflects the views of a majority of Texans," he told reporters after winning the nomination.

The surge of Democratic voters included some former Republicans switching this cycle, including 61-year-old Sarah Chiodo of Dallas, who said she changed parties after Trump was elected.

"I hope that our political environment changes. I'm not happy with it today," she said after voting at a Dallas church. "I find it very divisive and dividing of many people and negative. So I'm looking to vote for people who are positive who care about all."

Democrats will have a tough time winning statewide races in November despite the "Trump effect" because they have fielded little-known candidates against top Republicans, such as Republican Gov. Abbott and Lt. Gov. Dan Patrick. Even Attorney General Ken Paxton, who has been indicted on felony securities fraud charges, clinched his party's nomination unopposed.

Abbott will face either Lupe Valdez, who was Texas' first Hispanic, lesbian sheriff, and Andrew White, who opposes abortion and whose father, Mark, was governor in the 1980s.

In a closely-watched Democratic race, congressional hopeful Laura Moser, who moved from Washington to her native Houston wand was in contention for a runoff to challenge U.S. Rep. John Culberson. The Democratic Congressional Campaign Committee, fearing Moser would be a weak candidate in the general election, blistered her for comments from a 2014 Washingtonian magazine article in which Moser said she'd "rather have her teeth pulled out" than live in rural Paris, Texas.

___

Eds: Associated Press reporters Jamie Stengle in Dallas and John L. Mone in Houston contributed to this report.

A supporter of senate hopeful Beto O'Rourke holds a sign during a Democratic watch party following the Texas primary election, Tuesday, March 6, 2018, in Austin, Texas. (AP Photo/Eric Gay)

FILE - In this Feb. 27, 2013, file photo, Rep. Beto O'Rourke, D-Texas speaks during a news conference on Capitol Hill in Washington. Texas Democrats have turned out in force ahead of their state's first-in-the-nation primary Tuesday, March 6 2018, even though their party remains a longshot to win much. Democratic early voting across Texas most-populous counties more than doubled the last non-presidential cycle in 2014. But the party hasn't won Texas statewide office since 1994. (AP Photo/Carolyn Kaster, File)

FILE - In this Dec. 6, 2017, file photo, Sen. Ted Cruz, R-Texas, speaks during a Senate Judiciary Committee hearing on Capitol Hill in Washington. Texas Democrats have turned out in force ahead of their state's first-in-the-nation primary Tuesday, March 6 2018, even though their party remains a longshot to win much. Democratic early voting across Texas most-populous counties more than doubled the last non-presidential cycle in 2014. But the party hasn't won Texas statewide office since 1994. (AP Photo/Carolyn Kaster, File)

In this Tuesday, Feb. 13, 2018, photo, campaign T-shirts are stacked on a table at a Republican congressional candidate forum, in New Braunfels, Texas. Texas holds the nation’s first 2018 primary elections Tuesday, March 6, 2018, and the campaign is providing a vivid exhibition of the Trump effect in GOP politics. (AP Photo/Eric Gay)

State Rep. Sarah Davis, R-Houston, speaks to campaign volunteer Michael Sternesky before voting in the primary election outside the polling place at West University Elementary on Tuesday, March 6, 2018, in Houston. Davis is running for re-election in the Texas House of Representatives, District 134, ( Brett Coomer /Houston Chronicle via AP)

Senator Sylvia Garcia exits the polling stationat the Montie Beach Community Center after voting Tuesday, March 6, 2018, in Houston. Texas Democrats turned out in force ahead of the first-in-the-nation primary Tuesday in what could be an early hint of a midterm election backlash against President Donald Trump, but their party remains a longshot to make much of a dent in Republican political dominance of the state. (Godofredo A. Vasquez/Houston Chronicle via AP)

FILE - In this Feb. 13, 2018, file photo, bins of signs are seen in a storage are at the Bexar County Election offices in San Antonio. Texas kicks off primary season this ahead of the 2018 midterm election, with implications for Democrats and Republicans alike in an election year that could alter the direction of Congress and statehouses around the country for the final two years of President Donald Trump’s current term. (AP Photo/Eric Gay, File)

WASHINGTON (AP) — Beto O'Rourke's "hell yes" moment at the Democrats' presidential debate is scrambling his party's message on guns.The Democrats have long contended their support of gun control laws does not mean they want to take away law-abiding citizens' firearms.

HOUSTON (AP) — The Latest on the Democratic presidential debate (all times local):9:55 p.m.Early front-runner Joe Biden took on the most fire at Thursday's Democratic presidential debate, and former Obama Housing Secretary Julián Castro was the most explicit in arguing it was time for a new generation.

WASHINGTON (AP) — And then there were 10.The Democratic Party's strongest presidential contenders — according to polls and fundraising, at least — meet on the same debate stage for the first time Thursday night.