/* ===== LOGIN FORM STYLES ===== */
body {
    background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
#login-container {
    max-width: 500px;
    margin: 100px auto;
    /* margin: 20px; */
    padding: 40px;
    background:rgb(194, 192, 188);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    
}

#login-container:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#login-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s;
}

#login-form input::placeholder {
    color: #888;
    font-style: italic;
    transition: all 0.3s;
}

#login-form input:focus::placeholder {
    color: #555;
    transform: translateX(5px);
}

#login-form button {
    /* width:100% ; */
    padding: 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
}

#login-form button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

/* ===== APP STYLES ===== */
body {
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    text-align: center;
}

#app-container h1 {
    font-size: 36px;
    margin-top: 20px;
}

#logout-button {
    padding: 12px 24px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 0px;
    transition: background 0.3s;
}

#logout-button:hover {
    background-color: #d32f2f;
}

#search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 10px;
}

#search-input {
    width: 60%;
    max-width: 400px;
    padding: 10px;
    font-size: 18px;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

#search-button {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

#search-button:hover {
    background-color: #3e8e41;
}

.search-results {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    gap: 20px;
}

.search-result {
    position: relative;
    width: 30%;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: whitesmoke;
}

.search-result img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.search-result:hover img {
    transform: scale(1.05);
}

.search-result a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
}

.download-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: none;
    border-radius: 5px;
    font-size: 16px;
}

.search-result:hover .download-btn {
    display: block;
}

#show-more-button {
    background-color: #008cba;
    color: white;
    border: none;
    padding: 10px 20px;
    display: none;
    margin: 20px auto;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#show-more-button:hover {
    background-color: #0077b5;
}

.confirmation-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
}

.confirmation-box p {
    font-size: 18px;
    margin-bottom: 15px;
}

.confirmation-box button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.confirm-yes {
    background: #4caf50;
    color: white;
}

.confirm-no {
    background: #f44336;
    color: white;
}

@media screen and (max-width: 768px) {
    .search-result {
        width: 45%;
    }
}

@media screen and (max-width: 480px) {
    .search-result {
        width: 100%;
    }
    
    #search-form {
        flex-direction: column;
        display: flex;
    }
  
    
    #search-input {
        width: 90%;
    }
  
}