/* Copyright (c) Crown Copyright (Department for Transport). Licensed under The MIT License (MIT).  See License file in the project root for license information. */
.govuk-dialog:not([data-open="true"]), .govuk-dialog-backdrop:not([data-open="true"]) {
    display: none;
}

.govuk-dialog[data-open="true"] {
    position: fixed;
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    outline: none;
}

.govuk-dialog-content {
    display: block;
    position: absolute;
    left: 0px;
    right: 0px;
    margin: auto;
    border-width: initial;
    border-style: solid;
    border-color: initial;
    border-image: initial;
    padding: 1em;
    background: #ffffff;
}

.govuk-dialog-backdrop[data-open="true"] {
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 500;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
