@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400&display=swap');

body {
    margin: 0;
    background-color: #fbfaf7;
}
/*Header*/
.name {
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    font-size: 25px;
    font-weight: bold;
    color: #0b0b0b;
    margin: 8px 0 0 20px;
}
.hamburger-icon {
    float: left;
    margin: 15px;
    cursor: pointer;
}

.hamburger-icon div {
    width: 25px;
    height: 3px;
    background-color: #0b0b0b;
    margin-bottom: 3px;
}

navigation {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    background-color: #f0d942;
}
.menu {
    list-style-type: none;
    width: 100%;
    margin: 0;
    padding-left: 10px;
    background-color: #f0d942;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    color: white;
    overflow: hidden;
    max-height: 250px;
    transition: max-height 0.3s;
    overflow-x: auto;
}

.menu li {
    white-space: nowrap;
}

.menu.closed {
    max-height: 0;
}

navigation ul a {
    display: inline-block;
    padding: 15px 10px;
    color: #696969;
    text-decoration: none;
    font-size: 14px;
}

navigation ul a:hover {
    color: #0b0b0b;
}

navigation ul .icon i {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    text-transform: none;
    font-size: 28px;
    font-weight: bold;
    color: #0b0b0b;
    margin-top: 1px;
}

@media screen and (min-width: 769px) {
    navigation {
        display: flex;
    }

    .hamburger-icon {
        display: none;
    }

    .menu {
        display: flex;
        flex-wrap: nowrap;
    }

    .menu.closed {
        max-height: unset;
    }
}

@media screen and (min-width: 992px) {
    .name {
        margin-left: 70px;
    }
    navigation ul {
        padding-left: 70px;
        flex-wrap: nowrap;
    }

    navigation ul a {
        padding: 15px;
        font-size: 17px;
    }

    navigation ul .name {
        width: unset;
    }
}

/*Content*/
h1 {
    font-size: 25px;
    color: #0b0b0b;
    font-weight: bold;
    text-transform: uppercase;
}

.sidebar {
    margin-top: 48px;
    width: 100%;
}

.sidebar .portrait {
    width: 100%;
    filter: grayscale(0.3);
    height: fit-content;
    height: 300px;
    object-fit: cover;
    object-position: 0 33%;
}

.sidebar .portrait[src="palmyra.jpg"] {
    object-position: 0 66%;
}

.sidebar .portrait[src="igazsag_pillanatai_cover.jpeg"],
.sidebar .portrait[src="metafizika_cover.jpeg"],
.sidebar .portrait[src="tozser-janos-jatekok-es-nyelvjatekok_cover.jpg"] {
    max-height: 33vh;
    object-fit: contain;
}

.page-works-in-hungarian .sidebar {
    display: flex;
    align-items: flex-start;
}

.page-works-in-hungarian .sidebar .portrait{
    flex-shrink: 1;
    min-width: 0;
    height: auto;
}

@media screen and (min-width: 769px) {
    .page-works-in-hungarian .sidebar {
        display: block;
    }

    .page-works-in-hungarian .sidebar .portrait {
        max-height: 33vh;
    }
}

.content {
    color: #696969;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    padding: 30px 20px 80px 20px;
}
.content a {
    color: #0b0b0b;
    text-decoration-color: #f0d942;
    text-decoration-thickness: 3px;
    cursor: pointer;
}
.content a:hover {
    color: #818181;
}

.content p {
    margin-bottom: 40px;
}

.content p.intro {
    font-size: 32px;
    font-weight: bold;
    color: #0b0b0b;
    margin-bottom: 0;
}

.content p.intro-sub {
    font-size: 22px;
    font-weight: bold;
    color: #0b0b0b;
    margin-top: 0;
}

.content img.cover {
    float: right;
    max-width: 50%;
    max-height: 400px;
    margin-left: 15px;
}

.content li {
    margin-bottom: 6px;
}

.publication li {
    margin-bottom: 10px;
}

.publication li a{
    line-height: 1.7;
}

@media screen and (min-width: 769px) {
    article {
        display: flex;
    }

    .sidebar {
        position: fixed;
        width: calc(100%/4);
        height: 100vh;
        background-color: #e8dec9;
        overflow: hidden;
    }

    .sidebar .portrait {
        height: fit-content;
        object-fit: unset;
        object-position: unset;
    }

    .content {
        position: absolute;
        right: 0;
        box-sizing: border-box;
        padding: 80px 160px 0 100px;
        width: calc((100%/4) * 3 );
        font-size: 18px;
    }
}

footer {

}