html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body {
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  overflow-y: scroll;
  line-height: 1;
}
body.with-bg {
  background: url("/assets/img/bg.png") top center;
  background-size: cover;
}

p {
  font-size: 1.6rem;
  line-height: 20px;
  margin-bottom: 24px;
  color: rgba(var(--text-rgb), 0.8);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

:root {
  --bg: #F8F8FE;
  --text: #000;
  --text-rgb: 0, 0, 0;
  --primary: #C72506;
  --input-bg: rgba(var(--text-rgb), .1);
  --input-bg: var(--bg);
  --btn-bg: linear-gradient(90deg, #FAA239 0%, #F03E29 100%);
  --btn-bg: var(--primary);
  --btn-text: inherit;
  --btn-text: #60647C;
  --btn-secondary-text: inherit;
  --btn-secondary-text: var(--bg);
}

img.icon-arrow {
  background-color: var(--primary);
  -webkit-mask: url(/assets/img/arrow.svg) no-repeat bottom center/cover;
  -webkit-mask-size: cover;
  mask: url(/assets/img/arrow.svg) no-repeat bottom center/cover;
  mask-size: cover;
  width: 20px;
  height: 20px;
}

html {
  font-size: 10px;
}

a {
  text-decoration: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  padding: 100px 16px 50px;
}

.height-transition-enter-active,
.height-transition-leave-active {
  display: grid !important;
  overflow: clip !important;
}
.height-transition-enter-active,
.height-transition-enter-active > *,
.height-transition-leave-active,
.height-transition-leave-active > * {
  transition: all 0.25s ease-in-out;
  min-height: 0;
}

.height-transition-enter-from,
.height-transition-leave-to {
  grid-template-rows: 0fr;
  opacity: 0;
}
.height-transition-enter-from,
.height-transition-enter-from > *,
.height-transition-leave-to,
.height-transition-leave-to > * {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.height-transition-enter-to,
.height-transition-leave-from {
  grid-template-rows: 1fr;
  opacity: 1;
}

.logo {
  margin: auto;
  display: block;
  margin-bottom: 50px;
  max-width: 300px;
  width: 100%;
}

#app {
  margin: auto;
  max-width: 400px;
}
#app.admin {
	max-width: 600px;
}

button,
.button {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border-radius: 4px;
  border: 0;
  display: flex;
  padding: 14px 16px 16px 16px;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--btn-text);
  background: transparent;
  margin-bottom: 15px;
}
button:not(:disabled),
.button:not(:disabled) {
  cursor: pointer;
}
button:disabled,
.button:disabled {
  opacity: 0.6;
}
button[type=submit], button.primary,
.button[type=submit],
.button.primary {
  color: var(--btn-secondary-text);
  background: var(--btn-bg);
}
button:active:not(:disabled),
.button:active:not(:disabled) {
  transform: translateY(1px);
}

.ui-input {
  margin-bottom: 24px;
}
.ui-input label {
  margin-bottom: 7px;
  font-size: 1.3rem;
  text-transform: uppercase;
  display: block;
}
.ui-input input {
  border: 1px solid var(--text);
  background-color: var(--input-bg);
  width: 100%;
  padding: 14px 16px;
  color: inherit;
  font-size: 1.6rem;
}
.ui-input input:focus {
  border-color: var(--primary);
}
.ui-input input:disabled {
  color: rgba(var(--text-rgb), 0.6);
}
.ui-input:focus-within label {
  color: var(--primary);
}

.error {
  display: flex;
  padding: 14px 16px;
  background: rgba(229, 36, 11, 0.5);
  font-size: 1.6rem;
  align-items: center;
  margin-bottom: 24px;
  border-radius: 4px;
}
.error svg {
  margin-right: 7px;
}

h2 {
  font-size: 2.8rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 40px;
}
h2::after {
  content: "";
  background: var(--primary);
  width: 60px;
  height: 2px;
  position: absolute;
  display: block;
  left: 0;
  bottom: 24px;
}

.link {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.7rem;
  text-transform: uppercase;
  color: var(--primary);
  width: auto;
  padding: 0;
}

.upload {
  position: relative;
  overflow: clip;
}
.upload input[type=file] {
  position: absolute;
  display: block;
  z-index: 3;
  bottom: 0;
  right: 0;
  min-height: 200%;
  min-width: 200%;
  opacity: 0;
  cursor: pointer;
}

.line {
  border-top: 1px solid rgba(var(--text-rgb), 0.2);
  padding: 15px 0;
}

th,
.th {
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.small-header {
  display: flex;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(var(--text-rgb), 0.8);
  margin-bottom: 50px;
  line-height: 125%;
}
.small-header a {
  color: rgba(var(--text-rgb), 0.5);
}
.small-header > * {
  display: flex;
  flex-flow: column;
  justify-content: center;
}
.small-header > :nth-child(1) {
  width: 32px;
}
.small-header > :nth-child(2) {
  flex: auto;
  padding: 0 15px;
}
.small-header > :nth-child(3) {
  width: 80px;
  text-align: right;
}

table:not(.leaderboard) {
  width: 100%;
  font-size: 1.6rem;
  line-height: 125%;
  margin-bottom: 24px;
  /* tbody > :nth-child(even) {
  	background: rgba(var(--text-rgb), .05);
  } */
}
table:not(.leaderboard) td,
table:not(.leaderboard) th {
  padding: 4px;
  border-bottom: 1px solid rgba(var(--text-rgb), 0.1);
}
table:not(.leaderboard) td:nth-child(1),
table:not(.leaderboard) th:nth-child(1) {
  width: 80%;
}
table:not(.leaderboard) td:nth-child(2),
table:not(.leaderboard) th:nth-child(2) {
  width: 20%;
  text-align: right;
}

.info {
  color: rgba(var(--text-rgb), 0.5);
  text-align: center;
  font-size: 2rem;
  padding: 24px 12px;
  margin-bottom: 48px;
}

.loader {
  border: 2px solid;
  border-top: 2px solid;
  border-radius: 100%;
  animation: loader-spin 1s linear infinite;
  display: inline-block;
  flex-shrink: 0;
  border-color: rgba(var(--text-rgb), 0.6);
  border-top-color: rgba(var(--text-rgb), 0.12);
  width: 22px;
  height: 22px;
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.leaderboard {
  width: 100%;
  font-size: 1.6rem;
  line-height: 125%;
}
.leaderboard > td,
.leaderboard > th {
  padding: 4px 0;
  border: 0;
}
td, th, tr {
	border: 0;
	outline: 0;
}
.leaderboard td {
  padding: 4px 0;
}
.leaderboard {
  border-collapse: collapse;
}
.leaderboard__score {
  font-weight: 500;
  min-width: 70px;
  display: block;
  text-align: right;
}
.leaderboard .my-team {
  background: linear-gradient(
    90deg,
    rgba(240, 62, 41, 0.00) 0%,
    rgba(240, 62, 41, 0.48) 8.33%,
    rgba(241, 76, 43, 0.70) 19.32%,
    rgba(248, 146, 54, 0.70) 70.31%,
    rgba(250, 162, 57, 0.48) 91.15%,
    rgba(250, 162, 57, 0.00) 100%
  );
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-container dialog {
  max-width: 480px;
  width: 90%;
  border: 0;
  border-radius: 4px;
  padding: 32px;
}
.modal-container dialog .modal-buttons {
  display: flex;
  gap: 16px;
}
.modal-container dialog .modal-buttons button {
  width: 50%;
}
.modal-container dialog .modal-buttons button:not(.primary) {
  background-color: rgba(var(--text-rgb), 0.2);
}

.terms {
  text-align: center;
  color: var(--btn-text);
}
.terms a {
  color: var(--btn-text);
}
.terms a:hover {
  opacity: 0.8;
}

.list-transition-grid-items {
  position: relative;
}
.list-transition-grid-items > * {
  transition: all 0.4s ease-in-out;
}

.list-transition-grid-leave-active,
.list-transition-grid-enter-active {
  animation-name: none !important;
}

.list-transition-grid-leave-active {
  position: absolute;
}

.list-transition-grid-enter-from,
.list-transition-grid-leave-to {
  opacity: 0 !important;
}

.list-transition-grid-enter-to,
.list-transition-grid-leave-from {
  opacity: 1 !important;
}

.admin-submissions {
  width: 100%;
  font-size: 1.6rem;
  line-height: 125%;
  margin-bottom: 30px;
}
.admin-submissions > div {
  display: flex;
  flex-flow: column;
}
.admin-submissions > div > div {
  padding: 4px 0;
  display: flex;
}
.admin-submissions > div .admin-submissions__date {
  opacity: 0.6;
  width: 200px;
}
.admin-submissions > div .admin-submissions__name {
  flex: auto;
}
.admin-submissions > div .admin-submissions__actions {
  width: 20px;
  text-align: right;
}

div + h2 {
  margin-top: 30px;
}

.admin-teams {
  width: 100%;
  font-size: 1.6rem;
  line-height: 125%;
}
.admin-teams > div {
  display: flex;
  flex-flow: column;
}
.admin-teams > div > div {
  padding: 4px 0;
  display: flex;
}
.admin-teams > div .admin-teams__id {
  opacity: 0.6;
  width: 120px;
  word-break: break-all;
}
.admin-teams > div .admin-teams__score {
  width: 60px;
}
.admin-teams > div .admin-teams__name {
  flex: auto;
}
.admin-teams > div .admin-teams__actions {
  width: 20px;
  text-align: right;
}

.admin-submissions {
  width: 100%;
  font-size: 1.6rem;
  line-height: 125%;
  margin-bottom: 30px;
}
.admin-submissions > div {
  display: flex;
  flex-flow: column;
}
.admin-submissions > div > div {
  padding: 4px 0;
  display: flex;
}
.admin-submissions > div .admin-submissions__date {
  opacity: 0.6;
  width: 200px;
}
.admin-submissions > div .admin-submissions__name {
  flex: auto;
}
.admin-submissions > div .admin-submissions__actions {
  width: 20px;
  text-align: right;
}

.admin-team-submissions {
  width: 100%;
  font-size: 1.6rem;
  line-height: 125%;
  margin-bottom: 30px;
}
.admin-team-submissions > div {
  display: flex;
  flex-flow: column;
}
.admin-team-submissions > div > div {
  padding: 4px 0;
  display: flex;
}
.admin-team-submissions > div .admin-team-submissions__date {
  opacity: 0.6;
  width: 200px;
}
.admin-team-submissions > div .admin-team-submissions__id {
  flex: 1;
}
.admin-team-submissions > div .admin-team-submissions__actions {
  width: 80px;
  text-align: right;
}
.upload .progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #C72506;
}
button:disabled.upload {
  opacity: 1;
  background: #C72506AA;
}