* {
    box-sizing: border-box;
    margin: 0;
}

body {
    background-color: #53553c;
    overflow: hidden;
    position: relative;

    > img {
        height: 30vw;
        width: 54vw;
        position: absolute;
        z-index: -1;
        filter: grayscale(80%) opacity(60%);
        bottom: -40%;
        
        &[id = zoba1] {
            left: -13%;
            transform: rotateY(180deg);
        }

        &[id = zoba2] {
            right: -13%;
        }

        &[id = flawa1] {
            width: 30vw;
            height: 54vw;
            scale: .5;
            left: -10%;
            top: -50%;
            transform: rotateZ(135deg);
        }

        &[id = flawa2] {
            width: 30vw;
            height: 54vw;
            scale: .5;
            right: -10%;
            top: -50%;
            transform: rotateZ(-135deg);
        }
    }
}

img {
    width: 250px;
    height: 250px;
}

.logo {
    text-align: center;
    > img {
        height: 150px;
        width: 150px;
    }
}

.wrap {
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.main {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    max-width: 67%;
    flex-wrap: wrap;
    background-color: #cf9741;
    text-align: center;
    border: 3px solid black;
    border-radius: 25px;
    max-height: 600px;
    overflow: auto;
    scrollbar-width: none;
    justify-content: center;
    box-shadow: inset 1rem 1rem 10rem black, 
                inset -1rem -1rem 10rem black;
}

.news {
    max-width: 200px;
    background-color: #feffed;
    max-height: 600px;
    border-radius: 0 25px 25px 0;
    border: 3px solid black;
    position: relative;

    h1 {
        margin-top: 10px;
    }

    h1, p {
        padding: 10px;
    }

    img {
        height: auto;
        width: 30%;
        position: absolute;
        top: -3%;
        right: -10%;
    }

    div {
        max-height: 500px;
        margin: 0 auto;
        margin-bottom: 50px;
        overflow: auto;
        scrollbar-width: thin;
        width: 95%;
    }
}

h1 {
    margin-bottom: 25px;
}

.button {
    padding: 10px;
    position: absolute;
    top: 8%;
    background-color: aquamarine;
    border: 3px black solid;
    cursor: pointer;
    transition: left 1s, right 1s;
    display: none;

    &:hover {
        background-color: rgba(127, 255, 212, 0.736);
    }

    h1 {
        margin-bottom: 0;
    }

    &.firstOne {
        left: 0;
        border-radius: 0px 25px 25px 0px;
        /* top: 20%; */

        &.left {
            left: -200px;
            top: 8%;
        }
    }

    &.secondOne {
        right: 0;
        border-radius: 25px 0px 0px 25px;
        
        &.right {
            right: -200px;
            position: fixed;
        }
    }
}

section {
    margin: 20px;
    
    &.products {
        .images {
            max-width: inherit;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 20px;

            > div {
                border: 1px solid black;
                border-radius: 25px;
                padding: 10px;
                margin: 10px;
                background-color: #feffed;

                img {
                    cursor: pointer;
                    /* transition: 1s;

                    &:hover {
                        rotate: 180deg;
                        zoom: 1.2;
                    } */
                }
            }
        }
    }

    &.contact {
        .links {
            margin-top: 20px;
            margin-bottom: 20px;

            a:first-child:hover {
                i {
                    color: red;
                }
            }

            a:last-of-type:hover {
                i {
                    color: blue;
                }
            }
        }

        a {
            margin: 0 20px;
        }

        .fa-brands {
            font-size: 40px;
            width: 40px;
            height: 40px;
            cursor: pointer;
            color: black;
            /* margin: 0 20px; */
            border-radius: 25px;
            transition: 1s;
        }

        p {
            font-size: 20px;
            margin: 10px;
        }
    }
}

dialog {
    margin: 20px auto;
    z-index: 2;
}

dialog[open] {
  display: block;
  opacity: 1;
  scale: 1;
  margin: auto;
  border-radius: 25px;
}

footer {
    background-color: grey;
    text-align: center;
    font-size: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;

    p {
        display: inline;

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

@media screen and (max-width: 1000px) {
    .logo img {
        height: 75px;
        width: 75px;
    }

    .main img {
        width: 125px;
        height: 125px;
    }

    .news div {
        max-height: 150px;
        margin: 0 auto;
        margin-bottom: 50px;
        overflow: auto;
    }
}

@media screen and (max-width: 450px) {
    body > img {
        display: none;
    }

    .wrap {
        max-height: 800px;
    }

    .main, .news {
        transition: margin-left 1s;
        width: 80%;
        max-width: 80%;
        /* overflow: auto; */
    }

    .main {
        box-shadow: inset 2px 2px 3rem black, 
                inset -2px -2px 3rem black;
    }

    .main[data-active = true] {
        margin-left: 20%;
    }

    .main[data-active = false] {
        margin-left: -300%;
        /* position: fixed; */
    }

    .news[data-active = true] {
        margin-left: 10%;
    }

    .news[data-active = false] {
        margin-left: -100%;
        /* position: fixed; */
    }

    .news {
        margin: 0 auto;
        max-width: 80%;
        border-radius: 25px;
        text-align: center;
        height: fit-content;

        img {
            top: -5%;
        }

        div {
            max-height: 500px;
            margin: 0 auto;
            margin-bottom: 50px;
            overflow: auto;
        }
    }

    section.products .images>div{
        margin: 0;
        margin-bottom: 10px;
    }

    dialog[open] {
        width: 250px;
        text-align: center;
    }

    img {
        width: 200px;
        height: 200px;
    }

    .images > div {
        margin: 10px 0;
    }

    .button {
        display: block;
    }
}