:root {
    --h1-size: 28px;
    --h2-size: 22px;
    --vertical-margin: 22px;
    --lightmode-background: #f1f1f1;
    --lightmode-text: #131212;
    --lightmode-border: 1px dashed var(--lightmode-text);
}

html {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: "Noto Sans", sans-serif;
    background: var(--lightmode-background);
    color: var(--lightmode-text);
}

* {
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    padding-top: 10px;
    padding-right: 15px;
    flex-direction: row;
    justify-content: space-between;
    height: 48px;
    width: 100vw;
    border-bottom: var(--lightmode-border);
}

header h1 a {
    font-size: var(--h1-size);
    margin-left: 15px;
    text-decoration: none;
    color: var(--lightmode-text);
}

main {
    padding-left: 15px;
}

.vertical-content-block {
    margin-top: var(--vertical-margin);
    margin-bottom: var(--vertical-margin);
}

.thingbox:first-of-type {
    margin-top: 10px;
}

#keynotes {
    margin-top: 27px;
}

.keynote, .thingbox {
    max-width: 900px;
}

.keynote dt {
    font-size: var(--h2-size);
    margin-bottom: 2px;
}

h2 {
    font-weight: 400;
    font-size: var(--h2-size);
    margin-bottom: 2px;
}

img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.places {
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    margin-bottom: 20px;
    margin-top: 3px;
    margin-left: 5px;
}

.placebox {
    height: 40px;
    width: 40px;
    padding: 2px;
    margin-top: 5px;
    margin-right: 10px;
}

.placebox img {
    border-radius: 4px;
}

.roles {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.rolebox {
    height: 520px;
    width: 350px;
    border: var(--lightmode-border);
    border-radius: 10px;
    display: grid;
    position: relative;
    grid-template-rows: 270px 25px 25px 200px;
    padding: 10px 16px;
    margin: 5px 7px 0px 0px;
    border-radius: 6px;
}

.role-imagebox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.role-imagebox img {
    object-fit: scale-down;
    max-height: 250px;
    max-width: 250px;
    width: auto;
    height: auto;
}

.thingbox {
    display: grid;
    grid-template-rows: auto 30px 25px auto;
    padding: 10px;
    border: var(--lightmode-border);
    border-radius: 2px;
}

.thingbox h3 {
    margin-top: 10px;
}

.thingbox h4 {
    margin-top: 4px;
}

.thingbox p {
    margin-top: 4px;
    margin-bottom: 5px;
}

footer {
    display: flex;
    font-size: 12px;
    width: 100vw;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    border-top: var(--lightmode-border);
}

@media (max-width: 450px){

    :root {
    --h1-size: 24px;
    --h2-size: 20px;
    --vertical-margin: 22px;
    }

    main {
        padding-left: 8px;
        padding-right: 10px;
    }

    h1 {
        font-size: 28px;
    }

    header {
        align-content: center;
        justify-content: center;
        margin-left: -15px;
    }

    h2, .keynote dt {
        font-size: 20px;
    }

}