/* CSS NAVIGATION:
    #1. Main page/base items
    #2. Konwenty (PL ONLY)
        #2.A. Lista konwentów - planowane, gwarantowane i ich historia.
        #2.B. Produkty
    #3. Tablets - portrait mode
    #4. Desktops

#1. Main page/base items

Mobile First: */
body{
    background-image: url('../img/iu-wip.png'), linear-gradient(0deg, rgb(64,64,64) 13%, rgb(36, 38, 41) 60%, rgb(33, 34, 38) 72%, rgb(31,31,35) 88.5%);
    background-position: center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Exo 2', Arial, Helvetica, sans-serif;
    min-height: 100dvh;
    text-align: center;
    color: white;
    margin: auto;
    display: flex; align-items: center;
}
#desktop-wrapper{margin: 0 auto;}
header{
    margin: 0 0 2rem;
}
#title {
    color: #FFF15D;
    text-align: center;
}
#title-img {
    max-width: 75%;
    filter: invert(92%) sepia(71%) saturate(650%) hue-rotate(333deg) brightness(104%) contrast(102%);
}

i{font-style: italic;}
b, strong{font-weight: bold;}

/* Basic things that put in a quick way without giving them same definitions over and over again just for different items */
.text-left{text-align: left;}
.text-right{text-align: right;}
.flex-container{
    display: flex;
    gap: 0.15rem;
}
.flex-container .flex-item{
    width: 100%;
    margin: 0.4rem;
}
.text-mini{font-size: 0.8rem;}

main{
    margin: 1rem 0;
}
.linkage {
    display: inline-block;
    box-sizing: border-box;
    background-origin: border-box;
    padding: 1.55rem 1.5rem; margin: 0.4rem 0.4rem;
    border: 0.15rem solid rgba(0,0,0,0);
    border-radius: 0.5rem;
    background-color: rgba(0,0,0,0.5);
    font-size: 1.5em;
    font-weight: 900;
    width: calc(100% - 0.8rem);
    color: white;
    text-decoration: none;
    text-align: left;
    transition: border 0.25s;
}
.linkage:hover{
    border: 0.15rem solid rgba(255,255,255,1);
}
.linkage .text-mini{font-weight: normal;}

#link-grom{
    background-color: white;
    background-image: url('../img/linkage-grom.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
    padding: 1rem 0.8rem; margin: 0.4rem 0.4rem;
    color: #121D32;
}
#link-grom-img{
    max-height: 3rem;
    filter: invert(9%) sepia(26%) saturate(1455%) hue-rotate(179deg) brightness(92%) contrast(94%);
}

.soccial-link{
    background-color: rgba(0,0,0,0.5);
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s;
}
.soccial-link:hover{
    background-color: rgba(0,0,0,1);
    color: #FFF15D;
}

footer{margin: 0.5rem}
#portfolio-link{
    display: inline-block;
    color: #FFF15D; text-decoration: none;
    border-radius: 0.1rem;
    padding: 0.25rem;
}
#portfolio-link:hover{
    background-color: white;
    color: black;
}

/* #2. Konwenty portion - December 2025 */
header.inner-navbars{
    background-color: rgba(14,14,15,0.9);
    position: sticky; display: flex;
    top: 0;
    z-index: 1;
    padding: 0.5em 1em;
    text-align: left;
    margin: 0;
    border-radius: 0 0 0.5vh 0.5vh;
}
.inner-navbars a{text-decoration: none; color: white;}

#title-sigil{max-height: 3em; vertical-align: middle; display :inline-block; margin-right: 2vw;}
.icofont{font-family: "icofont"}
#inner-navbar-tothetop{display: flex;width: 100%;}
#inner-title{font-size: 2em; font-weight: bold;
    flex-grow: 2; align-self: center; }
#inner-tothetop{
    color: white;
    font-size: 2rem;
    position: relative;
}

#inner-tothetop .icofont{opacity: 0.1;
    display: inline-block; padding-top: 0.3em;
}
#inner-tothetop .icofont:after{
    position: absolute; top: 0.3em; left: 0;
    content:"";
    width: 100%; height: 5px;
    background: white;
    border-radius: 2px;
}
#inner-navbar-tothetop:hover .icofont{opacity: 1;}
.tooltip-top-src{position: relative; display: inline-block;}
.tooltip-top-real{position: absolute;
    bottom: -2rem; right: 0; white-space: nowrap;
    font-size: 1rem; font-weight: normal;
    background: black;
    padding: 0.3rem; display: inline-block; 
    border-radius: 0.3rem;
    display: none;
}
.tooltip-top-src:hover .tooltip-top-real{
    opacity: 1; display: inline-block;
}

.inner-main a:after{font-family: "Icofont"; font-weight: normal !important;
    margin-left: 0.3em;}
.inner-main a[href^="http"]:after{content: "\ef20";}
.inner-main a.link-instagram:after{content: "\ed46";}
.inner-main a.link-facebook:after{content: "\ed37";}

#konwenty-nawigacja{margin-top: 3vh;}
#konwenty-nawigacja a{
    background-color: rgba(0,0,0,0.2);
    padding: 0.7em;
    display: inline-block; 
    color: #898989;
    text-decoration: none;
    border-radius: 0.25em;
}
#konwenty-nawigacja a:hover{
    background-color: rgba(14,14,15,0.9);
    color: white;
}

#konwenty-body{flex-wrap: wrap;}
#konwenty-wip{
    display: block;
    color: #FFF15D;
    padding: 2vw;
}
#planowane, #produkty, #wczesniej{
    scroll-margin-top: 8vh;
}

.konwenty-title{
    display: block;
    padding: 1vh 0 1vh 6vh;
    position: relative;
    margin-top: 2em;
    text-align: left;
    color: black;
    background: white;
    border-radius: 0.3em;
}
.konwenty-title:before{
    display: inline-block;
    font-family: "icofont";
    height: 4vh; width: 4vh;
    font-size: 4vh;
    padding: 1vh;
    vertical-align: middle;
    position: absolute; top: 0; left: 0 ;
}

.konwenty-section{
    font-weight: bold; color: white;
    font-size: 2em;
    background-color: rgb(14,14,15);
    padding: 1vh; margin-top: -1vh; margin-bottom: 0.2em;
    border-bottom-left-radius: 0.3em;
}

#planowane{background: #5CDFFF;}
#planowane:before{content: "\f006";}
#planowane .konwenty-section{color: #5CDFFF;}

#produkty{background: #FFF15D;}
#produkty:before{content: "\e966";}
#produkty .konwenty-section{color: #FFF15D;}

#wczesniej{background: #FF5C6E;}
#wczesniej:before{content: "\eedc";}
#wczesniej .konwenty-section{color: #FF5C6E;}

/* #2.A. Lista konwentów - planowane, gwarantowane i ich historia. */
.konwent-planowany, .konwent-gwarantowany{
    display: block;
    padding: 3vh 1.5vh 1.5vh;
    text-align: left;
    line-height: 1.1em;
    margin: 0.5em 0.2em;
    border-radius: 0.4em;
    position: relative; box-sizing: border-box;
}
.konwent-planowany{padding: 3vh 1.5vh 1.5vh;}
.konwent-gwarantowany{padding: 1.5vh;}



.konwent-status{
    display: inline-block;
    padding: 0.5vh;
    position: absolute; top: 0;
    margin-top: -2px;
    color: #898989;
}
.status-zgloszone .konwent-status{
    background: #898989; color: black;
    border-radius: 0 0 0.5vh 0.5vh;
}
.konwenty-list h3{
    font-weight: bold;
}
.konwent-planowany{border: #898989 dashed 2px;}
.konwent-planowany.status-zgloszone{border: #898989 solid 2px;}
.konwent-gwarantowany{border: white solid 2px;}
.konwent-gwarantowany[open] summary{color: #FFF15D;}
.konwent-gwarantowany summary h3{display: inline;}

.konwent-wydarzenie{color: #FFF15D;}
.konwent-co, .konwent-kiedy, .konwent-gdzie, .konwent-zkim, .konwent-premiera{
    margin: 0.25em 0 0.25em 1.3em;
}
.konwent-co:before, .konwent-kiedy:before, .konwent-gdzie:before, .konwent-zkim:before, .konwent-premiera:before{
    font-family: "Icofont";
    margin-right: 0.3em;
    margin-left: -1.3em
} 
/*  */
.konwent-co:before{content:"\e966";}
.konwent-zkim:before{content:"\ecfb";}
.konwent-kiedy:before{content:"\eedc";}
.konwent-gdzie:before{content:"\ef79";}
.konwent-premiera:before{content:"\ec5f";}

.konwent-zkim a{display: inline-block;
    background: rgba(0,0,0,0.4);
    padding: 0.2em; margin: 0.1em;
    line-height: 0.9em;
    border-radius: 0.3em;
    text-decoration: none; color: white;
}
.konwent-zkim a:hover{background: rgba(0,0,0,1);
    color: #FFF15D;
}
summary:hover{cursor: pointer;}
/* Marker Reset */
.konwent-gwarantowany summary::marker{content: none;}
.konwent-gwarantowany summary:before{
    font-family: "Icofont";
    content: "\eaa0";
    display: inline-block; 
    transition: rotate 0.25s;
}
.konwent-gwarantowany[open] summary:before{
    rotate: 90deg;
}
/* #2.B. Produkty */
.product-group{
    padding: 0.6em;
    text-align: left;
    margin: 0.2em 0;
    border: solid white 2px;
    border-radius: 0.4em;
}
.product-group h3{display: inline-block; font-size: 1.5em; font-weight: bold;}
.product-group summary::marker{content: none;}
.product-group summary:before{
    font-size: 1.5em;
    font-family: "Icofont";
    content: "\eaa0";
    display: inline-block; 
    transition: rotate 0.25s;
}
.product-group[open] summary:before{
    rotate: 90deg;
}

.product-item{
    display: block;
    text-align: left;
    background: rgba(0,0,0,0.3);
    padding: 1.5vh;
    margin: 0.5em 0;
    border-radius: 0.5em;
    
}
.product-item h3{
    font-size: 1.5em; font-weight: bold;
    margin: 0.2em 0;
}
/* .product-desc li:before{
    font-family: "Icofont";
    margin: 0 0.4em 0 0;
    content: "\eabc";
}
.product-desc li{
    margin: 0.2em 0;
} */

.product-desc ul{margin: 0.1em;}
.product-desc li{
    list-style: square;
    margin-left: 1em;
    line-height: 1.1em;
}
.product-desc a{
    display: inline-block;
    color: white; text-decoration: none;
    background-color: black;
    padding: 0 0.3em;
}
.product-desc a:hover{text-decoration: underline;  color: #FFF15D;}

.product-desc .desc-gal{
    list-style: none;
    position: relative;
}
.desc-gal label:before{
    font-family: "Icofont";
    content: "\eabd";
    position: absolute;
    top: 0; left: -1.2em;
}

/* THIS DAMN SLIDESHOW - DEPRECATED */
.product-gallery{margin: 0.5em 0;}
.kon-gallery{
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    box-sizing: border-box;
    padding-bottom: 1.5rem;
}

.gal-images{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; 
    border-radius: 0.5rem;
    scrollbar-width: none;
}

.gal-nav{
    display: flex;
    column-gap: 1rem;
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.gal-nav a{
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 20%;
    background-color: #fff;
    opacity: 0.5;
}
.gal-nav a:hover{
    opacity: 1;
}

.gal-images img{
    max-width: 100%;
    flex: 1 0 100%;
    scroll-snap-align: start;
    margin-right: 1px;
/*  scroll-margin-top: 20vh; You see, I'd use this, but Chrome is shit and ignores this within overflown objects. Soooo */
    padding-top: 20vh;
    margin-top: -20vh
}

/* Wersja druga galerii */
#dwa-cmyk-base, .dwa-base{
    max-width: 100%;
    opacity: 0;
    position: static !important;
}
.dwa-item img{max-width: 100%;
    opacity: 0;
    transition: opacity 0.15s;
    position: absolute;
    top: 0; left: 0;
    z-index: -1;
    }
.dwa-item input:checked + img{
    opacity: 1;
    z-index: 0;
}
.dwa-item{
    display: inline-block;
}
.dwa-ctrl{
    display: block; text-align: center;
}
.dwa-label{display: inline-block;
    width: 30px; height: 30px;
    background-color: white; opacity: 0.5;
    border-radius: 2px; margin: 3px 5px;
    transition: opacity 0.15s;
}
.dwa-label:hover{cursor: pointer;}

.dwa-item input{
    position: absolute;
    opacity: 0;
    bottom: 45%; left: -100px
}
.dwa-gala{
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 1vh;
    max-width: 1024px;
}

/* NGL: this used to be far more TEDIOUS! */
.dwa-item input:checked ~ .dwa-label{opacity: 1;}


/* #3. Tablets (portrait mode ONLY) */
@media (min-width: 768px) and (max-width: 1280px) {
    body{max-width: 90dvw;}
    /* #4.2. Konwenty */
    header.inner-navbars{border-radius: 0 0 0.5vh 0.5vh;}
    #planowane, #produkty, #wczesniej{scroll-margin-top: 7vh;}
    .konwent-planowany{margin-left: 2em; padding: 1.5vh; border-radius: 0 0.4em 0.4em 0.4em; min-height: 6em;}
    .konwent-status{
        transform-origin: top left;
        transform: rotate(90deg); 
        top: 0; left: 0}
}

/* #4. Desktops */
@media (min-width: 1281px) {  
    body{
        max-width: 70dvw;
    }
    .flex-container-desktop{display: flex;}
    .flex-container-desktop .flex-item-desktop{width: 100%; margin: 0.4rem; flex-grow: 1; flex-basis: 50%;}
    .flex-container-desktop .flex-container{width: 100%;}
    #link-grom{width: 300%;}
    .desktop-wrapper{width: 100%;}
    /* #4.2. Konwenty */
    header.inner-navbars{border-radius: 0 0 0.5vh 0.5vh;}
    #planowane, #produkty, #wczesniej{scroll-margin-top: 8vh;}
    /* THIS DAMN SLIDESHOW */
    .product-desktop-flex{
        /* display: flex; because apparently just because I don't like screen-devouring galleries doesn't mean there's a single ounce of soul that shares this sentiment, am I right??? XD */
        column-gap: 1rem;
    }
    .konwent-planowany{margin-left: 2em; padding: 1.5vh; border-radius: 0 0.4em 0.4em 0.4em; min-height: 6em;}
    .konwent-status{
        transform-origin: top left;
        transform: rotate(90deg); 
        top: 0; left: 0}
    .product-gallery, .galeria-dwa{flex: 0 0 35%;}
    /* .desc-gal label:before{content: "\eabb";} Since I stabbed the mechanism for layout shift, this is now rendered misleading. */
}