* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-size: 16px;
  font-family: 'Open Sans';
  --text-primary:#ccc;
  --text-option1:#ececec;
  --text-option2:#b6b6b6;
  --bg-primary:#101315;
  --bg-option1:#23232e;
  --bg-option2:#141418;
  --fire-orange:#fd864a;
  --darkfire:#df6b31;
  --input-border: rgba(255, 255, 255, .2);
  --input-button: #b4b4b9;
  --danger: #000080;
}

.lightmode {
  --text-primary: #141418;
  --text-option1:#23232e;
  --text-option2: #101315;
  --bg-primary: #ececec;
  --bg-option1: #d4d4d4;
  --bg-option2: #ccc;
  --fire-orange:#1267ad;
  --darkfire: var(--fire-orange);
  --input-border: rgba(20, 20, 24, .2);
  --input-button: #414141;
  --danger:#fff01d;
}

.lightmode svg{
  fill: var(--text-option1);
}

header {
  font-size: 2rem;
  text-align: center;
  background: var(--bg-option1);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body::-webkit-scrollbar {width: 0.5rem;}

body::-webkit-scrollbar-track {background: var(--bg-option1);}

body::-webkit-scrollbar-thumb{background: var(--text-option2);}

main {
  margin-left: 11rem;
  margin-bottom: 1rem;
  font-size: large;
}

#page-title {
  font-size: 1.6rem;
  padding-bottom: .5rem;
}

ul{
  list-style-type: none;
  margin: 0;
  padding: 0.5rem;
}

.navbar {
  width: 10.5rem;
  position: fixed;
  background: var(--bg-option1);
  display: flex;
  justify-content: center;
}

.navbar svg{vertical-align: sub;}

.navlist {
  list-style-type: none;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.nav-item {
  font-size: 1.4rem;
  margin-bottom: .1rem;
  padding: .5rem;
}

.nav-link:hover {
  color: var(--fire-orange);
  cursor: pointer;
}
.nav-link:hover svg{fill:var(--fire-orange);}


.nav-link {
  background: var(--bg-option1);
  color: var(--text-primary); 
  border: none;
  margin-left: 0%;
  transition: none;
}

.nav-item:last-child {
  margin-top: auto;
  margin-bottom: 2rem;
}

#theme-switch span:last-child {display: none;}
#theme-switch svg:nth-child(3) {display: none;}
.lightmode #theme-switch svg:first-child {display: none;}
.lightmode #theme-switch svg:nth-child(3) {display: inline-block;}
.lightmode #theme-switch span:nth-child(2) {display: none;}
.lightmode #theme-switch span:last-child {display: inline-block;}

.collapsed .nav-text{display: none;}
#page-title svg{display:none;}
#collapseExpand svg:nth-child(2){display:none;}
.navCollapsed #page-title svg{display:inline-block;}
.navCollapsed #page-title span{display:none;}
.navCollapsed #collapseExpand svg:first-child{display:none;}
.navCollapsed #collapseExpand svg:nth-child(2){display: inline-block;}
.navCollapsed .navbar{width: 5.1rem;}
.lightmode .collapsed #theme-switch span:last-child {display: none;}
.navCollapsed main {margin-left: 5.6rem;}

#spectate-button {display: none;}
#community-button {display: none;}
#logout-button {display: none;}
#more-button span:last-child {display: none;}
.moretoggle #more-button span:nth-child(2) {display: none;}
.moretoggle #more-button span:last-child {display: inline-block;}
.moretoggle #spectate-button {display:block;}
.moretoggle #community-button {display:block;}
.moretoggle #logout-button {display:block;}
.collapsed #more-button span:last-child {display: none;}

#WelcomeMain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  min-height: 100vh;
}
#LoginMain {display: none;}
#BuildMain {display: none;}
#PlayMain {display: none;}
#BrowseMain {display: none;}
#SettingsMain {display: none;}
#SpectateMain {display: none;}
#CommunityMain {display: none;}
#RegisterMain {display: none;}
#ForgotMain {display:none;}
#ForgotUsernameMain {display:none;}

.mainSwitchLogin #WelcomeMain{display: none;}
.mainSwitchLogin #BuildMain{display: none;}
.mainSwitchLogin #PlayMain{display: none;}
.mainSwitchLogin #BrowseMain{display: none;}
.mainSwitchLogin #SettingsMain{display: none;}
.mainSwitchLogin #SpectateMain{display: none;}
.mainSwitchLogin #CommunityMain{display: none;}
.mainSwitchLogin #RegisterMain {display: none;}
.mainSwitchLogin #ForgotMain {display:none;}
.mainSwitchLogin #ForgotUsernameMain {display:none;}
.mainSwitchLogin #LoginMain{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-wrapper, .accountSettingsWrapper{
  width: 420px;
  background: var(--bg-option1);
  color: var(--text-primary); 
  border-radius: 10px;
  padding: 30px 40px;
}

.login-wrapper h1, .accountSettingsWrapper h1{
  font-size: 36px;
  text-align: center;
}

.login-wrapper .input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin: 30px 0;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  border: 2px solid var(--input-border);
  border-radius: 40px;
  font-size: 16px;
  color: var(--text-primary); 
  padding: 20px 45px 20px 20px;
}

.input-box input::placeholder {
  color: var(--text-primary); 
}

.input-box svg {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.show-password{
  margin-top: 0%;
  margin-bottom: 25px;
  font-size: 1rem;
}

.visibilitycheckboxtext{
  position: absolute;
  text-align: center;
  padding-left: .5rem;
}

.login-wrapper .remember {
  display: flex;
  justify-content: center;
  font-size: 1rem;
  margin: -15px 0 15px;
}

.remember label {
  accent-color: var(--text-primary);
  margin-left: 3px;
  font-size: 1rem;
}

.forgot-password ,.forgot-username{
  display: flex;
  justify-content: center;
  padding: .5rem;
}

.login-wrapper .button ,#SettingsMain button{
  width: 100%;
  height: 2.8125rem;
  background: var(--input-button);
  border: none;
  outline: none;
  border-radius: 2.5rem;
  box-shadow: 0 0 .625rem rgba(0, 0, 0, .1);
  cursor: pointer;
  font-size: 1rem;
  color: var(--bg-option2);
  font-weight: 600;
  text-align: center;
  margin-bottom: .4rem;
}

.login-wrapper .button:hover ,#SettingsMain button:hover{
  background: var(--darkfire);
  transition: .5s;
}

.login-wrapper #register-link, #forgot-password, #forgot-username{
  margin-top: 10px;
  width: 100%;
  height: 45px;
  text-align: center;
}

.login-wrapper #register-link:hover, #forgot-password:hover, #forgot-username:hover{
  text-decoration: underline;
  color: var(--fire-orange);
  cursor: pointer;
}

.login-wrapper input[type="checkbox"] {
  position: relative;
  margin-top: auto;
  width: 40px;
  height: 20px;
  background:var(--bg-option2);
  outline: none;
  border-radius: 10px;
  box-shadow: inset 0 0 2.5px rgba(0,0,0, .2);
  transition: .5s;
}

.login-wrapper input:checked[type="checkbox"] {
  background: var(--fire-orange);
  transition: .5s;
}

.login-wrapper input[type="checkbox"]:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  top: 0;
  left: 0;
  background: var(--input-button);
  transform: scale(1.1);
  box-shadow: 0 1px 2.5px rgba(0,0,0, .2);
  transition: .5s;
}

.login-wrapper input:checked[type="checkbox"]:before {
  left: 20px;
  transition: .5s;
}

.login-wrapper input[type="checkbox"]:hover {
  cursor: pointer;
}

.login-wrapper p{
  text-align: center;
}

.form-error, .form-success {
  height: 1.8rem;
  width: 420px;
  color: var(--text-primary); 
  border-radius: 10px;
  background: var(--input-border);
  text-align: center;
  margin-bottom: .125rem;
  padding-bottom: .125rem;
  font-size: 1.2rem;
}

.form-success {
  color: var(--fire-orange);
}

.mainSwitchBuild #WelcomeMain{display: none;}
.mainSwitchBuild #LoginMain{display: none;}
.mainSwitchBuild #PlayMain{display: none;}
.mainSwitchBuild #BrowseMain{display: none;}
.mainSwitchBuild #SettingsMain{display: none;}
.mainSwitchBuild #SpectateMain{display: none;}
.mainSwitchBuild #CommunityMain{display: none;}
.mainSwitchBuild #RegisterMain {display: none;}
.mainSwitchBuild #ForgotMain {display:none;}
.mainSwitchBuild #ForgotUsernameMain {display:none;}
.mainSwitchBuild #BuildMain{display: block;}

.mainSwitchPlay #WelcomeMain{display: none;}
.mainSwitchPlay #LoginMain{display: none;}
.mainSwitchPlay #BuildMain{display: none;}
.mainSwitchPlay #BrowseMain{display: none;}
.mainSwitchPlay #SettingsMain{display: none;}
.mainSwitchPlay #SpectateMain{display: none;}
.mainSwitchPlay #CommunityMain{display: none;}
.mainSwitchPlay #RegisterMain {display: none;}
.mainSwitchPlay #ForgotMain {display:none;}
.mainSwitchPlay #ForgotUsernameMain {display:none;}
.mainSwitchPlay #PlayMain{display: block;}

.mainSwitchBrowse #WelcomeMain{display: none;}
.mainSwitchBrowse #LoginMain{display: none;}
.mainSwitchBrowse #BuildMain{display: none;}
.mainSwitchBrowse #PlayMain{display: none;}
.mainSwitchBrowse #SettingsMain{display: none;}
.mainSwitchBrowse #SpectateMain{display: none;}
.mainSwitchBrowse #CommunityMain{display: none;}
.mainSwitchBrowse #RegisterMain {display: none;}
.mainSwitchBrowse #ForgotMain {display:none;}
.mainSwitchBrowse #ForgotUsernameMain {display:none;}
.mainSwitchBrowse #BrowseMain{display: block;}

.mainSwitchSettings #WelcomeMain{display: none;}
.mainSwitchSettings #LoginMain{display: none;}
.mainSwitchSettings #BuildMain{display: none;}
.mainSwitchSettings #PlayMain{display: none;}
.mainSwitchSettings #BrowseMain{display: none;}
.mainSwitchSettings #SpectateMain{display: none;}
.mainSwitchSettings #CommunityMain{display: none;}
.mainSwitchSettings #RegisterMain {display: none;}
.mainSwitchSettings #ForgotMain {display:none;}
.mainSwitchSettings #ForgotUsernameMain {display:none;}
.mainSwitchSettings #SettingsMain{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

.accountSettingsWrapper {
  padding-top: 0%;
}

.Account_Settings_Title {
  margin-top: 0%;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

#Account_Danger {
  color: var(--danger);
}

.mainSwitchSpectate #WelcomeMain{display: none;}
.mainSwitchSpectate #LoginMain{display: none;}
.mainSwitchSpectate #BuildMain{display: none;}
.mainSwitchSpectate #PlayMain{display: none;}
.mainSwitchSpectate #BrowseMain{display: none;}
.mainSwitchSpectate #SettingsMain{display: none;}
.mainSwitchSpectate #CommunityMain{display: none;}
.mainSwitchSpectate #RegisterMain {display: none;}
.mainSwitchSpectate #ForgotMain {display:none;}
.mainSwitchSpectate #ForgotUsernameMain {display:none;}
.mainSwitchSpectate #SpectateMain{display: block;}

.mainSwitchCommunity #WelcomeMain{display: none;}
.mainSwitchCommunity #LoginMain{display: none;}
.mainSwitchCommunity #BuildMain{display: none;}
.mainSwitchCommunity #PlayMain{display: none;}
.mainSwitchCommunity #BrowseMain{display: none;}
.mainSwitchCommunity #SettingsMain{display: none;}
.mainSwitchCommunity #SpectateMain{display: none;}
.mainSwitchCommunity #RegisterMain {display: none;}
.mainSwitchCommunity #ForgotMain {display:none;}
.mainSwitchCommunity #ForgotUsernameMain {display:none;}
.mainSwitchCommunity #CommunityMain{display: block;}

.mainSwitchRegister #WelcomeMain{display: none;}
.mainSwitchRegister #LoginMain{display: none;}
.mainSwitchRegister #BuildMain{display: none;}
.mainSwitchRegister #PlayMain{display: none;}
.mainSwitchRegister #BrowseMain{display: none;}
.mainSwitchRegister #SettingsMain{display: none;}
.mainSwitchRegister #SpectateMain{display: none;}
.mainSwitchRegister #CommunityMain{display: none;}
.mainSwitchRegister #ForgotMain {display:none;}
.mainSwitchRegister #ForgotUsernameMain {display:none;}
.mainSwitchRegister #RegisterMain {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

.mainSwitchForgot #WelcomeMain{display: none;}
.mainSwitchForgot #LoginMain{display: none;}
.mainSwitchForgot #BuildMain{display: none;}
.mainSwitchForgot #PlayMain{display: none;}
.mainSwitchForgot #BrowseMain{display: none;}
.mainSwitchForgot #SettingsMain{display: none;}
.mainSwitchForgot #SpectateMain{display: none;}
.mainSwitchForgot #CommunityMain{display: none;}
.mainSwitchForgot #RegisterMain {display: none;}
.mainSwitchForgot #ForgotUsernameMain {display: none;}
.mainSwitchForgot #ForgotMain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.mainSwitchForgotUsername #WelcomeMain{display: none;}
.mainSwitchForgotUsername #LoginMain{display: none;}
.mainSwitchForgotUsername #BuildMain{display: none;}
.mainSwitchForgotUsername #PlayMain{display: none;}
.mainSwitchForgotUsername #BrowseMain{display: none;}
.mainSwitchForgotUsername #SettingsMain{display: none;}
.mainSwitchForgotUsername #SpectateMain{display: none;}
.mainSwitchForgotUsername #CommunityMain{display: none;}
.mainSwitchForgotUsername #RegisterMain {display: none;}
.mainSwitchForgotUsername #ForgotMain {display: none;}
.mainSwitchForgotUsername #ForgotUsernameMain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

code {font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;}

canvas {
  border: 1px solid var(--text-primary);
  margin-left: 11rem;
}

footer {
  margin-left: 11rem;
  display: flex;
  margin-top: auto;
  justify-content: center;
}

footer a {
  color: var(--text-option2);
}

footer a:hover {
  color: var(--fire-orange);
  cursor: pointer;
}