@import url(reset.css);

:root{
    --primary-color: #003E1A;
    --secondary-color: #fffff8;
    --font-size: 1rem;
    --border-radius-post: 0 0 10px 10px;
    --border-radius-nadpis: 10px 10px 0 0;
    --border-radius-tag: 5px;
    --border: 1.5px solid var(--primary-color);
    --font-family: sans-serif;
    --background-color-code-block: #389b592e;

    --padding: 30px;
    --padding-body: var(--padding) var(--padding) 0 0;
    --padding-tag: 1px 8px;

    /* ARE:NA FETCH STYLING*/
    
}

*, html {
    scroll-behavior: smooth !important;
}

html, body {
    scroll-behavior: smooth !important;
    font-family: var(--font-family);
    font-size: 30px;
    font-weight: 200;
    text-transform: lowercase;
}

@media only screen and (max-width: 689px){
    html, body {
    font-size: 20px;
}}

ul {
    list-style-type: none;
    margin-left: 1rem;
    margin-block-start: 0;
    margin-block-end: 0;
}
@media only screen and (max-width: 689px){
ul{
    margin: 10px 0 0 0;
}}
  
ul li:before,
ol ul li:before {
    position: absolute;
    margin-left: -1.5rem;
    content: "—";
    color: var(--color-faded);
    font-weight: 200;
    margin-right: 0.5rem;
}
  
ol {
    list-style-type: none;
    margin-left: 2rem;
    counter-reset: list;
}

img{
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%;
}

a{
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}
a:hover{
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

code{
    font-family: 'andale mono', monospace;
    background: #003e1a26;
    color: var(--primary-color);
    /* border: 1px solid var(--primary-color); */
    border-radius: 5px;
    padding: 1px 5px;
    font-weight: 100;
    font-size: 25px;
    vertical-align: text-top;
}

@media only screen and (max-width: 689px) {
code{
    font-size: 18px;
}}

.header{
    background: var(--primary-color);
    width: -webkit-fill-available;
    color: var(--secondary-color);
    padding: 7px 15px;
    border: var(--border);
    border-radius: 10px;
    width: 100%;
    display: inline-flex;
        align-items: center;
        justify-content: space-between;
    position: sticky;
    top:0px;
    z-index: 1000;
    margin-bottom: 20px;
}

.submenu{
    background-color: var(--primary-color);

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px;
    border: var(--border);
    border-radius: 10px;
    margin-bottom: 20px;

    color: var(--secondary-color);
}

@media only screen and (max-width: 689px) {
.submenu.desktop{
    display: none;
}}

@media only screen and (min-width: 690px) {
.submenu.mobile{
    display: none;
}}

.human_lotus{
    display: inline-flex;
}

@media only screen and (max-width: 689px) {
.human_lotus{
    display: none;
}}


h1{
    margin-top: 0;
    font-weight: 100;
    font-size: 40px;
}

@media only screen and (max-width: 689px) {
h1{
    font-size: 30px;
}}


/*
.menu {
    position: absolute;
    bottom: 20px;
    z-index: 2000;
    background: var(--primary-color);
    padding: 10px;
    border-radius: 28px;
    width: -webkit-fill-available;
    left: 20px;
    right: 20px;
    display: flex
;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}*/


.post_nadpis{

    background: var(--secondary-color);
    width: -webkit-fill-available;
    color: var(--primary-color);
    padding: 7px 15px;
    border: var(--border);
    border-radius: var(--border-radius-nadpis);

    position: sticky;
    top: 0;
    z-index: 1000;
}

.post_podnadpis{

    background: var(--secondary-color);
    width: -webkit-fill-available;
    color: var(--primary-color);
    padding: 7px 15px;
    border: var(--border);
    border-radius: 0;
    margin-top: -1.5px;

    position: sticky;
    top: 59px;
    z-index: 999;
}

.post{
    background: var(--secondary-color);
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: -1.5px;
    padding: 15px;

    position: relative;
    width: -webkit-fill-available;
    
    
    border: var(--border);
    border-radius: var(--border-radius-post);
   
}

.post_foto_mensi{
    /*
    margin-bottom: 20px;
    margin-top: -1.5px;
    position: relative;
    width: -webkit-fill-available;
    max-height: 300px;
    object-fit: cover;
    overflow: hidden;
    border-radius: var(--border-radius-post);
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    border: var(--border);
    */
    position: relative;
    margin-bottom: 20px;
    margin-top: -1.5px;
    min-height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-post);
    border: var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 300px;

}

.post_foto_stredni{
    /*
    position: relative;
    margin-bottom: 20px;
    margin-top: -1.5px;

    width: -webkit-fill-available;
    max-height: 500px;
    object-fit: cover;
    overflow: hidden;
    border-radius: var(--border-radius-post);
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    border: var(--border);
    */

    position: relative;
    margin-bottom: 20px;
    margin-top: -1.5px;
    object-fit: cover;
    border-radius: var(--border-radius-post);
    border: var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 400px;
}

.post_foto_vetsi{
    /*
    position: relative;
    margin-bottom: 20px;
    margin-top: -1.5px;

    width: -webkit-fill-available;
    max-height: 700px;
    object-fit: cover;
    overflow: hidden;
    border-radius: var(--border-radius-post);
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    border: var(--border);
    */

    position: relative;
    margin-bottom: 20px;
    margin-top: -1.5px;
    object-fit: cover;
    border-radius: var(--border-radius-post);
    border: var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 700px;
}

.tags{
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.tags_link{
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}


.tag{
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: var(--border);
    border-radius: var(--border-radius-tag);
    padding: var(--padding-tag);
}

.link{
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: var(--border);
    border-radius: 25px;
    padding: 2px 14px;
}




::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--primary-color);
    border-radius: 10px;
}

::-moz-selection { /* Code for Firefox */
    color: var(--secondary-color);
    background: var(--primary-color);
}
  
::selection {
    color: var(--secondary-color);
    background: rgba(0, 62, 26, 0.99);;
}

/* styling pro mobil*/
@media only screen and (max-width: 689px) {
    body{
        background-color: var(--secondary-color);
        margin: 0px;
    }

    div.main-page{
       /* margin: 20px 20px 0 20px !important;*/
        padding: 20px 20px 0 20px !important;
    }

    div.header{
        width: 100%;
        display: inline-flex;
        position: sticky;
        top: 15px;
        z-index: 1100;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fill_header{
        background: var(--secondary-color);
        width: -webkit-fill-available;
        position: sticky;
        top: 0px;
        z-index: 1001;
        height: 25px;
        margin-top: -25px;
    }

    div.home{
        width: 100%;
        background-color: var(--secondary-color);
        padding: 20px 30px 20px 30px;
        font-size: 1.5rem;
        border: var(--border);
        border-radius: var(--border-radius);
        color: var(--primary-color);
    }

    div.main-page-content{
        /*height: calc(100lvh - 79px); */
        height: 100%;
       /* overflow: hidden;
        overflow-y: auto;*/
        border-radius: 30px 30px 0 0;
        scrollbar-width: auto;
        display: flex;
        flex-direction: column-reverse;
    }

    div.feed{
        width: 100%;
        z-index: 5;
    }

    .post_nadpis{
        top: 80px;
    }

    .post_podnadpis{
        top: 128px;
    }

    .fill{
        background: var(--secondary-color);
        width: -webkit-fill-available;
        color: var(--primary-color);
        padding: 7px 15px;
        position: sticky;
        top: 55px;
        z-index: 999;
        height: 50px;
        margin-top: -50px;
    }
}   
  
/* styling pro počítač*/
@media screen and (min-width: 690px) {
    body{
        background-color: var(--secondary-color);
        margin: 0px;
        overflow: hidden;
    }

    div.header{
        width: 100%;
        display: inline-flex;
        position: sticky;
        top:0px;
        z-index: 1000;   
    }

    div.home{
        width: 100%;
        background-color: var(--secondary-color);
        padding: 20px 30px 20px 30px;
        font-size: 1.5rem;
        border: var(--border);
        border-radius: var(--border-radius);
        color: var(--primary-color);
        box-sizing: border-box;
    }

    div.main-page{
        display: flex;
        flex-direction: column;
        overflow: hidden;
       margin: 20px 0px 0 0px !important;
        padding: 20px 20px 0 20px !important;
    }

    div.main-page-content{
        display: flex;
        overflow: hidden;
        height: calc(100vh - 81px); /*odecitam vysku headeru*/
    }

    div.info{
        width: 35%;
        z-index: 10;
        overflow-y: auto;
        height: 100%;
        scrollbar-width: none;
        border-radius: 10px 10px 0 0;
        padding-bottom: 20px;
    }

    div.feed{
        margin-right: 20px;
        padding-bottom: 20px;
        width: 65%;
        scrollbar-width: none;
        z-index: 5;
        overflow-y: auto;
        height: 100%;
        border-radius: 10px 10px 0 0;
    }

    .fill{
        background: var(--secondary-color);
        width: -webkit-fill-available;
        color: var(--primary-color);
        padding: 7px 15px;
        position: sticky;
        top: 0;
        z-index: 999;
        height: 10px;
        margin-top: -14px;
    }
}   


/* styling dropdownu*/
input{
    display: none;
}


.accordion input[type="checkbox"]:checked + label + .content {
    max-height: 1000px;
    transition: max-height 1s;
    overflow: visible;
}


.accordion .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s;
}

svg.toggle{
    color: var(--primary-color);
    padding-left: 5px;

}