Last updated on .From the section 2014 Fifa World Cup

World Cup 2014: Costa Rica 1-1 Greece (5-3 pens) highlights

Costa Rica are into the quarter-finals of the World Cup for the first time in their history after beating Greece 5-3 in a penalty shootout in Recife.

Sokratis Papastathopoulos's injury-time equaliser for Greece had cancelled out Bryan Ruiz's side-footed opener and sent the game into extra time.

Analysis Jason Roberts Former Wigan striker & BBC football pundit "To play with 10 men for so long, to hold on and maintain their composure in the penalties, there was no panic whatsoever. They had the arrogance to stay up there and say: 'I'll take it in my time.' "They should be so proud. This is history for their country, they should celebrate now and they deserve it. Incredible scenes."

Costa Rica, down to 10 men for almost an hour after Oscar Duarte's dismissal, scored their first four spot-kicks.

Theofanis Gekas missed for Greece, and Michael Umana settled the tie.

It means the Central American side - surprise qualifiers from a group containing England, Italy and Uruguay - go through to face the Netherlands on Saturday for a place in the semi-finals as their unlikely run at the World Cup continues.

The last-ditch equaliser and the penalty shootout added belated drama to what had been a less than enthralling encounter at times.

Dimitris Salpingidis had the best chance of a turgid first half but his close-range volley from a fine Jose Holebas cross was saved by the legs of Costa Rica's Keylor Navas - the first of several crucial interventions by the Levante keeper.

Papastathopoulos equalises in last minute for Greece

Christian Bolanos had already sent a half-chance over the bar for Costa Rica while Greece's Giorgos Karagounis saw a long-range effort comfortably saved as erratic passing meant chances were a rarity.

Greece started the second half well with Giorgos Samaras heading a Holebas cross straight at Navas from six yards.

But it was Costa Rica who broke the deadlock with their first shot on target.

Fulham forward Ruiz, who spent the latter part of last season on loan at PSV Eindhoven, converted from the edge of the area, placing a precise side-foot shot into the corner of the goal after a Bolanos pass from the left found him in space.

The Central Americans were incensed not to be given the chance to double their lead after Greek defender Vasilis Torosidis appeared to handle in the box and then lost Duarte when he brought down Holebas to pick up a second yellow card.

Extended deadline I spoke to a Costa Rican journalist who was in tears after the match. He told me he is now changing his flights home for a third time. His newspaper didn't budget for the team getting out of the group. BBC Sport's Seth Bennett in Recife

Although the game opened up as a result of the dismissal, neither side was able to create a clear opening until the final minute of the game when Papastathopoulos found the net with a scuffed shot from inside the box after Navas had parried Gekas's shot into his path.

The goal, Papastathopoulos's first in international football, sparked wild celebrations on the Greek bench and they might even have won it in what remained of normal time but Navas superbly tipped Kostas Mitroglou's bullet header over the bar.

Greece had further half-chances through Gekas and Kostas Katsouranis before a golden opportunity to win it arrived in the second half of extra time.

Levante goalkeeper Keylor Navas has rejected a new contract with the Spanish club and is reportedly available for £8m

They broke upfield from a Costa Rica corner and found themselves with a 5-2 advantage, the ball eventually finding its way to Lazaros Christodoulopoulos - but once again Navas responded agilely to turn the strike away for a corner.

And Costa Rica had their keeper to thank yet again as he saved Mitroglou's late half-volley from six yards in the last seconds of extra time.

There was to be further drama before the penalties had even begun as Greece manager Fernando Santos was sent off.

The first seven spot-kicks were confidently dispatched before Navas made his final and decisive contribution, saving from Gekas and leaving Umana to put Costa Rica through.

Costa Rica fans made the most of their unexpected place in the last 16 of the World Cup

Costa Rica forward Joel Campbell struggled to find space in a tight first half

Dimitris Salpingidis had a volley from close range saved by Keylor Navas

Fulham striker Ruiz scored the opener and dispatched his spot-kick in the shootout

Theofanis Gekas missed the decisive penalty, with Keylor Navas making a superb save