﻿
@import url('https://fonts.googleapis.com/css?family=Noto+Sans:400,700&display=swap');

.confirm {
    position:fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.0);
    padding:10px;
    box-sizing: border-box;

    opacity: 0;
    animation-name: confirm---open;
    animation-duration: 0.2s;
    animation-fill-mode:forwards;

    display: flex;
    align-items:center;
    justify-content:center;
/*    z-index:10;*/
}

.confirm--close {
    animation-name:confirm---close;
}

.confirm__window {
    /*  height: 50px;*/

    width: 100%;
    max-width: 300px;
    background: white;
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);

    opacity: 0;
    transform: scale(0.75);
    animation-name: confirm__window---open;
    animation-fill-mode: forwards;
    animation-duration: 0.2s;
    animation-delay: 0.2s;
}

.confirm__titlebar,
.confirm__content,
.confirm__buttons {
    padding: 1.05em;
}

.confirm__titlebar {
    background: #222222;   
    /*background: rgb(191,1,1);*/
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.confirm__title {
    font-weight: bold;
    font-size: 1.1em;
}

.confirm__close {
    background: none;
    outline: none;
    border: none;
    transform: scale(2.5);
    color: #ffffff;
    transition: color 0.15s;
}

.confirm__close:hover {
    color: #ff0000;
    cursor: pointer;
}

.confirm__content {
    line-height: 1.8em;
}

.confirm__buttons {
    background: #eeeeee;
    height: 50px;
    display: flex;
    justify-content: flex-end;
}

.confirm__button {
    min-height: 35px;
    margin-top: -7px;
    padding-bottom: 0.2em;
    padding-left: 0.6em;
    padding-right: 0.6em;

    border: 2px solid yellow;
    border-radius: 5px;
    background: #ffffff;
    color: #009879;
    color: gray;
    font-weight: bold;
    font-size: 1.1em;
    font-family: sans-serif;
    margin-left: 0.6em;
    cursor: pointer;
    outline: none;
    min-width: 80px;
}

.confirm__button--fill {
    background: #009879;
    /*background: rgb(191,1,1);*/
    color: #ffffff;
}


@keyframes confirm---open {
    from { opacity:0 }
    to { opacity: 1 }
}

@keyframes confirm---close {
    from { opacity: 1 }
    to {opacity: 0 }
}

@keyframes confirm__window---open {
    to {
        opacity: 1;
        transform:scale(1);
    }
}