body {
  background: linear-gradient(to right, #3c6382, #2FA4A9);
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  padding: 30px;
  flex-wrap: wrap;
}

#main {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,.1);
  text-align: center;
}

.preview-box {
  width: 320px;
  height: 320px;
  margin: 15px auto;
}

canvas {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: #EAB543;
}

button {
  background: #F8EFBA;
  color: #EAB543;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
   box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

button:hover {
  background: #2FA4A9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

  input[type="file"] {
    margin-bottom: 20px;
  }

  button {
    background: #3DBE9A;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
  }

  button:hover {
    background: #2FA4A9;
  }



  #instructions{
    margin-top: 30px;
    padding: 20px;
     background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
  }

    #instructions p{
        background: #ecf0f1;
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        color: #182C61;
    }
p {
  color: #182C61;
}
#main{
    margin-left: auto;
    margin-right: auto;   /* center */
}
#copyText{
  justify-content: space-between;
}


#frame-container {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
}

#user-image {
  position: absolute;
  top: 0;
  left: 0;
}

#controls button {
  margin: 5px;
  padding: 5px 10px;
  cursor: pointer;
}


/* hide the default file input */
#imageInput {
  display: none;
}

/* custom upload button */
.upload-btn {
  display: inline-block;
  background-color: #3DBE9A;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
   box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.upload-btn:hover {
  background-color: #2FA4A9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
#iosOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.overlay-box{
  background:#fff;
  padding:20px 24px;
  border-radius:14px;
  text-align:center;
  animation:pop .3s ease;
}

@keyframes pop{
  from{transform:scale(.85);opacity:0}
  to{transform:scale(1);opacity:1}
}

.overlay-box button{
  margin-top:12px;
  padding:8px 18px;
  border:none;
  border-radius:6px;
  background:#007bff;
  color:#fff;
}


span{
  color: #2FA4A9;
  size: 2em;
}


h1,h2{
  color: #6D214F;

}

footer p {
  color: #6D214F;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}
footer a {
  color: #2FA4A9;
  text-decoration: none;
  font-weight: bold;
}