:root {
    --main-color: #276BA9;
    --banner-bg: #4785BE;
    --banner-shadow: rgba(71, 133, 190, .4);
    --alt-color: white;
    --main-bg: white;
    --banner-label-bg: rgba(255,255,255,0.90);
    --banner-font-family: 'Open Sans';
    --banner-font-weight: 600;
    --main-font-family: 'Open Sans';
    --main-font-weight: 500;
    --body-font-size: 18pt;
    --course-line-font-weight:600: 
}

body {
    display: grid;
    grid-template-rows: 6em 10em auto 2em 15em;
    grid-template-columns: 1fr 8fr 1fr;
    grid-template-areas: 
    "header header header"
    "banner banner banner"
    ". main ."
    ". . ."
    "footer footer footer";
    min-height: 100vh;
    font-size: var(--body-font-size);
    font-family: var(--main-font-family);
    font-weight: var(--main-font-weight);
    margin: 0;
}

header {
    grid-area: header;
    display: flex;
    text-align: center;
    width:100%;
    z-index:999;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    font-variant: small-caps;
    background: var(--banner-bg);
    font-weight: var(--banner-font-weight);
    color: var(--main-color);
}

header h1 {
    font-weight: normal;
    font-size: 1.8em;
    line-height: 1.2em;
    color: var(--main-bg);
    text-decoration: none;
}

nav {
    width: 100%;
    padding: 1em;
    text-align: right;
    background-color: var(--banner-bg);
    display:none;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    background-color: var(--banner-bg);
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

nav li {
    margin-left: 0.5em;
    margin-right: 0.5em;
    color: var(--alt-color);
}


nav > ul > li {
    font-variant: small-caps;
}

nav > ul > li > ul > li {
    font-variant: normal;
    font-size: 80%;
}

nav li a {
    color: var(--banner-font-family);
    text-decoration: none;
}

.nav-toggle {
    display:none;
}

.nav-toggle:checked ~ nav {
    display: block;
}

.nav-toggle:checked ~ div {
    display: none;
}

.nav-toggle-label {
    margin-right: 1em;
    margin-left: auto;
    display: flex;
    height: 100%;
    align-items: center;
    align-self: flex-end;
}

.nav-toggle:not(:checked) ~ .nav-toggle-label {
    margin-left: auto;
}

.nav-toggle-label span,
.nav-toggle-label span:before,
.nav-toggle-label span:after {
    display: block;
    background: var(--main-bg);;
    height: 2px;
    width: 2em;
    position: relative;
}

.nav-toggle-label span:before,
.nav-toggle-label span:after {
   content: '';
   position: absolute;
}

.nav-toggle-label span:before {
    bottom: 7px;
}

.nav-toggle-label span:after {
    top: 7px;
}

#ftt-logo { 
    margin: 1em;
    max-height: 3.5em;
    max-width: 40vw;
    height: auto;
    width: auto;
}

#bme-logo { 
    margin: 1em;
    max-width: 20vw;
    height: auto;
    width: auto;
}


#banner {
    grid-area: banner;
    color: var(--main-color);
    background-color:var(--main-bg);
    /* background image url is applyied by direct style */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;  
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: inset 0 0 0 1000px var(--banner-shadow);
}

#bannertext {
    margin: 2em;
    padding-top: 0.7em;
    padding-bottom: 0.7em;
    padding-left: 0.9em;
    padding-right: 1em;

    font-variant: small-caps;
    font-size: 120%;
    font-weight: bolder;
    background-color: var(--banner-label-bg);
}

main {
    grid-area: main;
    padding-top: 2.5em;
    background-color: var(--main-bg);
}

.subject-head {
    position: relative;
    top: 0.2em;
    left: -1ch;
    border-radius: 0.2em;
    padding: 0.5em;
    color: var(--alt-color);
    background-color: var(--banner-bg);
    max-width: 80ch;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.subject-link {
/*    display: none; */
    font-size: 70%;
    border-radius: 0.2em;
    padding: 0.2rem;
    margin-left: 1em;
    text-align: center;
    background-color: var(--banner-label-bg);
    color: var(--main-color);   
}

.subject-link a {
    text-decoration: none;
}

.subject-body {
    border: 1px solid;
    border-color: var(--banner-bg);
    margin-bottom: 3rem;
}

.course-line {
    padding:1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.course-line-item {
    font-weight:var(--course-line-font-weight);
    text-align: center;
    display: table-cell;
    vertical-align: middle;
}

.course-timeslot {
    font-weight: bolder;
    flex-basis: 30%;
}

.course-lang {
    font-variant: small-caps;
    max-width: 5ch;
    flex-basis: 10%;
}

.course-location {
    font-variant: small-caps;
    flex-basis: 10%;
}

.course-lecturers {
    font-size: 80%;
    flex-basis: 30%;
}

.course-lecturers > a {
    display:inline;
    text-decoration: none;
} 

.course-code {
    font-size: 60%;
    font-variant: small-caps;
    flex-basis: 20%;
}

#people-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-around;
}

.person-card {
    margin: 0.5rem;
    width: 24ch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.person-portrait {
    margin-bottom: 1rem;
    margin-left:auto;
    margin-right: auto;
    display: block;
    max-width: 22ch;
}

.person-name {
    max-width: 22ch;
    text-align: center;
}

.person-name a {
    text-decoration: none;
    color: var(--main-color);
}

.person-title {
    max-width: 24ch;
    text-align: center;
    font-size: 80%;
}

.person-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: stretch;
    gap: 1rem;
}

.person-detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

footer {
    grid-area: footer;
    background-color: var(--banner-bg);
    padding: 2rem;
    display: flex;
    text-align: center;
    flex-direction: row;
    align-items: center;
    color: var(--alt-color);
    justify-content: space-around;
    font-size: 60%;
}