@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Red Hat Display', sans-serif;

    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;

    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;

    scroll-behavior: auto;
}

:root {
    --c1: #2b2d42;
    --c2: #ddd;
    --c3: #edf2f4;
    --c4: #ef233c;
    --c5: #d90429;

    --sevenzero: 70dvh;

    --f1p5: 1.5dvh;
    --f1p75: 1.75dvh;
    --f2: 2dvh;
    --f2p5: 2.5dvh;
}

.aadiv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aadiv2 {
    display: flex;
    justify-content: flex-start;
}

.aalrpus {
    width: 45%;
    margin-right: 0.5vh;

    &.aa2 {
        display: flex;
        justify-content: space-between;
    }
}

.avots {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--c3);
    color: var(--c4) !important;
    font-weight: 500;
    padding: 0.5vh 1.5vh;
    border-radius: 0.5vh;

    &:hover {
        background-color: var(--c4);
        color: var(--c2) !important;
    }
}

a,
a:hover,
a:visited {
    cursor: pointer;
    text-decoration: none;
    text-decoration-color: none;
    font-weight: 500;
    color: var(--c1);
}

body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    background-color: var(--c3);
}

.astondesmit {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 1dvh;
}

.title {
    font-size: 3.75dvw;
    text-align: center;
    padding: 4dvh 0 4dvh 0;
}

footer {
    margin: 5dvh 0 5dvh 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 80%;
    font-size: var(--f2);

    & a {
        font-weight: 700;
    }

    & div {
        text-align: right;
    }
}

#filters {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    margin: 0.5dvh 0 0.5dvh 0;
}
#time-filter, #month-filter, #mmfilter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0.3dvw 0;
}

#content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: stretch;
    width: 90%;
}

#container {
    margin: 0.5dvh;
    padding: 1dvh;
    background-color: var(--c1);
    min-width: var(--sevenzero);
    max-width: var(--sevenzero);
    border-radius: 1vh;
}

#situacijalr {
    display: grid;
    column-gap: 1dvh;
}

#left {
    margin-top: 1dvh;
    margin-bottom: 1dvh;
    grid-column: 1;
    color: var(--c3);
    font-weight: 400;
    font-size: var(--f1p75);
    position: relative;
    border-radius: 0.5vh;
}
#right {
    grid-column: 2;
    border-radius: 0.5vh;
}

#data {
    font-size: var(--f2p5);
    color: var(--c3);
    font-weight: 500;
}

#data3 {
    margin-top: 1dvh;
    font-size: var(--f2p5);
    color: var(--c3);
}

.nosaukums, #data2 {
    font-size: var(--f2);
    width: 90%;

    & a{
        color: var(--c5);
    }
}

.situacija {
    margin-top: 1dvh;
    margin-bottom: 1dvh;
    padding: 1dvh;
    background-color: var(--c3);
}

.situacija2 {
    display: flex;
    margin-top: 1dvh;
    padding: 1dvh;
    background-color: var(--c3);
    border-radius: 0.5vh;
}

.unders2 {
    position: relative;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aa {
    font-size: var(--f1p75);
}

.ac {
    padding: 0.1dvh 0.4dvh;
    border-radius: 0.25dvh;
    color: var(--c3);
    font-weight: 500;

    &.sh {
        background-color: var(--c4); 
    }
    &.pi {
        background-color: #213595;
    }
}

img {
    height: 15dvh;
}

button {
    /*background-color: var(--c3);*/
    background-color: transparent;
    border: none;
    margin: 0dvh;
    padding: 0.5dvh;
    font-weight: 400;
    font-size: var(--f1p5);
    line-height: 1.5;
    width: 9dvh;
    z-index: 2;

    &:hover {
        /*background-color: var(--c1);
        color: var(--c3);*/
        font-weight: 600;
        cursor: pointer;
    }
}

.active {
    /*background-color: var(--c5);*/
    background-color: transparent;
    color: var(--c3);
    &:hover {
        /*background-color: var(--c5);*/
        background-color: transparent;
        font-weight: 400;
        color: var(--c3);
        cursor: default;
    }
}

#open {
    color: var(--c3)
}

.onlyfixed {
/*     position: fixed;
    top:0;*/
    width: 80%;
}

main {
    width: 50%;
}
h2 {
    color: var(--c1);
    font-size: 4dvh;
}
p, ol {
    margin-bottom: var(--f1p5);
}
p, li {
    font-size: var(--f2);
}
pre {
    background-color: var(--c1);
    color: var(--c3);
    padding: 1dvh;
    border-radius: 0.5dvh;
    font-size: var(--f1p75);
}

#top-metrics {
    display: none;
    padding-left: 0.5dvh;
    margin: 0.5vh;
    width: 80%;
    & div {
        font-size: 1.75dvh;
    }
}
#max, #min, #sum, #avg {
    display: none;
}

@media screen and (max-width: 1470px){
    #filters {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: flex-start;
        align-items: flex-start;
        margin: 0.5dvh 0 0.5dvh 0;
    }
}
@media screen and (max-width: 1069px){
    button {
        background-color: var(--c3);
    
        &:hover {
            background-color: var(--c1);
            color: var(--c3);
            font-weight: 400;
        }
    }
    
    .active {
        background-color: var(--c5);
        &:hover {
            background-color: var(--c5);
        }
    }
    #lyabg, #lyabg2, #lyabg3, #lyabgo {
        opacity: 0;
    }
    #open {
        background-color: var(--c1);
    }
    #time-filter, #month-filter, #mmfilter {
        margin: 0;
    }
}

@media screen and (max-width: 849px) {
    :root {
        --sevenzero: 60dvh;
    }
}
@media screen and (max-width: 849px) and (max-height: 4000px) {
    :root {
        --sevenzero: 50dvh;
    }
}
@media screen and (max-width: 749px) {
    :root {
        --sevenzero: 50dvh;
    }
}
@media screen and (max-width: 629px) {
    :root {
        --sevenzero: 40dvh;
    }
}
@media screen and (max-width: 499px) {
    :root {
        --sevenzero: 35dvh;
    }
    #left {
        grid-column: 1;
    }
    #right {
        grid-column: 1;
    }
    .situacija2 {
        flex-direction: column;
    }
    footer {
        align-items: center;
        text-align: center;
        flex-direction: column;

        & div {
            text-align: center;
        }
    }
}
@media screen and (width: 499px) and
(min-height: 720px) and (max-height: 4000px) {
    :root {
        --sevenzero: 60dvh;
    }
}
@media screen and (max-width: 430px) and 
(min-height: 720px) and (max-height: 4000px) {
    :root {
        --sevenzero: 30dvh;
    }
}
@media (min-width: 1024px) and (max-width: 1280px) and 
(min-height: 600px) and (max-height: 800px) {
        :root {
            --sevenzero: 80dvh;
            --f1p5: 2.5dvh;
            --f1p75: 2.75dvh;
            --f2: 3vh;
            --f2p5: 3.5vh;
        }
        img {
            height: 22dvh;
        }
        button {
            background-color: var(--c3);
            width: 18dvh;
            &:hover {
                background-color: var(--c1);
                color: var(--c3);
                font-weight: 400;
            }
        }
        .active {
            background-color: var(--c5);
            &:hover {
                background-color: var(--c5);
            }
        }
        #lyabg, #lyabg2, #lyabg3, #lyabgo {
            opacity: 0;
        }
        #open {
            background-color: var(--c1);
        }
        #time-filter, #month-filter, #mmfilter {
            margin: 0;
        }
}
@media screen and (max-width: 1200px) and (min-height: 700px) and (max-height: 729px) {
    :root {
        --sevenzero: 80dvh;
    }
}
@media screen and (max-width: 660px) and (min-height: 700px) and (max-height: 729px) {
    :root {
        --sevenzero: 60dvh;
    }
}
@media screen and (max-width: 460px) and (min-height: 700px) and (max-height: 729px) {
    :root {
        --sevenzero: 30dvh;
    }
}
@media screen and (max-width: 369px) and
(min-height: 720px) and (max-height: 4000px) {
    :root {
        --sevenzero: 25dvh;
        --f1p5: 1dvh;
        --f1p75: 1.25dvh;
        --f2: 1.5vh;
        --f2p5: 2vh;
    }
}
@media screen and (max-width: 340px) and
(min-height: 720px) and (max-height: 4000px) {
    :root {
        --sevenzero: 20dvh;
    }
}
@media screen and (max-width: 940px) and
(min-height: 900px) and (max-height: 4000px) {
    :root {
        --sevenzero: 60dvh;
    }
}
@media screen and (max-width: 810px) and
(min-height: 900px) and (max-height: 4000px) {
    :root {
        --sevenzero: 50dvh;
    }
}
@media (min-width: 200px) and (max-width: 330px) and
(min-height: 900px) and (max-height: 1500px) {
    :root {
        --sevenzero: 20dvh;
    }
}
@media (min-width: 330px) and (max-width: 430px) and
(min-height: 900px) and (max-height: 1500px) {
    :root {
        --sevenzero: 30dvh;
    }
}
@media (min-width: 430px) and (max-width: 530px) and
(min-height: 900px) and (max-height: 1500px) {
    :root {
        --sevenzero: 40dvh;
    }
}
@media (min-width: 530px) and (max-width: 780px) and
(min-height: 900px) and (max-height: 1500px) {
    :root {
        --sevenzero: 50dvh;
    }
}
@media screen and (max-width: 680px) and
(min-height: 1500px) and (max-height: 4000px) {
    #left {
        grid-column: 1;
    }
    #right {
        grid-column: 1;
    }
    .situacija2 {
        flex-direction: column;
    }
    footer {
        align-items: center;
        text-align: center;
        flex-direction: column;

        & div {
            text-align: center;
        }
    }
}
@media screen and (max-width: 680px) and
(min-height: 1500px) and (max-height: 2000px) {
    :root {
        --sevenzero: 30dvh;
    }
}
@media screen and (max-width: 680px) and
(min-height: 2000px) and (max-height: 3000px) {
    :root {
        --sevenzero: 20dvh;
        --f1p5: 1dvh;
        --f1p75: 1.25dvh;
        --f2: 1.5vh;
        --f2p5: 2vh;
    }
}
@media screen and (max-width: 550px) and
(min-height: 1000px) and (max-height: 4000px) {
    :root {
        --sevenzero: 30dvh;
        --f1p5: 1dvh;
        --f1p75: 1.25dvh;
        --f2: 1.5vh;
        --f2p5: 2vh;
    }
}
@media (min-width: 330px) and (max-width: 430px) and
(min-height: 1000px) and (max-height: 4000px) {
    :root {
        --sevenzero: 25dvh;
    }
}
@media (min-width: 265px) and (max-width: 330px) and (min-height: 1000px) and (max-height: 4000px) {
    :root {
        --sevenzero: 20dvh;
    }
}
@media screen and (max-width: 265px) and (min-height: 1000px) and (max-height: 4000px) {
    :root {
        --sevenzero: 15dvh;
    }
}
@media screen and (max-width: 1720px) and
(min-height: 1650px) and (max-height: 3000px) {
    :root {
        --sevenzero: 60dvh;
    }
}
@media screen and (max-width: 1500px) and
(min-height: 1650px) and (max-height: 3000px) {
    :root {
        --sevenzero: 50dvh;
    }
}
@media screen and (max-width: 1220px) and
(min-height: 1650px) and (max-height: 3000px) {
    :root {
        --sevenzero: 40dvh;
    }
}
@media screen and (max-width: 990px) and
(min-height: 1650px) and (max-height: 3000px) {
    :root {
        --sevenzero: 30dvh;
    }
    #left {
        grid-column: 1;
    }
    #right {
        grid-column: 1;
    }
    .situacija2 {
        flex-direction: column;
    }
    footer {
        align-items: center;
        text-align: center;
        flex-direction: column;

        & div {
            text-align: center;
        }
    }
}
@media screen and (max-width: 780px) and
(min-height: 1650px) and (max-height: 3000px) {
    :root {
        --sevenzero: 25dvh;
        --f1p5: 1dvh;
        --f1p75: 1.25dvh;
        --f2: 1.5vh;
        --f2p5: 2vh;
    }
}
@media screen and (max-width: 640px) and
(min-height: 1650px) and (max-height: 3000px) {
    :root {
        --sevenzero: 20dvh;
    }
    img {
        height: 11dvh;
    }
}
@media screen and (max-width: 420px) and
(min-height: 1470px) and (max-height: 1900px) {
    :root {
        --sevenzero: 20dvh;
    }
    img {
        height: 11dvh;
    }
}
@media screen and (max-width: 420px) and
(min-height: 1900px) and (max-height: 3000px) {
    :root {
        --sevenzero: 15dvh;
    }
    img {
        height: 11dvh;
    }
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    margin: 1vh;
    padding: 1vh;
    font-size: 4vh;
    position: fixed;
    top: 1vh;
    left: 0;
    color: #FF204E;
    font-weight: 300;
    z-index: 2;
}

#lyabg, #lyabg2, #lyabg3 {
    background-color: var(--c5);
    position: absolute;
    width: 9dvh;
    height: 4dvh;
    border: none;
    z-index: 1;
    transition: transform 0.5s ease;
    transform: translateY(-0.25vh);
}
#lyabg3 {
    display: none;
    transform: translateY(-0.25vh) translateX(9vh);
}
#lyabgo {
    background-color: var(--c1);
    position: absolute;
    width: 9dvh;
    height: 4dvh;
    border: none;
    z-index: 1;
    transition: transform 0.5s ease;
    transform: translateY(-0.25vh);
}