/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Charm";
    src: url("./fonts/google/Charm/Charm-Regular.ttf") format("truetype");
}

/* Kolory i czcionki */
:root {
    --bg: #f1e9d9b4; /* Półprzezroczyste tło */
    --text: #181717;
    --highlight: #b3a58a;
    --dark:rgb(97, 97, 97);
    --light: #ddd0bb;
    --menu: #c9b99d;
    --selected-menu:#b6a88d;

    --font-main:  "Charm", cursive;;
    --font-logo: "Charm", cursive;
}

/*ogolne ustawiania*/

body {
    font-family: var(--font-main);
    background: url('images/tektura.png');
    background-attachment: scroll;
    background-size: contain;
    background-position: top center;
    background-repeat: repeat;
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    font-family: var(--font-main)
}
@media (min-width: 768px) {
    body {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        background-attachment: fixed;
    }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: -1;
    pointer-events: none;
}

/* Nagłówek */
.header {
    background: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 1rem 1.5rem 1rem 1.5rem;
    box-shadow: 0px 2px 3px 0px var(--highlight);
    position: relative;
}


.logo {
    font-family: var(--font-logo);
    font-size: 2.4rem;
    font-weight: bold;
    padding-right: 28px;
    line-height: 1.3;
    
}

.container {
    max-width: 1350px; /* Maksymalna szerokość nawigacji */
    width: 100%; /* Zapewnia responsywność */
    margin: 0 auto; /* Wyśrodkowanie kontenera */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Burger button */
.burger {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: block;
    text-decoration: none;
    color: black;
    border: none;
    z-index: 11;
}


/* Menu mobilne */
.navbar {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--light);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 10;
    border-top: 1px solid var(--highlight);

}

.navbar a {
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text);
    padding: 0.5rem 1rem;
    border: 1px solid var(--dark);
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
    background-color: var(--menu);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2), -3px -3px 2px rgba(0, 0, 0, 0.2);
}

.navbar a:hover {
    box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.2) inset, 2px -2px 3px rgba(0, 0, 0, 0.2) inset;
}

/* Pełne menu dla desktopów */
.menu {
    display: none;
}

.selected {
    background-color: var(--selected-menu);
}

@media (min-width: 820px) {

    .menu {
        margin: 10px 0;
        padding: 0;
        display: flex; 
        justify-content: center;
        align-items: center;
        min-height: 80px;
        gap: 0; 
        list-style: none;
        overflow: hidden;
        background-color: var(--menu);
        box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2), -3px -3px 4px rgba(0, 0, 0, 0.2);
    }
    .menu li {
        flex:1;
        display: flex; 
        height: 80px;
        width: 145px;
        justify-content: center;
        align-items: center;
        border: 1px solid var(--dark); 
        transition: background 0.3s ease, color 0.3s ease;
    }
    

    .menu li:hover {
        box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.2) inset, 2px -2px 3px rgba(0, 0, 0, 0.2) inset;
    }
    
    .menu a {
        display: block;
        padding: 1rem 1.5rem;
        text-decoration: none;
        font-weight: bold;
        color: var(--text);
        text-align: center;
        font-family: var(--font-logo);
        font-size: 1.25rem;
        line-height: 1.3;
        box-sizing: border-box;
    }

    .navbar {
        display: none;
    }
    .burger {
        display: none;
    }
}

@media (min-width: 1208px) {
    .logo {
        font-size: 2.5rem;
    }
    .menu {
        margin-left: 10px;
        min-height: 50px;
    }
    .menu li {
        height: 60px;
        width: 300px;
    }
    .menu a {
        font-size: 1.48rem;
    }

}


/* Układ główny */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 20px 0;
    padding: 2rem 1rem;
    align-items: center;
    justify-content: center;
}



@media (min-width: 768px) {
    main {
        gap: 3rem;
        max-width: 1200px;
        margin: 2rem auto;
    }
}


/* Sekcje about*/
.about-container {
    display: flex;
    flex-direction: column-reverse;
    max-width: 1300px;
}
.hero,
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.hero img {
    padding-bottom: 40px;
    max-width: 100%; /* Zapobiega wychodzeniu obrazu poza rodzica */
    height: auto; /* Zachowuje proporcje obrazu */
    display: block; /* Usuwa dolne marginesy, które mogą się pojawić */
}

.hero h3 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}


.about-text {
    max-width: 1100px;
    padding: 0 20px 0 20px;
}

.about-text-title {
    padding-bottom: 30px;
    font-size: 2.2rem;
    font-style: italic;
    text-align: center;
    display: block;
    justify-content: center;
    position: relative;
    letter-spacing: 1px;
}
.about-text-text {
    text-align: justify;
}

.about-paragraph {
    text-indent: 40px;
    font-size: 1.2rem;
}

.about-text-title::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 43px;
    background-image: url('images/shamrock.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    top: 21px;
    left: 27px;
}

@media (min-width: 466px) {
    .hero img {
        max-width: 400px;
    }

}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 1rem;
        text-align: left;
        padding-top: 35px;
    }
    .hero h2 {
        font-size: 70px;
    }
    .hero img {
        max-width: 270px;
    }
    .about {
        flex-direction: row;
        justify-content: flex-start;
        align-self: flex-start;
        text-align: left;
    }
    .about-text {
        padding-left: 20px;
    }

}
@media (min-width: 1200px) {
    .about-text-title {
        padding-top: 33px;
    }
    .about-container {
        flex-direction: row;
    }
    .hero {
        flex-direction: column;
        display: flex;
        justify-items: start;
        max-width: 400px;
        padding-top: 20px;

    }
    .hero img {
        padding-top: 10px;
        max-width: 280px;
    }
    .about {
        max-width: 900px;
    }
}

/* Sekcje books*/
.book {
    padding: 2px;
}
.book, .book-left, .book-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.book-left img {
    padding: 10px 0;
    max-width: 150px;
    height: auto; 
}
.book-title {
    font-size: 1.4rem;
    font-weight: bold;
    padding-bottom: 20px;
}
.book-year {
    font-size: 1.5rem;
}
.book-description {
    font-size: 1.2rem;
    padding: 10px;
    text-align: justify;
}
.book-description-text-align-left {
    font-size: 1.2rem;
    padding: 10px;
    text-align: left;
    align-self: flex-start;
}

.book-letter {
    color: green;
    font-size: 34px;
}

@media (min-width: 1200px) {
    .book {
        display: flex;
        flex-direction: row;
    }
    .book-description {
        padding: 5px;
        font-size: 1.05rem;
    }
    .book-description-text-align-left {
        padding: 5px;
        font-size: 1.05rem;
    }
    .book-right {
        padding-left: 55px;
        padding-top: 60px;
        max-width: 800px;
    }
    .book-left {
        width: 500px;
        padding-bottom: 145px;
    }
    .book-left-padding-2 {
        padding-bottom: 330px;
    }

}
/*sekcje poems*/
.poems-container {
    max-width: 1150px; /* Maksymalna szerokość nawigacji */
    width: 100%; /* Zapewnia responsywność */
    margin: 0 auto; /* Wyśrodkowanie kontenera */
    display: flex;
    justify-content: center;
    align-items: center;
}
.poems-img {
    display: flex;
    justify-content: end;
    align-items: end;
    padding: 10px;
}
.poems-box img {
    max-width: 50px;
} 

.poems-text-title {
    font-size: 1.8rem;
    padding-bottom: 18px;
}

.poems-text-p {
    font-size: 1.2rem;
    font-style: italic;
}
.poems-img {
    justify-content: center;
    align-items: flex-start;
}
.poem-letter {
    color: green;
    font-size: 37px;
}
.second-shamrock {
    display: none;
}
@media (min-width: 860px) {
    .poems-box {
        display: flex;
        flex-direction: row;
    }
    .poems-text {
        padding: 0 30px;
        position: relative;
        max-width: 400px;
    }
    .poems-text-right {
        padding-top: 2360px;
        padding-left: 70px;
    }
    .poems-img {
        justify-content: flex-start;
        padding-bottom: 2320px;
        display: none;
    }
    .second-shamrock {
        position: absolute;
        display: inline;
        top: 2400px;
        left: 330px;
        width: 80px;
    }
    .poems-box img {
        padding: 0;
        display: none;
    } 
    .poems-text-title::after {
        content: "";
        display: inline-block;
        width: 28px;
        height: 43px;
        background-image: url('images/shamrock.png');
        background-size: contain;
        background-repeat: no-repeat;
        position: relative;
        top: 21px;
        left: 17px;
    }
}
/* sekcja work */
.container-works {
    max-width: 820px; 
    width: 100%; 
    margin: 0 auto; /* Wyśrodkowanie kontenera */
    display: flex;
    justify-content: center;
    align-items: center;
}
.works {
    display: flex;
    flex-direction: column;
}
.work {
    padding: 20px;
    padding-left: 50px;
    padding-bottom: 80px;
}
.work-title {
    font-size: 1.8rem;
    font-style: italic;
    padding-bottom: 34px;
}
.work-description {
    font-size: 1.2rem;
    text-align: justify;
}
.works-img {
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}
.works-left img, .works-right img {
    padding: 10px 0;
    max-width: 100%;
    height: auto; 
    max-width: 180px;
}
.padding5 {
    padding-top: 25px;
}
.padding3 {
    padding-top: 17px;
}

@media (min-width: 350px) {
    .work{
        min-width: 330px;
        padding-left: 30px;
    }

}

@media (min-width: 830px) {
    .works {
        flex-direction: row;
        align-items: start;
    }
    .work {
        padding-bottom: 20px;

    }
    .works-right {
        justify-content: top;
        padding-left: 0px;
        /* padding-left: 50px; */
    }
    .works-left {
        padding-top: 0;
        /* padding-right: 70px; */
        padding-left: 50px;
        display: flex;
        flex-direction: column;
        justify-content:start;
    }
    .works-right-padding {
        padding-top: 250px;
    }
    .works-left-padding {
        padding-top: 205px;
    }
    .works-right-padding-2 {
        padding-top: 353px;
    }
    .works-left-padding-2 {
        padding-top: 275px;
    }
    .works-right-padding-3 {
        padding-top: 194px;
    }

    .works-left-padding-3 {
        padding-top: 328px;
    }
}
@media (min-width: 1000px) {
    .works-right {
        padding-left: 50px;
    }
    .works-left {
        padding-right: 70px;

    }
    .container-works {
        max-width: 880px; 
    }
}

/*sekcje contact*/
.container-contact {
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    align-items: center;
    gap: 30px;
    padding: 0 40px 40px 40px;
}

/* Informacje kontaktowe */
.contact-info {
    flex: 1;
    text-align: center;
}


.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info h2::after {
    content: "";
    display: inline-block;
    width: 42px;
    height: 42px;
    background-image: url('images/shamrock.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    top: 7px;
    left: 30px;
}

/* Pojedynczy element kontaktowy */
.contact-item {
    display: flex; /* Ustawia ikonę i tekst w jednym rzędzie */
    align-items: center; /* Wyśrodkowuje pionowo ikonę i tekst */
    gap: 10px; /* Odstęp między ikoną a tekstem */
    margin-bottom: 15px;
    font-size: 2rem;
}

.contact-item i {
    padding-right: 10px;
    font-size: 3rem;
    color: #3D2B1F;
}

.contact-item span {
    font-size: 1.5rem;
}


/* Responsywność dla małych ekranów */
@media (min-width: 768px) {
    .contact-box {
        flex-direction: row-reverse;
        justify-content: space-between;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .contact-icon {
        padding: 10px 0 0 0;
        align-self: flex-start; /* Umieść ikonę na górze w odniesieniu do sekcji */
        
    }

}

/* Stopka */
footer {
    background: var(--light);
    text-align: center;
    padding: 1rem;
    box-shadow: 0px -2px 3px 0px var(--highlight);
}