﻿@font-face {
    font-family: "Impact";
    font-weight:bold;
    src: url("i.ttf");
}
@font-face {
    font-family: "Montserrat";
    font-weight: bold;
    src: url("m.ttf");
}

@font-face {
    font-family: "Times New Roman";
    src: url("t.ttf");
}

@font-face {
    font-family: "Century Gothic";
    src: url("g.ttf");
}



div.caption-preview {
    position: relative;
    max-width:500px;
    margin:0 auto;
    min height: 1px;
    display: block;

}

div.caption-container {
    position:relative;
}
div .caption-preview .image {
    position: relative;
    /*height: 100%;*/
    width: 100%;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-size: contain;
    display: block;
    /*position: absolute;*/
}
div.caption-container .image-overlay {
    position: relative;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    background:#00000000;
    display: block;
}

/*
Demotivational CSS

Format is thus:
<div class="caption-preview montserrat">
<div class="image-frame">
<div class="image"/>
</div>
<div class="text-caption top">Test </div>
<div class="text-caption bottom">This is ademotivational caption and it </div>
</div>

    Add the style to caption_image_base as we see fit
*/

div.demotivational, caption-preview {
    background-color: black;
    display: grid;
}

    div.demotivational .image-frame {
        min-height: 1px;
        position: relative;
        border-width: 6px;
        border-color: white;
        border-style: double;
        display: block;
        margin: 35px 55px 55px 10px;
    }

div.demotivational .text-caption {
    position: relative;
    margin-left: 55px;
    margin-right: 55px;
    color: white;
}

div.demotivational .text-caption.top {
    font-family: 'Times New Roman';
    font-size: 80px;
    font-size-adjust:inherit;
    text-transform: uppercase;
    text-align: center;
}

div.demotivational .text-caption.bottom {
    font-size: 26.667px;
    font-family: 'Century Gothic';
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}
/*
    Meme image css
*/
div.meme .image-frame {
    /*min-height: 280px;*/
    position: relative;
    display: block;
}

div.meme .text-caption {
    position: absolute;
    left: 0px;
    right: 0px;
    margin: 15px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    font-family: 'Impact';
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;
    text-align: center;
}

div.meme .text-caption.top {
    top: 0px;
}

div.meme .text-caption.bottom {
    bottom: 0px;
}

/* Meme border */
div.meme_border, caption-preview {
    background-color: black;
    display: flex;
    flex-direction: column;
}


div.meme_border .image-frame {
    /*min-height: 280px;*/
    position: relative;
    display: block;
    order: 1;
}

div.meme_border .text-caption {
    margin: 10px 15px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    font-family: 'Impact';
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;
    text-align: center;
}

    div.meme_border .text-caption.top {
        order: 0;
    }

    div.meme_border .text-caption.bottom {
        order: 2;
    }

    /* Montserrat */
div.montserrat, caption-preview {
    background-color: white;
    display: flex;
    flex-direction: column;
}

div.montserrat .image-frame {
    /*min-height: 280px;*/
    position: relative;
    display: block;
    order: 1;
}

div.montserrat .text-caption {
    margin: 10px 15px;
    color: black;
    font-size: 22px;
    font-family: 'Montserrat', "Open Sans", Helvetica, Arial, sans-serif text-align: left;
}

div.montserrat .text-caption.top {
    order: 0;
}

div.montserrat .text-caption.bottom {
    order: 2;
}

div .blurImage {
    filter: blur(10px);
}
