:root {
    --color-fg: #000;
    --color-bg: #fff;
    --color-red: #c23b45/*#C9261B*//*#b83b2c*/;
    --color-filter-red: brightness(0) saturate(100%) invert(31%) sepia(27%) saturate(5482%) hue-rotate(335deg) brightness(82%) contrast(82%);
    --color-gray: #111;
    --color-greenish: #008db3;
    --color-blue: #0080b5/*#4f81bd*/;
    --color-filter-blue: brightness(0) saturate(100%) invert(31%) sepia(73%) saturate(1676%) hue-rotate(172deg) brightness(97%) contrast(101%);
    --color-blueish: #e7fafc;
}

:root.color-settings-yb {
    --color-greenish: var(--color-fg);
    --color-blue: var(--color-fg);
    letter-spacing: 1px;
}

:root.color-settings-by {
    --color-blue: var(--color-blueish);
    --color-greenish: var(--color-blueish);
}

:root.color-settings-bw {
    --color-red: var(--color-blueish);
}

html {
    background-color: var(--color-bg);
    /*scroll-behavior: smooth;*/
}

body {
    margin: 0 auto;
    color: var(--color-fg);
    font-family: Jost, Verdana;
}

a {
    color: var(--color-fg);
    /*text-decoration: underline overline dotted #fff;*/
    text-decoration: none;
    font-weight: 600;
}

.svg-adjustable {
    filter: var(--color-filter-blue);
}

html.color-settings-bw .svg-adjustable, html.color-settings-by .svg-adjustable {
    filter: var(--color-filter-white);
    stroke: var(--color-white);
}

html.color-settings-yb img.svg-adjustable {
    filter: brightness(0) saturate(100%) invert(0%) sepia(8%) saturate(7469%) hue-rotate(300deg) brightness(103%) contrast(110%);
    stroke: #000;
}

html:not([class*="color-settings"]) main > section:nth-child(2n),
html:not([class*="color-settings"]) header {
    background-color: #ebebeb;
}

nav > a {
    background-color: var(--color-blue); /*greenish*/
    border: 1px solid var(--color-blue);
}

nav > a[target] {
    background-color: var(--color-red);
    border-color: var(--color-red);
    position: relative;
}

/*nav > a[target]::before {
    content: "";
    background-image: url('/images/geotermia-2025/geotermia-logo.png');
    width: 100%;
    height: 100px;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    top: -110px;
    right: 2px;
}*/

/*nav > a:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

nav > a:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}*/

section h2, section h3, section h4, section h5, section h6 {
    color: var(--color-greenish);
}

section h2:first-child, section h3:first-child, section h4:first-child, section h5:first-child, section h6:first-child {
    color: var(--color-blue/*--color-dark-blueish*/);
    text-align: initial;
}

section h2.bullet, section h3.bullet, section h4.bullet, section h5.bullet, section h6.bullet {
    background-color: var(--color-red);
}

div.table.program > div.label .bullet {
    padding: 5px 5px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
}

div.table.people > .speaker button {
    color: white;
    background-color: var(--color-red);
    border-color: #000;
    border: 2px outset var(--color-red);
}

div.table.people > .speaker.active {
    border: 1px solid #000;
    background-color: #fff;
}

div.table.people > .speaker-details {
    border: 1px solid #000;
    background-color: #fff;
}

div.table .sponsor img {
    max-height: 120px;
    max-width: 90vw;
    height: 100px;
}

html.color-settings-bw #sponsorzy .sponsor img.sponsor-mos,
html.color-settings-by #sponsorzy .sponsor img.sponsor-mos {
    content: url('/templates/geotermia_2024/images/sponsors/mks-color-dark-bg-100.png');
}

#sponsorzy .sponsor .sponsor-nfosigw {
    max-height: 100px;
    width: 48vw;
}

html.color-settings-bw #sponsorzy .sponsor .sponsor-nfosigw,
html.color-settings-by #sponsorzy .sponsor .sponsor-nfosigw {
    content: url('/templates/geotermia_2024/images/sponsors/nfosigw-mono-dark-bg.svg');
}

html[class*="color-settings-b"] section h2,
html[class*="color-settings-b"] section h3,
html[class*="color-settings-b"] section h4,
html[class*="color-settings-b"] section h5,
html[class*="color-settings-b"] section h6 {
    color: var(--color-blueish);
}

html[class*="color-settings-b"] nav > a {
    background-color: var(--color-bg);
    border-color: var(--color-fg);
    color: var(--color-fg);
}

html[class*="color-settings-yb"] nav > a {
    color: var(--color-bg);
}

html.color-settings-bw nav > a[target],
html.color-settings-by nav > a[target] {
    background-color: var(--color-fg);
    color: var(--color-bg);
}

html[class*="color-settings-b"] .fg-gray {
    color: var(--color-light-gray);
}

html.popup {
    oveflow-y: hidden;
}

#popup-background {
    display: none;
    position: fixed;
    bottom: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--color-blue);
    opacity: 0.9;
}

#popup-speaker-details {
    display: none;
    position: fixed;
    top: 15vh;
    bottom: 15vh;
    background-color: var(--color-bg);
    z-index: 999;
    height: 70vh;
    max-width: 90vw;
    left: 5vw;
    right: 5vw;
    padding: 0 10px 15px 10px;
    overflow-y: auto;
    border-radius: 15px;
}

@media screen and (max-width: 1080px) {
    #sponsorzy div.table {
	grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 960px) {
    #sponsorzy div.table .sponsor {
        text-align: center;
    }
}

@media screen and (max-width: 870px) {
    #sponsorzy div.table .sponsor img {
	max-width: 30vw;
    }

    #sponsorzy div.table .sponsor .sponsor-mos {
        height: initial;
    }

    #sponsorzy div.table .sponsor .sponsor-nfosigw {
	max-height: 60px;
	max-width: 40vw;
    }
}

@media screen and (max-width: 800px) {
    #sponsorzy div.table {
	grid-template-columns: repeat(2, auto);
        justify-content: space-around !important;
    }
}

@media screen and (max-width: 670px) {
    #sponsorzy div.table .sponsor img {
	max-width: 40vw;
        max-height: 80px;
    }
}

@media screen and (max-width: 540px) {
    #sponsorzy div.table {
	grid-template-columns: repeat(1, auto);
    }

    #sponsorzy div.table .sponsor img, #sponsorzy div.table .sponsor object {
	min-height: 60px;
        width: 80vw;
        max-width: initial !important;
        max-height: initial !important;
    }
}

@media screen and ((max-width: 400px) or (max-height: 400px)) {
    #popup-speaker-details {
	top: 5vh;
	bottom: 5vh;
	height: 90vh;
    }
}
