@font-face {
  font-family: "Proxima Nova";
  src: url("../Media/Fonts/ProximaNova-Regular.otf") format("opentype");
}
@font-face {
  font-family: 'gothambold1';
  src: url('../Media/Fonts/gothambold1.eot');
  src: url('../Media/Fonts/gothambold1.woff') format('woff'), url('../Media/Fonts/gothambold1.ttf') format('truetype');
}
@font-face {
  font-family: 'Roboto Mono';
  src: url('../Media/Fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
}


:root {
  --background-color: #090a2e;
}

html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background-color: var(--background-color);
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  color: white;
  font-family: "Proxima Nova", sans-serif;
  max-width: 500px;
  overflow-x: hidden;
}


a {
  color: white;
}

button, .button {
  border: 1px solid white;
  border-radius: 2em;
  padding: 1em 2em;
  background-color: transparent;
  margin: 1em auto;
  display: block;
  color: white;
  font-size: 0.8em;
  font-family: "Proxima Nova", sans-serif;
  cursor: pointer;
  text-decoration: none;
  width: max-content;
  transition: opacity 200ms;
}
button:active:not(#buttongrid button):not(:disabled), .button:active {
  opacity: 0.8;
}
.preferredButton {
  font-size: 1em;
  background-color: #36b77f;
  color: white;
  font-weight: bold;
  border: none;
}

.error-message {
  color: #ffa4a4;
  text-align: center;
}
.warning-message {
  color: #fff896;
  text-align: center;
}
.info-message {
  color: #a4fff6;
  text-align: center;
}

#vote-image, h1, h2, h3, h4 {
  text-align: center;
  text-transform: uppercase;
}
.no-text-transform {
  text-transform: none;
}

h1 {
  font-family: 'gothambold1', "Proxima Nova", sans-serif;
}

.text-center {
  text-align: center;
}

form {
  max-width: 100%;
  overflow: auto;
}
table {
  border: 1px solid #ffffff5e;
  padding: 0.5em;
}

.iconButton {
  border: 1px solid white;
  padding: 1.1em;
  display: inline-block;
  margin: 1em 0.5em;
  border-radius: 50%;
  height: 2em;
}
.iconButton img {
  width: 2em;
}

dialog {
  border: 0 solid gray;
  border-radius: 1em;
  max-width: calc(70% - 4em);
  z-index: 100;
  padding: 1.5em 3em;
}
dialog::backdrop {
  background-color: #06060680;
}

#signalr-connection-failed-message, #signalr-reconnecting-message {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.48);
  font-size: 1.1em;
}

#signalr-connection-failed-message p, #signalr-reconnecting-message p {
  position: absolute;
  top: 40%;
  width: 100%;
  font-weight: bold;
  z-index: 101;
  text-align: center;
  padding: 1em;
  margin: 0;
  box-sizing: border-box;
}
.no-connection #signalr-connection-failed-message {
  display: block;
  color: #ff5b29;
}
.reconnecting #signalr-reconnecting-message {
  display: block;
  color: darkorange;
}
#signalr-reconnecting-message img {
   width: 1em;
   animation: spin 1s linear infinite;
 }
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}