/* Popups */

.popup {
    display: none;
    /* visibility: hidden; */
    opacity: 0;
    overflow: scroll;
}

.popup:target {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: unset;
    /* visibility: visible; */
    opacity: 1;
}

@media (orientation: portrait) {
    .popupWindow {
        margin: 70px auto;
        padding: 20px;
        background: #fff;
        border-radius: 5px;
        min-width: 70%;
        max-width: 90%;
        position: relative;
        color: #333;
    }
}

@media (orientation: landscape) {
    .popupWindow {
        margin: 70px auto;
        padding: 20px;
        background: #fff;
        border-radius: 5px;
        min-width: 50%;
        width: fit-content;
        max-width: 90%;
        position: relative;
        /* Removed transistions to increase snappiness of UI and prevent lingering buttons */
        /* transition: all 5s ease-in-out; */
        color: #333;
    }
}

.popupHeader h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
    /* font-family: Tahoma, Arial, sans-serif; */
}

.popupContents {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.popupFooter {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    justify-content: space-evenly;
    padding-top: 1rem;
}