/*.....................................................................*/
/*.........__..__..______..__.....__......______.......................*/
/*.........||..||..||......||.....||.....||....||......................*/
/*.........||__||..||____..||.....||.....||....||......................*/
/*.........||..||..||......||.....||.....||....||......................*/
/*.........||..||..||____..||___..||___..||____||......................*/
/*.....................................................................*/
/*.........WILDCARD...ROBOTICS...CODE...YIPPEE!!!......................*/


/* ===== CSS Custom Properties ===== */
:root {
  --color-primary: #e60000;
  --color-bg: #000000;
  --color-surface: #111111;
  --color-navbar: #333333;
  --color-text: #ffffff;
  --color-border: #ffffff;
  --font-display: "Jersey 10", sans-serif;
  --font-heading: "Handjet", sans-serif;
  --font-body: "Quantico", sans-serif;
  --navbar-width: 200px;
}

/* ===== Global Styles ===== */

body {
  background-color: var(--color-bg);
  background-image: url('images/background.gif');
  background-repeat: repeat;
}

h1 {
  font-size: 4em;
  font-family: var(--font-display);
  color: var(--color-bg);
  text-align: center;
  margin: 20px auto;
}

h2 {
  text-align: center;
  font-size: 2em;
  font-family: var(--font-display);
  margin: 10px auto;
}

h3 {
  text-align: left;
  font-size: 3em;
  font-family: var(--font-heading);
}

.norm-text {
  color: var(--color-text);
  text-align: justify;
  font-size: 20px;
  font-family: var(--font-body);
}

.suits {
  font-size: 2rem;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .suits {
    display: none;
  }
}

.h-text {
  color: var(--color-text);
  text-align: center;
}

.h3-text {
  color: var(--color-primary);
}

a {
  color: var(--color-primary);
}

.border-space {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  max-width: 800px;
}

/* Pages with wide content (e.g. art gallery scroll strips) skip the 800px cap */
.border-space.full-width {
  max-width: none;
}

/* ART IMAGES */
div.scroll-container {
  background-color: transparent;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  max-width: 100%;
  /* hide scrollbar */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/old Edge */
  /* scroll behavior */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

div.scroll-container::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}

div.scroll-container img {
  max-height: 500px;
  width: auto;
  padding: 10px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: bold;
  letter-spacing: 2px;
  margin-right: 10px;
  color: var(--color-text);
  font-size: 4em;
  font-family: var(--font-heading);
}

.scroll-label-mobile {
  display: none;
}

@media (max-width: 768px) {
  .scroll-wrapper {
    flex-direction: column;
  }

  .scroll-label {
    display: none;
  }

  .scroll-label-mobile {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--color-text);
    font-family: var(--font-heading);
  }

  div.scroll-container img {
    max-height: 200px;
    flex-shrink: 0;
  }

  div.scroll-container {
    flex-wrap: nowrap;
    max-width: 100vw;
  }
}

/* END ART */

.sponsors {
  height: 100px;
  width: auto;
  padding: 10px;
}

@media screen and (max-width: 768px) {
  .sponsors {
    height: 30px;
    width: auto;
    padding: 5px;
  }
}

@media screen and (min-width: 769px) {
  .border-space {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
  }

  .navbar {
    width: var(--navbar-width);
  }

  /* Shift content to the right to accommodate the navbar */
  .content-wrapper {
    margin-left: var(--navbar-width);
    /* Adjust content's left margin to be the width of the navbar */
  }

  footer {
    margin-left: var(--navbar-width);
    width: calc(100% - var(--navbar-width));
  }
}

/* Embeds */
.embeds {
  width: 100%;
  height: auto;
}

.embeds2 {
  width: 50vw;
  height: 40vw;
}

/* PDF EMBED */

.pdf-link-card a {
  text-decoration: none;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: transform 0.2s;
}

.pdf-card:hover {
  transform: scale(1.03);
}

.pdf-icon {
  width: 40px;
  height: 40px;
}

/* END PDF */

.spacer {
  width: 2vw;
}

/* Media Query for phones */
@media (max-width: 600px) {

  .embeds,
  .embeds2 {
    width: 90vw;
    height: 90vw;
  }

  .spacer {
    width: 0;
  }
}

#gallery .container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  margin-bottom: 10px;
  /* Maintains a square aspect ratio */
  overflow: hidden;
}

/* Responsive Embed Container */
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-bottom: 20px;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Instagram Specific Styling */
.embeds {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .embed-container {
    padding-bottom: 100%;
    /* Square aspect ratio for mobile */
  }

  .embeds {
    width: 100%;
    height: 100%;
  }
}

/* The burger icon */
.burger-menu {
  width: 30px;
  height: 25px;
  display: none;
  /* Hide by default on desktop */
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin: 10px;
  z-index: 10000;
}

.burger-line {
  width: 100%;
  height: 5px;
  background-color: var(--color-text);
}

/* Vertical Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  /* Keep the navbar always on the left */
  height: 100%;
  width: var(--navbar-width);
  background-color: var(--color-navbar);
  transition: none;
  /* No transition needed for desktop */
  overflow-y: auto;
  /* Enable vertical scrolling */
  z-index: 9999;
}

/* Hide the scrollbar */
.navbar::-webkit-scrollbar {
  width: 0;
  /* Hides the scrollbar */
  height: 0;
}

/* Navbar list styling */
.navbar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  /* Ensure it fits within the navbar */
}

/* Navbar list item styling */
.navbar li {
  text-align: center;
  font-family: var(--font-heading);
  padding: 15px;
}

.navbar li a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.5em;
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.navbar li a:hover {
  color: var(--color-primary);
  transform: scale(1.08);
}

/* Active navbar state (for mobile) */
.navbar.active {
  left: 0;
  /* Show navbar when burger menu is clicked */
}

/* Active link state (for mobile or desktop) */
.navbar li a.active {
  color: var(--color-primary);
  /* Active link turns red */
}

/* Content wrapper - adjusts the position of the content */
.content-wrapper {
  transition: margin-left 0.3s ease;
  padding-left: 20px;
  padding-right: 20px;
  /* Add padding on the left for better appearance */
}

/* Media Queries for small screens (mobile) */
@media screen and (max-width: 768px) {

  /* Show burger menu on mobile */
  .burger-menu {
    display: flex;
  }

  /* Navbar slides in when active */
  .navbar.active {
    left: 0;
  }

  /* Navbar off-screen by default on mobile */
  .navbar {
    left: calc(-1 * var(--navbar-width));
    transition: left 0.3s ease;
  }

  /* Stack links vertically on mobile */
  .navbar ul {
    flex-direction: column;
  }

  /* Content takes full width on mobile */
  .content-wrapper {
    margin-left: 0;
  }

  h1 {
    font-size: 250%;
    color: var(--color-bg);
    text-align: center;
  }

  .header-img {
    width: 50%;
    text-align: center;
    display: block;
    margin: auto;
  }

  .norm-text {
    color: var(--color-text);
    text-align: justify;
    font-size: 15px;
  }

  .h3-text {
    font-size: 2em;
    color: var(--color-primary);
  }
}

/* Media Queries for large screens (desktop) */
@media screen and (min-width: 769px) {

  /* Hide burger menu on desktop */
  .burger-menu {
    display: none;
  }

  /* Navbar always visible on desktop */
  .navbar {
    left: 0;
    transition: none;
    /* No sliding transition */
  }

  /* Stack links vertically on desktop */
  .navbar ul {
    flex-direction: column;
  }

  /* Shift content to the right on desktop */
  .content-wrapper {
    margin-left: var(--navbar-width);
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* Aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
  z-index: 1;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Default footer (centered) */
footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9em;
  color: var(--color-text);
  width: 100%;
  font-family: var(--font-heading);
}

/* Media Queries for large screens (desktop) */
@media screen and (min-width: 769px) {
  footer {
    margin-left: var(--navbar-width);
    text-align: center;
    width: calc(100% - var(--navbar-width));
  }
}


/* Image styling */
img {
  width: 100%;
  height: auto;
}

/* Links Section */
.links-section {
  margin-bottom: 30px;
}

.links-section h2 {
  text-align: center;
  font-size: 5em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  font-size: 2em;
  font-family: var(--font-heading);
  justify-content: center;
  /* Center the buttons */
}

.link-button {
  padding: 10px 20px;
  background-color: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 3px;
  text-align: center;
  border: none;
  /* Remove default button border */
  cursor: pointer;
  /* Change cursor to pointer */
  transition: background-color 0.3s, transform 0.3s;
}

.link-button:hover {
  background-color: var(--color-primary);
  transform: scale(1.05);
}

.container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  /* Maintains a square aspect ratio */
  overflow: hidden;
}

.image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text);
  font-size: 2em;
  font-family: var(--font-heading);
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: 0.5s ease;
  flex-direction: column;
}

.overlay p {
  margin: 0;
}

.container:hover .overlay {
  opacity: 1;
}


.bean:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }

  /*10% { transform: translate(-1px, -2px) rotate(-1deg); }*/
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  /*30% { transform: translate(3px, 2px) rotate(0deg); }*/
  /*40% { transform: translate(1px, -1px) rotate(1deg); }*/
  45% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }

  /*60% { transform: translate(-3px, 1px) rotate(0deg); }*/
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }

  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }

  /*90% { transform: translate(1px, 2px) rotate(0deg); }*/
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.inline_pdf {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media screen and (max-width: 600px) {
  .inline_pdf {
    height: 400px;
  }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
  .inline_pdf {
    height: 600px;
  }
}

@media screen and (min-width: 1025px) {
  .inline_pdf {
    height: 800px;
  }
}


.inline_pdf_small {
  width: 80%;
  /* horizontal padding */
  max-width: 80%;
  height: 90vh;
  /* 90% of the viewport height */
  margin: 0 auto;
  display: block;
  border: 2px solid black;
  /* optional, looks nice */
}



@media screen and (max-width: 600px) {
  .inline_pdf_small {
    height: 200px;
  }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
  .inline_pdf_small {
    height: 300px;
  }
}

@media screen and (min-width: 1025px) {
  .inline_pdf_small {
    height: 400px;
  }
}