/* General Styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: rgb(0,64,128); /* Dark Blue */
    background-color: rgb(215,215,215); /* Light Grey */
    display: block;
}

.fullpage-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 85vh; /* Full viewport height */
}

header {
  position: fixed;
  width: 100%;
  height: 15vh;
  background: rgb(195, 210, 227); /* Light Blue */
  color: rgb(0,64,128); /* Dark Blue */
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*padding: 1rem 1rem;*/
  transition: all 1.0s ease;
  z-index: 4;
}

header.scrolled {
  /*padding: 10px 1rem;*/
  max-height: 10vh;
  background-color: rgba(195, 210, 227, 0.6); /* transparent version */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transform: max-height 1.0s ease;
}

header .logo-and-text-container {
    display: flex;
}

/* Styling for the logo */
header .logo-img {
    width: auto;  /* Maintain the aspect ratio */
    height: 10vh;  /* Logo height is 10% of the viewport height */
    max-height: 75px;  /* Limit the max height to avoid the logo becoming too large */
    min-height: 15px;  /* Limit the min width to prevent it from being too small */
    padding-left: 1rem;
    transition: transform 1.0s ease;
}

header.scrolled .logo-img {
  transform: scale(0.8);
}

/* Styling for the text logo */
header .text-img {
    width: auto;  /* Logo width is 3% of the viewport width */
    height: 10vh;  /* Maintain the aspect ratio */
    max-height: 75px;  /* Limit the max height to avoid the logo becoming too large */
    min-height: 15px;  /* Limit the min width to prevent it from being too small */
    padding-left: 1rem;
    transition: transform 1.0s ease;
}

header.scrolled .text-img {
  transform: scale(0.8);
}


header .hamburger {
    font-size: 2rem;
    cursor: pointer;
    color: rgb(0,64,128); /* Dark Blue */
    padding-right: 1rem;
    display: none; /* hidden on desktop, activated in media mobile */
}

/* Styling for nav links on header */
header .header-nav {
    display: flex;
    padding-right: 1rem;
    gap: 2rem;
    align-items: center;
}

header .desktop-nav-list ul {
    display: flex;
    gap: 2rem;
}

header .desktop-nav-list ul li {
    list-style: none;
}

header .desktop-nav-list ul li a {
    text-decoration: none;
    color: rgb(0,64,128); /* Dark Blue */
    font-weight: bold;
}

header .header-register-button {
    display: flex;
    width: 7rem;
    height: 1.5rem;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;/* White Text */
    background-color: rgb(215,29,46); /* Red background */
    border: 2px solid rgb(195, 210, 227); /* Light Blue Outline */
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 1.0s, transform 0.2s;
    }

header.scrolled .header-register-button {
    background-color: rgb(215,29,46,0.6); /* Red background - transparent */
}

/* Footer Styles */
footer {
  width: 100%;
  background: rgb(195, 210, 227); /* Light Blue */
  color: rgb(0,64,128); /* Dark Blue */
  text-align: right;
}

/* Styling for the logo */
footer .logo-and-text-container {
    display: flex;
    justify-content: right;
}

footer .logo-img {
    width: auto;  /* Maintain the aspect ratio */
    height: 10vh;  /* Logo height is 10% of the viewport height */
    max-height: 75px;  /* Limit the max height to avoid the logo becoming too large */
    min-height: 15px;  /* Limit the min width to prevent it from being too small */
}

/* Styling for the text logo */
footer .text-img {
    width: auto;  /* Maintain the aspect ratio */
    height: 10vh;  /* Logo height is 10% of the viewport height */
    max-height: 75px;  /* Limit the max height to avoid the logo becoming too large */
    min-height: 15px;  /* Limit the min width to prevent it from being too small */
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Sidebar Styles */
.sidebar {
    background: #34495e;
    color: white;
    position: fixed; /* Fixed position to overlay over body */
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* Initially collapsed */
    display: none; /* initially hidden while collapsed */
    transition: width 0.3s ease; /* Smooth transition for width */
    z-index: 1000; /* Ensure the sidebar is above the content */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    /*margin-top: 60px; /* Space for the header */
}

.sidebar ul li {
    padding: 15px;
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

main {
    width: 100%;
    overflow-x: hidden;
    padding-top: 15vh;
    flex:1;
    /*padding: 2rem;*/
    /* Transition for when the sidebar is toggled - doesn't apply if sidebar overlays content */
    /*transition: margin-left 4.3s ease; */
}

main .div-spacer {
    height: 1rem;
}

main .text-wrapper {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
}

main .video-wrapper {
    position: relative;
    width: 100%;
    height: 40vw;
    /*min-height: 60vh;*/
    overflow: hidden;
    justify-content: center;
}


main .home-learn-more-button {
      width: 7rem;
      height: 3rem;
      position: absolute;
      display: flex;
      left: 50%;
      margin-left: -3.5rem;
      bottom: 2vh;
      justify-content: center;
      align-items: center;
      font-size: 1rem;
      color: white;/* White Text */
      background-color: rgb(215,29,46); /* Red background */
      border: 2px solid rgb(195, 210, 227); /* Light Blue Outline */
      border-radius: 8px;
      cursor: pointer;
      text-align: center;
      transition: background-color 0.3s, transform 0.2s;
      z-index: 2;
    }

main .home-learn-more-button:hover {
      color: rgb(195, 210, 227); /* Light blue text on hover */
      transform: scale(1.05); /* Grow the box slightly */
    }

main .home-learn-more-button:active {
      background-color: rgb(174,23,38); /* Darker red on click */
      transform: scale(0.98); /* Shrink the box slightly when clicked */
    }


main .video-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  /*min-height: 60vh;*/
  /*object-fit: cover;*/
  z-index: 0;
}

main .video-promo {
    position: absolute;
    width: 71vw;
    height: 40vw;
    margin-left: 14.5vw;
    z-index: 1;
}

main .video-promo-480 {
    display: none; /* do not show low quality on desktop */
    position: absolute;
    z-index: 1;
}

/* This was the old CSS for youtube video */
/*main .video-wrapper iframe {*/
/*    position: absolute;*/
/*    pointer-events: none;*/
/*    width: 81vw;*/
/*    height: 46vw;*/
/*    margin-top: -7vh;*/
/*    clip-path: inset(7vh 0vw 7vh 0vw);*/
/*    margin-left: 9.5vw;*/
/*    border: 0;*/
/*    z-index: 1;*/
/*}*/

/* PANEL CONTAINER FORMATTING */
/* Flexbox container for the panels */
main .container-wrapper {
    width: 100%;
    /*background-color: rgb(255,255,255);*/
}

main .panel-container {
    position: relative;
    width: 90%;
    overflow: hidden;
    justify-content: center;
    text-align: center;
    margin: auto;

    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 1rem; /* Space between the panels */
}

/* Each panel */
main .panel {
    flex: 1;  /* Allow each panel to take equal space */
    min-width: 45%; /* Ensures maximum of 2 panels across */
    /*padding: 0.5rem;*/
    background-color: rgb(195, 210, 227); /* Light Blue */
    /*border: 1px solid #ccc;*/
    box-sizing: border-box;
    text-align: center;
    align-items: center;
}

main .home-tile-image {
    display: block;
}

main .home-paragraph-text {
    width: 80%;
    margin: auto;
}

/* CAROUSEL FORMATTING */
.carousel-container {
  position: relative;
  max-width: 80vw;
  margin: auto;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel-slide {
  min-width: 50%;
  transition: transform 0.5s ease;
}

.carousel-slide img {
  width: 100%;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 3;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-nav {
  text-align: center;
  margin-top: 10px;
}

.carousel-indicator {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  border-radius: 50%;
  display: inline-block;
  background-color: #ccc;
  border: none;
  cursor: pointer;
}

main .text-learn-more-button {
      width: 7rem;
      height: 3rem;
      display: flex;
      justify-content: center;
      align-items: center;
      margin:auto;
      font-size: 1rem;
      color: white;/* White Text */
      background-color: rgb(215,29,46); /* Red background */
      border: 2px solid rgb(195, 210, 227); /* Light Blue Outline */
      border-radius: 8px;
      cursor: pointer;
      text-align: center;
      transition: background-color 0.3s, transform 0.2s;
}
main .text-learn-more-button:hover {
      color: rgb(195, 210, 227); /* Light blue text on hover */
      transform: scale(1.05); /* Grow the box slightly */
    }

main .text-learn-more-button:active {
      background-color: rgb(174,23,38); /* Darker red on click */
      transform: scale(0.98); /* Shrink the box slightly when clicked */
    }

iframe {
    width: 80%;
    aspect-ratio: 16 / 9;
    border: none;
}

#mobile-carousel-indicator {
    display: none; /* hide extra carousel indicator when 2 slides wide */
}

.carousel-indicator.current-slide {
  background-color: #333;
}

#subpage-panel-container {
    width:70%;
}

/* Sidebar Expanded */
.sidebar.open {
    display: block;
    width: auto; /* Sidebar expanded width */
}

.sidebar.open.hidden {
  display: none;
}

.sidebar-register-button {
    display: flex;
    width: 7rem;
    height: 1.5rem;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    color: white;/* White Text */
    background-color: rgb(215,29,46); /* Red background */
    border: 2px solid rgb(195, 210, 227); /* Light Blue Outline */
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 1.0s, transform 0.2s;
    }

/* Mobile Styles */
@media screen and (max-width: 768px) {
    header .header-nav {
        display: none;
    }
    header .hamburger {
        display: flex;
    }
    main {
        padding-left: 0; /* No extra space when sidebar is collapsed */
    }
    main .video-wrapper {
        height: 100vw;
    }
    main .home-learn-more-button {
        height: 1.5rem;
        bottom: 4vh;
    }
    main .video-background-image {
        /*display: none;*/
        height: 100vw;
        width: auto;
    }
    main .video-promo {
        display: none; /* do not show full HD on mobile */
    }
    main .video-promo-480 {
        display: block;
        height: 100vw;
        width: 160vw;
        margin-left: -30vw;
    }

    main .panel-container {
        flex-direction: column;  /* Stack the panels vertically on mobile */
    }

    main .panel {
        width: 100%; /* Make panels full width on mobile */
    }
    
    main .home-paragraph-text {
        width: 80%;
        margin: auto;
    }
    
    main .text-learn-more-button {
        height: 1.5rem;
    }

    .carousel-slide {
        min-width: 100%; /* make only one slide across on mobile */
    }
    .carousel-button {
        font-size: 1.5rem;
        padding: 8px;
    }
    #mobile-carousel-indicator {
        display: inline-block;
    }
    iframe {
        width:95%;
    }
    #subpage-panel-container {
        width:95%;
    }
}
