/*
grey: #bfbdbd
dark purple: #33338e
light purple: #7979ea
*/

@font-face {
  font-family: "HKGrotesk-Light";
  src: url("HKGrotesk-Light.otf") format("opentype");
}

@font-face {
  font-family: "HKGrotesk-Bold";
  src: url("HKGrotesk-Bold.otf") format("opentype");
}

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

html, body {
  margin: 0;
  padding: 0;
}

/* little hack to get rid of that stupid right margin on mobile devices, not sure what is causing this */

html {
  overflow-x: hidden;
  font-size: 1rem;
}

body {
  font-family: "HKGrotesk-Light", sans-serif;
  font-size: 1.3rem;
  transition: transform 0.25s ease-out;
}

.expanded {
  transform: translateY(300px);
}

header {
  background: white;
  color: black;
  text-align: right;
  padding: 0;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1;
}

header a {
  text-decoration: none;
  color: #000;
}

nav > ul {
  text-align: right;
  list-style-type: none;
}

header > div {
  font-family: "HKGrotesk-Bold", sans-serif;
  font-size: 2rem;
  text-align: left;
}

header > button {
  text-align: right;
}

.logo {
  width: 100px;
  height: 100px;
  margin: 0 10px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
}

.highlight {
  box-shadow: 10px 0 0 white, -10px 0 0 white;
  /* For Firefox below */
  box-decoration-break: clone;
  background: white;
  color: black;
  line-height: 2rem;
  padding: 5px 10px;
}

.sponsor-logos img {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.sponsor-logos img:hover {
  filter: grayscale(0%);
}

footer {
  padding: 80px 0 50px 0;
  background: #f2f2f266;
}

footer ul {
  list-style-type: none;
}

footer li a {
  border-bottom: unset;
}

section {
  padding-top: 50px;
  clear: both;
}

nav {
  position: absolute;
  margin: 0;
  padding: 15px;
  left: 0;
  top: -310px;
  background: white;
  width: 100%;
}

.menu-container {
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  padding: 20px 20px 0 0;
}

.menu-container .button {
  padding: 10px 20px;
  font-size: 1rem;
}

li > a {
  border-bottom: 2px solid #7979ea;
}

nav li {
  padding: 10px;
}

nav > ul > li > a {
  color: #000;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
strong {
  font-family: "HKGrotesk-Bold", sans-serif;
}

h1 {
  font-size: 2.8rem;
  letter-spacing: 0.1rem;
  line-height: 2.8rem;
}

h2 {
  text-align: center;
  padding: 50px 0;
  font-size: 2.5rem;
}

h2:after {
  content: "";
  position: absolute;
  left: calc(50% - 5.1rem);
  display: inline-block;
  margin-top: 2.1rem;
  z-index: -1;
  border-bottom: 7px solid #7979ea;
  width: 11rem;
  transform: skew(-10deg) rotate(2.5deg);
  -webkit-transform: skew(-10deg) rotate(2.5deg);
}

h3 {
  margin-bottom: 20px;
}

p {
  margin-bottom: 20px;
}

a {
  color: #33338e;
}

iframe {
  width: 100%;
  border: 0;
  height: 400px;
}

.image {
  width: 100%;
  height: 400px;
  background-color: #f0f0f5;
  border: 1px solid white;
}

.intro {
  text-align: left;
  color: #fff;
  margin-top: 50px;
  overflow: hidden;
  height: 90vh;
  height: 90dvh; /* modern mobile viewport fix */
  min-height: 500px; /* fallback protection */
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* behind text */
}


/* Gradient overlay for readability */
.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.intro figure {
  position: relative;
  z-index: 1; /* keeps text above overlay */
}


.intro-beginners:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -10;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("../img/beginners.jpeg");
  background-size: cover;
  background-position: center 0;
}

.intro-monkey:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -10;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("../img/cover-monkey.jpg");
  background-size: cover;
  background-position: center 0;
}

.intro-athletes:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: -10;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("../img/athletes.jpeg");
  background-size: cover;
  background-position: center 0;
}

.intro > * {
  margin: 0;
}

.intro figure {
  text-align: center;
}

.intro .card {
  display: block;
  cursor: pointer;
  max-width: 450px;
  margin: 0 auto;
}

.intro p {
  font-size: 1.5rem;
  padding: 2rem 0;
}

#stickyBanner {
  /* position: fixed; */
  grid-column: span 3;

  bottom: 0;
  width: 100%;
  background-color: black; /* Adjust the color as needed */
  color: white; /* Adjust the color as needed */
  text-align: center;
  padding: 10px;
  z-index: 1000;
}

#stickyBanner a {
  color: white;
}

ul.championships-list {
  list-style: none;
  padding: 0;
}

ul.championships-list li::before {
  content: "\1F947"; /* Unicode for the 🥇 emoji */
  margin-right: 5px;
}

.close {
  float: right;
  color: white;
  cursor: pointer;
}

button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.button {
  color: #fff;
  font-family: "HKGrotesk-Light", sans-serif;
  font-size: 1.2rem;
  background-color: #7878ea;
  padding: 1rem 3rem;
  transition: all 0.4s ease-out;
  text-decoration: none;
  display: inline-block;
}

.button::after {
  content: "\2192"; /* Unicode for the right arrow symbol */
  margin-left: 5px;
}

.button-grey {
  color: #000;
  background-color: #e5e6e4;
}

.teacher {
  position: relative;
}

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

.teacher.register ul {
  list-style-type: none;
  padding-left: 0;
}

.teacher-image {
  width: 100%;
}

.location,
.classes {
  background-color: #f2f2f266;
  padding-bottom: 100px;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing {
  background-color: #33338e;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.pricing p {
  font-size: 1.5rem;
  padding-top: 60px;
}

.pricing span {
  background-color: #7878ea;
  color: #fff;
  font-size: 1.7rem;
  padding: 2px;
}

.class-details {
  margin-bottom: 50px;
}

.class-image {
  width: 100%;
  min-height: 400px;
  background-color: #f0f0f5;
}

.class-video {
  display: flex;
  padding-top: 30px;
  padding-bottom: 30px;
}

.icon-youtube {
  height: 24px;
  width: 24px;
}

.class-video .link {
  margin-top: 3px;
  margin-left: 10px;
}

/* using flexbox here from the smashing magazine article 2018/02 
    better to use flexbox instead of media query with grid because
    the media query is only for screen size, whereas flexbox will also 
    adapt when it's placed in another container 
*/

.box {
  background: white;
  display: flex;
  flex-wrap: wrap;
}

.box > div,
article {
  flex: 1 1 350px;
}

.box > article {
  margin: 50px 40px;
}

.location > p {
  text-align: center;
}

.contact > a {
  display: block;
  text-align: center;
  font-size: 1.6rem;
  padding-bottom: 1rem;
  text-decoration: none;
  color: #33338e;
}

.timetable {
  text-align: center;
  font-size: 1.4rem;
}

.timetable-day {
  margin: 5rem 0;
  color: #fff;
  font-family: "HKGrotesk-Light", sans-serif;
  background-color: #7878ea;
  padding: 1rem 3rem;
  transition: all 0.4s ease-out;
  text-decoration: none;
  display: inline-block;
}

.timetable-item {
  margin: 0 40px 40px 40px;
}

.timetable-time {
  padding-bottom: 20px;
}

.location ul {
  padding-left: 20px;
}

/* Feed */

.card {
  display: inline-block;
  background-color: #fff;
  padding: 20px 40px 30px 40px;
}

.card > a {
  text-decoration: none;
}

.header {
  margin-bottom: 20px;
}

.icon-fb {
  width: 48px;
  height: 48px;
  float: left;
  margin: 0 15px 15px 0;
}

.icon-fb object {
  pointer-events: none;
}

.title {
  float: left;
  font-size: 1rem;
}

.date {
  color: black;
}

.time {
  color: darkgrey;
}

.media {
  width: 100%;
  height: 250px;
  clear: left;
}

.content {
  clear: left;
  margin-top: 20px;
  color: #000;
  font-size: 1.1rem;
}

.footer {
  margin-top: 20px;
  margin-right: 20px;
}

.link {
  float: right;
  font-family: "HKGrotesk-Bold";
  font-size: 1rem;
  text-transform: uppercase;
  color: #000;
  text-decoration: underline;
}

/* Card loading */

@keyframes placeHolderShimmer {
  0% {
    background-position: -468px 0;
  }

  100% {
    background-position: 468px 0;
  }
}

.loading {
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: placeHolderShimmer;
  animation-timing-function: linear;
  background: #f6f7f8;
  background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
  background-size: 800px 104px;
  height: 152px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.loading * {
  box-sizing: content-box;
}

.loading .icon {
  width: 48px;
  height: 48px;
  float: left;
  margin: 0;
  background-color: transparent;
  border-bottom: 10px solid white;
}

.loading .title {
  width: 80%;
}

.loading .date {
  width: 80%;
  height: 15px;
  background-color: transparent;
  border-bottom: 8px solid white;
  border-left: 10px solid white;
  border-right: 200px solid white;
}

.loading .time {
  width: 50px;
  height: 15px;
  background-color: transparent;
  border-bottom: 20px solid white;
  border-left: 10px solid white;
  border-right: 400px solid white;
}

.loading .content .line {
  width: 90%;
  height: 0.9rem;
  background-color: transparent;
  border-bottom: 10px solid white;
  border-right: 200px solid white;
}

/* Registration */

#registration {
  min-height: 500px;
}

#registration v-input {
  font-size: 1.3rem;
}

#registration h3 {
  font-size: 1.2rem;
  margin-top: 20px;
}

#registration .button {
  margin: 20px 0;
}

#registration .btn-container {
  text-align: center;
}

.header-with-btn {
  display: inline-block;
}

.application.theme--light {
  background-color: #fff;
}

/* override vuetify styles to make select more responsive, only for small screens */
@media only screen and (max-width: 600px) {
  .v-list__tile,
  .v-list__tile__title {
    height: auto;
    white-space: normal;
    overflow: initial;
    margin: 3px;
  }

  footer {
    padding: 80px 20px 50px 20px;
  }
}

/* need to use stylus to change the theme, so forcing it here */
.primary--text.primary--text {
  color: #33338e !important;
}

[v-cloak] {
  display: none;
}

/* Small */

@media (max-width: 400px) {
  header {
    text-align: right;
    gap: 20px;
  }
}

@media (max-width: 500px) {
  section.intro {
    margin-top: 0;
  }


  .intro .card {
    margin: 0;
  }

  .teacher-container .class-image {
    display: none;
  }

}

@media (min-width: 500px) {

  .teacher.register {
    margin: 0 auto;
    width: 80%;
  }
}

@media (min-width: 800px) {
  .logo {
    width: 150px;
    height: 150px;
    position: fixed;
    top: 20px;
    left: 20px;
  }
}

/* Desktop */

@media (min-width: 1000px) {
  body,
  main,
  footer,
  section.location,
  section.classes {
    display: grid;
    grid-template-columns: 1fr 1000px 1fr;
    grid-gap: 10px;
  }

  h1 {
    font-size: 4rem;
    line-height: 4rem;
  }

  main,
  footer,
  section.location,
  section.classes,
  section.pricing {
    grid-column: span 3;
  }

  header {
    grid-column: span 3;
    min-height: 50px;
    text-align: right;
  }

  .menu-container {
    display: none;
  }

  nav {
    position: static;
    padding: 0;
  }

  nav > ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: inline-block;
  }

  nav > ul > li {
    margin-left: 30px;
    float: left;
  }

  nav > ul > li > a {
    border-bottom: none;
  }

  nav > ul > li > a:hover {
    border-bottom: 2px solid #7979ea;
  }

  section,
  section.location > *,
  section.classes > * {
    grid-column: 2;
  }

  .intro {
    height: 70vh;
  }

  .teacher-container {
    border: solid 20px white;
  }
  
  .timetable-item {
    display: grid;
    grid-template-columns: 10% 1.5fr 2fr 0.5fr 10%;
    grid-gap: 1rem;
    margin: 3rem 0;
  }

  .timetable-time {
    grid-column-start: 2;
  }

  .timetable-class {
    text-align: left;
  }
}

/* IE 10+ */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .ie10up {
    text-align: center;
  }

  section {
    padding: 0 100px;
  }
}

.application--wrap {
  min-height: unset;
}

.v-select__selections {
  flex-direction: column;
  align-items: start;
}

.announcement-banner {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 16px 16px;
  font-size: 1.125rem;
  font-family: "HKGrotesk-Light", sans-serif;
  font-weight: normal;
  width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  border-bottom: 1.5px solid #e5e5e5;
  box-shadow: 0 2px 6px 0 rgba(0,0,0,0.03);
  z-index: 1001;
}

.announcement-banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: normal;
  font-family: "HKGrotesk-Light", sans-serif;
}

.banner-link {
  display: inline;
}

@media (max-width: 600px) {
  .banner-link {
    display: block;
    margin-top: 6px;
  }
}
