@import "../styles/colors";

.modalBackground {
    content: "";
    background: rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 100000;
    top: 0;
}

.modalBox {
    max-width: 95vw;
    max-height: 100vh;
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.1);
    background: $white;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vh;
    z-index: 100001;
    margin: 40px;
    display: flex;
    flex-direction: column;
}

.closeModal {
    display: flex;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
}

.closeButton {
    content: "x";
    font-weight: 200;
    color: $lightGray;
    font-family: sans-serif;
    background-color: $white;
    text-align: center;
    border: none;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    &:focus {
        border: 1px solid $blue;
    }
}

.title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    text-transform: capitalize;
}
