:root {
  --nc-primary-black: #161632;
  --nc-primary-red: #ff2837;
  --nc-primary-blue: #5fb1bf;
  --nc-secondary-blue: #cdedf6;
  --nc-secondary-neon-blue: #00fcdf;
  --nc-secondary-of--white: #f2f3f4;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:target:before {
  content: "";
  display: block;
  height: 10px;
  margin: -10px 0 0;
}

body {
  overflow-x: hidden;
  margin: 0px;
  font-family: "Rubik", sans-serif;
  font-weight: 300;
  font-size: 24px;
  background-color: var(--nc-primary-black);
  color: var(--nc-secondary-of--white);
}

h1,
h2,
h3 {
  font-weight: 700;
}

h1 {
  margin: 30px 0px 0px 0px;
  font-size: 65px;
}

h2 {
  margin-top: 50px;
  font-size: 40px;
}

h3 {
  font-size: 30px;
}

a {
  color: var(--nc-primary-red);
}

li {
  margin: 20px;
}

ol li::marker {
  color: var(--nc-primary-red);
  font-weight: bold;
}

.semi-bold {
  font-weight: 500;
}

span.colored {
  color: var(--nc-primary-red);
}

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

.text-large {
  font-size: 24px;
}

.colours-reversed {
  background-color: var(--nc-secondary-of--white);
  color: var(--nc-primary-black);
}

section {
  position: relative;
  padding: 20px 60px;
}

.pd-top-120 {
  padding-top: 120px;
}

header {
  padding: 0px 15px;
  position: relative;
  height: 100vh;
  background-image: linear-gradient(
      rgba(22, 22, 50, 0.5),
      rgba(22, 22, 50, 0.8) 95%,
      rgba(22, 22, 50, 1)
    ),
    url(bg_2.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.logo {
  position: absolute;
  left: 40px;
  top: 40px;
  width: 300px;
}

.full-view {
  min-height: 100vh;
}

.styled-boxes {
  margin: 40px 0px 0px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.styled-boxes p {
  width: 250px;
  height: 100px;
  margin: 0px 20px 40px 20px;
  box-shadow: 0px 0px 4px rgba(242, 243, 244, 0.8);
  background-color: var(--nc-primary-red);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  text-align: center;
  padding: 0 10px;
}

/* Carousel styles */
.carousel-container {
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 3/2;
  position: relative;
  margin: 0 auto 60px auto;
}

.prev {
  position: absolute;
  z-index: 10;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.prev svg {
  transform: rotate(180deg);
}

.next {
  position: absolute;
  z-index: 10;
  right: 0%;
  top: 50%;
  transform: translate(50%, -50%);
}
.nav-btn {
  background-color: var(--nc-primary-red);
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  border: unset;
  transition: all 0.3s ease;
}
.nav-btn:hover {
  width: 45px;
  height: 45px;
}

.carousel img {
  width: 100%;
  border-radius: 25px;
}

.item {
  position: absolute;
  opacity: 0;
  transition: all 0.3s ease;
}

.main {
  opacity: 1;
}

.btn {
  border-radius: 50px;
  padding: 15px 30px;
  font-weight: 500;
  font-size: 20px;
  text-decoration: none;
  text-transform: uppercase;
  background-color: var(--nc-primary-red);
  color: var(--nc-secondary-of--white);
}

.divider {
  scale: 1.1;
  position: absolute;
  top: 100%;
  z-index: 1;
  margin: 0px -60px;
  fill: var(--nc-primary-black);
  filter: drop-shadow(0 -8px 8px var(--nc-primary-black));
  transform: rotate(180deg);
}

#registration iframe {
  width: 100%;
}

@media only screen and (max-width: 750px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 45px;
    padding: 0px 10px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 25px;
  }

  section {
    padding: 20px 30px;
  }

  .styled-boxes p {
    width: 100px;
    height: 70px;
    margin: 0px 10px 20px 10px;
  }
}

/* Screen points for Google Forms height :S */
@media only screen and (max-width: 580px) {
  #registration iframe {
    height: 1600px;
  }
}

@media only screen and (max-width: 510px) {
  #registration iframe {
    height: 1700px;
  }
}

@media only screen and (max-width: 430px) {
  #registration iframe {
    height: 1800px;
  }
}

@media only screen and (max-width: 390px) {
  #registration iframe {
    height: 1900px;
  }
}

@media only screen and (max-width: 355px) {
  #registration iframe {
    height: 2000px;
  }
}

@media only screen and (max-width: 340px) {
  #registration iframe {
    height: 2100px;
  }
}

/* Tournament bracket styles */
.bracket-wrapper {
  overflow-x: auto;
  max-width: 1700px;
  margin: 0px auto;
}

.tournament-bracket__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  padding: 20px 40px 0px 40px;
  text-align: center;
}

.tournament-bracket__header p {
  font-size: 22px;
  font-weight: bold;
  margin: 0px;
  padding: 20px 0px;
  min-width: 250px;
}

.tournament-bracket__header p:nth-child(1) {
  background-color: var(--nc-primary-blue);
}

.tournament-bracket__header p:nth-child(2) {
  background-color: var(--nc-primary-red);
}

.tournament-bracket__header p:nth-child(3) {
  background-color: var(--nc-secondary-neon-blue);
  color: var(--nc-primary-black);
}

.tournament-bracket__header p:nth-child(4) {
  background-color: #ffd700;
  color: var(--nc-primary-black);
}

.bracket-container {
  padding: 20px 40px 40px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

.bracket-container__rounds {
  min-width: 250px;
}

.rounds__header {
  font-weight: bold;
  margin: 0px;
  text-align: center;
}

.rounds__header span {
  font-weight: 300;
}

.bracket-container__rounds--first {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 30px;
}

.rounds__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 10px;
  align-items: center;
  justify-items: center;
}

.bracket-container__rounds--loser {
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.bracket-container__rounds--final {
  display: flex;
  flex-flow: column;
  justify-content: center;
}

.bracket-container__rounds--loser .rounds__wrapper,
.bracket-container__rounds--final .rounds__wrapper {
  grid-template-rows: repeat(4, 1fr);
}

.rounds__wrapper--wildcard {
  margin-bottom: 80px;
}

.bracket-container__winner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.competitor {
  width: 55%;
  text-align: center;
  min-width: 120px;
  min-height: 40px;
  font-size: 18px;
  margin: 0px;
  box-shadow: 0px 0px 4px rgba(242, 243, 244, 0.8);
  border-radius: 10px;
  padding: 5px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.competitor span {
  position: absolute;
  left: 5px;
}

.competitor::before {
  position: absolute;
  left: -45px;
  font-size: 18px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: var(--nc-secondary-of--white);
}

.competitor::after {
  position: absolute;
  right: -45px;
  font-size: 20px;
  font-weight: bold;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid;
  box-shadow: 0px 0px 4px rgba(242, 243, 244, 0.8);
  color: var(--nc-secondary-of--white);
}

.rounds__wrapper--first .competitor,
.competitor.competitor--first-round {
  background-color: #5fb1bf;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.rounds__wrapper--second .competitor,
.competitor.competitor--second-round {
  background-color: #5fb1bfb8;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.rounds__wrapper--third .competitor,
.competitor.competitor--third-round {
  background-color: #5fb1bf6b;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.bracket-container__rounds--loser.active
  .rounds__wrapper.rounds__wrapper--runnerups
  .competitor {
  background-color: var(--nc-primary-red);
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.bracket-container__rounds--loser
  .rounds__wrapper--wildcard.active
  .competitor {
  background-color: #ff2837ab;
  text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.bracket-container__rounds--final.active .rounds__wrapper .competitor {
  background-color: var(--nc-secondary-neon-blue);
  color: var(--nc-primary-black);
  font-weight: bold;
}

.bracket-container__winner.active .competitor {
  background-color: #ffd700;
  color: var(--nc-primary-black);
  font-weight: bold;
}

/* Placement styles */
.competitor--1::after {
  content: "1.";
}

.competitor--2::after {
  content: "2.";
}

.competitor--3::after {
  content: "3.";
}

.competitor--4::after {
  content: "4.";
}

/* Round styles */
.competitor--round-a-1::before {
  content: "A1";
  background-color: #5fb1bf;
}

.competitor--round-a-2::before {
  content: "A2";
  background-color: #5fb1bf;
}

.competitor--round-a-3::before {
  content: "A3";
  background-color: #5fb1bf;
}

.competitor--round-a-4::before {
  content: "A4";
  background-color: #5fb1bf;
}

.competitor--round-b-1::before {
  content: "B1";
  background-color: #5fb1bfb8;
}

.competitor--round-b-2::before {
  content: "B2";
  background-color: #5fb1bfb8;
}

.competitor--round-b-3::before {
  content: "B3";
  background-color: #5fb1bfb8;
}

.competitor--round-b-4::before {
  content: "B4";
  background-color: #5fb1bfb8;
}

.competitor--round-c-1::before {
  content: "C1";
  background-color: #5fb1bf6b;
}

.competitor--round-c-2::before {
  content: "C2";
  background-color: #5fb1bf6b;
}

.competitor--round-c-3::before {
  content: "C3";
  background-color: #5fb1bf6b;
}

.competitor--round-c-4::before {
  content: "C4";
  background-color: #5fb1bf6b;
}

.competitor--round-r-1::before {
  content: "R1";
  background-color: var(--nc-primary-red);
}

.competitor--round-r-2::before {
  content: "R2";
  background-color: var(--nc-primary-red);
}

.competitor--round-r-3::before {
  content: "3R";
  background-color: var(--nc-primary-red);
}

.competitor--round-r-4::before {
  content: "4R";
  background-color: var(--nc-primary-red);
}

.competitor--round-w-1::before {
  content: "W1";
  background-color: #ff2837ab;
}

.competitor--round-f-1::before {
  content: "F1";
  background-color: var(--nc-secondary-neon-blue);
  color: var(--nc-primary-black);
}
