/* -------------------------------------
   FONT & GLOBAL STYLES
------------------------------------- */

/* Define the font using @font-face */
@font-face {
    font-family: 'IanWG-Sharp';
    font-style: normal;
    font-weight: normal;
    src: url('/Font/IanWG-Sharp.woff') format('woff');
}

/* Global link styling */
a {
    font-family: 'IanWG-Sharp', sans-serif;
    text-decoration: none;  /* Removes underline */
    color: inherit;         /* Inherits color from the parent element */
}

/* Body styling */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'IanWG-Sharp', sans-serif; /* Apply the new font */
}

/* -------------------------------------
   DOCK STYLES
------------------------------------- */

.docklogo {
    height: 31px;
    width: 82px;
}

/* The Dock Container */
.dock {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Full width on smaller screens */
    max-width: 600px; /* Limits the dock width on larger screens */
    height: 63px;
    border-radius: 30px 30px 0 0;
    background: #FFF;
    box-shadow: 0px -2px 5.6px 1px rgba(0, 0, 0, 0.13);
    display: flex;
    overflow: hidden; /* Ensure contents stay within the dock */
    font-family: 'IanWG-Sharp', sans-serif; /* Apply the new font */
    z-index: 9999;  /* Ensures the dock stays on top */
}

/* Dock Sections */
.dock-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* First section - 40% width */
.dock-section:first-child {
    width: 40%;
}

/* Other sections - 15% width each, stacked vertically */
.dock-section:not(:first-child) {
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: left;
}

/* Force icon and text to stack/center inside the link */
.dock-section:not(:first-child) a {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal center */
    justify-content: center; /* vertical center (within the link) */
}

/* Icon styling */
.dock-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 5px; /* Space between icon and title */
}

/* Title styling */
.dock-title {
    font-size: 16px;
    text-align: center;
    font-family: 'IanWG-Sharp', sans-serif; /* Apply the new font */
}

/* Responsive Styles for the Dock */
@media (max-width: 768px) {
    .dock {
        width: 100%;
        height: 85px;
    }
    .dock-section:first-child {
        width: 35%; /* Adjust logo section width */
    }
    .dock-section:not(:first-child) {
        width: 16.25%; /* Adjust other sections */
    }
    .dock-icon {
        width: 20px;
        height: 20px;
    }
    .dock-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dock {
        height: 80px;
        padding: 0 10px;
    }
    .docklogo {
        height: 25px;
        width: 65px;
    }
    .dock-section:first-child {
        width: 30%; /* More space-efficient for smaller screens */
    }
    .dock-section:not(:first-child) {
        width: 17.5%;
    }
    .dock-icon {
        width: 18px;
        height: 18px;
    }
    .dock-title {
        font-size: 10px;
    }
}

/* -------------------------------------
   ARCHIVE PAGE / .container LAYOUT
------------------------------------- */

.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;  /* Push content down from the top if needed */
}

/* This ".container" style is used for the Archive pages 
   that want horizontal scrolling and snap. 
   (We will override for Shop in "shop-container".)
*/
.container {
    display: flex;
    width: 100%;
    flex-wrap: nowrap; 
    justify-content: center;    
    position: relative;
    
    /* Enable horizontal scroll with snap (Archive usage) */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.left-column, .center-column, .right-column {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-column { 
    width: 20%;
    text-align: center;
}
.center-column {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.right-column {
    width: 20%;
    text-align: center;
}

.image-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  
    width: 30%;              
    text-align: left;
    margin-top:8%;
}

.image-container img {
    max-width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}

.text-content {
    padding: 5px;
}

.text-content h3 {
    font-size: 1em;
    margin-bottom: 5px;
    font-family: 'IanWG-Sharp', sans-serif; 
}

.text-content p {
    font-size: 0.9em;
    color: #555;
    font-family: 'IanWG-Sharp', sans-serif; 
}

/* -------------------------------------
   FADE CARD STYLES
------------------------------------- */

/* 
   We no longer use 3D transforms.
   Instead, we overlay front/back in 
   the same place and fade between them.
*/
.card {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    /* No 3D transforms needed for fade */
}

/* Front & Back face both occupy the same position */
.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;

    /* Fade transition */
    opacity: 0;  
    transition: opacity 0.6s ease;
    backface-visibility: hidden;
}

/* Front face visible by default */
.card-front {
    background-color: #fff;
    z-index: 2;  /* Keep front on top initially */
    opacity: 1;
}

/* Back face hidden by default */

.card-back {
    background-color: #fff;
    color: black;
    z-index: 1;
    display: flex;
    flex-direction: column; /* Stack text vertically */
    align-items: flex-start; /* Align text to the left */
    padding: 0; /* Adjust padding */
    text-align: left; /* Ensure text is left-aligned */
    width: 100%;
    height: 100%;
    position: absolute; /* Ensure it overlays properly */
    
    /*POSITIONING FOR THE TEXT ON BACK OF CARD ADJUST FOR MOBILE*/
    top: 0px;
    left: 0;
}

/* On hover (desktop), fade out front and fade in back */
.card:hover .card-front {
    opacity: 0;
}
.card:hover .card-back {
    opacity: 1;
}

/* Title styling under the card */
.title {
    margin-top: 20px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    clear: both; 
}

/* ---------------------------------------------
   RESPONSIVE: STACK COLUMNS ON SMALLER SCREENS
   (For the Archive layout)
   --------------------------------------------- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;  
        align-items: center;  
        padding-top:50px;
    }
    .left-column,
    .center-column,
    .right-column {
        width: 100%;
        margin-bottom: 20px;
    }
    .image-row {
        flex-direction: column;
        align-items: center;
    }
    .image-container {
        width: 80%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .image-container {
        width: 80%;
    }
    .title {
        font-size: 16px;
    }
}

/* -------------------------------------
   SHOP PAGE OVERRIDES (.shop-container)
------------------------------------- */

.shop-container {
    flex-wrap: wrap;
    overflow-x: visible;          
    scroll-snap-type: none;       
    -webkit-overflow-scrolling: auto; 
    justify-content: center;      
    gap: 50px;    
    margin-top: 13%; /* Space between cards (optional) */
}

.shop-container .image-container {
    width: 192px;
    margin-bottom: 20px;
    align-items: center;
    text-align: center;
    height: 240px;
}

.shop-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.shop-container .card {
    width: 100%;
    height: auto;
}

.shop-container .title {
    margin-top: 10px; 
    font-size: 1rem; 
}
