/********
 * Global fonts
 ********/

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url(https://assets.postgresql.eu/fonts/montserrat/Montserrat-Regular.woff) format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url(https://assets.postgresql.eu/fonts/montserrat/Montserrat-Bold.woff) format('woff2');
}

/********
 * Global styles
 ********/
body {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    color: #616161;
    font-size: 14px;
    line-height: 1.4;
}

h1, h2, h3, h4 {
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    color: #616161;
    text-align: center;
    font-size: 36px;
}

h2 {
    letter-spacing: 1px;
    text-align: left;
    font-size: 28px;
}

h3 {
    letter-spacing: 1px;
    text-align: left;
    font-size: 24px;
}

h4 {
    letter-spacing: 1px;
    font-size: 18px;
}

h4 small {
    font-size: 75%;
    color: #777;
    font-weight: normal;
}

small {
    font-size: 85%;
}

a {
    color: #337ab7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    font-size: 17px; /* XXX: make responsive! */
}

p.lead {
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 20px;
    font-size: 21px; /* XXX: make responsive! */
}

li {
    font-size: 17px; /* Same as P */
}

.text-left, #main-content p.text-left {
    text-align: left;
}
.text-center, #main-content p.text-center {
    text-align: center;
}
.text-justify, #main-content p.text-justify {
    text-align: justify;
}
.strike {
    text-decoration: line-through;
}
.gap-bottom {
    margin-bottom: 4rem;
}

/********
 * Bootstrap-similar items
 ********/
.label {
    display: inline;
    color: #fff;
    text-align: center;
    whitespace: nowrap;
    border-radius: 0.25em;
    font-weight: 700;
    font-size: 75%;
    line-height: 1;
    vertical-align: baseline;
    padding: .2em .6em .3em;
}
.label-warning {
    background-color: #f0ad4e;
}
.label-danger {
    background-color: #d9534f;
}
.label-primary {
    background-color: #337ab7;
}

.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-lg {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 6px;
}
.btn-green {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
}
.btn-blue {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.btn:hover {
    text-decoration: none;
}


/********
 * Responsive layout utilities
 ********/
@media (max-width: 1200px) {
    .nosmall {
        display: none !important;
    }
}
@media (min-width: 1200px) {
    .nobig {
        display: none !important;
    }
}

/********
 * Main grid and nav
 ********/
body {
    margin: 0px;
}

div#main-grid {
    margin: auto;
    max-width: 100%;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    grid-template-areas: "header" "main";
}

div#lastyear-banner {
    text-align: center;
}
div#lastyear-banner-content {
    display: inline-block;
    background-color: #f2dede;
    text-align: center;
    padding: 1rem 1rem 1rem 1rem;
    margin-top: 1rem;
    border-radius: 1.5rem;
    font-size: 150%;
    font-weight: bold;
}

div#main-nav {
    grid-area: header;
    background-color: #033c6b;
    align-self: center;
}

div#main-nav nav {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "nav-left nav-center nav-right"
        "nav-lower . .";
}

div#main-nav nav a {
    color: #fafafa;
    text-decoration: none;
    text-transform: uppercase;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

div#main-nav nav div a {
    padding: 10px 0;
    margin-left: 15px;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

div#main-nav nav div.nav-center a {
    transition: .3s all ease-in-out;
    padding: 1rem 1rem;
    display: inline-block;
    text-align: left;
}

div#main-nav nav div.nav-center a:hover {
    opacity: .7;
    background-color: white;
    color: #033c6b;
}

div#main-nav nav div.nav-left a {
    font-size: 25px;
    font-weight: bold;
    padding: 1rem;
    display: inline-block;
}

@media (max-width: 400px) {
    div#main-nav nav div.nav-left a {
        font-size: 5vw;
    }
}


.nav-left {
    grid-area: nav-left;
    align-self: center;
}

.nav-center {
    grid-area: nav-center;
    align-self: center;
    text-align: right;
}

/* Nav burger-menu */
label#burger-menu-label {
    font-size: 24px;
    color: #fafafa;
    margin-left: 20px;
    display: none;
    cursor: pointer;
}
input#nav-toggle {
    display: none;
}
@media (max-width: 1200px) {
    label#burger-menu-label {
        display: inline-block;
        grid-area: nav-right;
        align-self: center;
        padding: 1rem;
        margin-left: 10px;
    }
    div#main-nav nav div.nav-center {
        display: none;
    }
    #nav-toggle:checked ~ .nav-center {
        display: grid;
        grid-area: nav-lower;
    }
}
@media (min-width: 1200px) {
    .nav-center {
        margin-right: 5rem;
    }
}



/********
 * Content grid
 ********/
div#content-grid {
    grid-area: main;
    overflow: auto;
    display: grid;
    grid-gap: 3rem;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    grid-template-areas: "content" "sponsors" "footer";
}

@media (max-width: 1439px) { /* Note! Sync size with 1400 below */
    div#post-sidebar {
        display: none;
    }
}

@media (min-width: 1200px) {
    div#content-grid {
        grid-gap: 1rem;
        column-gap: 5rem;
        grid-template-columns: 1fr 700px 250px 1fr;
        grid-template-rows: min-content auto min-content;
        grid-template-areas:
            ".      content sponsors ."
            ".      content .        ."
            "footer footer  footer   footer";
    }
}

@media (min-width: 1440px) { /* Note! Sync size with 1439 above! */
    div#content-grid {
        grid-gap: 1rem;
        column-gap: 3rem;
        grid-template-columns: 1fr 250px 700px 250px 1fr;
        grid-template-rows: min-content auto min-content;
        grid-template-areas:
            ".      posts  content sponsors ."
            ".      .      content .        ."
            "footer footer footer  footer   footer";
    }
}

div#main-content {
    grid-area: content;
    max-width: 700px;
    justify-self: center;
    margin: 30px;
    margin-top: 20px;
}

div#main-content img {
    max-width: 100%;
}

div#main-content p {
    text-align: justify;
}

/********
 * Sponsors sidebar
 ********/
div#sponsor-sidebar {
    grid-area: sponsors;
    margin-top: 20px;
    justify-self: center;
}

div#sponsor-wrap {
    background-color: #eeeeee;
    border-radius: 15px;
    padding: 15px;
    max-width: 250px;
}

div#sponsor-sidebar h4 a {
    color: #616161;
}

div#sponsor-sidebar h4 {
    text-align: center;
}

div#sponsor-sidebar img {
    margin-top: 15px;
    margin-bottom: 15px;
    width: 225px;
    vertical-align: middle;
    border: 0;
}

/********
 * Posts sidebar
 ********/
div#post-sidebar {
    grid-area: posts;
    justify-self: center;
    margin-top: 20px;
}

div#postContainer div.socialmedia {
  text-align: center;
  margin-top: -10px;
}

div#postContainer {
    background-color: #eeeeee;
    border-radius: 15px;
    padding: 15px;
    max-width: 250px;
}

div#postContainer h4 {
    text-align: center;
}

div#postContainer div.postWrapper {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid black;
    overflow: hidden;
}

div#postContainer div.postWrapper:last-child {
    border-bottom: none;
}

div#postContainer div.postWrapper div.postImageWrapper {
    margin-top: 0.2rem;
    text-align: center;
}

div#postContainer div.postWrapper div.postImageWrapper img.postImage {
    border-radius: 7px;
    max-width: 200px;
}

div#postContainer div.postWrapper div.postLinks {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

div#postContainer div.postWrapper div.postLinks a {
    margin-right: 1rem;
    color: inherit;
}

div#postContainer div.postWrapper div.postTime {
    text-align: center;
    font-size: 0.8rem;
}

/********
 * Footer
 ********/
footer#footer {
    grid-area: footer;
    background-color: #033c6b;
    align-self: center;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "ftop"
        "f1"
        "f2"
        "f3";
    align-self: flex-end;
}
@media (min-width: 1200px) {
    footer#footer {
        grid-template-columns: 1fr 250px 250px 250px 1fr;
        grid-template-areas:
            "ftop ftop ftop ftop ftop"
            ".    f1   f2   f3   .";
    }
}
footer h4 {
    grid-area: ftop;
    text-align: center;
    color: #fafafa;
}
footer ul {
    text-align: center;
    list-style: none;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
}
footer ul li a {
    color: #fafafa;
}
footer ul#f1 {
    grid-area: f1;
}
footer ul#f2 {
    grid-area: f2;
}
footer ul#f3 {
    grid-area: f3;
}


/********
 * Utility grids
 ********/
div.thumbnailwrap {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
    justify-content: center;
}
div.thumbnailwrap div.thumbnail {
    flex-basis: 160px;
    margin: 10px;
    border: 1px solid lightgray;
    padding: 15px;
    text-align: center;
}
div.thumbnailwrap div.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}
div.thumbnailwrap div.thumbnail div.caption {
    text-align: left;
}

/********
 * confreg global overrides
 ********/
h1 span.confheader {
    display: none;
}

/********
 * / page
 ********/
body.index {
    /* Image credit: https://pxhere.com/ko/photo/1127542 */
    background-image: url("/static/img/bg/helsinki_2026.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
div#indexwrap {
    background-color: rgba(0,0,0,0.7);
    font-size: 17px;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
}
div#indexwrap h1 {
    color: #fff;
}
div#indexwrap h2 {
    text-align: center;
    text-transform: none;
}
div#newsContainer div.newsTitle {
    font-weight: 700;
    font-size: 1.3em;
    text-align: center;
}

div#newsContainer div.newsDate {
    font-size: 0.8em;
    margin-bottom: 4px;
    text-align: center;
}


/********
 * /sponsors/ page
 ********/
div.sponsor-partner-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

div.sponsor-partner-wrap div.sponsor-partner {
    flex-basis: 260px;
    height: 375px;
    border: 1px solid lightgray;
    border-radius: 4px;
    padding: 15px;
    margin: 10px;
    text-align: center;
}
div.sponsor-partner-wrap div.sponsor-partner img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

div.sponsor-partner-wrap p.description {
    font-style: italic;
}

div.sponsor-supporter-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

div.sponsor-supporter-wrap div.sponsor-supporter {
    flex-basis: 130px;
    height: 125px;
    padding: 15px;
    margin: 10px;
    text-align: center;
    display: flex;
    align-items: center;
}
div.sponsor-supporter-wrap div.sponsor-partner img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

table#sponsors-at-a-glance {
    border-collapse: collapse;
}
table#sponsors-at-a-glance td,
table#sponsors-at-a-glance th {
    border: 1px solid black;
    padding: 0.3rem;
}
table#sponsors-at-a-glance tr td {
    text-align: center;
}

table#sponsors-at-a-glance tr th:first-child {
    text-align: left;
}

/********
 * /jobs page
 ********/
div.jobs-sponsor details {
    border: 1px solid lightgray;
    padding: 1rem;
}

div.jobs-sponsor details summary h4 {
    display: inline;
    margin-left: 1rem;
}

/********
 * Registration info
 ********/
table.regtypes {
    border: 1px solid #ddd;
    border-spacing: 0;
}
table.regtypes thead th {
    text-align: left;
    padding: 8px;
}
table.regtypes thead th:first-child {
    text-align: center;
}
table.regtypes tbody td {
    padding: 8px;
}
table.regtypes thead tr {
    background-color: #d9edf7;
}
table.regtypes tbody tr:nth-child(2n) {
    background: white;
}
table.regtypes tbody tr:nth-child(2n+1) {
    background: #dff0d8;
}

table.cancellation {
    border: 1px solid black;
    min-width: 50%;
    margin: 1rem auto;
}

table.cancellation thead tr {
    background-color: rgb(17, 69, 126);
    color: white;
}

table.cancellation td {
    padding: 0.25rem 0.5rem;
}

table.cancellation tbody tr td:last-child {
    text-align: center;
}


/********
 * Registration page ugly overrides
 ********/
div.regleft {
    width: auto !important;
}
div.regright {
    width: auto !important;
}
div#main-content form.pgeuregform p {
    /* Left-justify text in regform parts */
    text-align: left;
}

/********
 * Schedule
 ********/
section.schedule {
    width: 100%;
    grid-gap: 1rem;
    margin-bottom: 2rem;
}

section.schedule div.room-name {
    display: none;
}

section.schedule article.room-all {
    grid-column: 2 / -1;
}

article.session {
    border-radius: 5px;
    border: 1px solid #ddd;
}

section.schedule h1 {
    grid-column: times;
    font-size: 1rem;
    font-weight: bold;
}

span.session-room {
    font-size: 0.7rem;
    font-style: italic;
}

div.session-header {
    background-color: #ddd;
    color: #000;
    padding: 6px;
}

div.session-content {
    padding: 6px;
}

div.session-content div.session-title {
    font-weight: 700;
}
div.session-content div.session-title a {
    color: inherit;
}
div.session-content ul.speakerlist {
    list-style: none;
    padding: 0;
    margin-top: 3px;
    font-style: italic;
}
div.session-content ul.speakerlist li a {
    color: inherit;
}

@media screen and (min-width: 768px) {
    section.schedule div.room-name {
        display: block;
        text-align: center;
        font-weight: bold;
        font-size: 1.25rem;
    }
    section.schedule {
        display: inline-grid;
    }
}

@media screen and (max-width: 768px) {
    section.schedule div.room-name-int {
        display: block;
    }
    section.schedule[data-roomcount="1"] h1.time-header {
        display: none;
    }
    article.session {
        margin-bottom: 1rem;
    }
}

article.track-main-track {
    background-color: #2aa198;
    color: #ffffff;
}

article.track-breaks {
    background-color: #ffffee;
    color: #000000;
}

/* Sessions spanning multiple entries */
article.session-4198 {
    grid-row-end: span 2;
}
article.session-4110 {
    grid-row-end: span 3;
}
