@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:wght@100..900&display=swap');

* {
    scrollbar-width: none;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Sour Gummy", sans-serif;
    background-color: #a0886e;
    cursor: url('cursor.png'), auto;
}

:hover {
    cursor: url('cursor.png'), auto;
}

::selection {
    background-color: rgba(232, 185, 74, 0.2);
}

#logo {
    width: 50px;
}

#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3c3430;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-right: 5%;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background-color: #a0886e;
    width: 25px;
    height: 3px;
    margin: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

#menu-toggle {
    display: none;
}

.nav-links {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    list-style: none;
    position: absolute;
    width: 100%;
    left: -100%;
    top: 50px;
    transition: 0.4s;
}

#menu-toggle:checked ~ .nav-links {
    left: 0;
    background-color: #3c3430;
}

#menu-toggle:checked ~ .nav-links {left: 0;}
#menu-toggle:checked ~ .hamburger {position: relative; justify-content: center;}
#menu-toggle:checked ~ .hamburger span {position: absolute; right: 0;}
#menu-toggle:checked ~ .hamburger span:first-child {transform: rotate(45deg)}
#menu-toggle:checked ~ .hamburger span:nth-child(2) {display: none;}
#menu-toggle:checked ~ .hamburger span:nth-child(3) {transform: rotate(-45deg);}

.nav-links li {
    margin: 10px;
}

.nav-links li a {
    text-decoration: none;
    color: #a0886e;
}

.nav-links li a:hover {
    color: #c6ac90;
}

#heros {
    height: 550px;
    position: relative;
    overflow: hidden;
}

#herobgr {
    display: none;
}

#heroimg {
    background-image: url("heroimg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}

#herotitle {
    position: relative;
    top: 14%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 120px;
    background: rgba(179, 151, 86, 0.6);
    border: 3px solid #e8b94a;
    border-radius: 3px;
    overflow: hidden;
    padding: 1%;
}

#herotitle img {
    height: 65%;
    width: auto;
    position: absolute;
    right: 0;
    top: 0;
}

#herotitle p {
    font-size: 30px;
    color: #3c3430;
}

#herotitle button {
    position: absolute;
    left: 20%;
    bottom: 20%;
    color: #a0886e;
    background-color: #3c3430;
    border: 2px solid #3c3430;
    border-radius: 3px;
    font-size: 16px;
}

#herotitle button:hover {
    transform: scale(1.1);
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
    box-shadow: 0 0 5px #4e433e;
    background-color: #4e433e;
    border-color: #4e433e;
    color: #c6ac90;
}

.container {
    position: relative;
    margin: 2%;
    padding: 1%;
    padding-top: 0;
    border: 3px solid #3c3430;
    border-style: dashed;
    text-align: center;
    color: #3c3430;
}

.container h1 {
    font-size: 30px;
}

#kawy, #ciasta {
    display: flex;
    justify-content: space-evenly;
}

#koty {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-evenly;
}

#abtus {
    width: 80%;
    margin-left: 10%;
}

.kawa, .ciasto, .kot{
    height: auto;
    max-height: 300px;
    width: 30%;
    max-width: 400px;
    border: 4px solid #4e433e;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1%;
    background-color: #b6a089;
    background-image: url(lapkibckg.png);
    background-repeat: repeat;
    background-position: right;
    background-size: contain;
}

.kawa p, .kawa h2, .ciasto p, .ciasto h2, .kot p, .kot h2 {
    background-color: #a0886e;
    border: 1px solid #4e433e;
    border-radius: 5px;
}

.kot {
    flex: 1 1 calc(50% - 20px);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1%;
    align-items: flex-start;
    max-height: 400px;
    width: 100%;
    max-width: 500px;
}

.kot h2 {
    flex-basis: 100%;
    margin-top: 0;
}

.kawa img, .ciasto img, .kot img {
    aspect-ratio: 1 /1;
    width: 50%;
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 5px solid #4e433e;
    border-radius: 5%;
}

.kot img {
    order: 1;
}

.kot p {
    flex: 1;
    order: 2;
}

.kawa img:hover, .ciasto img:hover, .kot img:hover {
    transform: scale(1.1);
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

#kontakt {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

#lewa, #prawa {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 10px;
    border: 4px solid #4e433e;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 1%;
    min-width: 0;
}

input, textarea {
    padding: 5px;
    border: 1px solid #4e433e;
    border-radius: 5px;
    background: #c6ac90;
    color: #3c3430;
    font-family: "Sour Gummy", sans-serif;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: none;
}

input::selection, textarea::selection {
    background-color: #a0886e;
}

input::placeholder, textarea::placeholder {
    color: #4e433e;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 5px #4e433e;
}

#kontakt button {
    margin-top: 10px;
    align-self: center;
    width: 20%;
    padding: 1%;
    background-color: #c6ac90;
    border: 1px solid #4e433e;
    border-radius: 5px;
    font-family: "Sour Gummy", sans-serif;
}

#kontakt button:hover {
    box-shadow: 0 0 5px #4e433e;
    background-color: #bd976e;
    color: #3c3430;
    transform: scale(1.1);
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

@media (max-width: 660px) {
    #herotitle {
        left: 4%;
        top: 70%;
    }

    #kawy, #ciasta {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .kawa, .ciasto, .kot {
        margin-top: 1%;
        margin-bottom: 1%;
        width: 60%;
        max-height: 500px;
    }

    .kot {
        justify-content: center;
    }

    .kot img, .kot p {
        flex-basis: 100%;
        order: initial;
    }

    #kontakt {
        flex-direction: column;
        gap: 10px;
        border: 4px solid #4e433e;
        border-radius: 10px;
    }

    #lewa, #prawa {
        flex-basis: 100%;
        border: none;
    }

    #lewa {
        order: 1;
    }

    #prawa {
        order: 2;
    }

    #kontakt button {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
    #main-nav {
        display: flex;
    }
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        display: flex;
        flex-direction: row;
        
    }
    #heroimg {
        background-image: url("heroimg.png");
        background-repeat: no-repeat;
        background: cover;
        background-position: center;
        position: absolute;
        top: 0;
        left: 5%;
        width: 90%;
        height: 100%;
    }

    #herobgr {
        display: block;
        background-image: url("heroimg.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        filter: blur(5px) brightness(0.8);
        inset: -30px;
        position: absolute;
    }

}

