:root {
  /* light mode settings */
  --text-color-light: #ffffff;
  --background-image-light: url(../img/background.png) #20acfdc4;
  --background-blend-mode-light: background-blend-mode: lighten;
  --background-size-light: 350px;

  /* dark mode setings */
  --text-color: white;
  --background: url(../img/background.png) #020d5188;
  --background-blend-mode: lighten;
  --background-size: 350px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--background);
  background-blend-mode: var(--background-blend-mode);
	background-size: var(--background-size);
	background-repeat: repeat;
  color: var(--text-color);
  /* transition: background 2s, background-size 2s, background-blend-mode 2s, color 2s; */
  overflow: hidden;

}

/* Light Mode Styles */
body.light-theme {
  /* --background-color: var(--background-color-light); */
  --text-color: var(--text-color-light);
  --background: var(--background-image-light);
  /* --background-blend-mode: var(--background-blend-mode-light);
  --background-size: var(--background-size-light); */
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 94.7vh;
  letter-spacing: 1px;
  
}

.navbar {
  position: sticky;
  height: 5.3vh;
  top: 0;
  display: flex;
  overflow: hidden;
  justify-content: center;
  color: rgb(183 183 183);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.nav-bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  background-color: transparent;
  position: relative;
  text-align: center;
}

#trapezoid {
  border: 38px solid rgba(0, 0, 0, 0);
  border-bottom: 47px solid rgb(255 255 255);

  -webkit-transform: rotateX(180deg);
  transition: all 0.7s ease;
}

#trapezoid:hover {
  border-bottom: 47px solid rgb(157 157 157 / 34%);
  color: white !important;
}

#trapezoid a {
  -webkit-transform: rotateX(180deg);
  transform: rotateX(180deg);
  color: black;
}

#trapezoid a:hover {
  color: white;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: rgb(183 183 183);
  text-align: center;
  padding: 14px 25px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: all 0.5s ease;
}

.navbar a:hover {
  color: rgb(255, 255, 255);
  border-radius: 5px;
}

@media screen and (max-width: 950px) {
  .navbar a {
    font-size: 14px;
    padding: 14px 15px;
    letter-spacing: 3px;
  }

  #trapezoid {
    border: 30px solid rgba(0, 0, 0, 0);
    border-bottom: 43px solid rgb(255 255 255);
  }
}

@media screen and (max-width: 700px) {
  .navbar a {
    font-size: 12px;
    padding: 14px 8px;
    letter-spacing: 1px;
  }

  #trapezoid {
    border-bottom: 37px solid rgb(255 255 255);
  }

  #trapezoid a {
    margin-top: -4px;
  }
}

@media screen and (max-width: 520px) {
  .nav-bar {
    justify-content: space-around;
  }

  #trapezoid {
    border: 37px solid rgba(0, 0, 0, 0);
    border-bottom: 45px solid rgb(255 255 255);
  }

  #trapezoid a {
    margin-top: 0px;
    font-size: 14px;
  }

  a#leaderboard,
  a#history,
  a#account,
  a#settings {
    text-indent: -9999px; /* Hide text */
    overflow: hidden; /* Hide text */
    display: inline-block;
    width: 25px;
    height: 25px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: invert(100%); /* Invert the colors to make SVG white */
  }

  #leaderboard {
    background-image: url('../img/icons/leaderboard.svg');
  }

  #history {
    background-image: url('../img/icons/history.svg');
    width: 22px !important;
    height: 22px !important;
    margin-top: 3px;
  }

  #account {
    background-image: url('../img/icons/account.svg');
  }

  #settings {
    background-image: url('../img/icons/settings.svg');
    width: 22px !important;
    height: 22px !important;
  }
}
