/* Background overlay for the pop up modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    color: #000000;

    display: flex;      /* hidden by default */
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal box */
.modal {
    position: relative;
    background: white;
    padding: 0px 30px 16px 30px;
    border-radius: 40px;
    box-shadow: 3px 3px 15px rgba(217, 217, 217, 1);
    width: 430px;
    height: 430px;

    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;

    transform: scale(0.8);
    opacity: 0;

    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    transform: scale(1);
}

/* Close button */
.close-btn {
    position: absolute;
    right: 20px;
    top: 13px;
    cursor: pointer;
    font-size: 30px;
    font-weight: 500;
    color: #6e6e6e;
}

#modal-description {
    position: relative;
    top: 20px;
    left: 30px;
    margin-bottom: 40px;
    width: 280px;
    font-size: 28px;
    font-weight: 550;
}

.app-download-bar {
    height: 80px;
    border: 3px solid #232323;
    border-radius: 25px;
    color: black;
    text-decoration: none;
    font-size: 18px;

    display: flex;
    align-items: center;
}

.ios-icon {
    width: 79px;
    padding:0px 23px 0px 19px
}

.android-icon {
    padding: 0px 20px 0px 18px;
}

@media (max-width: 768px) or (max-height: 430px) {
    .modal {
        padding: 0px 30px 16px 30px;
        width: 330px;
        height: 330px;

        gap: 20px;
    }

    .close-btn {
        right: 18px;
        top: 10px
    }

    #modal-description {
        top: 35px;
        left: 15px;
        margin-bottom: 30px;
        width: 200px;
        font-size: 22px;
        font-weight: 530;
    }

    .app-download-bar {
        height: 70px;
        border: 2.5px solid #232323;
        font-size: 16px;
        font-weight: 450;
    }

    .ios-icon {
        width: 73px;
    }

    .android-icon {
        width: 75px;
    }
}
