html,
body {
    background: white;
    color: black;
    font-family: Arial, Helvetica, sans-serif;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1 {
    font-weight: normal;
}

h2 {
    font-weight: normal;
    margin-top: 2em;
}

h3 {
    font-weight: normal;
    margin-top: 2em;
}

p {
    line-height: 1.3em;
}

div.newslist a {
    text-decoration: none;
    color: black;
}
div.newslist a:hover h2 {
    text-decoration: underline;
    color: rgb(225, 70, 111);
    transition: 300ms;
}

div.newslist a h2 {
    /* transition: 300ms; */
}
div.newslist div.newsitem {
    margin: 2px;
   /* box-shadow: ; */
    transition: 300ms;
    margin-bottom: 3em;
}



div.newslist div.newsitem h2 {
    margin: 0;
    padding: 0;
}
div.newslist div.newsitem p.datetime {
    font-size: 80%;
    color: gray;
    padding: 0;
    margin: 0.5em 0 0 0;
}
div.newslist div.newsitem p.preview {
    margin: 0.5em 0 0 0;
    padding: 0;
}
html[lang=lv] div.newslist div.newsitem p.preview {
    line-height: 150%;
}

div.path {
    margin: 1.5em 0 0.5em 0;
}
div.path a {
    color: rgb(54, 115, 221);
    text-decoration: none;
}
div.path a:hover {
    color: rgb(225, 70, 111);
    text-decoration: underline;
}

div.pages a {
    text-decoration: none;
    color: white;
    font-size: 90%;
    background: rgb(36, 111, 244);
    border-radius: 30%;
    padding: 5px;
    min-width: 2.5ex;
    height: 2.5ex;
    display: inline-block;
    text-align: center;
    margin-right: 0.7em;
    margin-bottom: 0.7em;
}
div.pages span.current {    
    color: white;
    font-size: 90%;
    background: rgb(245, 97, 104);
    border-radius: 30%;
    padding: 5px;
    min-width: 2.5ex;
    height: 2.5ex;
    display: inline-block;
    text-align: center;
    margin-right: 0.7em;
    margin-bottom: 0.7em;
}
div.pages a span,
div.pages span span {
    position: relative;
    top: -0.05ex;
    left: 0.04ex;
}

div.page {
    flex-grow: 1;
    max-width: 50%;
    margin-left: 25%;
    font-family: "Wix Madefor Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;    
}
div.news-page h1 {
    /* margin-top: 1em; */
}
div.news-page div.news-item div.text {
    line-height: 150%;
    font-size: 110%;
}
html[lang=lv] div.news-page div.news-item div.text {
    line-height: 180%;
}
div.news-page div.news-item div.date {
    color: gray;
    font-size: 90%;
    margin: 0 0 1em 0;
}
div.news-page div.news-item div.sources {
    color: gray;
    font-style: italic;
    font-size: 90%;
    margin: 2em 0 1em 0;
}
div.news-page div.news-item a {
    color: rgb(54, 115, 221);
    text-decoration: none;
}
div.news-page div.news-item a:hover {
    color: rgb(225, 70, 111);
    text-decoration: underline;
}
div.news-page div.more a::after {
  content: "";
  width: 11px;
  height: 11px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
}

.header{
    /* border: 1px solid black; */
    /* padding: 2ex; */
    margin-left: 4.1%;
    padding-top: 2ex;
    text-align: center;
    font-family: "Wix Madefor Display", sans-serif;
}
.header a{
    /* transition: 300ms; */
    text-decoration: none;
    color: black;
}
.header a:hover{
    transition: 300ms;
    color:rgb(225, 70, 111);
}
.header .current{
    color:rgb(225, 70, 111);
}

span.separator{
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    color: gray;
}

.newsitem p a{
    /* transition: 300ms; */
    color:rgb(36, 111, 244);
}

.newsitem p a:hover{
    transition: 300ms;
    color:rgb(54, 76, 225);
}

.footer{
    margin-top: 1ex;
    border-top: 1px solid gray;
    text-align: center;
    padding: 2em;
    position: relative;
    bottom: 0;
}

.footer a {
    color: black;
    text-decoration: none;
    /* transition: 300ms; */
}
.footer a:hover {
    transition: 300ms;
    color: rgb(225, 70, 111);
}

div.about{
    margin-bottom: 2ex;
}


#close-open{
    display: none;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    font-size: 2em;
    position: absolute;
    top: 0.8ex;
    right: 1em;
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
transform: translate(0, -11px) rotate(45deg);
}

#header-name {
    display: block;
    width: fit-content;
    margin: auto;
}
.info-link{
    margin-top: 10px;
}

@media (max-width: 800px){
    #close-open{
        display: block;
    }
    .links{
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .header-text{
        font-size: 1.4em;
        text-align: left;
        padding-left: 2px;
        margin-top: 0.1em;
    }
    div.page {
        max-width: 92%;
        margin-left: 4%;
        font-family: "Wix Madefor Display", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
    div.news-page div.news-item div.text {
        line-height: 140%;
        font-size: 100%;
    }
    div.news-page h1 {
        font-size: 180%;
    }
    .newsitem p a {
        font-size: 1.7em;
    }
    #header-name {
        margin: 0px;
    }

}

@media screen and (min-width: 601px) and (max-width: 1280px) {
    
    div.page {
        max-width: 90%;
        margin-left: 5%;
        font-family: "Wix Madefor Display", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
    .news-item p a {
        font-size: 1.7em;
    }
    #close-open{
        top: 2.1ex;
        right: 1em;
    }
}

@media screen and (orientation: landscape ) and (max-width: 800px) {
    div.page {
        max-width: 90%;
        margin-left: 5%;
        font-family: "Wix Madefor Display", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
    }
    .news-item p a {
        font-size: 1.7em;
    } 
    .preview{
        font-size: 0.5em;
    }
}

.footer a{
    padding: 1em;
}