body {
    background-color: #fff;
    line-height: 1.6;
    font-size: 18px;
    color: #565454;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
}
.container {
    width: 100%;
    display: flex;
    margin: 0;
    height: 100%;
    flex-direction: row;
}
.panel {
    flex: 1;
    padding: 20px;
    min-height:95%;
    overflow-y: auto;
}

.left {
    text-align: center;
    background-color:  #f7f7f7;
}
.greeting {
    width: 100%;
}
.right {
    flex-grow: 2;
    
}
h1.hilsen{
    font-size: 80px;
    margin: 0;
}
p.hilsen{
    font: size 30px;
    margin: 10px 0;
}
#portrett {
    width: 30%;
    border-radius: 50%;
    margin-top: 20px;
}
#about.active {
    height: 100%;
    display: grid; 
    place-items: center;
}

#about ul {
    list-style: none;
    margin:0;
    padding: 0;
}
#about ul li {
    display: inline-block;
    margin-left:0;
    margin-right: 10px;
}



@media screen and (max-width: 800px) {
    .container {
        width: 100%;
        flex-direction: column;
        display: block;
        margin: 0 auto;
    }
    .panel {
        min-height: auto;
    }
    #about.active {
        height: auto;
        display: block;
    }
    h1 {
        font-size:1.6em;
    }
}


nav ul {
    list-style: none;
}
.content {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
    margin-bottom: 0;
}
h2 {
    line-height: 1.2;
    margin-top: .5em;
}
a {
    font-weight:500;
    color: black;
    text-decoration:dotted underline;
}
a:hover {
    color: #565656;
}
a:visited {
    color: #565656;
}
.paper {
    margin-bottom: 1rem;
}
.paper span {
    display: block;
    font-weight: bold;
}
.paper cite {
    font-style: italic;
}
.paper a {
    margin-right: 10px;
}
.illustration {
    width: 80%;
    margin: 0 auto 50px auto;
    display: block;    
}
ul {
    list-style-type: circle;
    padding-left: 20px;
}
ul li {
    margin-bottom: 10px;
}


.tab {
    padding: 10px;
    text-align: center;
    cursor: pointer;
}

.tab:not(.active):hover {
    font-weight: bold;
}
.tab.active {
    font-weight: bold;
}

    
.tab-content {
    display: none;
    padding: 20px;
}
.tab-content.active {
    display: block;
}


.teaching-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.teaching-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: block; /* Default to hidden; shown dynamically by filter */
}
.teaching-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}
.teaching-card p {
    margin: 5px 0;
    font-size: 16px;
    color: #565454;
}
.teaching-card span {
    font-weight: bold;
    color: #333;
}

.filter-container {
    margin-bottom: 20px;
    text-align: center;
}
.filter-button {
    padding: 10px 15px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f4f1ea;
    cursor: pointer;
    font-size: 16px;
}
.filter-button.active {
    background-color: #ddd;
    font-weight: bold;
}
.filter-button:hover {
    background-color: #e0e0e0;
}

.papers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.paper-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}
.paper-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}
.paper-card p {
    margin: 5px 0;
    font-size: 16px;
    color: #565454;
    }
.paper-card .links a {
    text-decoration: none;
    font-weight: bold;
}
.paper-card a:hover {
    text-decoration: underline;
}
.paper-card .links {
    margin-top: 10px;
}
.paper-card .links a {
    margin-right: 10px;
}

