body {
    background: #e3dfdf;
    font-family: Arial, sans-serif;
    margin: 0;
}

#header-wrapper {
    width: 100%;
    background-color: #3c3838;
    padding-top: 15px;
    box-shadow: 0 2px 2px rgba(0,0,0,.3);
}


.max-content {
    width: 100%;
    max-width: 984px;
    margin: 0 auto;
}

info-panel {
    display: block;
    width: 100%;
    background-color: #a0a0a0;    
}

.info-wrapper {
    display: inline-flex;
    width: 100%;
    gap: 10px;
    font-size: 16px;
    line-height: 1rem;
}

.info-date {
    padding-left: 0.5rem;
}

.info-meniny {
    flex-grow: 1;
    padding-right: 0.5rem;
    text-align: right;
}

.meniny-name-wrapper {
    display: inline-flex;
}

.menu-links {
    display: flex;
}

.menu-links ul {
    display: flex;
    flex-grow: 1;
    margin: 0px;
    background: #d01737;
    padding: 0px;
    flex-wrap: wrap;
    list-style: none;
}


.menu-links li {
    flex-grow: 1;
    padding: 0px 10px 0px 10px;
    margin: 0px;
    text-align: center;
}

.menu-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    line-height: 32px;
}

.menu-links li a:hover {
    text-decoration: none;
    font-weight: bold;
}

.td-link-selected {
    background-color: #eeedeb;
    padding: 0.2rem 1rem;
    border-radius: .125rem;
}

.td-link-selected {
    color: #000 !important;
}

logo-search-bar {
    background-color: #e3dfdf;
    display: flex;
    padding: 0 5px;

}

logo-and-icons {
    flex-grow: 1;
}

logo-and-icons>div {
    display: inline-flex;
    width: 100%;

}

#logo {
    flex-grow: 1;
}

#logo a:link,
#logo a:visited,
#logo a:active {
    color: inherit;
    text-decoration: none;
}

.dnes {
    color: #d01737;
}

.logo-title {
    font-size: 30px;
}

.logo-desc {
    font-size: 20px;
}


search-bar {
    /* background: #fd9334; */
    grid-area: search-bar;
}

.search {
    /* height: 2rem;
    width: 60%;
    margin-left: auto;
    margin-top: 6px;
    position: relative;
    top: 1.0rem; */
}


search-bar form {
    display: inline-flex;
    height: 100%;
    float: right;
}

.search-form {
    height: 100%;
    width: 100%;
    float: left;
    box-sizing: border-box;
}

search-bar .search .input input[type="text"] {
    outline: none;
    padding: 0 0 0 10px;
    border: 0;
    font-size: 1.2rem;
    height: 2rem;
    line-height: 2rem;
    color: #111;
    background: #fff;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

search-bar .search .button {
    display: block;
    width: 40px;
    height: 2rem;
    position: absolute;
    right: 0;
}

#search-button svg {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#search-button:hover {
    cursor: pointer;
}

#searchIcon {
    display: none;
    right: 21px;
    width: 40px;
    height: 2rem;
    z-index: 10;
}

#searchIcon svg {
    stroke: #1d1c1c !important;
}

#searchIcon:hover {
    cursor: pointer;

}

#searchIcon.search-showed {
    background-color: #3c3838;
}


#navButton {
    display: none;
}

#navButton.navbar-showed {
    background-color: #3c3838;
}

.center-vertical {
    position: relative;
}

/* #main */
main {
    margin-top: 1rem;
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    grid-area: main;
    display: grid;
    grid-gap: 1em;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "theme-news theme-news right-sidebar" "newspapers newspapers right-sidebar";
    grid-template-rows: minmax(250px, auto);
}


theme-news {
    grid-area: theme-news;
    height: auto;
}


newspapers {
    grid-area: newspapers;
    width: 100%;
    margin: 0px auto;
    display: grid;
    column-gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

newspapers widget {
    display: block;
}

right-sidebar {
    grid-area: right-sidebar;
}

.poc-widget {
    padding: 3px 2px;
    box-sizing: border-box;
}

.widget {
    margin: 0px;
    border: 1px solid #d01737;
    border-radius: 0.25rem;
    /* display: grid;
    grid-template-rows: 30px auto; */
    box-shadow: 0 2px 2px rgba(0,0,0,.3);
}

.widget>a,
a:visited,
a:link {
    text-decoration: none;
    color: inherit;
}

.widget-new {
    background-color: #d01737;
}

.widget-new>.color {
    background-color: #d01737;
    color: #ffffff;
}


.content-newest {
    /* border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem; */
}

.content-newest .widget-content-header>h3 {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    font-size: 1rem;
}

.widget-content-header .color {
    background-color: #d01737;
    color: #fff;
}

.widget-content-header h3 {
    margin: 0;
    padding: 7px 0 5px 10px;
    font-size: 1rem;
}

.widget-dennik .poc-widget-content.content-top {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.poc-widget-content {
    background: #ffffff;
    font-size: 14px;
    margin: 0;
    padding: 8px 10px 0 5px;
    /* border-radius: 0.5rem 0.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem; */
}

.poc-widget-content ul {
    padding: 10px 0 5px 0;
    margin: 0px;
    list-style-type: none;
}

.poc-widget-content li {
    display: block;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: solid 1px #c7561738;
}

.widget-footer {
    background: #ffffff;
    background-color: rgb(234, 226, 219);
    text-align: right;
    border-radius: 0 0 0.5rem 0.5rem;
    margin: 0px;
    padding: 10px 8px 7px;
}


.widget-footer.color {
    background-color: inherit;
    color: inherit;
}

.widget-footer a {
    text-decoration: none;
    font-size: 15px;
    color: #7C2C02;
}

.poc-header {
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    margin: 0px;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.poc-header h2 {
    margin: 0px;
    display: inline-block;
    padding: 3px 0;
    text-shadow: 1px 2px #3c3838;
    color: #fff;
}

.poc-flex-container {
    display: inline-flex;
    width: 100%;
    /* align-items: stretch; */
}


.poc-time {
    /* border-right: solid 4px #c7561738;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 1.45rem; */
    display: flex;
    position: absolute;
}

.content-newest .poc-time {
    /* min-width: 2.45rem; */
}

.content-newest .widget-content-header {
    display: none;
}

.poc-time span {
    color: #1d1a18;;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
}

.poc-news {
    flex-grow: 1;
    /* margin-left: 8px; */
}

.poc-news_source {
    color: gray;
}

.poc-news_source>span {
    float: right;
    padding-left: 2rem;
}

.source-title {
    width: 100%;
}

.poc-news_title {
    /* margin-left: 0.25rem; */
}


.content-newest .poc-news_title a {
    margin-left: 2.5rem;
}

.content-top .poc-news_title a {
    margin-left: 1.0rem;
}

#right-sidebar .content-top .poc-news_title a {
    margin-left: 1.45rem;
}


.more {
    color: #d01737;
    min-width: 1rem;
    min-height: 1rem;
    text-align: center;
    transition: 0.5s ease-in-out !important;
    margin-left: 0.25rem;
    display: inline-block;
}

.more:hover {
    cursor: pointer;
}

.rotate-triangle {
    transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
}


.poc-news_desc {
    display: block;
    color: rgb(39, 37, 37);
    background-color: #eeedeb;
    /* border-radius: .4rem; */
}

.show-box {
    max-height: 22rem !important;
    margin-top: 0.25rem !important;
    transition: 0.5s ease-in-out !important;
    transition-property: max-height margin-top !important;
}

.hidden {
    max-height: 0;
    margin-top: 0;
    transition: 0.4s ease-out;
    transition-property: all;
    overflow: hidden;
}


.poc-news_desc span {
    padding: 0.2rem 0.4rem;
    display: block;
    box-sizing: border-box;
}



newspapers .widget {
    margin: 0 0 15px 0;
    width: 100%;
    break-inside: avoid;
}

.widget-dennik {
    background-color: #d01737;
}

.widget-dennik>.color {
    background-color: #d01737;
    color: #302517;
}

.widget-dennik .header-new {
    margin-left: 28px;
}

.hide-wig {
    float: right;
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    margin-right: .5rem;
    margin-top: 5px;
    border: black solid 2px;
    border-radius: 7px;
    font-weight: bold;
}

.hide-wig:hover {
    cursor: pointer;
}

.minimized {
    display: none;
}

#right-sidebar {
    background: #e3dfdf;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
    grid-gap: 15px;
}

#right-sidebar .widget {
    height: auto;
}

right-top-per-time {
    display: grid;
    grid-gap: 10px;
    row-gap: 15px;
}

.widget-top {
    background-color: #f18031;
}

.header-top {
    background-color: #f18031;
    color: #302517;
}


.wrap_404 {
    max-width: 1024px;
    margin: 5rem auto;
    padding: 2rem;
    background: #fff;
    text-align: center;
    border: 1px solid #efefef;
    border-radius: 0.5rem;
    position: relative;
}


footer {
    -ms-grid-row: 4;
    -ms-grid-column: 1;
    grid-area: footer;
    padding: 5px;
    margin-top: 10px;
}

#links ul {
    margin: 0px;
    /*background: #d01737;*/
    padding: 0px;
}

#links li {
    display: inline;
    padding: 0px;
    margin: 0px;
}

#links li a {
    text-decoration: none;
    color: #d01737;
}

#links li a:hover {
    text-decoration: none;
    color: #d01737;
    text-decoration: underline;
}

#links li+li:before {
    content: "|";
    padding: 0 10px 0 10px;
}

.widget-header {
    font-family: Verdana, Arial, sans-serif;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: 0;
    padding: 5px;
}

.widget-top-header {
    background: #d01737;
}

.widget-header h2 {
    font-size: 16px;
    margin: 0px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.widget-content {
    background: #ffffff;
    font-size: 14px;
    margin: 0;
    padding: 8px 10px 0 5px;
}

.widget-footer {
    background: #ffffff;
    text-align: right;
    border-radius: 0 0 0.5rem 0.5rem;
    margin: 0px;
    padding: 10px 8px 7px;
}

.date-separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
}

.date-separator::before,
.date-separator::after {
    content: "";
    border-top: 0.2rem solid black;
    align-self: center;
}

#pagination {
    margin: 0;
    padding: 0;
    text-align: center
}

#pagination li {
    display: inline
}

#pagination li a {
    display: inline-block;
    text-decoration: none;
    padding: 5px 10px;
    color: #000
}

#pagination li a {
    border-radius: 5px;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s
}

#pagination li a.active {
    background-color: #3c3838;
    color: #fff
}

#pagination li a:hover:not(.active) {
    background-color: #ddd;
}

#searchBarWrapper {
    width: 100%;
    max-height: 2rem;
    margin-top: 0;
    transition: 0.4s ease-out;
    transition-property: all;
    transition-property: all;
    overflow: hidden;
}

@media screen and (max-width:800px) {

    main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto;
        grid-template-areas: "theme-news theme-news" "right-sidebar right-sidebar" "newspapers newspapers";
    }

    right-top-per-time widget {
        display: none;
    }

    right-top-per-time widget:last-of-type {
        display: block;
    }

    logo-search-bar {
        /* grid-template-columns: 1fr;
        grid-template-areas:
            "logo-and-icons"; */
        display: flex;
        flex-direction: column;
    }

    #logo {
        text-align: center;
    }

    search-bar {
        display: flex;
        justify-content: center;
    }

    #searchBarWrapper {
        width: 100%;
        max-height: 0rem;
        margin-top: 0;
        transition: 0.1s ease-in-out !important;
    }

    #searchBarWrapper.search-showed {
        display: flex;
        flex-grow: 1;
        max-height: 2rem !important;
        transition: 0.5s ease-in-out !important;
        transition-property: max-height margin-top !important;
    }

    #navbar_search_id {
        display: flex;
        flex-grow: 1;
    }

    #searchForm {
        width: 100%;
    }

    #searchForm input {
        width: 100%;
    }

    #searchIcon {
        display: block;
    }

    .icon {
        user-select: none;
    }

    .meniny-name-wrapper span:nth-child(n+4) {
        display: none;        
    }

}


@media screen and (max-width:640px) {
    main {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "theme-news" "right-sidebar" "newspapers";
        row-gap: 1em;
    }

    newspapers {
        display: block;
    }

    .logo-desc {
        display: none;
    }

    #navButton {
        display: inline;
    }

    .menu-links {
        max-height: 0;
        /* margin-top: 0; */
        transition: 0.4s ease-out;
        transition-property: all;
        overflow: hidden;
    }

    .menu-links ul{
        display: block;
        text-align: left;
        padding-left: 1rem;
        background: #e3dfdf;
    }

    .menu-links ul li {
        text-align: left;
        padding-left: 1rem;
    }

    .menu-links.navbar-showed {
        display: flex;
        max-height: 20rem;
        transition: 0.5s ease-in-out !important;
        transition-property: max-height margin-top !important;
    }

    .menu-links.navbar-showed ul {
        max-height: none;
    }

    .menu-links.navbar-showed a {
        color: #000;
    }

    .menu-links.navbar-showed .td-link-selected{
        padding: 0.2rem 0.5rem;
        border-radius: inherit;
        background: #d01737;
    }

    .info-date {
        padding-left: 0.25rem;
    }

    .info-meniny {
        padding-right: 0.25rem;
    }

    .meniny-name-wrapper span:nth-child(n+3) {
        display: none;
    }
}


@media screen and (max-width:480px) {
    .meniny-name-wrapper span:nth-child(n+2) {
        display: none;        
    }

}