/* Reset podstawowy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #f5f5f5;
    color: black;
}

/* Navbar */
.navbar {
    background-color: #4CAF50;
    display: flex;
    justify-content: flex-start;
    padding: 10px 20px;
    position: fixed;   /* navbar przyklejony do góry */
    top: 0;            /* od góry ekranu */
    left: 0;           /* od lewej krawędzi */
    width: 100%;       /* pełna szerokość */
    z-index: 1000;     /* aby był nad innymi elementami */
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.navbar a:hover {
    background-color: #45a049;
}

/* Główna treść */
main {
    margin-top: 80px;
    margin-left: clamp(15px, 15%, 550px);
    margin-right: clamp(15px, 15%, 550px);
    margin-bottom: 60px;
}

.classify-container {
    max-width: 2000px;
    margin: 100px auto;
    padding: 30px;
    background-color: #faefcd;
    border-radius: 15px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.classify-container h1 {
    margin-bottom: 30px;
    font-size: 30px;
    color: black;
}

.classify-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.classify-container input {
    font-size: 15px;
    padding: 15px;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease;
}
.classify-container input:hover {
    transform: scale(1.02);
}

.classify-container select {
    font-size: 15px;
    padding: 15px;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    width: 30%;
    transition: transform 0.2s ease;
}

.classify-container select:hover {
    transform: scale(1.02);
}

.classify-container button {
    padding: 10px 15px;
    background-color: white;
    color: black;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s, transform 0.2s ease;
}
.classify-container button:hover {
    background: lightgrey;
}

.results {
    display: flex;
    flex-wrap: wrap; /* przejście do nowego wiersza przy zbyt wielu elementach */
    justify-content: center; /* wyśrodkowanie */
    gap: 25px; /* odstępy między wynikami */
    margin-top: 40px;
}

.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px; /* szerokość pojedynczego wyniku */
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.uploaded-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.result h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.result p {
  color: grey;
  font-size: 17px;
}

.home-container {
    background-color: #faefcd;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    margin-top: 100px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.home-container h1 {
    font-size: 32px;
    color: black;
    margin-bottom: 20px;
}

.home-container p {
    font-size: 18px;
    color: black;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-main {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 18px;
    transition: background 0.3s, transform 0.2s ease;
}

.btn-main:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.features {
    margin-top: 80px;
    text-align: center;
}

.features h2 {
    font-size: 26px;
    margin-bottom: 40px;
    color: black;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 25px;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.feature h3 {
    margin-bottom: 10px;
    color: black;
}

.feature p {
    color: grey;
    font-size: 16px;
}


/* Wrapper dla wszystkich pojemników */
.bins-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Pojedynczy kontener jako przycisk */
.bin-card {
    background: #faefcd;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    flex: 1 1 200px;
    max-width: 200px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bin-card:hover {
    transform: translateY(-5px);
}

.bin-image {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

.bin-card h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 10px;
}

/* Ukryta treść */
.bin-info {
    display: none;  /* domyślnie ukryta */
    text-align: left;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsywność */
@media (max-width: 800px) {
    .bins-wrapper {
        display: flex;
        align-items: center;
    }

    .bin-card {
        max-width: 150px;     /* zmniejszona szerokość */
        padding: 6px;         /* mniejszy odstęp w kontenerze */
    }

    .bin-card h2 {
        font-size: 0.9rem;    /* mniejszy tekst */
    }

    .bin-image {
        width: 50%;           /* mniejsze obrazki */
        margin-bottom: 8px;
    }
}



/* Ramka z informacjami */
.bin-info-box {
    display: none;
    background-color: #faefcd;
    border-radius: 15px;
    padding: 20px;
    max-width: 1000px;
    margin: 30px auto 0 auto;
    text-align: center;
    animation: fadeIn 0.5s ease;
}
.center-text {
    text-align: center;
    margin-bottom: 15px;
}

#bin-lists {
    text-align: left;
}

#bin-lists ul {
    text-align: left;
}

/* Animacja pojawienia */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nagłówek w ramce */
#bin-title {
    text-align: center;
    margin-bottom: 15px;
}

/* Przycisk "Zamknij" */
.close-info {
    display: block;
    margin: 15px auto 0 auto;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-info:hover {
    background: #555;
}

/* Listy */
#bin-lists strong {
    display: block;
    margin-top: 10px;
}

#bin-lists ul {
    list-style: none;
    margin-left: 20px;
}



/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 3px;
}


/* Linki schowane w trybie mobile */
.navbar.open a {
    display: block;
    width: 100%;
    margin: 8px 0;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .navbar a {
        display: none;
    }

    .navbar.open a {
        display: block;
    }
}


@media (max-width: 768px) {
    .home-container {
        padding: 25px;         /* mniejszy padding */
        margin-top: 60px;
    }

    .home-container h1 {
        font-size: 18px;       /* mniejszy tytuł */
        line-height: 1.3;
    }

    .home-container p {
        font-size: 14px;       /* mniejszy tekst akapitu */
        line-height: 1.4;
    }
}



@media (max-width: 768px) {
    #model_choice {
        width: 100%;
        font-size: 16px;
    }
}


