@font-face {
    font-family: 'Dancing Script';
    src: url('../fonts/DancingScript-VariableFont_wght.ttf') format('truetype');
}

@media print {
    @page {
      margin: 0; 
      zoom: 150%;
    }
  }


*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background-color: #5d5d5d;
    max-width: 100%;
    min-height: 100vh;
    min-width: 100%;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.main{
    min-width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 50px;
    gap: 2rem;
}

@media screen and (max-width: 900px) {
    .main{
        flex-direction: column;
        gap: 3rem;
    }
}

.main > .form-container{

    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 400px;
    background-color: #767676;
    padding: 20px;
    border-radius: 20px;

}

.main > .form-container > div {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.main > .form-container > h1 {
   
    margin-bottom: 1rem;
    color: #fff;
}

.main > .form-container > div > input {
    padding: 10px 10px;
    border-radius: 5px;
    outline: none;
    border: 0;
}

.main > .form-container > div > span {
    color: #fff;
}

.main > .form-container > div.button {
    margin-top: 1rem;
}

.main > .form-container > div > button {
    padding: 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    outline: 0;
    border: 0;
    font-size: 1.1rem;
}

.main > .form-container > div > #generate-certificate {
    background-color: rgb(1, 57, 1);
}

.main > .form-container > div > #print {
    background-color: rgb(32, 0, 96);
    display: none;
}

.main > .form-container > div > #clear {
    background-color: rgb(75, 0, 0);
}

.certificate-template{
    width: 1079px;
    aspect-ratio: 210/297;
    background-color: aliceblue;
    background-image: url(../images/bg.png);
    background-position: center;
    background-size: contain;
    position: relative;

    zoom: 50%;
}

.certificate-template > .logo{
    position: absolute;
    right: 50px;
    top: 50px;
    width: 120px;
}

.certificate-template > .bg{
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    height: 600px;
    opacity: 70%;
    filter: blur(5px);
    opacity: 0.3;
}

.certificate-template > .title{
    color: rgb(40, 54, 144);
    font-size: 5rem;
    position: absolute;
    top: 150px;
    font-weight: bold;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.certificate-template > .br-num{
    color: rgb(40, 54, 144);
    font-size: 1.2rem;
    position: absolute;
    top: 230px;
    left: 75%;
    white-space: nowrap;
}

.certificate-template > .main-content{
    color: rgb(40, 54, 144);
    width: 100%;
    top: 300px;
    position: absolute;
    text-align: center;
    line-height: 5rem;
}

.certificate-template > .main-content >.title{
    font-size: 3rem;
    font-weight: bold;
}

.certificate-template > .main-content >.sub-title{
    font-size: 3rem;
}

.certificate-template > .main-content >.name{
    font-size: 5rem;
    font-weight: bold;
    color: rgb(136, 52 , 148);
    margin-top: 10px;
    min-height: 80px;
    font-family: 'Dancing Script';
}

.certificate-template > .main-content > hr{
    width: 600px;
    margin: 0 auto;
    border-top: 5px dashed rgb(40, 54, 144);;
    margin-top: 1rem;
}

.certificate-template > .main-content > .bottom-text{
    font-size: 3rem;
    margin-top: 1rem;
    line-height: 5rem;
}

.certificate-template > .sign-content{
    position: absolute;
    top: 1100px;
    width: 100%;
    max-width: 100%;
    display: flex;
    padding-inline: 50px;
    justify-content: space-between;
}

.certificate-template > .sign-content > div{
    width: 300px;
    line-height: 3rem;
    text-align: center;
    font-size: 2rem;
    color: rgb(40, 54, 144);
}

.certificate-template  hr{
    width: 100%;
    margin: 0 auto;
    border-top: 3px dashed rgb(40, 54, 144);
    margin-top: 1rem;
}

.certificate-template  #qrcode{
    width: 120px;
    height: 120px;
    position: absolute;
    bottom: 30px;
    left: 40px;
    background-color: gray;
}

.certificate-template  .numbers{
    position: absolute;
    bottom: 160px;
    left: 40px;

    line-height: 2rem;
    font-size: 1.5rem;
    color: rgb(40, 54, 144);
}

