The voting has finished and now the ballot papers are being counted across Scotland.

STV News will bring you every result from across the country online and on air.

As you wait for the votes to be tallied up we have compiled our top seven constituencies to watch out for during the early hours of Friday.

These seats will bring us answers to the questions which have hung over the election:

Will the SNP stave off the threat from the Scottish Conservatives in their north east heartland?

Will Labour find a way back to victory in the central belt?

Can the Liberal Democrats regain a foothold in mainland Scotland?

Here's your top seven seats to watch:

The SNP's Westminster leader Angus Robertson has spent the election battling to save his seat.

Moray has been yellow since Margaret Ewing triumphed in the constituency in 1987.

Scottish Conservative candidate Douglas Ross, who is a regional MSP for the party currently, is aiming to repaint it blue. The party has been growing in confidence in recent weeks at their chances of toppling the senior nationalist.

Why the confidence?

In 2014, the constituency backed staying in the UK while last year it returned the largest vote to leave the European Union anywhere in Scotland.

The Conservatives believe Robertson's support for both the UK and remaining in the EU may backfire at the ballot box.

If the Tories are to get any Brexit bounce at the polls in Scotland, then it will almost certainly be in Moray.

This suburban, prosperous constituency is home to an electoral battlefield between the SNP, the Conservatives and Labour.

All three parties have been campaigning hard to win what could be one of the tightest contests anywhere in the country.

The SNP unseated the then-Scottish Labour leader Jim Murphy with a gigantic 24.3% swing in two years ago and believe their candidate Kirsten Oswald can be re-elected again with around 37-40% of the votes cast.

However, at last year's election to the Scottish Parliament, the Scottish Conservatives ousted the nationalists from the Eastwood constituency, which has the same boundaries as East Renfrewshire.

The Tories therefore reckon they have a good chance of winning the seat tonight.

Labour, however, have called on activists from across the west of Scotland to campaign for their candidate Blair McDougall, who was the head strategist of Better Together in 2014's independence referendum.

The party held the seat from 1997 until the last election and they reckon they are best placed to harness the pro-union vote.

This has all the makings of a proper three way marginal and all the election night drama that comes with it.

Swing from the SNP to the Conservatives needed to unseat Oswald: 9.3%. Swing from the SNP to Labour needed to unseat Oswald: 3.3%.

Another suburban seat and another must-watch during election night.

This constituency looks set to be a close fight between the incumbent SNP candidate John Nicolson and the Liberal Democrats' Jo Swinson.

Nicolson triumphed over Swinson two years ago but the former minister reckons she has a good chance of getting her old job back.

It is the Lib Dems' top target in Scotland at this election.

Nicolson has a majority of 2167 going into the contest, but he could be toppled if Swinson can win the support of some of those who voted for Labour and the Conservatives in 2015.

East Dunbartonshire voted to remain both in the UK and in the European Union at both recent referendums. The Lib Dems hope their opposition to a second independence vote while also promising a second UK-wide poll on the final Brexit deal will win them the seat.

If Nicolson can hold on then it points to the SNP having a better night than the polls and pundits predicted.

Swing from the SNP to the Lib Dems needed to unseat Nicolson: 2%.

At the last general election two years Edinburgh South returned the only Labour MP in Scotland.

Scottish Labour have put in a lot of the party's resources to ensure Ian Murray is re-elected back to Westminster.

The SNP, however, continue to have their eye on the seat and hope a win here could ensure Labour are wiped out across Scotland.

The best hope for an SNP win here is for the pro-union vote to be split more evenly this time with the Conservatives increasing their share of the vote from 2015.

Swing from Labour to the SNP needed to unseat Murray: 2.7%

East Lothian is regarded by Labour as the party's best hope of gaining a seat from the SNP anywhere in Scotland.

As the election has gone on the party has grown more confident of its chances of winning the seat back from the SNP's George Kerevan.

To win, Labour require a significant number of those who voted Conservative two years ago to move to the party.

At the last election Labour trailed the SNP by 6803 votes the constituency whilst the Tories came third with 11,511 votes. Get enough of these voters to turn out and switch sides then an upset could be on the cards.

The result in East Lothian will tell us if a significant amount of Scottish voters who are pro-union care passionately enough about the constitution to vote tactically for the party not of their first preference.

Swing from the SNP to Labour needed to unseat Kerevan: 5.8%.

This expansive constituency is home to Scotland's only Conservative MP at the minute.

Scottish secretary David Mundell was re-elected in 2015 with a majority of only 798 over the SNP.

Back then six parties contested the contest but at this snap election only four are on the ballot paper: Conservatives, the SNP, Labour and the Liberal Democrats.

There is no Scottish Green candidate and no Ukip candidate in the election this time.

So how this will affect the outcome is hard to tell. Will pro-independence Green voters switch to the SNP and help them unseat Mundell? Will the more than 1000 Ukip voters opt to vote for the Conservatives who are promising to leave the European Union no matter what in the next parliament?

Swing from the Conservatives to the SNP needed to unseat Mundell: 0.8%.

It was said during the Middle Ages that whoever held Stirling held Scotland.

The co nstituency may not hold such power today but it is an interesting slice of the country.

It has housing schemes and a castle, sprawling farmland and a large student campus.

Stirling used to return Conservative MPs to Westminster at every election until the Blair-Labour landslide of 1997.

The SNP's Steven Paterson then won the seat from Labour as part of their electoral tsunami of 2015.

Like East Renfrewshire, all three parties are hopeful here.

Swing from the SNP to Labour needed to unseat Paterson: 10.05%. Swing needed from the SNP to the Conservatives needed to unseat Paterson: 11.3%.