* {
    /*sans-serif font */
    font-family: 'Kanit', sans-serif;
}
.div {
    color: #fff;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(0,0,0,0.8);
    }

span{
    transform: scale(1.2);
    /* color that complements ff5858 */
    color: #ff8a00;
}
.whitespace{
    background: transparent;
    min-height: 30vh;
}
.wrapper {
        display: flex;
        box-sizing: border-box;
        padding: 32px 16px;
        border-radius: 10px 10px 0px 0px;
        /* scale this and everything inside */
        transform: scale(1.2);
}

strong{
    color: #8678ff;
    font-size: 20px;
    text-align: center;
    margin: 10px;
    display: block;
    text-shadow: 2px 2px 4px #000000;
}
.wrapper > .div {
        box-sizing: border-box;
        width: calc(50%);
        float: left;
        margin: 0 0px;
    }

body {
    max-width: 600px;
    margin: 0 auto;
    background-color: #333;
    background-image: url('felt.png');
}

.header{
    background: rgba(0,0,0,0.8);
    text-align: center;
    border-radius: 10px 10px 0px 0px;
}
.logo{
    /* prevent dragging of the image */
    pointer-events: none;
}
.title{
    position:absolute;
    top: 0;
    left: 1%;
    /* bigger font size, bolder, and dark gray */
    font-size: 2em;
    font-weight: bold;
    color: #222;
    text-shadow: 2px 2px 4px #ffffff62;
    /* cool bubbly font from google fonts */
}


.foot{
    position:absolute;
    /* stuck on the bottom, centered screen */
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    
    
}

.kanit-regular {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .kanit-semibold {
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-style: normal;
  }

.box1, .box2{
    position: relative;
    border: 1px solid #fff;
    font-weight: bold;
    font-size: larger;
    text-shadow: 2px 2px 4px #333;
    min-height: 10vh;
}
.box1{
    position: relative;
    border-radius: 10px 0px 0px 10px;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
}

.box1 img {
    position: absolute; /* Positions the image relative to the nearest positioned ancestor */
    scale: 0.2;
    bottom: -115%;
    right: 50%;

    -webkit-mask-image:-webkit-gradient(linear, left center, right center, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
    mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));    
}

small{
    color: #ff5858;
    font-size: 12px;
    text-align: center;
    margin: 10px;
    display: block;
    text-shadow: 2px 2px 4px #000000;
}

.box2{
    position: relative;
    border-radius: 0px 10px 10px 0px;
    background: linear-gradient(45deg, #2ee52e, #0048ff);
}

.box2 img {
    position: absolute; /* Positions the image relative to the nearest positioned ancestor */
    scale: 0.25;
    bottom: -75%;
    right: -25%;
    -webkit-mask-image:-webkit-gradient(linear, right center, left center, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
    mask-image: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));    
}

.upload-label, .box2{
    cursor: pointer;
}
.result{
    /* hide everything by default */
    display: none;
    transform: scale(1.2);
    margin: 3.6vh 0px 0px 0px;
}

.bottom{
    margin: 2.2vh 0px 0px 0px;
    transform: scale(1.2);
    background: rgba(0,0,0,0.8);
    /* preview should be centered with the wrapper class */
    display: block;
    width: 20%;
    height: 20%;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 0px 0px 10px 10px;
    padding: 0px 0px 10px 0px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px #000000;

}
#preview{
    border-radius: 0px 0px 10px 10px;
}

#preview, #uploadStatus{
    background: rgba(0,0,0,0.8);
    /* preview should be centered with the wrapper class */
    margin: 0 auto;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

    color: #fff;
    font-size: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px #000000;

}

#preview img {
    max-width: 100%;
    max-height: 200px;
}