@import url("base.css?2024-02-09");
@import url("jsboard.css?2024-02-09");
@import url("urt-ui.css?2024-02-09");
@import url("generic.css?2024-02-09");
@import url("x.css?2024-04-21");

:root {
  --school: #8a86ca;
  --school-alt: #765694;
  /* --school-dark: #704b93; */
  --school-dark: #0f162d;
  --bboard: #ccff00;
  --summer: #8f8231;
  --shirt: #fdffa9;

  --ugra: #ff7a00;
  --ugra-u: #ff7a0066;
  --a: #023e72;
  --au: #023e7244;

  --dark-bg: var(--school-dark);

  --inv-a: #2f98f2;
  --inv-au: #2f98f244;

  --warn: #eb0300;
  --good: #babc16;

  --bck: var(--ugra);
  --txt: #000000;
  --txtu: #00000044;
  --acc: #000000cc;

  --block-bck: #ffffff;
  --block-txt: #000000;

  --neutral-bck: #ffffff;

  --sbase: 16px;

  --sh-fg-txt: 0 2px 0 0 #00000022;
  --width: 1000px;

  --funny-font: "funny", "Inter", sans-serif;

  accent-color: var(--ugra);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  max-width: var(--width);
  margin: 0 auto;
  font-size: var(--sbase);
  background: var(--neutral-bck);
  color: var(--txt);
  line-height: 1.3em;
  font-size: 13px;
  font-family: Inter, sans-serif !important;
  font-feature-settings: "kern" 1, "ss01" 1;
  font-weight: 400;
}

body.textpage {
  background: var(--neutral-bck);
}

nav {
  --txt: #000;
  --txtu: #0004;
}

body.with-bg nav {
  --txt: #fff;
  --txtu: #fff3;
}

nav div.nav-wrap {
  padding: 0;
}

button.lead.lead-sticky {
  font-size: 1.25em;
  padding: 5px 0;
  width: 160px;
  margin: 0 6px 0 auto;
  box-shadow: 0 12px 15px -10px #0008;
  background: #ff8514;
  animation: rotate 3s infinite;
}

button.lead.lead-sticky:active {
  animation: none;
}

.btn-sticky {
  display: block;
  position: sticky;
  top: 10px;
  z-index: 1337;
  height: 0;
}

.factoids_alt {
  display: flex;
}

.lead .factoid_alt {
  margin: 0 1em;
  line-height: 0.5em;
}

.factoid_alt__big {
  font-size: 2em;
  line-height: 1.1em;
  font-weight: 500;
}

.lead .factoid_alt__big {
  margin-bottom: 0.5em;
}

.factoid_alt__small {
  font-weight: 700;
  font-size: 0.75em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lead {
  text-align: center;
  margin-top: -2em;
}

.lead .factoids_alt {
  width: max-content;
  margin-bottom: 1.5em;
  margin-top: 1.25em;
  margin-left: auto;
  margin-right: auto;
}

.lead a.btn {
  margin-top: 1.5em;
  display: block;
}

.illustration-wrapper {
  max-width: 100vw;
  width: 100%;
  height: max-content;
  padding: 60px 0;
}

.illustration {
  animation: illustration 3s ease-out alternate-reverse infinite;
  color: black;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  text-align: center;
  background: #f0f2;
  border-radius: 100%;
  padding-bottom: 1px;
  transform: rotate(-5deg);
}

.illustration__image {
  margin: -20px -30px -20px;
  min-height: 120px;
  object-fit: cover;
  width: calc(100% + 60px);
  mix-blend-mode: exclusion;
}

.illustration h1 {
  font-size: 3.5em;
  max-width: 20ch;
  line-height: 1em;
  margin: 20px 0 4px;
}

@keyframes illustration {
  0% {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(35deg) brightness(1.5);
  }

  50% {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(-15deg) brightness(1);
  }

  100% {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(35deg) brightness(1.5);
  }
}

div.logo {
  margin: 2rem auto 2.5rem;
  border: none;
  width: 99px;
  height: 27px;
  background: url(/static/2023/logo/u%D1%83-orange.svg) no-repeat;
  background-position: 7px 5px;
  background-size: 192%;
  display: block;
  border: 0.5px solid #fff;
  transform: scale(2);
  transform-style: flat;
  transform-style: preserve-3d;
}

@media (max-width: 720px) {
  .illustration-wrapper {
    overflow-x: hidden;
  }

  .illustration__image {
    margin-top: -10px;
    min-height: 140px;
  }

  .illustration h1 {
    margin-top: 10px;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: clamp(1.25em, 7vw, 2.5em);
  }

  div.logo {
    margin: 1em auto 30px;
    transform: scale(1.25);
  }
}

.lead p {
  font-size: 1.5em;
  text-align: center;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.front-page-rule {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #ff7a00;
  filter: invert() hue-rotate(180deg);
  display: inline;
}

.event {
  display: block;
  margin: 1em 0em;
  justify-content: space-between;
  padding: 10px;
  border-radius: 6px;
}

.event.quals {
  background: var(--school-dark);
  color: var(--ugra);
  fill: var(--ugra);
}

.event.school {
  background: var(--school-alt);
  color: #fffc;
  fill: #fffc;
}

.event.x {
  background: var(--summer);
  color: #fffc;
  fill: #fffc;
}

main .event h4 {
  margin: 0 0 0.25em;
  font-family: var(--funny-font);
}

.event .factoid_alt {
  margin: 0.5em 2em 1em 0;
}

.event a.btn {
  width: min-content;
  display: block;
}

.event h5 {
  font-family: var(--funny-font);
  color: var(--ugra);
  font-size: 1em;
  margin: 0 0 0.8em;
}

.event .factoids_alt {
  margin: 0;
}

.event p {
  margin: 0;
  line-height: 1.25em;
}

@keyframes rotate {

  0%,
  30%,
  55%,
  100% {
    transform: rotate(0deg);
  }

  35%,
  45% {
    transform: rotate(-0.5deg);
  }

  40%,
  50% {
    transform: rotate(0.5deg);
  }
}

.lead button.lead {
  animation: rotate 4s infinite;
  font-family: var(--funny-font);
  padding-top: 15px;
}

main p.x-letter {
  line-height: 1.4em;
  margin: 0 0 .75em;
}

.main-page {
  margin: 0 10px;
  padding: 1em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1em;
  background-color: var(--ugra);
  border-radius: 0.5em;
}

.main-page>section {
  flex: 1;
}

.main-page h1 {
  color: white;
  font-size: 5.6vw;
}

.main-page h6,
main.main-page p {
  font-size: 14px;
  margin-bottom: 2em;
  line-height: 1.5;
}

.main-page h6 {
  margin: 0.8em 0 0;
  font-weight: bold;
}

.main-page p a {
  color: white;
  text-decoration: none;
  border: none;
}

.main-page p a:hover {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--au);
}

.with-bottom-button {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.sponsors {
  display: flex;

  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
}

.sponsors img {
  max-height: 44px;
  width: auto;
  margin: 1em 0 0;
}

.sponsors img.iii {
  max-height: 32px;
}

@media (min-width: 1000px) {
  .main-page h1 {
    font-size: 3.5em;
  }
}

@media (max-width: 720px) {
  .main-page {
    grid-template-columns: 1fr;
  }

  .main-page h1 {
    font-size: 11vw;
  }
}

.btn-signup {
  margin: 1em 0 0;
}

.btn-signup button, .btn-solve-now button {
  background-color: white;
  color: var(--ugra);
  margin: 0;
}

.btn-signup button:hover, .btn-solve-now button:hover {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--ugra);
}

.solve-now {
  display: inline-block;
  margin-bottom: 0 !important;
}

.no-reg {
  display: block;
  text-align: center;
  font-size: 80%;
  opacity: 0.5;
}

@keyframes rotate {
  0%,
  30%,
  55%,
  100% {
    transform: rotate(0deg);
  }

  35%,
  45% {
    transform: rotate(-2deg);
  }

  40%,
  50% {
    transform: rotate(2deg);
  }
}

.btn-signup button {
  animation: rotate 4s infinite;
}

nav.fullscreen {
  z-index: -1;
}

#planet-wrapper {
  border-bottom: none;
  display: block;
  position: relative;
  transition: background-color 1s ease-in-out,
              top 1s ease-in-out,
              left 1s ease-in-out,
              width 1s ease-in-out,
              height 1s ease-in-out;
}

#planet-wrapper img {
  transition: transform 0.2s ease-in-out, width 1s ease-in-out, height 1s ease-in-out;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}

#planet-wrapper.fullscreen, #planet-wrapper.transitioning {
  z-index: 1000;
}

#planet-wrapper.fullscreen {
  overflow: scroll;
}

#planet-wrapper.transitioning {
  overflow: hidden;
}

#planet-wrapper.fullscreen img, #planet-wrapper.transitioning img {
  width: auto !important;
  max-width: none !important;
  transform: none !important;
}

#planet-wrapper.fullscreen img {
  height: 5000px;
}

@media (max-width: 720px) {
  #planet-wrapper.fullscreen img {
    height: 2000px;
  }
}

#planet-wrapper:hover img {
  transform: scale(1.03);
}

#planet-wrapper.fullscreen {
  background-color: white;
}

#planet-placeholder {
  display: block;
  transition: width 1s ease-in-out, height 1s ease-in-out;
}
