body{
  margin: 0;
}

@font-face {
  font-family: "clash";
  src: url(./ClashDisplay-Variable.ttf);
}

*{
  box-sizing: border-box;
}

#foot{
  display: none;
}

body{
  background: linear-gradient(127.85deg, #004e3b 9.69%, #007562 95.26%);
  background-repeat: no-repeat;
  width: 100vw;
  height: 100vh;
  display: flex;
  font-family: "Inter";
  overflow: hidden;
}

#container{
  width: 80%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: white;
}

#hash{
  margin: 0;
}

#title{
  font-family: 'clash';
  width: 40%;
  margin: 0;
}

#body{
  display: grid;
  grid-template-columns: 30% 400px auto;

  gap: 20px;
}

#upload{
  padding: 40px;
  border: 1px solid #FFFFFF4D;
  background: #FFFFFF1A;
  border-radius: 16px;
  text-align: center;
  align-content: center;
}

#upload label{
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  background: linear-gradient(0deg, #ffae00, #e1cd5d),
  linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 100%);
  border: 0.5px solid;
  border-image-source: linear-gradient(0deg, #ffae00, #e1cd5d);
  color: white;
  border-radius: 5px;
  font-size: 16px;
}
#upload label:hover{
  background: linear-gradient(0deg, #e1cd5d, #ffae00),
  linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 100%);
}

p{
  font-size: 12px;
  width: 80%;
  margin: auto;
}

#support{
  margin-top: 20px;
}

#desc{
  margin-top: 60px;
}

input{
  display: none;
}


#canvas{
  padding: 20px;
  background: #FFFFFF1A;
  border-radius: 16px;
  text-align: center;
  align-content: center;
}

#d-canvas{
  position: absolute;
  top: -1000000px;
}

#flyer{
  background-image: url(./badge.png);
  padding: 74px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 360px;
  height: 360px;
  position: relative;
}

#d-flyer{
  width: 1080px;
  height: 1080px;
  background-image: url(./badge.png);
  padding: 220px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: relative;
}

#image{
  margin-top: -3px;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#d-image{
 margin-top: -3px;
  margin-left: -6px;
  border-radius: 50%;
width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

#download{
  padding: 40px;
  border: 1px solid #FFFFFF4D;
  background: #FFFFFF1A;
  border-radius: 16px;
  text-align: center;
  align-content: center;
  height:auto;
  margin-bottom: auto;
}

#skins{
  display: flex;
  width: 100%;
  justify-content: space-between;
}

#skins img{
  width: 30%;
  border-radius: 5px;
  margin: 10px 0;
  cursor: pointer;
}

.selected{
  border: 1px solid white;
}

#downloadBtn{
background: linear-gradient(0deg, #ffae00, #e1cd5d),
linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 100%);
border: 0.5px solid;
color: white;
border-image-source: linear-gradient(180deg, #e1cd5d 0%, #e1cd5d 100%);
width: 100%;
padding: 10px;
border-radius: 10px;
cursor: pointer;
}
#downloadBtn:hover{
  background: linear-gradient(0deg, #e1cd5d, #ffae00),
  linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 100%);
}
@media screen and (max-width: 800px) {

  html{
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    display: flex;
  }
  body{
    /* overflow: scroll; */
    width: 100vw;
    overflow: scroll;
    height: 100vh;
    padding: 20px;
  }

  #desc{
    display: none;
  }

  #container{
    padding: 0;
    width: 100%;
    height: fit-content;
    overflow-y: scroll;
  }

  #head{
    width: 100%;
    padding: 10px;
    margin-top: 40px;
  }

  #title{
    width: 100%;
    font-size: 1.4em;
  }

  #body{
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  #upload{
    padding: 20px;
    width: 100%;
  }

  #canvas{
    width: 100%;
    padding: 10px;
  }

  #foot{
    text-align: center;
  }
  #flyer{
    width: 280px;
    height: 280px;
    margin: auto;
    border-radius: 10px;
    object-fit: contain;
    background-repeat: none;
    background-size: cover;
    padding: 56px;
   

  }
  #image{
    width: 100%;
    margin-left: 0;
    margin-top: -2;
  }
}

/* This is for the spinner */
#spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
