@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Outfit:wght@100..900&family=Quicksand:wght@300..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "DM Sans", sans-serif;
}

body {
    overflow-x: hidden;
}

#root {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

a {
    text-decoration: none;
    color: white;
}

.logo {
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(248, 250, 252)
}

.logo a img {
    width: 35%;
    height: auto;
    margin-right: 1vw;
}

.logo a {
    font-family: "Quicksand", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 200%;
    color: rgb(51, 51, 51);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0));
    transition: all 0.2s ease;
}

.logo a:hover {
    filter: drop-shadow(0 0 5px rgba(54, 54, 54, 0.4));
}

.logo a h1 {
    font-weight: 300;
}

.navbar, .navbar-mobile {
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 120%;
    position: sticky;
    top: 0;
    background-color: rgb(248, 250, 252);
    z-index: 100;
}

.overlay-menu {
    display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 22px;
  cursor: pointer;
  margin: 2vh 2vw;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #000000; /* kolor pasków */
  border-radius: 2px;
  transition: 0.3s;
}

.navbar.shrink {
    height: 6vh;
    font-size: 100%;
}

.navbar a {
    color: black;
    margin: 0 0.5vw;
    border-bottom: 1px solid rgba(51, 51, 51, 0);
    transition: all 0.2s ease;
}

.navbar a:hover {
    border-bottom: 1px solid rgb(51, 51, 51, 1);
}

.content {
    width: 100%;
    min-height: 67vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: rgb(230, 230, 230)
}

.footer {
    width: 100%;
    min-height: 3vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgb(112, 108, 97);
    margin-top: 2vh;
}

section.w-100 {
    width: 100%;
}
section.w-90 {
    width: 90%;
}
section.w-80 {
    width: 80%;
}
section.w-75 {
    width: 75%;
}
section.w-60 {
    width: 60%;
}
section.w-50 {
    width: 50%;
}
section.w-40 {
    width: 40%;
}
section.w-30 {
    width: 30%;
}
section.w-25 {
    width: 25%;
}
section.w-20 {
    width: 20%;
}
section.w-10 {
    width: 10%;
}


section.h-auto {
    height: auto;
}

section.recent-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.post {
    width: auto;
    min-height: 20vh;
    display: flex;
    flex-direction: column;
}

.post.new-post {
    width: 60%;
    min-height: 30vh;
}

.post .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vw;
    color: #706C61;
}

.post a h2 {
    font-weight: 400;
    font-size: 130%;
    text-transform: uppercase;
    margin: 0.5rem 0;
}

.post a h2 {
    color: black;
    transition: color 0.2s ease;
}

.post a h2:hover {
    color: #706C61;
    cursor: pointer;
}

.post .post-date {
    color: #706C61;
    margin-bottom: 0.5vh;
}

.post .post-devider {
    width: 15%;
    height: 1px;
    background-color: #706C61;
    margin-bottom: 1vh;
}

.post img.post-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

section.older-posts {
    margin-top: 2vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10%;
}

section.other-stuff {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: sticky;
    top: 6vh;
}

.about-me {
    width: 60%;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-me img {
    width: 10vw;
    height: 20vh;
    border-radius: 50%;
    object-fit: cover;
    margin: 1vh 0;
}

.about-text {
    font-weight: 300;
    text-align: center;
    font-style: italic;
    line-height: 1.6rem;
}

/* Wrapper powinien być taki jak obrazek */
.about-image-wrapper {
    position: relative;
    display: inline-block;
    width: 10vw;  /* takie samo jak w .about-me img */
    height: 20vh; /* takie samo jak w .about-me img */
    border-radius: 50%;
    overflow: hidden; /* żeby overlay nie wychodził poza kształt */
}

.about-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Overlay też okrągły */
.about-image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
    font-weight: bold;
}

.about-image-wrapper:hover .overlay {
    opacity: 1;
}


.post-content {
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-content span.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vw;
    color: #706C61;
}

.post-content span.post-date {
    color:#696969;
    margin-bottom: 1vh;
    font-weight: 300;
}

.post-content h2 {
    font-size: 200%;
    margin-bottom: 1vh;
    font-weight: 300;
}

.post-content img.post-image {
    width: 60%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 5vh;
}

.post-content span.post-desc {
    width: 60%;
    font-size: 120%;
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

.post-content .post-desc {
    line-height: 1.6;
    font-size: 1.1em;
}

.post-content .post-desc p {
    margin: 1em 0;
}

.post-content .post-desc strong {
    font-weight: bold;
}

.post-content .post-desc em {
    font-style: italic;
}

.post-content .post-desc u {
    text-decoration: underline;
}

.ck.ck-editor {
    width: 80% !important;
}

.blog-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.categories {
    position: sticky;
    top: 6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2vh 1vw;
}

.categories h3 {
    font-size: 175%;
    margin-bottom: 1vh;
    font-weight: 400;
}

.categories .filter-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #706C61;
    margin: 1vh 1vw;
    padding: 1vh 0;
}

.filter-block h4 {
    font-size: 125%;
    color: #706C61;
    font-weight: 300;
    margin-bottom: 1vh;
}

.categories-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.categories-list a, .filter-block a {
    width: 100%;
    padding: 0.5vh 1vw;
    color: black;
    text-align: center;
}

.filter-block form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-block form input {
    width: 70%;
    height: 3vh;
    border: none;
    margin-right: 1vw;
    padding: 0 0.5vw;
    border-radius: 8px;
}

.filter-block form button {
    width: 3vh;
    height: 3vh;
    border: none;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    text-align: center;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    padding: 2vh 5vw;
    width: 100%;
}

.posts .pagination {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;
}

.pagination a {
    margin: 0 0.5vw;
    padding: 0.5vh 1vw;
    border: 1px solid #706C61;
    border-radius: 8px;
    text-decoration: none;
    color: black;
}

.contact {
    text-align: center;
    padding: 40px 20px;
    margin-top: 5vh;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.contact p {
    margin-bottom: 20px;
    color: #555;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.contact-info a {
    color: #706C61;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.navbar-mobile {
    display: none;
}





.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}