*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background: #f4f7fb;
    min-height: 100vh;
}

.title{
    text-align: center;
    margin: 20px 0;
    font-size: 32px;
    letter-spacing: 1px;
}

.search-box{
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#search{
    padding: 10px 15px;
    width: 280px;
    border-radius: 8px;
    border: 1px solid #00000099;
    outline: none;
    font-size: 15px;
    transition: all .2s ease;
}

#search:focus{
    border: 2px solid #4e89ff;
}


#btn, #btn1{
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background-color: #4e89ff;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn:hover, #btn1:hover{
    background-color: #1f5fff;
    transform: scale(1.05);
    box-shadow: 0px 2px 5px rgb(97, 97, 97);
}


.container{
    background-color: rgb(255, 255, 255);
    margin: 0 auto 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 95vw;
    min-height: 75vh;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.container img{
    width: 220px;
    height: 220px;
    object-fit: cover;
    margin: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.container img:hover{
    transform: translateY(-8px);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.25);
}

#btn1{
    display: block;
    margin: 20px auto 30px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    width: 100%;
    gap: 15px;
}

.categories div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    width: 350px;
    height: 200px;
}

.categories img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    transition: all 0.4s ease;
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Hover Effects */
.categories div:hover img {
    transform: scale(1.1);
}

.categories div:hover .overlay-text {
    background: rgba(0, 0, 0, 0.7);
}


.footer{
    margin-top: 40px;
    background-color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.08);
}

.footer p{
    font-size: 14px;
    color: #444;
    margin-bottom: 12px;
}

.footer .name{
    font-weight: bold;
    color: #4e89ff;
}

.socials{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials img{
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.socials img:hover{
    transform: scale(1.2);
}

.preview{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.imgBox{
    position: relative;
}

#closeBtn{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    padding: 2px;
    transition: all 0.2s ease;
}

#closeBtn:hover{
    transform: scale(1.1);
}

.preview img{
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 10px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .container{
        justify-content: space-between;
    }

    .container img{
        width: 48%;
        height: 180px;
        margin: 6px 0px;
        border-radius: 10px;
    }
}


