/* ==================== */
/*     GENERAL STYLES    */
/* ==================== */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #F4F4F4;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background-color: #F4F4F4;
    touch-action: pan-x pan-y; /* Disable pinch-zoom globally; isolated pinch zoom for media grid only in mediaGrid.css */
}

@media screen and (max-width: 768px) {
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        transform-origin: top left;
    }

    body.scaled-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body.scaled-mobile > * {
        transform-origin: top left;
    }
}

/* ==================== */
/*      WATERMARK       */
/* ==================== */

.watermark {
    position: absolute;
    top: 40px;
    left: 150px;
    width: 296px;
    height: auto;
}

.watermark img {
    width: 50%;
    height: auto;
    opacity: 0.5;
}

#resetApp {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

#resetApp:visited {
    color: inherit;
    text-decoration: none;
}

/* ==================== */
/*      SWIPER          */
/* ==================== */

.swiper {
    width: 90%;
    margin-top: -80px;
    height: auto;
    position: relative;
}

.swiper-slide {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    min-height: 500px;
}

/* ==================== */
/*    ITEM HEADER       */
/* ==================== */

.item-header {
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #005288;
    z-index: 10;
    text-decoration: underline;
    text-decoration-color: #005288;
    text-decoration-thickness: 0.5px;
}

/* ==================== */
/*     ITEM IMAGE       */
/* ==================== */

.item-image {
    width: 1000px;
    height: auto;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.item-image:hover {
    transform: scale(1.05);
}

/* ==================== */
/*   BLUR EFFECT FOR    */
/*    THUMBNAILS FADE   */
/* ==================== */

.blur {
    filter: blur(5px);
}

/* ==================== */
/* FAMILY THUMBNAIL CONTAINER */
/* ==================== */

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 15;
    width: 100%;
    max-width: 1000px;
}

.thumbnail-container.two-items {
    max-width: 640px;
}

.thumbnail-container.visible {
    opacity: 1;
    visibility: visible;
}

/* ==================== */
/*    THUMBNAIL ITEM    */
/* ==================== */

.thumbnail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ==================== */
/*      THUMBNAIL       */
/* ==================== */

.thumbnail {
    width: 300px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    border: 3px solid transparent;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* ==================== */
/*    SEEK MENU & BUTTONS  */
/* ==================== */

.seek-menu {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.seek-button {
    padding: 10px 15px;
    background: transparent;
    color: #808080;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 300;
    transition: background 0.3s, border 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.seek-button span {
    display: block;
    margin-bottom: 5px;
}

.seek-button.active {
    background-color: white;
    color: #005288;
    font-weight: bold;
    border: 2px solid #005288;
}

.seek-button:hover {
    background: #f0f0f0;
}

.seek-button img {
    width: 100px;
    height: auto;
}

/* ==================== */
/* SEEK MENU SHELL & SCROLLABLE BAR */
/* ==================== */

.seek-menu-shell {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 90vw;
    z-index: 10;
}

.seek-menu-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: calc(8 * 130px + 7 * 15px);
}

.seek-menu-scroll::-webkit-scrollbar {
    display: none;
}

/* ==================== */
/*    SWIPER PAGINATION */
/* ==================== */

.swiper-pagination {
    position: relative;
    bottom: -15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 15px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #005288;
    opacity: 0.5;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ==================== */
/* SWIPER NAVIGATION BUTTONS */
/* ==================== */

.swiper-button-next, .swiper-button-prev {
    color: #005288;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: #003c56;
}

/* ==================== */
/*     ITEM SPECS OVERLAY */
/* ==================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.overlay.visible {
    display: flex;
    opacity: 1;
}

/* The overlay spec content itself */
.overlay .specsContent {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    z-index: 100;
    position: relative;
    overflow: hidden;
}

/* Remove previous object-fit on overlay images */
.overlay .item-image,
.overlay .item-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ==================== */
/*  LAUNCH EXPLORER BUTTON */
/* ==================== */

#launchExplorerButton {
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #005288;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 6px;
}

#launchExplorerButton:hover {
    background-color: #003f66;
}

/* ==================== */
/*     ANGLED BARS (DESIGN ACCENTS) */
/* ==================== */

.overlay .specsContent::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 30%;
    background-color: #B5B5B5;
    transform: skewY(-45deg);
    transform-origin: top left;
    z-index: -1;
    opacity: 0.2;
}

.overlay .specsContent::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background-color: #005288;
    transform: skewY(130deg);
    transform-origin: bottom right;
    z-index: -1;
    opacity: 1.0;
}

/* ==================== */
/* SEEK BAR BUTTONS (MACHINES/TOOLING/COMPANY) */
/* ==================== */

.seek-bar-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    top: 20px; 
    z-index: 10;
}

.seek-bar-buttons button {
    padding: 10px 16px;
    font-size: 13px;
    border: 2px solid #ccc;
    background: white;
    color: #808080;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.seek-bar-buttons button:hover,
.seek-bar-buttons button.active {
    background: #005288;
    color: white;
    border-color: #005288;
}

/* ==================== */
/*    FADE TRANSITION UTILS  */
/* ==================== */

.fade-transition {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fade-transition.visible {
    opacity: 1;
    visibility: visible;
}

.about-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #000000;
  padding-right: 1.5rem;
  text-align: left;
}

.about-text p {
  margin-bottom: 1em;
}

.about-text h2 {
  font-size: 1.5rem;
  margin-top: 0;
}
