body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* FONTS */

@font-face {
  font-family: 'NeueMontreal';
  src: url('fonts/NeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('fonts/NeueMontreal-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('fonts/NeueMontreal-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'NeueMontreal';
  src: url('fonts/NeueMontreal-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

/* NAVBAR */


.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: clamp(0.35rem, 1vw, 0.75rem)
           clamp(0.5rem, 2vw, 1rem);

  background: #2d2e55;
  font: 700 clamp(0.75rem, 2vw, 1.25rem)
        'NeueMontreal', sans-serif;
}


.logo {
  grid-column: 2;
  justify-self: center;
}

.logo img {
  width: clamp(7rem, 22vw, 14rem);
  display: block;
}

.icons {
  grid-column: 3;
  justify-self: end;

  display: flex;
  gap: clamp(0.25rem, 1vw, 1rem);
}

.icons a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: clamp(0.3rem, 1vw, 0.75rem)
           clamp(0.45rem, 1.5vw, 1rem);

  background: #fff;
  color: #233339;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.icons img {
  width: clamp(1rem, 3vw, 1.4rem);
}


@media (max-width: 550px) {
  .navbar {
    grid-template-columns: auto 1fr auto;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .icons {
    grid-column: 3;
    justify-self: end;
  }
}



/* TEXT STYLES */

.white-text {
    color: #ffffff;
    font-family: 'NeueMontreal', sans-serif;
    font-size: 1.5rem;
    text-align: left;
    font-weight: 500;
}

.white-text a{
  color: hotpink;
  opacity: 90%;
}

.white-text a:hover{
  opacity: 100%;
}

.black-text {
    color: #000000;
    font-family: 'NeueMontreal', sans-serif;
    font-size: 1.5rem;
    text-align: left;
    margin-top: 0;
    font-weight: 500;
}

.colour-text {
    color: #2d2e55;
    font-family: 'NeueMontreal', sans-serif;
    font-size: 1.5rem;
    text-align: left;
    margin-top: 0;
    font-weight: 700;
}


h1{
    color: #ffffff;
    font-family: 'NeueMontreal', sans-serif;
    font-size: 3rem;
    text-align: left;
    font-weight: 700;
}

h2{
    color: #2d2e55;
    font-family: 'NeueMontreal', sans-serif;
    font-size: 3rem;
    text-align: left;
    font-weight: 700;
}


.purple-background {
  background-color: #2d2e55;
    display: flex;
  justify-content: center;
  padding: 3em 0 3em 0;
}


.white-background {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  padding: 3em 0 3em 0;
}


.content-wrapper {
    width: 80dvw;
}


.flood-wrapper{
  width: 100dvw;
  height: 40dvh;
  display: flex;
}

.watch-wrapper, .join-in-wrapper{
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.watch-wrapper img, .join-in-wrapper img{
  width: 100%;
  min-height: 100%;
}

.join-in-section-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden; /* optional but useful */
  max-height: none;
}

.join-in-text {
  align-items: flex-start;
  align-content: flex-start;
}

h2{
  margin-top: 0;
  padding-top: 0;
}

.join-in-img {
  flex: 1;
  min-width: 50%; /* IMPORTANT: allows shrinking */
  padding-left: 2em;
}

.join-in-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image nicely cropped */
  display: block;
}

.image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2dvw;
}

.image-grid a {
    max-width: 23%;
}


.performer{
    width: 100%;
    transition: transform 0.2s ease-in-out;
}

.performer:hover, .test:hover {
    transform: scale(1.05);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}


.logos {
  overflow: hidden;
  padding: 3dvh;
  background: white;
  white-space: nowrap;
  position: relative;
}

.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  width: 15rem;
  height: 100%;
  content: "";
  z-index: 2;
}

.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255,255,255,0), white);
}

.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255,255,255,0), white);
}

.logos-slide {
  display: inline-block;
  animation: slide 30s linear infinite;
}

.logos-slide img {
  height: 3.5rem;
  margin: 0 2rem;
}




.fade-scroll {
  opacity: 0;
  transform: translateY(24px);

  animation: fadeUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

.fade-scroll-mobile {
  opacity: 0;
  transform: translateY(24px);

  animation: fadeUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}


@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}






@media (max-width: 768px) {

  .logos-slide img {
  height: 2.5rem;
  margin: 0 1rem;
}

  .navdiv {
    justify-content: center;
  }

  .navdiv ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .navdiv ul li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .logo {
    position: static;
    transform: none;
    margin: 0 auto 0.5rem;
    text-align: center;
  }

  .logo img {
    width: 10rem;
    margin: 0 auto;
    display: block;
  }

  .about-section {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 1rem;
  }
  

  .image-grid{
    flex-direction: column;
  }

  .image-grid a{
    max-width: 100%;
  }

  .fade-scroll-mobile {
    opacity: 1;
    transform: none;
    animation: none;
    animation-timeline: auto;
    animation-range: normal;
  }

  .join-in-section-wrapper{
    flex-direction: column;
    max-height: none;
  }

  .join-in-img{
    padding: 0;
  }
  
  h1, h2{
    font-size: 2rem;
  }
  
}

@media (max-width: 1000px) {
  .flood-wrapper{
    flex-direction: column;
  }
  .watch-wrapper, .join-in-wrapper{
    width: 100%;
    height: 100%;
  }
} 








