@import "reset.css";

:root{
    --font-family: 'Inter', sans-serif;

    --primary-color: #1F3F29;
    --secondary-color: #fffff2;
    --color-lighter: #1f3f2928;

    --border-radius: 10px;

    --border: 2px solid var(--primary-color);

    --header-height: 57px;
}

@media screen and (min-width: 690px) {
:root{
    --padding: 0px 40px 20px 40px;
}}

@media screen and (max-width: 689px) {
:root{
    --padding: 0 20px 20px 20px;
}}

@media (prefers-color-scheme: dark) {
  :root {
     --primary-color: #fffff2;
    --secondary-color: #1F3F29;
  }
}

html, body {
    scroll-behavior: smooth !important;
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    
}

body{
    border-right: var(--border);
    border-left: var(--border);

}

img{
    border: var(--border);
    border-radius: 10px;
    margin-block-start: 20px;
}

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

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

::-moz-selection { /* Code for Firefox */
    color: var(--secondary-color);
    background: var(--primary-color);
  }
  
  ::selection {
    color: var(--secondary-color);
    background: var(--primary-color);
  }


/*
TYPOGRAFIE
*/


p, H1, H2, H3, H4, button, a {
    font-family: var(--font-family);
    color: var(--primary-color);
    margin-block-start: 0px;
}


p {
    font-weight: 400;
    font-size: 16px;
    margin-block-start: 10px;
    line-height: 1.5;
}

h1 {
    font-weight: 500;
    font-size: 64px;
    margin-block-start: 30px;

}

h2 {
    font-weight: 500;
    font-size: 48px;
    margin-bottom: 10px;
    margin-block-start: 20px;

}

h3 {
    font-weight: 400;
    font-size: 32px;
    margin-top: 10px;
    margin-block-start: 20px;

}

h4 {
    font-weight: 400;
    font-size: 25px;
    margin-block-start: 20px;

}

code{
    background-color: var(--color-lighter);
    font-size: 14px;
    padding: 2Px 4px;
    border-radius: 3px;
    /*border: 1px solid var(--primary-color);*/
}

ul {
  list-style-type: none;
  margin-left: 2rem;
}

ul li:before,
ol ul li:before {
  position: absolute;
  margin-left: -2rem;
  content: "—";
  color: var(--color-faded);
  font-weight: 500;
  margin-right: 0.5rem;
}

ol {
  list-style-type: none;
  margin-left: 2rem;
  counter-reset: list;
}

ol li:before {
  position: absolute;
  margin-left: -2rem;
  color: var(--color-faded);
  font-weight: 500;
  margin-right: 0.5rem;
  content: counter(list) ".";
  counter-increment: list;
}

/*
BUTTONS
*/

a:not([class]) {
    text-decoration-skip-ink: auto;
    text-decoration: underline;
}

a:is([class]) {
    text-decoration-skip-ink: auto;
    text-decoration: none;
}

/*
a{
    text-decoration: none;
}

a:hover{
    text-decoration: underline;
}*/

button {
    border: var(--border);
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

button:hover {
    border: var(--border);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: var(--border-radius);
    text-decoration: underline;
}

button.small {
    padding: 5px 7px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;

}

button.medium {
    font-size: 20px;
    padding: 5px 10px;
    font-weight: 500;
    cursor: pointer;
}

.tags {
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
}


/*
HEADER
*/

.header {
    position: sticky;
    top: 0;
    background: var(--secondary-color);
    border-bottom: var(--border);
    border-top: var(--border);
    z-index: 1000;
}

@media screen and (min-width: 690px) {
    .header{
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
    }

    .sub_header{
        display: none;
    }
}


@media screen and (max-width: 689px) {
    .header{
    padding: 20px;
    }

    .do_obchodu{
    display: none;
    }

    .sub_header{
    padding: 20px;
    border-bottom: var(--border);
    }
}




/*
FOOTER
*/


.row1{
    width: 100%;
    border-bottom: var(--border);
    text-align: center;
}

.row2{
    width: 100%;
    width: fit-content;
    margin: auto;
}

.row3{
    width: 100%;
    text-align: center;
    border-top: var(--border);
    border-bottom: var(--border);
}

@media screen and (min-width: 690px) {
    .row1, .row2, .row3{
        padding: 10px 40px 20px;
    }
}

@media screen and (max-width: 689px) {
    .row1, .row2, .row3{
        padding: 0px 20px 10px;
    }
}

/*
@media screen and (min-width: 690px) {
    .row2{
        padding: 10px 20px 20px 40px;
    }
}

@media screen and (max-width: 689px) {
    .row2{
        padding: 10px 20px 20px;
    }
}
*/

.container {
    padding: var(--padding);
    border-bottom: var(--border);
}

.prispevky{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    border-bottom: var(--border);
    margin-bottom: -2px;
}

/* desktop */
@media screen and (min-width: 690px) {
.post {
    width: 50%;
    border-bottom: var(--border);
}


.post:nth-child(odd){
    border-right: var(--border);
}

.post:last-child,
.post:nth-last-of-type(-n+2):not(:nth-child(even)){
    border-bottom: 0;
}

}

/*
.post:nth-last-child(-n + 2){
    border-bottom: 0;
}*/

/* mobile */
@media screen and (max-width: 689px) {
.post {
    width: 100%;
    border-bottom: var(--border);
}

.post:nth-child(odd){
    border-right: none;
}

.post:nth-last-child(-n + 2){
    border-bottom: var(--border);
}


.post:nth-last-child(-n + 1){
    border-bottom: 0;
}

}



.image__container {
    border-bottom: var(--border);
    width: -webkit-fill-available;
    max-height: 60vh;
    object-fit: cover;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    align-content: center;
    justify-content: center;
}

.post__feed{
    width: -webkit-fill-available;
    object-fit: cover;
    height: 100%;
    border-radius: 0;
    border: 0;
    margin-block-start: 0;
}


.popisek {
    padding: var(--padding);
}



/*
PRISPEVEK
*/

@media only screen and (min-width: 690px) {
.uvod{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    border-bottom: var(--border);
}

.title_text{
    width: 60%;
    border-right: var(--border);
}

.text_sticky{
     padding: var(--padding);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    z-index: 20;
}

.title_image{
    width: 40%;
    min-height: 80vh;
    object-fit: cover;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    align-content: center;
    justify-content: center;
}

}

@media only screen and (max-width: 689px) {
.uvod{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    border-bottom: var(--border);
}

.title_text{
    width: 100%;
    border-right: 0;
    border-bottom: var(--border);
}

.text_sticky{
     padding: var(--padding);
    position: sticky;
    top: calc(var(--header-height) + 20px);
    z-index: 20;
}

.title_image{
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    align-content: center;
    justify-content: center;
}
}



.post_content_container{
    border-bottom: var(--border);
}

.post_content{
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
 
}

.quote{
    border: var(--border);
    border-radius: 10px;
    padding: 20px;
    color: var(--primary-color);
    margin-block-start: 20px;
    font-size: 25px;
}

.anchor {
    display: block;
    position: relative;
    top: calc(0px - (var(--header-height)) - 20px);
    visibility: hidden;
}


/*
ARE.NA FETCH STYLE
*/

@media only screen and (min-width: 690px) {
div#content-collection{
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 20px;
    row-gap: 20px;
    padding-right: 20px;
    margin-block-start: 20px;
}
}

@media only screen and (max-width: 689px) {
    div#content-collection{
        display: grid;
        column-gap: 20px;
        row-gap: 20px;
        margin-block-start: 20px;

    }
}

div.block-text-container{
    border: var(--border);
    border-radius: var(--border-radius);
    padding: 10px 20px 20px 20px;
}

div.image_container{
    border: var(--border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column-reverse;
    align-content: center;
    justify-content: center;
    overflow: hidden;
    height: fit-content;
}

img.arena{
    border: 0;
    border-radius: 0;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

img.arena__link{
    border: var(--border);
    border-radius: var(--border-radius) !important;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
}

p.arena__link{
    text-align: center;
}

p.arena__title{
    text-align: center;
    padding-bottom: 0;
    padding-top: 10px;
}

div.block-channel{
    display: none;
}

div.block-attachment{
    display: none;
}

div.block-media{
    display: none;
}
/*/arena styling*/

