﻿body {
   
    height: 100vh;
}



.overlay {
    position: fixed;
    top: 100px;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center; /* vandret */
    align-items: center; /* lodret */
    background: rgba(0, 0, 0, 0.5);
    transition: opacity 100ms;
    visibility: hidden;
    opacity: 100;
    z-index: 999;
    min-height: 100px;
}

    .overlay:target {
        visibility: visible;
        opacity: 1;
    }


.popup {

    margin: 70px auto;
    padding: 20px;
    background: whitesmoke;
    border: solid 1px darkgray;
    border-radius: 5px;
    width: 40%;
    min-height: 300px;
    position: relative;
    transition: all 0.5s ease-in-out;
    text-align: left;
    box-shadow: black 5px 5px 5px;
    z-index:1000;
}

    .popup h2 {
        margin-top: 0;
        color: #333;
        font-family: Tahoma, Arial, sans-serif;
    }

    .popup .close {
        position: absolute;
        top: 20px;
        right: 30px;
        transition: all 200ms;
        font-size: 30px;
        font-weight: bold;
        text-decoration: none;
        color: #333;
    }

        .popup .close:hover {
            color: #06D85F;
        }

.popupContent {
  
    overflow: hidden;
}

.btnPopupClose {
    width:32px;
    height:32px;
    border: none;
    background-color:transparent;
    background-image: url('../images/icons/popupClose.png');
    background-repeat: no-repeat;
}

    .btnPopupClose:hover {
        background-image: url('../images/icons/popupClose_hover.png');
        transition: all 0.3s ease-out;
    }

@media screen and (max-width: 700px) {
    .box {
        width: 70%;
    }

    .popup {
        width: 70%;
    }
}
