*{
  box-sizing:border-box;
}

/* Background */
body{
  margin:0;
  font-family: Arial, sans-serif;
  background-image: url(img.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding:10px;
}

/* Main Card */
.container{
  max-width:500px;
  width:100%;
  background:#ffffffee;   /* semi transparent */
  padding:20px;
  margin:auto;
  border-radius:10px;
  text-align:center;
}

/* Inputs */
input,select,button{
  padding:12px;
  width:100%;
  margin:10px 0;
  font-size:16px;
}

/* Resize Button */
button{
  background:#007bff;
  color:white;
  border:none;
  cursor:pointer;
  border-radius:6px;
}

/* Upload Button */
.upload-btn{
  display:block;
  background:red;
  color:white;
  padding:16px;
  font-size:18px;
  border-radius:8px;
  cursor:pointer;
  margin:15px 0;
}
.upload-btn:hover{
  background:#cc0000;
}

/* FREE tag */
.free-tag{
  background:yellow;
  color:black;
  padding:4px 8px;
  font-size:12px;
  border-radius:5px;
  margin-left:8px;
  font-weight:bold;
}

/* Image preview */
img{
  max-width:100%;
  border-radius:6px;
  margin-top:10px;
}

/* Progress bar */
.progress{
  width:100%;
  background:#ddd;
  height:12px;
  border-radius:20px;
  overflow:hidden;
  margin-top:15px;
  display:none;
}
#bar{
  height:100%;
  width:0%;
  background:green;
}

/* Download Button */
#downloadBtn{
  display:none;
  background:green;
  color:white;
  padding:12px;
  margin-top:15px;
  text-decoration:none;
  border-radius:6px;
  display:inline-block;
  width:100%;
}

/* Mobile optimization */
@media(max-width:500px){
  .container{
    padding:15px;
  }
  h1{
    font-size:20px;
  }
  .upload-btn{
    font-size:16px;
    padding:14px;
  }
}








/* Navbar */
.navbar{
  width:100%;
  background:#000;
  color:white;
  padding:12px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:10px;
  margin-bottom:15px;
}

.logo{
  font-size:20px;
  font-weight:bold;
}

.menu a{
  color:white;
  text-decoration:none;
  margin-left:15px;
  font-size:14px;
}

.menu a:hover{
  text-decoration:underline;
}

/* Footer */
.footer{
  margin-top:30px;
  text-align:center;
  font-size:13px;
  color:#555;
}

.footer a{
  color:#007bff;
  text-decoration:none;
  margin:0 5px;
}

.footer a:hover{
  text-decoration:underline;
}

/* Mobile navbar */
@media(max-width:600px){
  .navbar{
    flex-direction:column;
    gap:8px;
  }
  .menu a{
    margin:0 8px;
  }
}
.presets{
  display:flex;
  gap:10px;
  margin:10px 0;
}

.presets button{
  flex:1;
  padding:8px;
  background:#f1f1f1;
  border:1px solid #ccc;
  border-radius:6px;
  cursor:pointer;
  font-size:14px;
  color: blue;
}

.presets button:hover{
  background:#007bff;
  color:white;
}
