/*
 *  Remodal - v1.1.1
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */


/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */


/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
    -webkit-filter: blur(3px);
    filter: blur(3px);
}


/* Default theme styles of the overlay */

.remodal-overlay {
    background: rgba(0, 0, 0, 1);
}

.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;

    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.remodal-overlay.remodal-is-opening {
    -webkit-animation-name: remodal-overlay-opening-keyframes;
    animation-name: remodal-overlay-opening-keyframes;
}

.remodal-overlay.remodal-is-closing {
    -webkit-animation-name: remodal-overlay-closing-keyframes;
    animation-name: remodal-overlay-closing-keyframes;
}


/* Default theme styles of the wrapper */

.remodal-wrapper {}


/* Default theme styles of the modal dialog */

.remodal {
    box-sizing: border-box;
    width: 100%;
    background: #000;
    color: #fff;
    text-align: left;
    line-height: 1.5;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;

    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.remodal.remodal-is-opening {
    -webkit-animation-name: remodal-opening-keyframes;
    animation-name: remodal-opening-keyframes;
}

.remodal.remodal-is-closing {
    -webkit-animation-name: remodal-closing-keyframes;
    animation-name: remodal-closing-keyframes;
}

.remodal video {
    width: 100%;
    outline: none;
}

@media screen and (max-width: 768px) {}


/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
    vertical-align: middle;
}


/* Close button */

.remodal-close {
    position: absolute;
    bottom: -50px;
    left: 50%;
    display: block;
    overflow: visible;
    margin: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    outline: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.remodal-close:hover,
.remodal-close:focus {
    color: #fff;
}

.remodal-close:before {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 50px;
    content: "閉じる";
    text-align: center;
    font-size: 14px;
    line-height: 50px;
}


/* Dialog buttons */

.remodal-confirm,
.remodal-cancel {
    display: inline-block;
    overflow: visible;
    margin: 0;
    padding: 12px 0;
    min-width: 110px;
    outline: 0;
    border: 0;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    -webkit-transition: background 0.2s;
    transition: background 0.2s;
}

.remodal-confirm {
    background: #81c784;
    color: #fff;
}

.remodal-confirm:hover,
.remodal-confirm:focus {
    background: #66bb6a;
}

.remodal-cancel {
    background: #e57373;
    color: #fff;
}

.remodal-cancel:hover,
.remodal-cancel:focus {
    background: #ef5350;
}


/* Remove inner padding and border in Firefox 4+ for the button tag. */

.remodal-confirm::-moz-focus-inner,
.remodal-cancel::-moz-focus-inner,
.remodal-close::-moz-focus-inner {
    padding: 0;
    border: 0;
}


/* Keyframes
   ========================================================================== */

@-webkit-keyframes remodal-opening-keyframes {
    from {
        opacity: 0;
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        -webkit-filter: blur(0);
        filter: blur(0);
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes remodal-opening-keyframes {
    from {
        opacity: 0;
        -webkit-transform: scale(1.05);
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        -webkit-filter: blur(0);
        filter: blur(0);
        -webkit-transform: none;
        transform: none;
    }
}

@-webkit-keyframes remodal-closing-keyframes {
    from {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    to {
        opacity: 0;
        -webkit-filter: blur(0);
        filter: blur(0);
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
}

@keyframes remodal-closing-keyframes {
    from {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    to {
        opacity: 0;
        -webkit-filter: blur(0);
        filter: blur(0);
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
}

@-webkit-keyframes remodal-overlay-opening-keyframes {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes remodal-overlay-opening-keyframes {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes remodal-overlay-closing-keyframes {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes remodal-overlay-closing-keyframes {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}


/* Media queries
   ========================================================================== */

@media only screen and (min-width: 641px) {
    .remodal {
        max-width: 1100px;
    }

    .remodal .box {}
}


/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
    background: #2b2e38;
}

.lt-ie9 .remodal {
    width: 900px;
}