@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

body {
    font-weight: 300;
    color: #222;
    font-size: 15px;
    line-height: 1.6em;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 10;
    opacity: 0;
    transition: .5s;
}

.modal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    /* border: 1px solid #000; */
    width: 600px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    display: flex;
}

.modal-content>div {
    padding: 20px;
}

.photo {
    flex: 1;
    /* flex-grow: 1; flex-shrink: 0; flex-basis: 0; */
    background: url('https://source.unsplash.com/g1Kr4Ozfoac/960x640') no-repeat center right;
    background-size: cover;
}

.desc {
    flex: 2;
    text-align: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 0;
    transition: .5s;
    pointer-events: none;
    /* visibility: hidden; */
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
    /* visibility: visible; */
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    outline: none;
}

.btn-close:hover {
    color: #000;
}

.desc-content input[type=email] {
    display: block;
    width: 100%;
    text-align: center;
    padding: 7px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    outline: none;
}

.desc-content input[type=email]::placeholder {
    color: #bbb;
    transition: 0.5s;
}

.desc-content input[type=email]:focus::placeholder {
    visibility: hidden;
    opacity: 0;
}

.desc-content button {
    display: block;
    width: 100%;
    border: none;
    background-color: crimson;
    color: #fff;
    cursor: pointer;
    padding: 7px;
    outline: none;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        width: 100%;
    }

    .modal-content>div {
        width: 350px;
    }

    .photo {
        flex-basis: 250px;
        /* height: 250px; */
        /* width: 250px; */
    }
}
