﻿:root { /* Include this CSS block in every independent project you do to maintain the same design langauge. */
    --primary-color: #002d74;
    --secondary-color: #f18a00;
    --box-shadow: 0 0 0 0px rgb(255, 255, 255), 0em 0 .75em rgba(0, 0, 0, .3);
    --border-radius: 8px;
    --body-font: 'Questrial', Arial, sans-serif;
    --gray: #F5F6F6;
    --black: #111111;
    --purple: #002d74;
    --title-font: 'Inter', Arial, sans-serif;
}

body.modal-open {
    pointer-events: none;
}

#modal.modal-open {
    pointer-events: auto;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    background: rgba(0,0,0,.4);
    display: grid;
    text-align: center;
}

#modal.modal-open > div {
    border-radius: var(--border-radius);
    max-width: 500px;
    max-height: 100%;
    width: 100%;
    text-align: center;
    padding: 1em;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    background-color: white;
    font-size: 16px;
    overflow-wrap: break-word;
    box-sizing: border-box;
    animation-name: grow-shrink;
    animation-duration: .3s;
    animation-iteration-count: 1;
    display: grid;
    grid-column: 1;
    grid-row: 1;
    /*    align-self: center;*/
    justify-self: center;
    position: fixed;
    /*    top: 0;*/
/*        align-self: center;
    transform: translate(0px, calc(100% - 25vh));*/
}

@keyframes grow-shrink {
    0% {
        transform: scale(0);
    }

    75% {
        transform: scale(1.1, 1.1);
    }

    100% {
        transform: scale(1,1);
    }
}

#modal.modal-open div p,
#modal.modal-open div label {
    line-height: 1.3em;
    margin-top: 0;
    font-size: 17px;
    margin-bottom: .25em;
    color: #545454;
    text-align: left;
}

#modal.modal-open div label{
    margin-right: 5px;
    font-weight: 900;
}

#modal.modal-open div:nth-last-child(-n+2) {
    margin-bottom: 1rem;
    text-align: left;
}

#modal.modal-open div p:last-of-type {
    margin-bottom: 1rem;
}

#modal.modal-open div button {
    padding: .75em 1em;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: none;
}

#modal.modal-open > div div:last-child {
/*    width: 100%;
    max-width: 60%;*/
    margin: auto;
}

#modal button {
    color: white;
}

#modal.modal-open > div div:last-child button:first-child {
    float: left;
}

#modal.modal-open > div div:last-child button:last-child {
    float: right;
}

#modal.modal-open > div div:last-child button#btn-1 {
    background-color: #6e7881;
}

#modal.modal-open > div div:last-child button#btn-2 {
    background-color: var(--primary-color);
}

#modal.modal-open > div div:last-child button#btn-3,
#modal.modal-open > div div:last-child button#save,
#modal.modal-open > div div:last-child button#dismiss {
    background-color: var(--purple);
}

/*@media (pointer: coarse) {
    #modal.modal-open > div {
        transform: translate(0, 75%);
    }
}*/

/*@media (max-width: 499px) {
    #modal.modal-open > div {
        transform: translate(0, 40vh);
    }
}

@media (min-width: 500px) and (max-width: 767px){
    #modal.modal-open > div {
        transform: translate(0, 0);
        align-self: center;
    }
}*/

@media (min-width: 768px) {
    #modal.modal-open > div {
        top: 5em;
    }

/*    #modal.modal-open > div {
        transform: translate(0, 0);
        align-self: center;
    }*/
}