/* Reset & base styles */
* { box-sizing: border-box; margin: 0; padding: 0 }

@font-face {
    font-family: 'Montserrat';
    src: url('./font/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

body { font-family: montserrat, normal; background: #f4f4f4; color: #333 }

/* Add default tritanopia filter to header and content-wrapper */
header,
.content-wrapper {
    filter: url('img/filters.svg#tritanopia');
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Container centers content */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
/* Background overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Popup box */
#popup {
    background: white;
    padding: 20px 30px;
    border-radius: 1.2em;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    text-align: center;
    position: relative;
    border: solid 10px #008743;
}

/* Close button */
#popup .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

#popup .close-btn:hover {
    color: #000;
}


/* PRODUCT INFO________________________________________________________________ */

/* Product card layout */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.product-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.product-info { text-align: center }
.product-info h2 { font-size: 1.25rem; margin-bottom: 5px }
.product-info .details {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.3;
}

/* RAL swatch circles */
#ral-swatches { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    justify-content: center; 
    margin: 10px 0 
}

.swatch {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; color: #fff; text-shadow: 0 0 1px #000;
    /* filter: grayscale(1); transition: filter .3s; */
    cursor: pointer;
}

/* Remove grayscale when correct
.swatch.correct { filter: none } */

/* Button style */
.action-btn {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px, 1fr));
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    gap: 50px;
    width: 1000px;
    min-height:1500px;
    list-style:none;
}
.store-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.store-item img {
    width: 200px !important;
    height: auto;
    /* height: 100px; */
    border-radius: 6px;
}
.store-item h3 { font-size: 1rem; margin-bottom: 4px }
.store-item p  { font-size: 0.85rem; color: #555; margin-bottom: 4px }
.store-item .swatch-list { display: flex; gap: 4px }



/* MISSION/ TIPS AREA_________________________________________________________________________ */

/* Sticky mission box bottom-right */
#mission {
    position: fixed !important;    /* lock to viewport */
    bottom: 1/3;       /* 20px up from the bottom */
    right: 20px;       /* 20px in from the right */
    background: #008743;
    color: #fff;
    /* border: #008743 1px solid; */
    padding: 15px;
    border-radius: 8px;
    width: 350px;
    font-size: 24px;
    z-index: 9999;     /* Ensure it stays on top */
    /* Ensure mission box is not affected by filters */
    filter: none !important;
    /* Force GPU acceleration */
    transform: translateZ(0);
    /* Create new stacking context */
    isolation: isolate;
    /* Ensure it's outside the filter context */
    position: fixed;
    pointer-events: auto;
}

#mission button {
    font-family: montserrat, normal;
    margin-top: 10px;
    padding: 6px 10px;
    background: #D9ECE2;
    color: #000000;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 320px;
    text-align: left;
    min-height: 40px;
}

/* Tips container hidden by default */
#tips-container {
    margin-top: 10px;
    background: #D9ECE2;
    padding: 8px;
    border-radius: 11px;
    color: #000000;
    font-size: 1rem;
}
#tips-container ul { list-style: disc inside; margin-top: 5px }

#emotionContainer img{
    width: 175px !important;
    height: auto !important;
    position: fixed;
    top: 300px; 
    right: 110px; 
}

#emotionContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}


#missionTextContent {
    color: #ffff;
    margin-top: 10px;
}


/* BANNER____________________________________ */

.Head-Banner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    gap:30px;
    text-align:center;
    margin-bottom:30px;
    max-width: 1200px; margin: 40px auto; padding: 0 20px;
    }
    
    .Banner-card-ad-1 { 
        grid-area: 1 / 1 / 3 / 4;
        background-image:url("img/final-blue-yellow.png");
        background-size:cover;
        background-repeat:no-repeat;
        padding:40px;
        border-radius:20px; 
        cursor: pointer;
    }
    .Banner-card-ad-2 { 
        grid-area: 2 / 4 / 3 / 6;
        background-image:url("img/nieuw-kleurenfilter1.png");
        background-size:cover;
        background-repeat:no-repeat;
        padding:40px;
        border-radius:11px; 
        cursor: pointer;
    }
    .Banner-card-ad-3 { 
        grid-area: 1 / 4 / 2 / 6;
        background-image:url("img/terug-naar-cardan.svg");
        background-size:cover;
        background-repeat:no-repeat;
        padding:40px; 
        border-radius:11px;
        cursor: pointer;
    }


.content-wrapper{
    display:flex;
    flex-direction:row;
    justify-content:center;
}

/* NAVBAR______________________________________________________________ */

/* nav_________________________________________________________________________________________________________________________________ */

.nav a {
    list-style: none;
    text-decoration: none;
}

#top-nav {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 10px 20px;
    background-color: #654f6f;
    list-style: none;
    gap: 24px;
    color:#fff;
}
.cardan-text{
    display:flex;
    flex-direction: row;
    gap:10px;
    align-self:center;
}
#top-nav a {
    color: #ffffff;
    font-size: 12px;
}

#top-nav a:hover, #bottom-nav a:hover, #language-nav a:hover  {
    border-bottom: solid 2px #000000;
}

#bottom-nav a, #language-nav a {
    color: #171717;
}

#bottom-nav {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    list-style: none;
    gap: 24px;
}

#language-nav {
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    list-style: none;
}

#big-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #ffffff;
    border-bottom: solid 1px #000000;
}

#big-nav img{
    height: 20px;
    width: auto;
}

/* FILTERS_________________________________________________________________________ */
header.protanopia,
.content-wrapper.protanopia {
    /* Approximate Protanopia (red-green color blindness) simulation using CSS */
    filter: url('img/filters.svg#protanopia');
}

header.monochromacy,
.content-wrapper.monochromacy {
    /* Complete grayscale */
    filter: grayscale(100%);
}

header.tritanopia,
.content-wrapper.tritanopia {
    /* Approximate Tritanopia (blue-yellow color blindness) simulation */
    filter: url('img/filters.svg#tritanopia');
}

/* footer_____________________________________________________________________________________________________________________________________ */


.footer {
    list-style: none;
    font-size: 14px;
    padding-left: 150px;
}

.footer li a {
    text-decoration: none;
}

.bottom-footer a {
    color: #654f6f;
}

.bottom-footer {
    background-color: #d9d3db;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0px 20px 40px;
    font-size: 12px;
}

#big-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #654f6f;
    color: #ffffff;
}

#big-footer a {
    color: #ffffff;
}

.footer-container  {
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 20px;
}

.footer-container h2 {
    padding-left: 150px;
    margin: 40px 0 40px 0;

}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

/* detail__________________________________________________________________________ */

.link-detail {
    text-decoration: none;
    color:inherit;
}

.link-detail a {
    color: inherit;
    list-style: none;
}


.error-detail {
    height: 50vh;
    font-size: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

