@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body { 
    font-family: 'Poppins', sans-serif; 
    margin: 0; 
    padding: 0; 
    background: #121212; 
    color: white; 
    text-align: center; 
}

.container { 
    max-width: 1000px; 
    margin: 60px auto; 
    padding: 40px; 
}

h1, h2 { 
    margin-bottom: 20px; 
}

.week-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e1e1e;
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.week-section:nth-child(even) {
    flex-direction: row-reverse; /* Align content to the right for even weeks */
}
.week-section:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}
.week-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.0));
    transition: background 0.3s ease;
}
.week-section:nth-child(even)::before {
    background: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.0));
}
.week-section:hover::before {
    background: none;
}
.week-content {
    width: 40%;
    text-align: left;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.week-section:nth-child(even) .week-content {
    text-align: right; /* Align content to the right for even weeks */
}
.week-section:hover .week-content {
    opacity: 0; /* Fade out the text */
}
.week-title {
    font-size: 24px;
    font-weight: bold;
}
.week-description {
    font-size: 16px;
    opacity: 0.8;
    text-shadow: 0px 0px 30px rgb(0, 0, 0), 0px 0px 15px rgb(0, 0, 0), 
        0px 0px 5px rgb(0, 0, 0), 0px 0px 3px rgb(0, 0, 0); /* Add black shadow to the text */
}

/* Images */
img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-row {
  width: 80%;
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.image-row img {
  max-width: 800px;
  max-height: 100px;
  flex: 1 1 auto;
  object-fit: contain;
}

.full-size-image-container {
  max-width: 80%;
  margin: 2rem auto;
  display: none;
  text-align: center;
}

.full-size-image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.parts-section {
    width: 80%;
    text-align: left;
    margin: 0 auto 2rem auto;
    padding: 1.5rem 2rem;
    background-color: #181818;
    border-radius: 8px;
    border-left: 4px solid #444;
    box-sizing: border-box;
}
.parts-section h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.parts-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.parts-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
  color: #ffffff;
  border-bottom: 1px solid #222;
  padding-bottom: 0.3rem;
  transition: background-color 0.2s ease;
}

.parts-list .qty {
  display: inline-block;
  width: 40px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  color: #00bcd4; /* Cool cyan */
}

.parts-list .name {
  flex: 1;
  color: #ddd;
}

/* Links */
a {
  color: #00bcd4; /* Cool cyan */
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

a:hover {
  color: #1de9b6; /* Lighter cyan on hover */
}

a:hover::after {
  transform: scaleX(1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .week-section {
    flex-direction: column !important;
    text-align: center !important;
  }
  .week-section .week-content {
    width: 100% !important;
    text-align: center !important;
    opacity: 1 !important;
  }
  .parts-section {
    max-width: 100%;
    margin: 0 auto 2rem auto !important;
    padding: 1rem;
    border-left: none;
    background-color: transparent;
    border-radius: 0;
    text-align: center !important;
  }
  .parts-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .parts-list .qty {
    width: auto;
    margin-bottom: 0.25rem;
    color: #aaa;
  }
  .image-row {
    width: 100%;
    gap: 10px;
  }
  img, .full-size-image-container img {
    max-width: 100%;
  }
}
/* Clickable Image Styles */
.clickable-image {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.clickable-image:hover {
  transform: scale(1.01);
}

.fullscreen-viewer {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.fullscreen-viewer img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  border-radius: 10px;
}


.close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff5252;
}


/* Videos */
video {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #000; /* fallback */
}

/* Clickable Videos */
.clickable-video {
    cursor: zoom-in;
    transition: transform 0.2s ease;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    height: auto;
    margin: 1rem 0;
}

.clickable-video:hover {
    transform: scale(1.01);
}

/* Fullscreen video overlay */
.fullscreen-video-viewer {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

#fullscreen-video-container {
    width: 90%;
    height: 90%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-video-viewer video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.video-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.video-close-btn:hover {
    color: #ff5252;
}
