html {
    scroll-behavior: smooth;
}

body {
    font-family: "SUSE", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25em;
    margin: 0;
}

a {
    text-decoration: none;
    color: royalblue;
}

.hidden {
    display: none !important;
}

.underline-hover {
    position: relative;
}

.underline-hover::after {
    content: '';
    height: 0.1em;
    background-color: black;
    position: absolute;
    top: 100%;
    left: 0;
    right: 100%;
    transition: right 0.5s;
}

.underline-hover:hover::after {
    right: 0;
    left: 0;
}

.title {
    text-transform: uppercase;
    font-weight: 500;
    margin: 4px 0;
    font-size: 2.2rem;
}

.block-section {
    padding: 1.3rem;
}

.two-parts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.event-info-container {
    margin: 1em 0;
}


@media (min-width: 800px) {
    .main-logo-container {
        margin: 1em;
    }

    .event-info-container {
        margin: 1em;
    }
}

@media (min-width: 800px) {
    .two-parts {
        flex-direction: row;
    }
}

.block-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.block-content.block-title {
    margin-left: 0;
}

#buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


/*.main-container .block-section:not(.hidden):nth-of-type(odd) {
    background: linear-gradient(antiquewhite, rgb(255, 245, 230));
}

.main-container .block-section:not(.hidden):nth-of-type(even) {
    background: white;
}*/

.colored-bg {
    background: linear-gradient(rgb(250, 235, 215), rgb(255, 245, 230));
}

a.button {
    font-size: 1.1em;
    background-color: rgb(219, 153, 55);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.486);
    padding: 1em 1em;
    margin: 0.5em;
    text-align: center;
    display: inline-block;
    color: white;
    transition: background-color 0.15s ease;
}

a.button:hover {
    background-color: rgb(192, 131, 39);
}

a.button.arrow::before, a.button.arrow::after {
    content: '';
    background: url("data:image/svg+xml,%3Csvg fill='transparent' height='800px' width='800px' version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 10 4'%3E%3Cpath stroke='white' stroke-width='1' stroke-linejoin='round' stroke-linecap='round' d='m0 0 4 4 4 -4'%3E%3C/path%3E%3C/svg%3E");
    display: inline-block;
    background-size: contain;
    width: 0.6em;
    height: 0.6em;
}

a.button.arrow::before {
    margin-right: 0.5em;
}

a.button.arrow::after {
    margin-left: 0.5em;
}


/* Tiles */

.tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tile {
    width: 100%;
    margin-bottom: 2em;
}

@media (min-width: 800px) {
    .tile {
        width: calc(50% - 2em);
        margin-left: 1em;
        margin-right: 1em;
    }
}

@media (min-width: 1200px) {
    .tile {
        width: calc(33% - 2em);
    }
}

.tile .top-part {
    text-align: center;
    line-height: 0;
}

.tiles.info a {
    color: rgb(18, 174, 247);
}

.tile-title {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.tile p {
    margin-top: 0.5em;
}

.left-text {
    color: rgb(255, 255, 255);
    display: block;
    margin: 0px 10px;
    align-content: center;
}


/* Sponsors homepage */

#sponsors .level {
    margin-bottom: 2em;
}

#sponsors .level h3 {
    text-align: center;
    font-size: 1.6em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid black;
}

.sponsor-list {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.sponsor-item {
    width: 100%;
}

@media (min-width: 800px) {
    .sponsor-item {
        width: calc(50% - 2em);
        margin-left: 1em;
        margin-right: 1em;
    }
}

@media (min-width: 1200px) {
    .sponsor-item {
        width: calc(33% - 2em);
    }
}

.sponsor-item a {
    display: block;
    text-align: center;
    line-height: 0;
}

.sponsor-item a img {
    width: 18rem;
    height: 7rem;
    object-fit: contain;
}


/* Footer */

.footer-information {
    background: linear-gradient(rgb(247, 210, 177), rgb(209, 163, 123));
    padding: 2rem 1.3rem 2.5rem 1.3rem;
}

.footer-information .logo-er {
    line-height: 0;
    text-align: center;
    padding: 30px;
}

.footer-information .logo-er img {
    transition: opacity 0.15s ease-in-out;
}

.media {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 800px) {
    .media {
        justify-content: left;
    }
}

.media a {
    display: block;
    line-height: 0;
    height: fit-content;
    transition: opacity 0.15s ease-in-out;
}

.media-icon {
    height: 2.8em;
}

.media a:hover, .footer-information .logo-er img:hover {
    opacity: 0.7;
}

.contact {
    margin-top: 1.3rem;
    font-size: 1.1em;
    text-align: center;
}

.contact a {
    color: white;
    font-size: 0.9em;
}

.contact a::before {
    content: '';
    margin-right: 0.2em;
    display: inline-block;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' height='800px' width='800px' version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 75.294 75.294' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M66.097,12.089h-56.9C4.126,12.089,0,16.215,0,21.286v32.722c0,5.071,4.126,9.197,9.197,9.197h56.9 c5.071,0,9.197-4.126,9.197-9.197V21.287C75.295,16.215,71.169,12.089,66.097,12.089z M61.603,18.089L37.647,33.523L13.691,18.089 H61.603z M66.097,57.206h-56.9C7.434,57.206,6,55.771,6,54.009V21.457l29.796,19.16c0.04,0.025,0.083,0.042,0.124,0.065 c0.043,0.024,0.087,0.047,0.131,0.069c0.231,0.119,0.469,0.215,0.712,0.278c0.025,0.007,0.05,0.01,0.075,0.016 c0.267,0.063,0.537,0.102,0.807,0.102c0.001,0,0.002,0,0.002,0c0.002,0,0.003,0,0.004,0c0.27,0,0.54-0.038,0.807-0.102 c0.025-0.006,0.05-0.009,0.075-0.016c0.243-0.063,0.48-0.159,0.712-0.278c0.044-0.022,0.088-0.045,0.131-0.069 c0.041-0.023,0.084-0.04,0.124-0.065l29.796-19.16v32.551C69.295,55.771,67.86,57.206,66.097,57.206z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    width: 1.5em;
    top: 0.45em;
    height: 1.5em;

}

footer #copyright {
    text-align: center;
    background-color: grey;
    margin: 0;
    padding: 1em;
}


/* Homepage schedule */

.talk {
    display: block;
    color: white;
}

.talk div {
    background-color: rgb(131, 198, 236);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.486);
    padding: 0.2em;
    height: 6em;
    border-left: 4px solid rgb(93, 168, 211);
    box-sizing: border-box;
}

.talk-name {
    display: block;
    font-weight: 600;
}

.talk div:hover .talk-name {
    font-style: italic;
}

.talk-time, .talk-speaker {
    display: block;
}

#full-schedule {
    color: black;
}

.testimonial.tile-icon {
    width: 80px;
}


/* Homepage blog */

.tile.article > a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tile.article img {
    width: 100%;
    max-height: 80vh;
}

.tile.article .bottom-part {
    width: 90%;
}


/* Attend page */

.right-side {
    margin-top: 1em;
}

.info-block {
    margin-bottom: 2em;
}

.info-block .info-title {
    text-align: center;
    background: linear-gradient(117deg, rgba(3,85,186,1), rgba(0,137,164,1));
    color: white;
    padding: 0.4em;
    margin:  0 0 0.3em 0;
}

.info-block .info-content .two-sides {
    display: flex;
    flex-direction: column;
}

.info-block .info-content .two-sides h3 {
    margin-top: 0;
}

.location-picture img {
    width: 100%;
    display: block;
}

@media (min-width: 800px) {
    .info-block .info-content .two-sides {
        flex-direction: row;
        align-items: center;
    }

    .info-block .info-content .left-side, .info-block .info-content .right-side {
        width: 50%;
    }

    .right-side {
        margin-top: 0;
        margin-left: 1em;
    }

    .page {
        display: flex;
    }

    #page-navigation {
        min-width: 25%;
        position: relative;
    }
}

#map {
    max-width: 100%;
}

@media (min-width: 800px) {
    #map {
        width: 65%;
    }
}


/* Attend nav */

#goto-text {
    color: grey;
}

.anchors {
    padding: 0;
    border-left: 2px solid grey;
    list-style-type: none;
}

.anchor a {
    display: block;
    padding: 0.2em 0.8em;
    width: fit-content;
    transition: color 0.1s ease, font-weight 0.1 ease;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.anchor a:hover {
    color: rgb(0, 162, 255);
}

.page-nav-container {
    position: sticky;
    top: 50px;
}

.anchor a.active {
    background-color: rgb(213, 252, 255);
    color: black;
    font-weight: 500;
}


/* Page Title */

.block-section#page-title {
    padding-top: 40px;
    padding-bottom: 40px;
}

.block-section#page-title h1 {
    margin: 0;
    width: fit-content;
    padding: 20px 40px;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

@media (min-width: 800px) {
    .block-section#page-title {
        padding-left: 0;
    }

    .block-section#page-title h1 {
        padding: 20px 40px 20px 160px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}


/* Sponsor */

.two-parts#info {
    align-items: start;
    justify-content: space-between;
}

#info .stats {
    border: 1px solid grey;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 3px;
}

#info .stats h3 {
    margin-top: 0;
}

#info .stats ul {
    margin-bottom: 0;
}

@media (min-width: 800px) {
    .two-parts#info > div {
        flex-basis: 49%;
    }
}


/* Expandable list */

ul.exp-list {
    padding: 0;
}

ul.exp-list > li {
    border: 1px solid lightgray;
    list-style-type: none;
    background-color: white;
}

ul.exp-list li .item-exp-button {
    background-color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 15px;
    text-align: left;
    font-size: 0.9em;
    text-transform: none;
    font-weight: 500;
    position: relative;
}

ul.exp-list li .item-exp-button::after {
    content: '';
    background: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ0cmFuc3BhcmVudCIgaGVpZ2h0PSI4MDBweCIgd2lkdGg9IjgwMHB4IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iLTEgLTEgMTAgNCI+CiAgICA8cGF0aCBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgZD0ibTAgMCA0IDQgNCAtNCI+PC9wYXRoPgo8L3N2Zz4=");
    background-size: contain;
    background-position: center;
    z-index: 1;
    position: absolute;
    top: calc(50% - 0.5em);
    right: 1em;
    width: 1em;
    height: 1em;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

ul.exp-list li.open .item-exp-button::after {
    transform: rotate(0deg);
}

ul.exp-list li.open .item-exp-content, ul.exp-list li.open .item-exp-content > div {
    overflow: visible;
}

ul.exp-list .item-exp-content {
    transition: overflow 0.3s allow-discrete;
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    transition: 0.3s grid-template-rows ease;
}

.item-exp-content > div {
    transition: overflow 0.3s allow-discrete;
    overflow: hidden;
}

ul.exp-list li.open .item-exp-button {
    font-weight: 600;
}

ul.exp-list li.open .item-exp-content {
    grid-template-rows: 1fr;
}

ul.exp-list .item-exp-content ul {
    padding: 13px 60px;
    list-style-type: none;
}

ul.exp-list .item-exp-content ul > hr {
    margin-top: 13px;
    margin-bottom: 13px;
    border: none;
    border-top: 1px solid lightgray;
}


/* Tooltip */

.tooltip {
    display: inline-block;
    position: relative;
    text-align: left;
}

.tooltip:hover .tooltip-content {
    display: block;
    visibility: visible;
    opacity: 100%;
}

.tooltip-content {
    visibility: hidden;
    z-index: 10;
    opacity: 0%;
    background-color: white;
    padding: 0.7em;
    border: 1px solid rgb(221, 221, 221);
    box-shadow: 0 0 7px rgb(180, 180, 180);
    position: absolute;
    bottom: 120%;
    left: -0.6em;
    width: 20em;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    font-weight: normal;
}

.tooltip-content::before { /* Pointe */
    position: absolute;
    content: '';
    top: 100%;
    left: 0.5em;
    border-top: 0.5em solid white;
    border-right: 0.5em solid transparent;
    border-left: 0.5em solid transparent;
}

.tooltip-content::after {
    position: absolute;
    content: '';
    top: 100%;
    width: 100%;
    height: 10px;
    left: 0;
}

.tooltip-info {
    display: inline-block;
    cursor: default;
    font-size: 0.812em;
    line-height: 0;
    font-weight: normal;
    color: rgb(71, 71, 71);
    transition: color 0.2s ease;
}

.tooltip:hover .tooltip-info {
    color: rgb(100, 100, 100);
}


/* Comparative table */

.table-container {
    width: 100%;
    font-size: 0.9em;
    color: rgb(59, 59, 59);
    --borderRadius: 10px;
}

.table-container table {
    border-spacing: 0;
    width: 100%;
}

.table-container table thead tr:first-child th:not(:first-child) {
    border-bottom: 2px solid rgb(245, 245, 245);
}

.table-container table thead tr th:first-child {
    display: none;
}

.table-container table tr {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.table-container table td, .table-container table th {
    background-color: white;
}

.table-container thead th {
    flex: 1 1 0;
    padding: 20px 15px;
}

.table-container tbody th {
    width: 100%;
    text-align: left;
    font-weight: 600;
    background-color: rgb(245, 245, 245);
    padding: 6px 15px;
}

.table-container tbody td {
    padding: 0;
    width: 33.333%;
    box-sizing: border-box;
}

.table-container .cell-container {
    padding: 12px;
}

.table-container .cell-content {
    background: rgb(248, 248, 248);
    border-radius: 6px;
    text-align: center;
    padding: 6px;
}

.table-container .cell-content.yes {
    background: rgb(240, 255, 240);
}

.table-container .cell-content.no {
    background: rgb(255, 244, 244);
}

.table-container#comparative-table {
    overflow: hidden;
    border-radius: var(--borderRadius);
    border: 2px solid rgb(245, 245, 245);
}

@media (min-width: 800px) {
    .table-container#comparative-table {
        overflow: visible;
        border-radius: 0;
        border: none;
    }

    .table-container table tr {
        display: table-row;
    }

    .table-container tbody th {
        background: white;
        width: 25%;
    }

    .table-container table thead tr th:first-child {
        display: table-cell;
        background: transparent;
        border: none
    }

    .table-container tbody td {
        width: 25%;
    }

    .table-container table thead tr:first-child th:not(:first-child) {
        border-bottom: none;
    }

    /* Grid */
    .table-container table tr > * {
        border-left: 2px solid rgb(245, 245, 245);
        border-top: 2px solid rgb(245, 245, 245);
    }
    .table-container table tr td:last-child, .table-container table thead tr th:last-child {
        border-right: 2px solid rgb(245, 245, 245);
    }
    .table-container table tbody tr:last-of-type > * {
        border-bottom: 2px solid rgb(245, 245, 245);
    }

    /* Select corner cells */
    .table-container table tbody tr:first-of-type th, .table-container table thead tr:first-of-type th:nth-of-type(2) {
        border-top-left-radius: var(--borderRadius);
    }
    .table-container table thead tr:first-of-type th:last-of-type {
        border-top-right-radius: var(--borderRadius);
    }
    .table-container table tbody tr:last-of-type th {
        border-bottom-left-radius: var(--borderRadius);
    }
    .table-container table tbody tr:last-of-type td:last-of-type {
        border-bottom-right-radius: var(--borderRadius);
    }
}

.material-symbols-outlined.circled {
    border-radius: 50%;
    vertical-align: middle;
    color: white;
}

.yes .material-symbols-outlined.circled {
    background-color: green;
}

.no .material-symbols-outlined.circled {
    background-color: red;
}

/*.comparative-table td, .comparative-table th {
    text-align: center;
    border-width: 0 2px 0 2px;
    border-style: solid;
    border-color: white;
}

.comparative-table table {
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
}

.comparative-table thead th {
    padding: 1em;
    font-size: 1.1em;
}

td {
    font-weight: bold;
}

.comparative-table tbody td, .comparative-table tbody th {
    padding: 0.6em;
}

thead th:first-child {
    background-color: rgb(218, 218, 218);
}
tbody tr:nth-child(odd) th {
    background-color: rgb(236, 236, 236);
}
tbody tr:nth-child(even) th {
    background-color: rgb(245, 245, 245);
}

thead th:nth-child(2) {
    background-color: rgb(255, 255, 128);
}
tbody tr:nth-child(odd) td:nth-child(2) {
    background-color: rgb(255, 255, 224);
}
tbody tr:nth-child(even) td:nth-child(2) {
    background-color: rgb(255, 255, 238);
}

thead th:nth-child(3) {
    background-color: rgb(255, 224, 128);
}
tbody tr:nth-child(odd) td:nth-child(3) {
    background-color: rgb(255, 247, 224);
}
tbody tr:nth-child(even) td:nth-child(3) {
    background-color: rgb(255, 251, 238);
}

thead th:nth-child(4) {
    background-color: rgb(255, 128, 128);
}
tbody tr:nth-child(odd) td:nth-child(4) {
    background-color: rgb(255, 224, 224);
}
tbody tr:nth-child(even) td:nth-child(4) {
    background-color: rgb(255, 238, 238);
}*/


/* Button hover */

.button-hover-arrow {
    padding: 10px 20px;
    display: inline-block;
    background-color: rgb(36, 175, 255);
    color: white;
    font-weight: 500;
    position: relative;
    transition: padding 0.3s ease, background 0.3s ease;
    border-radius: 3px;
}

.button-hover-arrow:hover {
    background-color: rgb(56, 111, 143);
    padding-right: calc(24px + 1em);
}

.button-hover-arrow::after {
    content: '';
    position: absolute;
    display: inline-block;
    top: calc(50% - 0.5em);
    right: 30px;
    opacity: 0;
    margin-left: 8px;
    width: 1em;
    height: 1em;
    background: url("data:image/svg+xml,%3Csvg fill='transparent' height='800px' width='800px' version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 10 4'%3E%3Cpath stroke='white' stroke-width='1' stroke-linejoin='round' stroke-linecap='round' d='m0 0 4 4 4 -4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    transform: rotate(-90deg);
    transition: opacity 0.3s ease, right 0.3s ease;
}

.button-hover-arrow:hover::after {
    right: 16px;
    opacity: 1;
}

@media (max-width: 800px) {
    .button-container {
        margin-top: 2em;
        text-align: center;
    }
}

@media (min-width: 800px) {
    .button-container {
        margin-top: auto;
        text-align: center;
    }
}

.sponsor-logos {
    margin: 2rem 0;
}

.sponsor-header {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.logo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.logo-container img {
    max-height: 70px;
    max-width: 150px;
    object-fit: contain;
}


#sponsors h2 {
    text-align: center;
    font-size: 1.6em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid black;
}


