@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  scrollbar-width: auto;
  scrollbar-color: #242527 transparent;
}

:root {
  --color-primary: #111;
  --background-primary: #ffffff;
}

html[data-theme="dark"] {
  --color-primary: #ffffff;
  --background-primary: #111;
}

body.dark-mode {
  --background-primary: #111;
  --color-primary: #ffffff;
}
.new-item.dark-mode {
  --background-primary: #111;
  --color-primary: #ffffff;
}

input[type="checkbox"] {
  /* styling for input element */
  height: 0;
  width: 0;
  visibility: hidden;
}

label {
  /* styling for labels */
  cursor: pointer;
  text-indent: -9999px;
  width: 52px;
  height: 27px;
  background: var(--color-primary);
  float: right;
  border-radius: 100px;
  position: relative;
}

label:after {
  /* styling for labels - on toggle */
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 90px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

input:checked + label {
  /* conditional check while toggling */
  background: var(--color-primary);
}

input:checked + label:after {
  left: calc(100% - 5px);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  background-color: var(--background-primary);
}

label:active:after {
  width: 45px;
}

*::-webkit-scrollbar {
  width: 9px;
}

/* It targets only the app used within the browser */
@media (display-mode: browser) {
}
/* It targets only the app used with a system icon in standalone mode */
@media (display-mode: standalone) {
}
/* It targets only the app used with a system icon in all mode */
@media (display-mode: standalone),
  (display-mode: fullscreen),
  (display-mode: minimal-ui) {
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 9px;
  border: none;
}

a {
  text-decoration: none;
  color: var(--color-primary);
}

body {
  background-color: var(--background-primary);
  color: var(--color-primary);
}

/* loader begin */

body.loaded {
  overflow-y: auto;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000000;
}
.overlay .overlayDoor:before,
.overlay .overlayDoor:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  background-color: var(--background-primary);
  transition: 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  transition-delay: 0.8s;
}
.overlay .overlayDoor:before {
  left: 0;
}
.overlay .overlayDoor:after {
  right: 0;
}
.overlay.loaded .overlayDoor:before {
  left: -50%;
}
.overlay.loaded .overlayDoor:after {
  right: -50%;
}
.overlay.loaded .overlayContent {
  opacity: 0;
  margin-top: -15px;
}
.overlay .overlayContent {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.overlay .overlayContent .skip {
  display: block;
  width: 130px;
  text-align: center;
  margin: 50px auto 0;
  cursor: pointer;
  color: var(--color-primary);
  font-family: "Nunito";
  font-weight: 700;
  padding: 12px 0;
  border: 2px solid var(--color-primary);
  border-radius: 3px;
  transition: 0.2s ease;
}
.overlay .overlayContent .skip:hover {
  background-color: var(--background-primary);
  color: var(--color-primary);
  border-color: var(--background-primary);
}

.loader {
  width: 128px;
  height: 128px;
  border: 3px solid var(--color-primary);
  border-bottom: 3px solid transparent;
  border-radius: 50%;
  position: relative;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}
.loader .inner {
  width: 64px;
  height: 64px;
  content: url("../images/logo.jpg");
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes spinInner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-720deg);
  }
}
@keyframes spinInner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-720deg);
  }
}

/* loader end */

/* Goto top button begin */

#GoToTopButton {
  display: inline-block;
  background-color: #333;
  width: 50px;
  height: 50px;
  text-align: center;
  border-radius: 25px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}
#GoToTopButton::after {
  content: "\f077";
  font-family: FontAwesome;
  font-weight: normal;
  font-style: normal;
  font-size: 2em;
  line-height: 50px;
  color: #fff;
}
#GoToTopButton:hover {
  cursor: pointer;
  background-color: var(--background-primary);
}
#GoToTopButton:active {
  background-color: var(--background-primary);
}
#GoToTopButton.show {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 500px) {
  #GoToTopButton {
    margin: 30px;
  }
}

/* Goto top button end */

/* navbar begin */

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: -webkit-sticky;
  background-color: var(--background-primary);
  position: sticky;
  top: 0;
}

.navbar li {
  float: right;
}

.navbar .logo img {
  width: 75px;
  height: 75px;
  float: left;
  padding-left: 5px;
}

.navbar li a {
  display: block;
  color: var(--color-primary);
  text-align: center;
  padding: 26px 16px;
  text-decoration: none;
}

/* navbar end */

/* hero begin */

.hero {
  background-color: var(--background-primary);
}

.hero .welcome .runner img {
  float: right;
  margin-top: -300px;
}

.hero .welcome h1 {
  text-align: left;
  padding-top: 10%;
  padding-left: 5%;
  color: var(--color-primary);
}

.hero .welcome button {
  outline: none;
  border: solid 1px var(--color-primary);
  display: inline-block;
  padding: 15px 25px 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  background-color: transparent;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 5%;
  margin-top: 25px;
}

.hero .welcome button:hover {
  background-color: var(--background-primary);
  color: var(--color-primary);
  transition: background-color 0.5s, opacity 1.1s, visibility 1.1s;
}

/* hero end */

/* Events Begin */

.widgets {
  margin: 5% 5% 5% 5%;
}

.widget {
  float: left;
  width: 25%;
  padding: 0 10px;
}

.widgets:after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 800px) {
  .widget {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }

  .welcome .runner img {
    display: none;
  }

  .event_img {
    max-height: 350px;
    max-width: 75%;
  }
}

.card {
  box-shadow: 0 4px 8px 0 var(--background-primary);
  padding: 16px;
  text-align: center;
  background-color: var(--background-primary);
  border-radius: 25px;
}

.info {
  color: var(--color-primary);
}

.event_img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  max-height: 310px;
}

.Game_Title {
  font-size: 17px;
}

#Events .Title {
  color: var(--color-primary);
  text-align: center;
  margin-top: 1%;
}

#upcomingEvents .Title {
  color: var(--color-primary);
  text-align: center;
  margin-top: 25%;
}

.Events i {
  font-size: 17px;
  font-weight: bold;
}

.location,
.winner,
.Schools {
  background-color: var(--color-primary);
  border-radius: 8px;
  border-width: 0;
  cursor: pointer;
  display: inline-block;
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  margin-bottom: 5px;
  text-align: center;
  transition: all 200ms;
  vertical-align: baseline;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  color: var(--background-primary);
}

/* Events End */

/* Event Details Start */

.event_name {
  color: var(--color-primary);
  text-align: center;
  margin-top: 3%;
  margin-bottom: -9%;
}

.score_bord_container {
  width: 97vw;
  height: 100vh;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  float: left;
}

.s_bode {
  width: 700px;
  padding: 50px;
  display: flex;
  position: relative;
  z-index: 1000;
  border-radius: 20px;
  background-image: url(https://images.unsplash.com/photo-1563299796-b729d0af54a5?ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mzd8fHN0YWRpdW18ZW58MHx8MHx8&ixlib=rb-1.2.1&w=1000&q=80);
  background-position: 0 -289px;
  background-size: cover;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.s_bode:after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: -2;
  border-radius: 20px;
}

.s_bode:before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: -47%;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transform: skewX(-10deg);
}

.s_bode img {
  height: 100px;
  width: 100px;
}

.left_section {
  flex-grow: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mid_section {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 26px;
}

.right_section {
  flex-grow: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s_bode h2 {
  margin-top: 10px;
  color: #f39c12;
  font-size: 26px;
  font-weight: bold;
}

.s_bode p {
  margin-top: 5px;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}

iframe {
  justify-content: center;
  align-items: center;
  margin-left: 29.5%;
  margin-right: 25%;
  margin-bottom: 3%;
  margin-top: 9%;
}

.information {
  margin-top: -15vh;
  padding: 19px;
  width: 300px;
  border: 3px solid #242527;
  background-color: #ffffff;
  border-radius: 15px;
  margin-left: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  overflow: auto;
}

.informationcomm {
  padding: 19px;
  width: 300px;
  border: 3px solid #242527;
  background-color: #ffffff;
  border-radius: 15px;
  margin-left: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.information h3 {
  color: black;
}

.informationcomm h3 {
  color: black;
}

.commentary {
  color: black;
}

@media screen and (max-width: 850px) {
  body {
    width: 100vw;
  }
  .s_bode {
    width: 500px;
    background-position: 0 -209px;
  }

  .s_bode img {
    width: 80px;
    height: 80px;
  }

  .s_bode h2 {
    font-size: 18px;
  }

  .score_bord_container {
    margin-top: -11%;
  }
}

@media screen and (max-width: 640px) {
  .s_bode {
    width: 100vw;
    padding: 10px;
    background-position: 0 -190px;
  }

  .s_bode img {
    width: 50px;
    height: 50px;
  }

  .s_bode h2 {
    font-size: 14px;
  }
  .s_bode h1 {
    font-size: 18px;
  }

  .s_bode p {
    font-size: 10px;
  }

  .score_bord_container {
    margin-top: -15vh;
  }
}

@media screen and (max-width: 550px) {
  .s_bode {
    width: 320px;
    padding: 10px;
    background-position: 0 -90px;
  }

  .s_bode img {
    width: 50px;
    height: 50px;
  }

  .s_bode h2 {
    font-size: 14px;
  }
  .s_bode h1 {
    font-size: 18px;
  }

  .score_bord_container {
    margin-top: -39vh;
    margin-bottom: -59vh;
    margin-left: 0vw;
    margin-right: 5vw;
  }

  .information {
    width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .informationcomm {
    width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0%;
  }

  iframe {
    justify-content: center;
    width: 100%;
    height: 255px;
    margin-left: 0%;
    margin-right: 0%;
  }
}

/* Event Details End */

#sForm {
  background: #f7f7f7;
  border: 1px solid #dfdfdf;
  padding: 20px;
}
#sForm label,
#sForm input {
  display: block;
  width: 100%;
  padding: 10px;
}
#sForm label {
  padding: 10px 0;
}
#sForm input {
  padding: 10px;
  border: 1px solid #d7d7d7;
}
#sForm input[type="submit"] {
  margin-top: 20px;
  border: 0;
  color: #fff;
  background: #647dd8;
  cursor: pointer;
}
#sNote {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ffc7c7;
  background: #ffebeb;
}

/* (C) ADMIN - SCORE HISTORY */
#sWrap {
  margin-top: 20px;
}
.sRow {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: #f7f7f7;
  border: 1px solid #dfdfdf;
}
.sGrow {
  flex-grow: 1;
}
.sTime {
  font-weight: 700;
}
.sComment {
  padding-top: 5px;
  color: #686868;
}
.sPoints {
  font-weight: 700;
}
.sHome {
  color: red;
}
.sAway {
  color: blue;
}

/* (D) BIG SCOREBOARD */
#bWrap {
  background: var(--background-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}
#bTime {
  padding: 10px 0;
  font-size: 20px;
  background: #323232;
}
#bTime,
#bBoard {
  width: 300px;
  text-align: center;
  color: #fff;
}
#bBoard {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
#bHome,
#bAway {
  font-size: 60px;
  padding: 20px 0;
}
#bHome,
#bHomeT,
#bAway,
#bAwayT {
  padding: 10px 0;
}
#bHome {
  background: #0b0558;
}
#bHomeT {
  background: #221d64;
}
#bAway {
  background: #580505;
}
#bAwayT {
  background: #932828;
}
#bHistory {
  margin-top: 20px;
  color: var(--color-primary);
  font-size: 14px;
}

:root {
  --orange-color: #da722c;
  --dark-blue-color: #023047;
  --dark-color: #070917;
  --light-color: #e8f7fb;
  --light-blue-color: #6f7dfb;
}

* .wrapper {
  max-width: 1134px;
  margin: 0 auto;
}

/* Buttons */

.btn {
  padding: 16px 32px;
  border-radius: 24px;
  color: var(--color-primary);
  display: inline-block;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn.dark {
  background: var(--background-primary);
}

.btn.light {
  background: var(--orange-color);
}

.btn.enrol-icon::before {
  content: url("images/enrol-now-icon.svg");
  position: absolute;
  top: 50%;
  left: 32px;
  transform: translateY(-50%);
}

.btn.enrol-icon {
  padding-left: 60px;
}

/* Courses Section */

.courses-section {
  background: var(--background-primary);
  padding: 70px 0;
  padding-bottom: 120px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--background-primary);
}

.courses-section h2 {
  text-align: center;
}

.courses-section .course-cards {
  display: flex;
  gap: 70px;
}

.courses-section .course-cards img {
  max-width: 50vw;
  max-height: 30vh;
  filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.25));
  border-radius: 24px;
}

.courses-section .course-card {
  background: var(--color-primary);
  border-radius: 24px;
  padding: 0px 32px;
  margin: 40px 0;
  position: relative;
  max-width: 80vw;
  max-height: 90vh;
}

.courses-section .course-card::after {
  content: "";
  height: 8px;
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  background: var(--background-primary);
  border-radius: 24px;
}

.courses-section .course-card h3 {
  font-family: "Raleway", sans-serif;
  font-weight: 900;
  font-size: 30px;
  line-height: 150%;
  color: var(--background-primary);
}

.courses-section .course-card .info {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.courses-section .course-card .duration {
  font-family: "Raleway", sans-serif;
  font-weight: 900;
  font-size: 16px;
  line-height: 150%;
  white-space: nowrap;
  color: var(--background-primary);
  position: relative;
  padding-left: 20px;
}

.courses-section .course-card .duration::before {
  content: url("images/clock.svg");
  position: absolute;
  top: 2px;
  left: -6px;
}

.courses-section .wrapper {
  position: relative;
}

.courses-section .wrapper .btn {
  position: absolute;
  right: 0;
}

/* App Section */

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

.app-section .app-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 24px;
}

.app-section .app-btn {
  padding: 16px 30px;
  background: #000000;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 310px;
}

.app-section .app-btn span {
  font-weight: normal;
  font-size: 20px;
  color: var(--background-primary);
}

/*end of the app section*/

nav.mobile-nav,
.mobile-menu-container {
  display: none;
}

@media (max-width: 1100px) {
  .btn {
    padding: 12px 32px;
  }

  .wrapper {
    padding: 0 100px;
  }

  h2 {
    font-size: 40px;
  }

  .courses-section .course-cards {
    flex-direction: column;
    gap: 80px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .courses-section .course-card {
    margin: 0;
  }

  .courses-section h2 {
    margin-bottom: 40px;
  }

  .courses-section .course-card img {
    height: 260px;
    object-fit: cover;
  }

  .courses-section .course-card h3 {
    font-size: 24px;
  }

  .courses-section .wrapper .btn {
    right: 100px;
  }

  .courses-section .course-card:last-child {
    margin-bottom: 50px;
  }

  footer .links-container {
    grid-template-columns: 1fr 1fr;
  }

  footer .links-container .links:last-child {
    grid-column: 1 / 3;
  }
}

@media (max-width: 800px) {
  .mobile-menu-container {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 100%;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: all 400ms ease;
  }

  .mobile-menu-container.active {
    left: 0;
  }

  .mobile-menu-container .close-icon {
    position: fixed;
    top: 32px;
    right: 100px;
    opacity: 0;
    pointer-events: none;
    transition: all 400ms ease;
  }

  .mobile-menu-container.active .close-icon {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-container ul {
    list-style: none;
    padding: 0;
  }

  .mobile-menu-container ul li {
    margin: 30px 0;
    text-align: center;
  }

  .mobile-menu-container ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
  }
}

@media (max-width: 700px) {
  .wrapper {
    padding: 0 32px;
  }

  .hero-section .left p {
    width: 100%;
  }

  .app-section .app-buttons {
    flex-direction: column;
  }

  .hero-section .left h1 {
    font-size: 36px;
  }

  .hero-section .right img {
    height: 400px;
    transform: translateX(50px);
  }

  .hero-section .right {
    overflow: hidden;
    transform: translateX(30px);
  }

  .achievement-card h3 {
    font-size: 30px;
  }

  .hero-section .achievement-card {
    margin-bottom: 48px;
  }

  .hero-section .achievement-cards {
    margin: 0;
  }

  h2 {
    font-size: 30px;
  }

  .testimonials-section .testimonial-card .info h4 {
    font-size: 18px;
  }

  .testimonials-section .testimonial-card .info p.company {
    font-size: 14px;
  }

  .testimonials-section .testimonial-card img {
    height: 100px;
    width: 100px;
  }

  .courses-section .wrapper {
    padding: 0;
  }

  .courses-section .course-card img {
    height: 240px;
  }

  .courses-section .wrapper .btn {
    right: 32px;
  }

  footer .links-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  footer form input {
    padding: 8px 32px;
  }

  footer .links-container .links:last-child {
    grid-column: 1 / 2;
  }

  footer ul {
    padding: 0;
  }

  footer form .submit-btn {
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
  }

  footer .copyright {
    margin-top: 80px;
    text-align: center;
  }
}
