@font-face {
    font-family: Etude-Bold;
    src: url('../fonts/etude-noir-bold.ttf') format('truetype');
}

@font-face {
    font-family: Etude-Light;
    src: url('../fonts/etude-noire-light.ttf') format('truetype');
}

/*
@font-face {
    font-family: Etude-Medium;
    src: url('../fonts/etude-noire-medium.ttf') format('truetype');
}

*/
@font-face {
    font-family: Etude-Regular;
    src: url('../fonts/etude-noire-regular.ttf') format('truetype');
}


:root {
    --color-primary: #66CA75;
    --color-secondary: white;
    --color-primary-background: #392C63;
    --color-accent: #ff3400;
    --color-headings: #1b0760;
    --color-body: #918ca4;
    --color-body-darker: #5c5577;
    --border-color: #ccc;
    --border-radius: 30px;
}

html { font-size: 62.5%;}
body { background-color: black; }

.max-width-container {
    max-width: 1000px;
    min-width: 320px;
    margin: 0 auto;
    box-shadow: 0 0 5px 5px var(--color-primary-background);
}

.page-container {
    padding: 15px 15px;
    background: var(--color-primary-background);
    background: linear-gradient(0deg, var(--color-primary-background) 0%, black 95%, var(--color-primary-background) 100%);
    overflow: auto;
}


/****************************** HEADER ****************************************/

header { position: relative; }

.header-container {
    position: relative; height: 200px;
}

.header-container h1 {
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 2; 
    background-color: rgba(0,0,0,0.7); 
    padding: 10px; 
    border-radius: 5px;
    font-size: 45px;
}

@media (max-width: 650px) {
    .header-container {
         height: 125px;
    }

    .header-container h1 {
        font-size: 30px;
    }
}

@media (max-width: 400px) {
    .header-container {
         height: 100px;
    }

    .header-container h1 {
        font-size: 23px;
    }
}

.header-video-container {
    width: 100%; 
    overflow: hidden; 
    position: absolute; 
    top: 50px; 
    left: 0;
}

/****************************** NAV ****************************************/

.main-nav {
    display: flex;
    justify-content: end;
    border: 0px white none;
}

.main-nav span, .mobile-nav span {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-secondary);
    padding-right: 10px;
    text-align: center;
    vertical-align: middle;
}

.main-nav span a, .mobile-nav span a {
    font-family: 'Etude-Bold';
    text-decoration: none;
    font-size: 1.9rem;
    transition: all 250ms;
}

.main-nav span a:hover, .mobile-nav span a:hover {
    color: var(--color-primary);
}

@media (min-width: 650px) {
    .mobile-nav { display: none; }
}

@media (max-width: 650px) {
    .main-nav { display: none; }
}


.nav-menu {
    width: 210px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--color-primary-background);
    background: linear-gradient(0deg, var(--color-primary-background) 0%, black 95%, var(--color-primary-background) 100%);
    color: #f8de7e;
    overflow: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    text-align: center;
    padding: 20px;
    border: 1px solid #333;
}

.fade-in-nav {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.fade-in-contents-1 { transition-delay: 0.4s; }
.fade-in-contents-2 { transition-delay: 0.5s; }
.visible { opacity: 1; }

.nav-menu.hidden {
    transform: translateX(-100%);
}

.nav-menu .nav-title {
    font-family: 'Etude-Bold';
    text-transform: uppercase;
    color: var(--color-secondary);
    font-size: 2rem;
    text-align: center;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.nav-menu ul li {
    padding: 5px;
    font-family: BebasNeue-Book;
    border-top: 1px solid #444;
}

.nav-menu ul li:last-child {
    border-bottom: 1px solid #444;
}

.nav-menu ul li a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 2rem;
    transition: color 0.1s ease-in-out;
    transition: font-size 0.1s ease-in-out;
}

.nav-menu ul li a:hover {
    color: var(--color-primary);
    font-size: 2.5rem;
}

.nav-image {
    background-image: url('../images/matt.jpg');
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--color-primary-background);
    width: 150px;
    margin: 40px 30px 10px 30px;
    background-position: 50%;
    background-size: 150px;
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
    color: white;
    background-color: var(--color-primary-background);
    border: 1px solid white;
    padding: 5px;
    border-radius: 3px;
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-in-out;
}

.hamburger.open { font-size: 48px; }

@media (min-width: 650px) {
    .hamburger { display: none; }
}

/****************************** ABOUT ****************************************/
@media screen and (max-width: 500px) {
    .matts-picture {
        float: none;
    }
    .about-text {
        clear: both;
    }
}


.about-text {
  position: relative;
  overflow: hidden; /* prevent images from overflowing */
  z-index: 1;
}

.about-text .floating-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* so clicks go through */
  z-index: -1;
}

.about-text .floating-images img {
  position: absolute;
  opacity: 0.4; /* subtle background */
  width: 300px;
  height: auto;
  object-fit: cover;
  animation-duration: 14s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* Keyframes for floating directions */
@keyframes float-left-to-right {
  0%   { transform: translateX(-300%); }
  100% { transform: translateX(300%); }
}

@keyframes float-right-to-left {
  0%   { transform: translateX(300%); }
  100% { transform: translateX(-300%); }
}

/* Assign directions */
.about-text .floating-images .float-left {
  animation-name: float-left-to-right;
}

.about-text .floating-images .float-right {
  animation-name: float-right-to-left;
}

/* Randomized vertical positions */
.about-text .floating-images img:nth-child(1) { top: 24%; animation-duration: 25s; }
.about-text .floating-images img:nth-child(2) { top: 40%; animation-duration: 23s; }
.about-text .floating-images img:nth-child(3) { top: 55%; animation-duration: 31s; }
.about-text .floating-images img:nth-child(4) { top: 74%; animation-duration: 26s; }


/****************************** CONTACT ****************************************/

.contact-container {
    display: flex; flex-wrap: wrap; justify-content: center;
}

.contact-text {
    max-width: 450px; 
    text-align: center;
}

/****************************** INDEX ****************************************/

.video-container-main {
    width: 100%; 
    overflow: hidden; 
    padding-top: 10%
}

.index-page-container {
    text-align: center;
}

.index-buttons {
    width: 50%; 
    margin: auto;
    min-width: 200px;
}

/****************************** VIDEOS  ****************************************/

@keyframes slideInRight {
  from {
    transform: translateX(100%); /* start off screen to the right */
  }
  to {
    transform: translateX(0); /* settle into normal position */
  }
}


.tv-section-wrapper {
  position: relative;  
}

.tv-section-wrapper ul {
  position: relative;
  z-index: 2;         
}

.tv-enclosure {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  animation: slideInRight 1s ease-out forwards; /* animate in */
  animation-delay: 1.0s; /* optional delay for smoother effect */
  transform: translateX(100%);
}

/* Mobile / small screen handling */
@media (max-width: 768px) {
  .tv-enclosure {
    margin: 20px auto;    
    display: block;
    width: 100%;          
    max-width: 400px; 
    opacity: 0.3;
  }

}

/****************************** GENERAL  ****************************************/

h1 {
    font-family: 'Etude-Bold';
    text-transform: uppercase;
    color: var(--color-secondary);
    font-size: 4.5rem;
    text-shadow: 0 0 2px var(--color-secondary);
}

h2 {
    font-family: 'Etude-Bold';
    text-transform: uppercase;
    color: var(--color-primary);
    font-size: 3.0rem;
    text-shadow: 0 0 2px var(--color-primary);
    margin: 50px 0 30px 0;
}

p, a, li {
    font-family: 'Etude-Light';
    color: var(--color-secondary);
    font-size: 2.5rem;
    line-height: 1.5;
}

a:hover {
    color: var(--color-primary);
}

.custom-button-href {
    text-decoration: none;
}

.custom-button {
    padding: 10px 15px;
    background-color: var(--color-primary-background);
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    display: block;
    margin: 30px auto;
    transition: all 0.3s;
}

.custom-button:hover {
    transform: scale(1.1);
    background-color: var(--color-primary);
}

footer p, footer a { font-size: 1.5rem; }


@media screen and (max-width: 650px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    p, a, li { font-size: 1.4rem; }
    footer p, footer a { font-size: 1rem; }
}

.matts-picture-main {
    width: 35%;
    position: absolute;
    top: 3%;
    left: 3%;
    z-index: 2;
    max-width: 250px;
    border-radius: 3%;
    box-shadow: 0 0 15px 3px black;
}

.matts-picture {
    width: 80%;
    max-width: 300px;
    border-radius: 3%;
    box-shadow: 0 0 15px 3px black;
    margin: 0 25px 25px 25px;
    float: left;
}

.all-videos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px 0;
}

.vimeo-video-container {
    width: 350px;
    padding: 2%
}

.vimeo-video-responsive {
    padding: 56.25% 0 0 0;
    position: relative;
}

.vimeo-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer {
    background: black;
    background: linear-gradient(0deg, black 0%, black 95%, var(--color-primary-background) 100%);
    text-align: center;
    padding: 10px 0;
}

.to-fade-in {
    opacity: 0;
}

.to-fade-in-zero {
    transition: opacity 0.2s ease-in;
}

.to-fade-in-one {
    transition: opacity 0.7s ease-in;
}

.to-fade-in-two {
    transition: opacity 1.2s ease-in;
}

.to-fade-in-three {
    transition: opacity 1.7s ease-in;
}

.to-fade-in.loaded {
    opacity: 1;
}