﻿h1 {
    font-size: 1.875rem;
    font-weight: 300;
    margin: 60px 0 30px 0;
    color: #fff;
}

button {
    background-color: #0d52e9;
    position: relative;
    color: #fff;
    border: none;
    padding: 1.25em 2em;
    font-size: 0.75em;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: background 0.25s cubic-bezier(0.55, 0, 0.1, 1);
}

    button:hover {
        background: #0c4ddb;
    }

    button:focus {
        outline: none;
    }

/**
 * Overlay
 * -- only show for tablet and up
 */
@media only screen and (min-width: 40em) {
    .modal-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transition: opacity 0.6s cubic-bezier(0.55, 0, 0.1, 1), visibility 0.6s cubic-bezier(0.55, 0, 0.1, 1);
    }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
}
/**
 * Modal
 */
.modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 0 auto !important;
    background-color: #fff !important;
    width: 600px !important;
    max-width: 75rem !important;
    min-height: 45rem !important;
    height: auto !important;
    padding: 1rem !important;
    border-radius: 3px !important;
    opacity: 0;
    overflow-y: auto !important;
    visibility: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    transform: scale(1.2) !important;
    transition: all 0.6s cubic-bezier(0.55, 0, 0.1, 1) !important;
}

    .modal .close-modal {
        position: absolute;
        cursor: pointer;
        top: 5px;
        right: 15px;
        opacity: 0;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transition: opacity 0.6s cubic-bezier(0.55, 0, 0.1, 1), transform 0.6s cubic-bezier(0.55, 0, 0.1, 1);
        transition-delay: 0.3s;
    }

        .modal .close-modal svg {
            width: 1.75em;
            height: 1.75em;
        }

    .modal .modal-content {
        opacity: 0;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transition: opacity 0.6s cubic-bezier(0.55, 0, 0.1, 1);
        transition-delay: 0.3s;
        border: none;
        width: auto !important;
    }

    .modal.active {
        visibility: visible;
        opacity: 1;
        transform: scale(1);
    }

        .modal.active .modal-content {
            opacity: 1;
        }

        .modal.active .close-modal {
            transform: translateY(10px);
            opacity: 1;
        }

/**
 * Mobile styling
 */
@media only screen and (max-width: 39.9375em) {
    h1 {
        font-size: 1.5rem;
    }

    .modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        transform: scale(1.1);
        padding: 0 !important;
    }

    .close-modal {
        right: 50px !important;
        top: 80px !important;
    }
}
