html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.wrapper{
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100%;
}

.content{
    display: flex;
    flex-flow: column nowrap;
    justify-content: start;
    align-items: stretch;
    background-color: transparent;
    padding: 0 5px 10px 5px;
    gap: 20px;
}

.flex-item{
    flex: 1 0 auto;
}

.main{
    flex-grow: 5;
    text-align: center;
}

.form{
    text-align: center;
    color: #7d7877;
}

.footer{
    flex-grow: 0;
    text-align: center;
}

canvas{
    background: #C5EDCE;
    display: none;
}

.input-group{
    max-width: 250px;
}

.btn-success{
    width: 250px;
    margin-top: 15px;
}

.output-container{
    display: none;
    position: relative;
}

.target-img{
    height: 600px;
    max-width: 450px;
    padding: 0px;
}

.download-btn{
    position: absolute;
    top: 55px;
    right: 20px;
}

.back-btn{
    position: absolute;
    top: 10px;
    right: 20px;
}

.bordered-btn{
    color: #222;
    border: solid #222 2px;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    line-height: 34px;
    text-align: center;
    padding: 0;
}

.bordered-btn:hover{
    color: #222;
}

.username{
    max-width: 250px;
}

.username input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.loading{ 
    display: none;
    margin: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    height: 100px;
}

.title > h1, .title > h5{
    margin-bottom: 0;
}

.toast-msg{
    position: relative;
    top: -500px;
    padding: 5px;
    margin-top: 12px;
    background-color:#FAE7C7;
    border: solid 1px #CCB48D;
    display: none;
    color: #434343;
    /*font-weight: 600;*/
}

.toast-msg > i{
    font-size: 14px;
    margin: 0 5px;
}

.title, .username, .fruit-styles, .bg-colors{
    padding: 13px 0px;
}

.fruit-styles > img{
    height: 85px;
    width: 75px;
    border: dotted 2px silver;
    cursor: pointer;
    margin: 0 2px;
    opacity: 0.6;
}

.fruit-styles > img[data-color="green"].selected{
    border-style: solid;
    border-color: #90d257;
    opacity: 1;
}

.fruit-styles > img[data-color="red"].selected{
    border-style: solid;
    border-color: #FC9B8E;
    opacity: 1;
}

.fruit-styles > img[data-color="purple"].selected{
    border-style: solid;
    border-color: #663399;
    opacity: 1;
}

.bg-colors{
    list-style: none;
    font-size: 0;
    max-width: 220px;
    margin: auto;
}

.bg-colors ul {
    padding: 0;
    margin: 0;
}

.bg-color{
    width: 30px;
    height: 30px;
    opacity: 0.9;
    display: inline-block;
    outline: solid 1px silver;
    overflow: hidden;
    font-size: 15px;
    margin: 3px;
    text-align: center;
    cursor: pointer;
}

.bg-color.selected{
    opacity: 1;
}

.bg-color[data-color="tr"]{
    background-color: transparent;
    background-image: url(../img/transparent.PNG);
    background-size: 200%;
}

.bg-color[data-color="gray"]{
    background-color: gray;
}

.bg-color[data-color="black"]{
    background-color: black;
}

.bg-color[data-color="lightgreen"]{
    background-color: lightgreen;
}

.bg-color[data-color="white"]{
    background-color: white;
}

.bg-color[data-color="aqua"]{
    background-color: aqua;
}

.bg-color[data-color="blue"]{
    background-color: #01539D;
}

.bg-color[data-color="salmon"]{
    background-color: blue;
}

.bg-color[data-color="beige"]{
    background-color: #CBD28F;
}

.bg-color[data-color="salmon1"]{
    background-color: blue;
}

.bg-color[data-color="beige1"]{
    background-color: red;
}

.bg-color[data-color="pink"]{
    background-color: #FAEAEB;
}

.bg-color img{
    width: 100%;
    height: 100%;
}

.bg-color > i{
    color: red;
    line-height: 30px;
    display: none;
}

.bg-color.bg-color.selected > i{
    display: inline-block;
}

.fruit-style:not(.selected){
    background-color: transparent !important;
}

span.input-group-text{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.gradient {
  background-image: linear-gradient(90deg, rgba(94,114,235,1) 0%, rgba(255,145,144,1) 56%, rgba(254,193,149,1) 100%);
  color: transparent;
  -webkit-background-clip: text;
  font-family: /*'Pacifico',*/ cursive;
  /*font-size: 20vmin;*/
}

.quote{
    line-height: 25px;
}



@media (min-width: 450px) {
    .target-img {
        width: 450px;
    }
    .quote{
        line-height: 28px;
        font-size: 18px;
    }
}

@media (max-width: 450px) {
    .target-img {
        width: 100%;
        padding: 5px 8px;
    }
    .quote{
        line-height: 28px;
        font-size: 22px;
    }
}

/* ---------------------------- */
.swing {
    animation: swing ease-in-out 0.35s infinite alternate;
    transform-origin: center -20px;
}
 
@keyframes swing {
    0% { transform: rotate(13deg); }
    100% { transform: rotate(-13deg); }
}

.twitter-bagde{
    color: #fff;
    padding: 1px 12px;
    height: 28px;
    background-color: rgb(29, 155, 240);
    color: #fff;
    padding: 5px;
    border-radius: 111px;
    text-decoration: none;
}

.badge-button{
    position: relative;
    height: 20px;
    box-sizing: border-box;
    padding: 1px 12px 1px 12px;
    color: #fff;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
}

.follow-us{
    background-color: #1d9bf0;
}

.contact-us{
    background-color: #7d7d7d;
}

.badge-button:hover, .badge-button:active{
    color: #fff;
}

.created-by{
    color: #747474;
    margin-top: 8px;
}

.copyright{
    font-size: 12px;
    color: #747474;
    margin-top: 8px;
}

a.home-link{
    text-decoration: none;
}

/* -------- flag ---------- */

.flag-pic{
    width: 240px;
    height: 100px;
}

.flag-output-container .target-img{
    height: 250px;
    max-width: 450px;
}

.buttons-section{
    margin: 10px;
}

.buttons-section a.bordered-btn{
    position: static;
    color: #222;
    border: solid #222 2px;
    border-radius: 5px;
    height: 40px;
    line-height: 29px;
    text-align: center;
    padding: 2px 10px;
    text-decoration: none;
    margin: 0 5px;
}

.buttons-section > .bordered-btn:active{
    background-color: #000;
    color: #fff;
}
