@media screen and (min-width: 1023px) {
    div.right {
        display: block;
    }

    div.left {
        display: flex;
        justify-content: flex-end;
        height: auto;
    }
}



@media screen and (max-width: 800px) {
    .entry .entry_content {
        margin-right: 40px;
    }

    #toggle:checked ~ .entry .entry_content {
        margin: 20px 0 0 40px;
    }
}



@media screen and (max-width: 1024px) {
    body.media {
        padding: 10px;
    }

    div.right {
        padding: 0 0 0 1%;
        visibility: hidden;
        position: absolute;
    }

    .entry_content div.left {
        padding: 0 5% 40px 5%;
        /*border-right: #ccc 1px solid;*/
    }

    div.left, div.right {
        flex-basis: 100%;
        margin: 0 auto;
    }

    .left.topic_left {
        max-width: calc(500px + 10%);
    }

    /*
    .entry .entry_content {
        margin: 0 40px 0 0;
        border-left:none;
        border-right: 1px solid #ccc;
    }
    */

    #toggle + label {
        display: flex !important;
        border-left: 1px solid #ccc;
    }

    #toggle:checked + label {
        border-right: 1px solid #ccc;
    }

    /*
    #toggle:checked ~ .entry .entry_content {
        margin: 0 0 0 40px;
        border-left: 1px solid #ccc;
        border-right: none;
    }
    */

    #toggle:checked ~ .entry .left {
        visibility: hidden;
        /*display:none;*/
    }
    
    #toggle:checked ~ .entry .right {
        visibility: visible;
        /*display: block;*/
        border-left: none;
    }
}



/*
.entry {
    margin-bottom: 50px;
}
*/

.entry .entry_title {
    font-size:25px;
    text-align: center;
}

.entry .entry_date {
    text-align: center;
    font-size: 15px;
    color: #aaa;
}

.entry .entry_content {
    display:flex;
    justify-content: space-around;
    line-height: 30px;
    margin-top: 20px;
}

/*
.entry p {
    margin: 0 0 20px 0;
}

.entry p:last-child {
    margin: 0;
}
*/

.entry p {
    margin: 0;
}



.quote_container,
.topic_quote {
    display:block;
    background-color: white;
    transition: filter 1s ease-in-out;
    border-radius: 5px;
    padding: 20px 10% 20px 10%;
}


/*
.left a {
    
}
*/

.left a.topic_tile {
    display: inline-block;
    border-radius: 3px;
    vertical-align: top;
}

.left a.source {
    display: inline-block;
    /*padding: 0 5px 0 5px;*/
    font-size: 1em;
    vertical-align: top;
    line-height: 22px;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;

    width: 22px;

    font-family: microns;
    font-style: normal;
    font-weight: normal;
    speak: none;
    text-decoration: none;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    user-select: none;
}

.left a.source:before {
    content: "\e713";
    width: 22px;
    text-align: center;
    display: inline-block;
}

.left a.topic_tile:hover .topic_title {
    background-image: linear-gradient(
        rgba(0, 0, 0, 0.3), 
        rgba(0, 0, 0, 0.3)
    );
}

.left p {
    text-align: left;
}

.left, .right {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 50%;
    vertical-align: top;
    max-width: calc(610px + 10%);
}

.left {
    height: fit-content;
    position: relative;
    font-family: Helvetica, Arial, sans-serif;
    margin-left:auto;
    padding: 40px 5% 20px 5%;
}

.right {
    border-left: #ccc 1px solid;
    margin-right: auto;
}


.right a:hover .quote_content {
    text-decoration: underline;
}

.quote_date  {
    font-size: 12px;
    color: #aaa;
    text-align: left;
    font-family: Raleway;
}

.quote_content {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;

    padding-left: 5%;
    font-style: italic;
    color: #555;
    line-height: 30px;
    border-radius: 3px;
    text-align: left;

    border-left-width: 5px;
    border-left-style: solid;
}

/*
.quote_content p {
    color: #555;
}
*/

.quote_source {
    text-align: right;
    font-size: 15px;
    color: #aaa;
    font-family: Raleway;
}


.left .entry_author {
    text-align: right;
    font-size: 15px;
    color: #aaa;
}

.left .entry_author:before {
    content: "von ";
}

#toggle {
    position: fixed;
    right: 0;
    top: 0;
    visibility: hidden;
    appearance:none;
    cursor:pointer;
    display:block;
}

#toggle + label {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 49px;
    text-align: center;
    align-items : center;
    cursor: pointer;
    background-color: white;
    z-index: 99;
}

#toggle + label:hover {
    filter: brightness(0.9);
}

/* dont show hover effect on touch devices */
@media (hover: none) {
    #toggle + label:hover {
        filter:none;
    }
}

#toggle + label span {
    width:49px;
    user-select: none;
}

#toggle + label span:after {
    content: "\e705";  /*">"*/ 
}

#toggle:checked + label {
    right: auto;
    left: 0;
}

#toggle:checked + label span:after {
    content: "\e704"; /*"<"*/
}


.topic_tile {
    display: block;
    position: relative;
    width:100%;
    max-width: 500px;
    height:300px;
    border-radius: 5px;

    font-family: Helvetica, Arial, sans-serif;

    border-right: 5px solid transparent;
}

.topic_tile .topic_title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: white;
    text-shadow: -1px 0 #333, 0 1px #333, 1px 0 #333, 0 -1px #333;
    font-weight: bold;
    font-size: 50px;
    height: 300px;
    line-height: 50px;
    word-break: break-word;
    overflow: hidden;
}

.topic_tile .topic_date,
.topic_tile .topic_author {
    color: white;
    text-shadow: -1px 0 #888, 0 1px #888, 1px 0 #888, 0 -1px #888;
    height:50px;
    line-height: 50px;
    font-size: 20px;
}

.topic_info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content:space-between;

    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
}

/*
.topic_tile .topic_date {
    float:left;
    margin-left:20px
}
*/

.topic_tile .topic_author {
    white-space: nowrap;
    margin-left: 20px;
    overflow: hidden;
    word-break: break-all;
    text-overflow: ellipsis;
}

.topic_quote {
    max-height: 340px;
    overflow: hidden;
}

.topic_quote .quote_content {
    max-height: 240px;
    overflow-x: auto;
    /*
    display: flex;
    flex-direction: column;
    justify-content: center;
    */
}

.center_text_div {
    width: 100%;
    text-align: center;
    margin-top:20px;
}

#left_content {
    height: fit-content;
}

#left_content * {
    transition: opacity 1s ease-in-out;
}


#info_link {
    margin: 50px 0 20px 0;
    display: block;
    color: #ccc;
    text-align: center;
    font-size: 12px;
}

#info_link:hover {
    text-decoration: underline;
    filter:brightness(0.8);
}

.entry_content img {
    max-width: 100%;
}

.unread_divider {
    width: 100%; 
    height: 20px; 
    border-bottom: 1px solid #ccc; 
    text-align: center;
    margin: 10px 0 30px 0;
}

.unread_divider span {
    font-size: 15px; 
    height: 40px;
    line-height: 40px;
    background-color: white; 
    padding: 0 10px;
    user-select: none;
    color: #ccc;
}

.paragraph_read {
    opacity: 0.3;
}

#mail_and_search {
    display: flex;
    font-size: 24px;
    border: none;
    width: fit-content;
    margin: 0 auto;
    border-radius: 3px;
    cursor: pointer;
}

#mail,
#search_button + label {
    width: 40px;
    height: 40px;
    line-height:40px;
    text-align: center;
}

#mail,
#search_button + label {
    display: inline-block;
    background-color: white;
}

#mail:hover,
#search_button + label:hover {
    filter: brightness(0.9);
}


#search_button {
    position: absolute;
    right: 0;
    top: 0;
    visibility: hidden;
    appearance:none;
    cursor:pointer;
    display:block;
    margin:0;
}

#search_button + label {
    position: relative;
    right: 0;
    top: 0px;
    text-align: center;
    align-items : center;
    cursor: pointer;
}


#search_button + label span {
    user-select: none;
}


#search_button:checked ~ #search_text {
    display: inline-block;
}

#search_button:checked + label {
    border-bottom: 1px solid #ccc;
}

#search_text {
    display: none;
    height:40px;
    width:200px;
    border:0;
    border-bottom: 1px solid #ccc;
    padding:0;
    margin:0;
    font-size: 16px;
}

#search_form {
    display:flex;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

#overlay-bg {
    background-color: white;
    opacity: 0.9;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}