@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Oxygen&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
}

body { background-color: #070707; }

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

#container {
    width: 100%;
    background-color: black;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    background: url("../img/bgNew.png");
    background-size: 200% 100%;
    background-repeat: repeat-x;
    animation: bg-move 90s infinite linear;
}

@keyframes bg-move {
    0% { background-position: 0% 0%}
    100% { background-position: 200% 0% }
}

#menu {
    width: 80%;
    height: 15vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(36px);
    margin-top: 1vh;
    padding: 1vh 2vw;
    border-radius: 16px;
}

#logo {
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo a {
    display: block;
    width: 100%;
    text-align: center;
}

#logo img {
    width: 10%;
    scale: 1;
    transition: scale 0.5s ease-in-out;
}

#logo img:hover {
    scale: 1.1;
}

#navbar {
    width: 30%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#navbar a {
    margin: 0 1vw;
    font-size: 120%;
    font-weight: 300;
    border-bottom: 1px solid rgba(0,0,0,0);
    transition: all 0.2s ease-in-out;
}

#navbar a:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 1);
}

#actions {
    width: 10%;
    font-size: 150%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#actions i:hover {
    cursor: pointer;

}

#content {
    width: 60%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}

.promo {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.promo h3 {
    margin-top: 15vh;
    font-size: 200%;
    font-weight: 200;
    letter-spacing: 2px;
    display: block;
    width: 45%;
    animation: typing-h3 4s linear
}

.promo h1 {
    font-size: 500%;
    font-weight: 200;
    letter-spacing: 3px;
    display: block;
    width: 45%;
    animation: typing-h1 3s ease, title-move 8s ease-in-out infinite 3s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    /* animation: title-move 8s ease-in-out infinite; */
}

.typewriter {
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    white-space: nowrap; /* Keeps the content on a single line */
    letter-spacing: .15em; /* Adjusts the spacing between characters */
}

@keyframes typing-h1 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes typing-h3 {
    from { width: 0; }
    to { width: 45%; }
}

@keyframes title-move {
    0% {letter-spacing: 3px;}
    50% {letter-spacing: 8px;}
    0% {letter-spacing: 3px;}
}

.yt-vid {
    width: 60vw;
    height: 50vh;
    margin: 2vh 0;
}

/* .listen-btn {
    width: 25%;
    height: 5vh;
    padding: 1vh 0.5vw;
    backdrop-filter: blur(5px);
    font-size: 200%;
    letter-spacing: 1px;
    transition: all 1s ease-in-out;
}

.listen-btn:hover {
    cursor: pointer;
    transition: all 1s ease-in-out;
    letter-spacing: 5px;
    backdrop-filter: blur(15px);
    border-radius: 20px;
} */

#footer {
    display: flex;
    font-size: 110%;
    justify-content: center;
    align-items: center;
    font-weight: 100;
    background-color: black;
    width: 80%;
    height: 4vh;
}

.promo p {
    letter-spacing: 3px;
    font-size: 120%;
    font-weight: 300;
}

.new-products-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.new-products {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap;
    animation: scroll-horizontal 60s linear infinite;
    width: max-content;
    padding: 2vh 1vw;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Duplikujemy produkty by wyglądało na nieskończone */
.new-products .product-card {
    text-align: center;
    width: 250px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h2 {
    margin: 10px 0 5px;
    font-size: 1rem;
    font-weight: 300;
}

.product-card p {
    margin: 0;
    font-weight: 500;
}

.product-card a {
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.2s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-card a:hover {
    cursor: pointer;
    color: #555;
}

.new-products:hover {
    animation-play-state: paused;
}



@media only screen and (max-width: 950px) {
    #container {
        width: 100%;
        height: auto;
        background-size: 600%;
        background-repeat: repeat repeat;
        animation: bg-move 90s infinite linear;
        overflow-x: hidden;
    }
    #menu {
        width: 100%;
        height: 20vh;
        margin-top: 0;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
    }
    #logo {
        width: 100%;
        height: auto;
        text-align: center;
        margin-top: 0;
    }

    #logo a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #logo img {
        width: 30%;
    }

    #navbar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
    }
    
    #navbar a {
        margin: 1vh 2vw;
        font-size: 140%;
        font-weight: 300;
        border-bottom: 1px solid rgba(0,0,0,0);
        transition: all 0.2s ease-in-out;
    }

    #actions {
        width: 100%;
        font-size: 150%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 1vh 0;
    }

    .promo {
        height: 50vh;
    }

    .promo h1 {
        font-size: 300%;
        font-weight: 200;
        letter-spacing: 3px;
        display: block;
        width: 80%;
    }

    #content {
        width: 100%;
        min-height: 75vh;
    }


    .promo {
        width: 100%;
        height: auto;
    }

    .promo h1, .promo h3, .promo p {
        height: auto;
    }

    #footer {
        width: 100%;
    }

    .product-card {
        width: 150px !important;
    }
}