/* [Object] Modal
* =============================== */

.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: left;
    background: rgba(0, 0, 0, .9);
    transition: opacity .25s ease;
    z-index: 50000;
}

.modal__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
}

.modal-state {
    display: none;
}

.modal-state:checked + .modal {
    opacity: 1;
    visibility: visible;
}

.modal-state:checked + .modal .modal__inner {
    top: 0;
}

.modal__inner {
    transition: top .25s ease;
    position: absolute;
    top: -20%;
    right: 0;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 50%;
    margin: auto;
    overflow: auto;
    background: #fff;
    border-radius: 5px;
    padding: 1em;
    z-index: 99999!important;
    text-align: center;
}

.modal__close {
  position: relative;
  float: right;
  cursor: pointer;
}

.modal__close:after,
.modal__close:before {
    content: '';
    position: absolute;
    width: 2px;
    background: #ccc;
    display: block;
    transform: rotate(45deg);
    left: 50%;
    margin: -3px 0 0 -1px;
    top: 0;
}

.modal__close:hover:after,
.modal__close:hover:before {
    background: #aaa;
}

.modal__close:before {
    transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .modal__inner {
        height: 60%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 360px) {
    .modal__inner {
        height: 85%;
        box-sizing: border-box;
    }
}

/* Other
* =============================== */

body {
    padding: 1%;
    font: 1/1.5em sans-serif;
    text-align: center;
}

p img {
    max-width: 95%;
    height: auto;
}

.div_text {
    padding: 5% 0 7% 0;
    font-size: 3em;
}
.popup_close {
    color: #ccc;
    font-size: 3em;
    margin: 0;
}   


@media screen and (max-width: 768px) {
    .div_text {
        font-size: 2.5em;
    }
    .popup_close {
        font-size: 2.5em;
    }
}

@media screen and (max-width: 480px) {
    .div_text {
        font-size: 1.5em;
    }
    .popup_close {
        font-size: 1.5em;
    }
}


@media screen and (max-width: 320px) {
    .div_text {
        font-size: 1em;
    }
    .popup_close {
        font-size: 1em;
    }
}

.btn_app {
    margin: 0 0 0 0;
}

#btn_app_popup {
    display: none;
}