@charset "utf-8";

:root {
    --block-background: hsl(0,0%,94%);
    --output-background: hsl(0,0%,98%);
    --small: 14px;
    --normal: 19px;
    --text-color: hsv(0,0%,20%);
}

html {
    font-family: Helvetica, Arial, sans-serif;
    font-size: var(--normal);
    color: var(--text-color);
}

body {
    counter-reset: eqnum;
}

header {
    text-align: right;
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

header .site-name {
    width: 35%;
    display: inline-block;
    text-align: left;
    font-size: 18px;
    font-family: "Lucida Console", Monaco, monospace;
    padding-top: 10px;
}

header .site-name a {
    color: #a6a2a0;
    text-decoration: none;
}

nav {
    width: 64%;
    display: inline-block;
}

nav ul {
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

nav li {
    display: inline-block;
}

nav li a {
    color: #004de6;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    padding: 10px 2px 5px;
    margin: 0 7px;
    border-bottom: 2px solid #4c9cf1;
    transition: color 0.3s ease;
}

nav li a:hover {
    color: black;
    border-bottom: 2px solid black;
}

.content {
    position: relative;
    padding-left: 12.5%;
    padding-right: 12.5%;
    line-height: 1.35em;
}

@media (min-width: 940px) {
    .content {
        width: 980px;
        margin-left: auto;
        margin-right: auto;
    }
}



h1 {
    font-size: 52px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 2.2em;
    padding-top: 3.8em;
    border-bottom: 3px double lightgrey;
    margin-top: 0em;
    margin-bottom: 0em;
    line-height: 1.2em;

    background: url('/assets/bocconi.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: black;
    text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.8);
    
    z-index: 1;
}

h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.35); /* Adjust opacity here */
    z-index: -1;
}



h2 {
    font-size: 22px;
    line-height: 1.2;
    text-align: left;
    padding-bottom: 0.3em;
    border-bottom: 1px solid lightgrey;
    margin-top: 2em;
    margin-bottom: 1em;
}

#centered-heading {
    margin-top: 1em;
    font-size: 32px;
    text-align: center;
}

h3 {
    font-size: 20px;
    text-align: left;
    text-decoration: underline;
}

h1 a, h2 a, h3 a {
    color: inherit;
    text-decoration: none;
}

a.with-underscore {
    text-decoration: underline;
}



h1 a:hover, h2 a:hover, h3 a:hover {
    text-decoration: none;
}

a.with-underscore:hover {
    text-decoration: underline;
}

ul {
    padding-left: 1.5em;
}

ul li {
    margin: 0.6rem 0;
}

ul li p {
    margin: 10px 0;
}

a {
    color: #004de6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

blockquote {
    background: var(--block-background);
    border-left: 7px solid #a8a8a8;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    font-style: italic;
}

blockquote p {
    display: inline;
}

table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    text-align: center;
    margin-bottom: 1.5em;
}

th, td {
    font-size: var(--small);
    padding: 10px;
    border: 1px solid lightgray;
}

.page-footer {
    font-size: 80%;
    font-family: Arial, serif;
    color: #f3edeb;
    text-align: center;
    margin-top: 6em;
    border-top: 1px solid lightgrey;
    padding-top: 2em;
    margin-bottom: 4em;
}

.page-footer a {
    text-decoration: none;
    /* color: #a6a2a0; */
    color: inherit;
    text-decoration: underline;
}

.event-block {
    display: inline-block;
    font-weight: bold;
    background: #c2dfff;
    /* color: #7a4a00; */
    border-radius: 6px;
    padding: 2px 10px;
    margin: 2px 0;
    font-size: 1em;
    letter-spacing: 0.01em;
}

.sponsor-logo {
    max-width: 100%;
    height: auto; 
    display: block; 
    /* margin-left: auto; 
    margin-right: auto; */
}

@media (max-width: 520px) {
    .content {
        padding-left: 6%;
        padding-right: 6%;
    }
    h1 {
        font-size: 28px;
    }
    
    #centered-heading {
        font-size: 20px;
    }

    .sponsor-logo {
        max-width: 200px;
    }
}