@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;1,300&display=swap');

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

header {
    background-color: rgb(255, 255, 255);
    z-index: 9999;
    border-bottom: #c0c0c0 solid 0.2px;
    transition: transform 0.3s ease-in-out;
}

#information {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(111, 197, 248);
    color: aliceblue;
    width: 100%;
}

#headerlinksimg {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
}

#imgheader {
    margin: 10px 0 0 10px;
    width: 60px;
}

#headerlinks {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#headerlinks a {
    margin: 0 5px;
    text-decoration: none;
    color: black;
    font-size: 10px;
    position: relative;
}

.a-span {
    width: 0;
    background: rgb(0, 0, 0);
    transition: width 0.3s;
    height: 1px;
    position: absolute;
    top: 100%;
    left: 0;
}

#headerlinks a:hover .a-span {
    width: 100%;
}

.st {
    width: 100%;
}

#cart {
    width: 40px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cart img {
    width: 20px;
    height: 20px;
}

main {
    margin: 20px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
}

#image95 {
    width: 250px;
}

main h1 {
    font-size: 20px;
    margin: 7px 0 0 29px;
    color: rgb(0, 0, 0);
}

#btnmain {
    width: 140px;
    height: 34px;
    background-color: rgb(255, 255, 255);
    border: 1px solid black;
    font-size: 12px;
    color: rgb(0, 0, 0);
    border-radius: 4px 0 4px 4px;
    animation: slide-top 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#btnmain:hover {
    border: 1.4px solid black;
}

.slidetop {
    animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

#img70 {
    width: 170px !important;
    height: 170px !important;
}

footer {
    background-color: rgb(92, 225, 250);
    display: flex;
    align-items: end;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    position: absolute;
    bottom: 0;
}

section {
    width: 100vw;
    text-align: center;
}

#answer2 p {
    margin-bottom: 90px !important;
}

/* ---- MEDIA QUERY: EKRANY >= 580px ---- */
@media (min-width: 580px) {
    #links {
        display: none;
    }

    #information {
        font-size: 3px;
    }

    #sidebar {
        display: none;
    }
}

/* ---- MEDIA QUERY: EKRANY < 580px ---- */
@media (max-width: 580px) {
    #s1 {
        text-align: center;
    }

    #img70 {
        width: 70px !important;
        height: 70px !important;
    }

    header {
        height: 60px;
        display: flex;
        align-items: center;
        border-bottom: 0.2px solid rgb(218, 218, 218);
        position: sticky;
        top: 0;
        transform: translateZ(0);
    }

    #information {
        font-size: 7px;
        min-height: 20px;
        background-color: rgb(92, 225, 230);
    }

    #btnmain {
        width: 170px;
        height: 64px;
        font-size: 17px;
        border: 2px solid black;
    }

    #h1main {
        margin-left: 34px;
    }

    #links {
        position: absolute;
        right: 10px;
        top: 10px;
    }

    .imgphone {
        width: 37px;
        height: 37px;
    }

    #headerlinks {
        display: none;
    }

    #cart {
        width: 100%;
        height: 30px;
    }

    #mobileicon {
        position: absolute;
        top: 40px;
        right: 10px;
    }

    #sidebar {
        position: fixed;
        top: 0;
        left: -400px;
        width: 320px;
        height: 100%;
        background-color: rgb(92, 225, 230);
        color: white;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        z-index: 9999;
    }

    #sidebaritems {
        margin: 40px 10px 300px 0;
        display: flex;
        flex-direction: column;
    }

    #sidebaritems a {
        margin: 10px;
        font-size: 30px;
        color: #ffffff;
        text-decoration: none;
    }

    #linkssidebar {
        display: flex;
        justify-content: start;
        align-items: end;
        width: 100%;
        margin-left: 70px;
    }

    #linkssidebar img {
        width: 70px;
    }

    #buy {
        position: fixed;
        bottom: 0;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(92, 225, 230);
        color: white;
        font-size: 13px;
        display: none;
    }
}

/* ---- ANIMACJE ---- */
@-webkit-keyframes slide-top {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    100% {
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
    }
}

@keyframes slide-top {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    100% {
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
    }
}
