body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    padding: 0;
    background: rgb(0,255,235);
    background: radial-gradient(circle, rgba(0,255,235,1) 0%, rgba(0,134,255,1) 62%, rgba(0,74,255,1) 74%, rgba(51,0,255,1) 86%, rgba(141,0,255,1) 100%);
}
.header {
    display: flex;
    margin: 0;
    margin-bottom: 20px;
    justify-content: center;
    column-gap: 30px;
    position: sticky;
    top: 0px;
    padding: 20px 0;
    background: rgba(0,0,0,0.5);
    z-index: 4;
    transition: background 0.5s ease-in-out;
}
.header.scrolled {
    background: rgba(0, 0, 0, 0.9); 
}
.button {
    width: 50px;
    height: 50px;
    background-color: #fff;
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 10px;
}
.button:hover {
    opacity: 0.7;
}
.button.clicked {
    background-color: rgb(255, 165, 221);
}
.main {
    margin: 0 auto;
    width: min(1600px, 90%);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px 5px;
}
.fragnance {
    display: flex;
    flex-direction: column;
    background-color: aliceblue;
    justify-content: center;
    align-items: center;
    background: rgb(15,50,89);
    background: linear-gradient(30deg, rgba(15,50,89,1) 0%, rgba(16,58,85,1) 21%, rgba(18,60,164,1) 45%, rgba(57,34,150,1) 67%, rgba(77,28,140,1) 100%);
    background: transparent;
    border-radius: 10%;
    padding: 5px 5px;
}
.fragnance.hidden {
    display: none;
}
.img {
    overflow: hidden;
    width: 300px;
    height: 300px;
    position: relative;
    background-color: white;
    border-top-left-radius: 10%;
    border-top-right-radius: 10%;
    box-shadow: 0px 1px 10px 0 #000, 
    0 1px 5px 0px #ccc,
    0 3px 5px 0px #fff;
}
.img>img {
    position: absolute;
    max-height: 300px;
    max-width: 300px;
    top: -9999px;
    left: -9999px;
    right: -9999px;
    bottom: -9999px;
    margin: auto;
}
.title {
    position: relative;
    z-index: 2;
    background-color: rgb(202, 230, 255);
    background: rgb(215,255,242);
background: linear-gradient(90deg, rgba(215,255,242,1) 0%, rgba(202,255,254,1) 21%, rgba(206,241,255,1) 45%, rgba(209,235,255,1) 68%, rgba(213,223,255,1) 100%);
    box-sizing: border-box;
    /* padding: 5px 10px; */
    width: 300px;
    color:rgb(34, 69, 163);
    font-size: 20px;
    border-top: 3px solid rgba(0,0,0,0.7);
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    min-height: 100px;
    box-shadow: 0px 1px 5px 0 #000, 
    0 1px 2px 0px #ccc,
    0 1px 7px 0px #fff;
    overflow: hidden;
    /* cursor: pointer; */
}
.title:hover .name {
    /* display: none; */
}
.info {
    display: none;
    font-size: 30px;
    color:rgb(50, 7, 48);
    text-align: center;
}
.title:hover .info {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: -30px;
    right: 10px;
}
.title:hover .info>img {
    width: 30px;
    /* display: block; */
    /* z-index: 3; */
}
.title::before {
    transition: 0.3s;
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    opacity: 0.0;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(48, 222, 63, 0.784) 0%,rgba(16, 200, 22, 0.471) 50%, rgba(0, 165, 74, 0.0) 100%);
}
.title:hover::before {
    opacity: 0.8;
}
.alike {
    overflow: hidden;
    cursor: pointer;
    position: absolute;
    max-width: 80px;
    max-height: 80px;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    box-shadow: 0 0 3px rgb(34, 69, 163);
    opacity: 0.8;
    z-index: 2;
    transition: 0.3s;
}
.alike:hover {
    opacity: 1;
    max-width: 200px;
    max-height: 200px;
}
.alike>img {
    max-width: 100%;
    max-height: 100%;
    transition: 0.3s;
}
.title>a {
    display: block;
    text-decoration: none;
    padding-left: 20px;
    transition: 0.3s;
}
.title>a:hover {
    color: rgb(29, 58, 17);
}

@media (hover: none) {
    .button:hover {
        pointer-events: none;  /* Wyłącza hover tylko dla tego elementu */
        opacity: 1;
    }
}

@media screen and (max-width: 1600px) {
    .main {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .alike:hover {
        max-width: 150px;
        max-height: 150px;
    }
    .alike {
        max-width: 60px;
        max-height: 60px;
    }
    .title {
        width: 250px;
        font-size: 15px;
    }
    .img {
        width: 250px;
        height: 250px;
    }
    .img>img {
        max-height: 250px;
        max-width: 250px;
    }
}

@media screen and (max-width: 1200px) {
    .main {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .alike:hover {
        max-width: 120px;
        max-height: 120px;
    }
    .alike {
        max-width: 50px;
        max-height: 50px;
    }
    .title {
        width: 200px;
        font-size: 13px;
    }
    .img {
        width: 200px;
        height: 200px;
    }
    .img>img {
        max-height: 200px;
        max-width: 200px;
    }
}

@media screen and (max-width: 900px) {
    .main {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .fragnance {
        padding: 20px 5px;
    }
    .alike:hover {
        max-width: 100px;
        max-height: 100px;
    }
    .alike {
        max-width: 40px;
        max-height: 40px;
    }
    .title {
        width: 150px;
        font-size: 15px;
    }
    .img {
        width: 150px;
        height: 150px;
    }
    .img>img {
        max-height: 150px;
        max-width: 150px;
    }
    .info img {
        height: 25px;
        width: 22px !important;
    }
    .title:hover .info {
        gap: 4px;
        bottom: -15px;
        right: 10px;
    }
}

@media screen and (max-width: 700px) {
    .main {
        grid-template-columns: 1fr 1fr;
    }
    .alike:hover {
        max-width: 100px;
        max-height: 100px;
    }
    .alike {
        max-width: 40px;
        max-height: 40px;
    }
    .title {
        width: 150px;
        font-size: 15px;
    }
    .info {
        font-size: 12px;
    }
    .info img {
        height: 20px;
        width: 18px !important;
    }
    .title:hover .info {
        gap: 3px;
        bottom: -10px;
        right: 10px;
    }
}

@media screen and (max-width: 500px) {
    .button {
        width: 40px;
        height: 40px;
    }
    .main {
        grid-template-columns: 1fr 1fr;
    }
    .alike:hover {
        max-width: 80px;
        max-height: 80px;
    }
    .alike {
        max-width: 30px;
        max-height: 30px;
    }
    .title {
        width: 120px;
        font-size: 13px;
    }
    .img {
        width: 120px;
        height: 120px;
    }
    .img>img {
        max-height: 120px;
        max-width: 120px;
    }
}