*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

:root {
    --yellow_color: rgb(224, 179, 31);
    --black_color: rgb(0, 0, 0);
    --grey_color: rgb(114, 126, 122);
    --white_color: rgb(255, 255, 255);
    --brown_color: rgb(85, 71, 55);
    --dark_green_color: rgb(122, 156, 41);
    --green_color: rgb(189, 243, 63);
}

/* Body strony. */
body {
    margin: 0px;
    padding: 0px;
}

ul,
ol {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

a {
    color: var(--black_color);
    font-style: normal;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0px;
    padding: 0px;
}

/* Glowny kontener strony. */
#container {
    display: grid;

    grid-template-areas:
        "container_header container_header container_header"
        "container_aside_one container_main container_aside_two"
        "container_footer container_footer container_footer";
    grid-template-columns: 250px 1fr 250px;
    grid-template-rows: 104px minmax(800px, auto) auto;
}

/* Header strony. */
#container_header {
    z-index: 100;
    grid-area: container_header;
    position: fixed;
    width: 100%;
}

/*  Aside one strony. */
#container_aside_one {
    grid-area: container_aside_one;
    background-color: var(--brown_color);
}

/* Main strony. */
#container_main {
    grid-area: container_main;
    border-width: 1px;
    border-color: var(--black_color);
    border-style: solid;

    /* Tylko na chwile */
    background-image: url(../img/main_background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

/*  Aside two strony. */
#container_aside_two {
    grid-area: container_aside_two;
    background-color: var(--brown_color);
}

/* Footer strony. */
#container_footer {
    grid-area: container_footer;
    background-color: rgb(0, 0, 0);
    display: grid;
    grid-template-areas:
        "container_footer_top_left container_footer_top_right"
        "container_footer_bottom container_footer_bottom";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 80px;
}

/* ----- container_header_top -----*/
#container_header_top {
    background-color: var(--yellow_color);
    height: 24px; /* Rozmiar zlotego paska na gorze strony. */
}

#container_header_top > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1px; /* Odsuniecie tekstu od gornej krawędzi zlotego paska na gorze strony. */
    gap: 25px;
}

#container_header_top > ul > li {
}

#container_header_top > ul > li > a {
    display: flex;
    height: 20px; /* Rozmiar ikonek i tekstu w zlotym pasku na gorze strony. */
    gap: 1px;
    font-weight: bold;
}

#container_header_top > ul > li > a:hover {
    color: var(--grey_color);
    text-decoration: underline;
}

#container_header_top > ul > li > a > .container_header_top_ul_li_a_left {
    font-size: 18px;
    line-height: 20px;
}

#container_header_top > ul > li > a > .container_header_top_ul_li_a_right {
    font-size: 18px;
    line-height: 20px;
}

/* ----- container_header_bottom ----- */
#container_header_bottom {
    display: flex;

    background-color: var(--black_color);
    justify-content: space-between;
    /* align-items: center; */
}

/* ----- container_header_bottom_left ----- */
#container_header_bottom_left {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 15px;
}

#container_header_bottom_left:hover > #container_header_bottom_left_right {
    color: var(--grey_color);
    text-decoration: underline;
}

#container_header_bottom_left_left {
    height: 60px;
    width: 60px;
}

#container_header_bottom_left_left > img {
    height: 60px;
    width: 60px;
}

#container_header_bottom_left_right {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    font-size: 44px;
    color: var(--yellow_color);
}

/* ----- container_header_bottom_middle ----- */
#container_header_bottom_middle {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----- container_header_bottom_middle_left ----- */
#container_header_bottom_middle_left {
    display: flex;
    gap: 15px;
}

#container_header_bottom_middle_left > li {
    display: flex;
    justify-content: center;
    align-items: center;
}

#container_header_bottom_middle_left > li > a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0px 20px;
    line-height: 20px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background-color: var(--brown_color);
    color: var(--yellow_color);
    border-radius: 3px;
    border: 1px var(--yellow_color) solid;
}

#container_header_bottom_middle_left > li > a:hover {
    background-color: var(--dark_green_color);
    color: var(--white_color);
    border: 0.5px solid var(--white_color);
}

/* ----- container_header_bottom_middle_middle -----*/
#container_header_bottom_middle_middle {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0px 25px 0px 10px;
}

#container_header_bottom_middle_middle:hover > #container_header_bottom_middle_middle_top > span {
    color: var(--grey_color);
    cursor: pointer;
}

#container_header_bottom_middle_middle > #container_header_bottom_middle_middle_top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

#container_header_bottom_middle_middle > #container_header_bottom_middle_middle_top > span {
    font-size: 50px;
    line-height: 50px;
    color: var(--yellow_color);
    margin-left: 5px;
    margin-top: 1px;
}

#container_header_bottom_middle_middle > #container_header_bottom_middle_middle_bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--grey_color);
    color: var(--yellow_color);
    font-size: 14px;
    line-height: 25px;
    border-radius: 50%;
    margin-left: 35px;
    border: 1px solid var(--yellow_color);
    font-weight: bold;
    top: 30px;
    right: -5px;
}

/* Podswietlanie koszyka */
#container_header_bottom_middle_middle:hover > #container_header_bottom_middle_middle_bottom {
    background-color: var(--dark_green_color);
    color: var(--white_color);
    border: 0.5px solid var(--white_color);
    cursor: pointer;
}

/* ----- container_header_bottom_middle_right -----*/
#container_header_bottom_middle_right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 60px;
    position: relative;
}

#container_header_bottom_middle_right_div {
    display: flex;
    justify-content: flex-end;
    height: 60px;
    background-color: rgb(83, 116, 19);
    border-radius: 7px;
    gap: 12px;
    border: 1px solid orange;
    padding: 0px 0px 0px 15px;
}

#container_header_bottom_middle_right_div_left {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    line-height: 58px;
    color: orange;
    font-weight: bold;
    min-width: 130px;
}

#container_header_bottom_middle_right_div_right {
    width: 58px;
    height: 58px;
    background-color: rgb(140, 177, 169);
    display: flex;
    border-radius: 50%;
    border: 1px solid var(--black_color);
}

#container_header_bottom_middle_right_div_right > img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
}

/* Podswietlanie kfadratu */
#container_header_bottom_middle_right_div:hover {
    color: var(--grey_color);
    background-color: rgb(117, 161, 27);
    cursor: pointer;
}

/* Podswietlanie kola */
#container_header_bottom_middle_right_div:hover > #container_header_bottom_middle_right_div_right {
    background-color: rgb(169, 196, 190);
}

/* ----- container_header_bottom_middle_right_div_drop_down_menu ----- */
#container_header_bottom_middle_right_div_drop_down_menu {
    display: none;
    /* display: flex; */
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 15px;
    background-color: rgb(173, 145, 68);
    border: 1px solid var(--black_color);
    border-radius: 7px;
    width: 220px;
    z-index: 1;
    padding: 15px 5px;
}

#container_header_bottom_middle_right_div_drop_down_menu.active {
    display: flex;
}

#container_header_bottom_middle_right_div_drop_down_menu > ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#container_header_bottom_middle_right_div_drop_down_menu > ul > li {
    display: flex;
    flex-direction: column;
}

#container_header_bottom_middle_right_div_drop_down_menu > ul > li > a {
    color: rgb(224, 179, 31);
    background-color: rgb(75, 60, 52);
    font-size: 18px;
    font-weight: bolder;
    height: 40px;
    line-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
}

#container_header_bottom_middle_right_div_drop_down_menu > ul > li > a:hover {
    color: rgb(255, 255, 255);
    background-color: var(--grey_color);
}

#container_header_bottom_middle_right_div:has(#container_header_bottom_middle_right_div_drop_down_menu:hover) {
    background-color: rgb(83, 116, 19);
}

#container_header_bottom_middle_right_div:has(#container_header_bottom_middle_right_div_drop_down_menu:hover)
    > #container_header_bottom_middle_right_div_right {
    background-color: rgb(140, 177, 169);
}

/* ----- container_header_bottom_right -----*/
#container_header_bottom_right {
    display: none;
    justify-content: center;
    align-items: center;
    width: 60px;
    margin-right: 15px;
    border-radius: 7px;
}

#container_header_bottom_right_open {
    width: 60px;
    height: 60px;
    font-size: 60px;
    color: var(--yellow_color);
    display: none;
    border-radius: 7px;
}
#container_header_bottom_right_close {
    display: none;
    width: 60px;
    height: 60px;
    font-size: 60px;
    color: var(--yellow_color);
    border-radius: 7px;
}

#container_header_bottom_right_open:hover {
    background-color: var(--grey_color);
    cursor: pointer;
}

#container_header_bottom_right_close:hover {
    background-color: var(--grey_color);
    cursor: pointer;
}

/* container_footer */

#container_footer_top_left {
    grid-area: container_footer_top_left;
}

#container_footer_top_right {
    grid-area: container_footer_top_right;
}

#container_footer_top_right_address {
    padding: 125px 125px 125px 0px;
    display: flex;
    justify-content: flex-end;
}

#container_footer_top_right_address > ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#container_footer_top_right_address > ul > li {
}

#container_footer_top_right_address > ul > li > a {
    display: flex;
    gap: 5px;
}

#container_footer_top_right_address > ul > li > a > .container_footer_top_right_address_ul_li_a_left {
    font-size: 18px;
    line-height: 20px;
    font-weight: bold;
    color: var(--yellow_color);
}

#container_footer_top_right_address > ul > li > a > .container_footer_top_right_address_ul_li_a_right {
    font-size: 18px;
    line-height: 20px;
    font-weight: bold;
    color: var(--yellow_color);
    letter-spacing: 1px;
}

#container_footer_top_right_address > ul > li > a:hover > .container_footer_top_right_address_ul_li_a_left {
    color: var(--grey_color);
    text-decoration: underline;
}

#container_footer_top_right_address > ul > li > a:hover > .container_footer_top_right_address_ul_li_a_right {
    color: var(--grey_color);
    text-decoration: underline;
}

#container_footer_bottom {
    grid-area: container_footer_bottom;
    background-color: rgb(0, 0, 0);
    color: rgb(224, 179, 31);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    border-color: var(--yellow_color);
    border-width: 1px 0px 0px 0px;
    border-style: solid;
}

/* Widok mobilny */
@media (max-width: 1350px) {
    #container_header_bottom_middle {
        display: none;
        position: absolute;
        top: 104px;
        right: 0px;
        flex-direction: column;
        height: 100vh;
        z-index: 1;
        background-color: var(--brown_color);
        gap: 20px;
        justify-content: flex-start;
        padding: 25px 0px;
        border-width: 0px 0px 0px 1px;
        border-color: var(--black_color);
        border-style: solid;
    }

    #container_header_bottom_middle.active {
        display: flex;
    }

    #container_header_bottom_middle_left {
        flex-direction: column;
        display: flex;
    }

    #container_header_bottom_middle_left > li {
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        align-items: stretch;
    }

    #container_header_bottom_middle_left > li > a {
        background-color: rgb(63, 59, 59);
    }

    #container_header_bottom_middle_left > li > a:hover {
        background-color: var(--dark_green_color);
        color: var(--white_color);
        border: 0.5px solid var(--white_color);
    }

    #container_header_top > ul > li > a > .container_header_top_ul_li_a_right {
        display: none;
    }

    /* Glowny kontener strony. */
    #container {
        grid-template-areas:
            " container_header "
            "container_main "
            "container_footer ";
        grid-template-columns: 1fr;
    }

    /* ----- container_header_bottom_right -----*/
    #container_header_bottom_right {
        display: flex;
    }

    #container_header_bottom_right_open {
        display: block;
    }

    #container_header_bottom_right_close {
        display: none;
    }

    #container_header_bottom_right_open.active {
        display: none;
    }

    #container_header_bottom_right_close.active {
        display: block;
    }

    /* Footer strony. */
    #container_footer {
        grid-template-areas:
            "container_footer_top_left"
            " container_footer_top_right"
            "container_footer_bottom";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 80px;
    }

    #container_footer_top_right_address {
        padding: 125px 0px 125px 0px;
        justify-content: center;
    }
}

/* Style for mobile */
@media (max-width: 768px) {
    #container_header_bottom_left_right {
        font-size: 32px;
    }
}
