[Help Needed] What is the Syntax Error here?

https://www.codecademy.com/practice/projects/games-of-chance

What is the Syntax Error in my code?

Screen Shot 2019-12-14 at 6.16.41 pm

def dice_game(guess, bet):
  if bet <= 0:
    print("You must bet more than 0 dollars.")
    return 0
  
  print("You roll two dice! You guessed the sum of the two dice would be an " + guess + " number.")
  dice1 = random.randint(1, 6)
  dice2 = random.randint(1, 6)
  total = dice1 + dice2
  print("The sum of the two dice is " + str(total) + ".")
  if (guess == "even" and total % 2 == 0) or (guess == "odd" and total % 2 == 1):
   print("You guessed correctly. You have been awarded " + str(bet) + " dollars as prize.")
  return bet
  elif (guess == "even" and not total % 2 == 0) or (guess == "odd" and not total % 2 == 1):
    print("You guessed incorrectly. You have been deducted a penalty of " + str(bet) + " dollars.")
    return -bet

elif can only be/come after if

but here:

  if (guess == "even" and total % 2 == 0) or (guess == "odd" and total % 2 == 1):
   print("You guessed correctly. You have been awarded " + str(bet) + " dollars as prize.")
  return bet

return is not nested within the if block.