/* UNIQUE CSS PREFIX */

body{
    margin:0;
    background:#f4f4f4;
    font-family:Arial;
}

/* HEADER */

.contest-main-header{
    background:#ffffff;
    padding:20px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.contest-main-header h1{
    margin:0;
    color:#222;
}

/* CONTAINER */

.contest-wrapper{
    width:95%;
    margin:auto;
    padding:20px 0;
}

/* TOP BOXES */

.contest-top-grid{
    display:grid;
    grid-template-columns:1fr 1fr 300px;
    gap:20px;
    margin-bottom:30px;
}

.contest-box{
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.contest-box h2{
    margin-top:0;
}

/* FORM */

.contest-form input,
.contest-form select{
    width:100%;
    padding:12px;
    margin-bottom:12px;
    border:1px solid #ccc;
    border-radius:8px;
}

.contest-btn{
    background:#ff0000;
    color:#fff;
    border:none;
    padding:12px;
    width:100%;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

.contest-btn:hover{
    background:#d40000;
}

/* GALLERY */

.contest-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.contest-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 2px 12px rgba(0,0,0,0.1);
    text-align:center;
    padding-bottom:15px;
}

.contest-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    cursor:pointer;
}

.contest-card h3{
    margin:10px 0 5px;
}

.contest-rank{
    color:#444;
    font-weight:bold;
}

/* MODAL */

.contest-modal{
    display:none;
    position:fixed;
    z-index:99999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
}

.contest-modal-content{
    display:block;
    margin:auto;
    max-width:90%;
    max-height:90%;
    margin-top:30px;
}

.contest-close{
    position:absolute;
    top:20px;
    right:30px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
}

/* ADMIN */

.contest-admin-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.contest-admin-card{
    background:#fff;
    border-radius:15px;
    padding:15px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.contest-admin-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
}

.contest-approve{
    background:#00a651;
}

.contest-delete{
    background:#ff0000;
}

.contest-set{
    background:#333;
}

.contest-small-btn{
    border:none;
    color:#fff;
    padding:10px;
    width:100%;
    border-radius:8px;
    margin-top:10px;
    cursor:pointer;
}

/* WINNERS */

.contest-winners{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:25px;
    flex-wrap:wrap;
}

.contest-winner-card{
    width:260px;
    background:#fff;
    border-radius:20px;
    padding:15px;
    text-align:center;
    box-shadow:0 4px 20px rgba(0,0,0,0.1);
}

.contest-first{
    background:#fff3c7;
}

.contest-second{
    background:#e4e4e4;
}

.contest-third{
    background:#ffd9df;
}

.contest-winner-card img{
    width:100%;
    height:240px;
    object-fit:cover;
    border-radius:15px;
}

.contest-footer{
    background:#222;
    color:#fff;
    text-align:center;
    padding:20px;
    margin-top:40px;
}