@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,900');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    
}


header{
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
   padding: 3%;
   background-color: rgb(246,246,246);
}
.logo img{
    width: 40%;
    }
    nav{
        border-radius: 5px;
        /* transform: translateX(-150px); */
        display: flex;
        gap: 50px;
    }
    .serch {
        position: relative;
        width: 300px; 
    }
    .serch input[type="search"] {
        width: 100%;
        padding: 10px 40px 10px 10px; 
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 7px;
    }
    .serch .fa-magnifying-glass {
        position: absolute;
        top: 50%;
        right: 10px; 
        transform: translateY(-50%);
        color: #aaa;
    }
        
     /* media querry for header   */
     @media screen and (max-width:768px) {
        nav{
            position: absolute;
            top: 50px;
            right: 0;
            height: 60vh;
            background-color:  rgb(21, 90, 3);
            display: flex;
            opacity: 0.9;
            flex-direction: column;
            width: 100%;
            transition: 1s ease-in-out;
            transform: translateX(-100%);
            justify-content: center;
           text-align: center;
    
        }
        nav a{
            color: white;
            font-size: 1.5rem;
        }
    
        .menu{
            display: flex;
            
        }
        
        nav.hidden{
            transform: translateX(0);
        }
        .log button{
            width: 80px;
            height: 40px;
        }
        .btn button{
            width: 100px;
            height: 40px;
        }
        .serch{
            transform: translateX(-50px);
        }
        .icon{
            display: flex;
            gap: 5px;
        }
    }
    @media screen and (max-width:470px) {
        .logo img{
            width: 50%;
            }
            .log button{
                width: 80px;
                height: 40px;
            }
            .btn button{
                width: 100px;
                height: 40px;
            }
    }


main {
    display: flex;
    margin-top: 70px;
    padding: 20px;
    flex-grow: 1;
}

aside {
    width: 200px;
    padding: 20px;
    background-color: white;
    border-right: 1px solid #ddd;
}

aside .item a {
    display: block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.3s;
}

aside .item a:hover,
aside .item a.active-link {
    color: rgb(5, 91, 5);
    font-weight: bold;
}

section#scan {
    flex-grow: 1;
    padding: 20px;
}

section#scan h5 {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgb(72, 71, 71);
}

.scan-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scan-item {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scan-item button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background-color: rgb(5, 91, 5);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scan-item button:hover {
    background-color: rgb(3, 71, 3);
}

.scan-item button i {
    margin-left: 10px;
}

.scan-item input {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#results {
    margin-top: 20px;
    text-align: center;
}

#loading {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid rgb(21, 90, 3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Feedback button styles */
.scan-item button.feedback-button {
    background-color: rgb(5, 91, 5); /* Green color for Feedback button */
    color: white;
}

.scan-item button.feedback-button:hover {
    background-color: rgb(3, 71, 3);
}

/* Sell link styles */
.scan-item .sell-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    color: black;
    background-color: #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.scan-item .sell-link:hover {
    background-color: #bbb;
}

/* Feedback form styles */
.feedback-form {
    display: none;
    margin-top: 20px;
    text-align: left;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.feedback-form button {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: rgb(5, 91, 5);
    color: white;
    cursor: pointer;
}

.feedback-form button:hover {
    background-color: rgb(3, 71, 3);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
 

    .scan-item {
        width: 100%;
        max-width: 100%;
        margin-top: 50px; /* Full width for smaller screens */
    }

    .scan-item button,
    .feedback-form button {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
    }
}

/* Further optimization for very small screens */
@media screen and (max-width: 480px) {
    .scan-item {
        padding: 10px;
    }

    .scan-item button {
        font-size: 0.9rem;
    }

    .feedback-form input,
    .feedback-form textarea {
        font-size: 0.9rem;
        padding: 8px;
    }

    .feedback-form button {
        font-size: 1rem;
    }

    .sell-link {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}
