.modal{
    position: fixed;
    width: 80vw;
    height: 80vh;
    background: #FEFEFE;
    border: solid 2px #222;
    border-radius: 8px;
    top: 50%;
    left: 50%;
    transition: .3s ease-in-out;
    z-index: 100;
}
.modal-visible{ display: none; }
.modal-visible + .modal{
    transform: translate(-50%, -200%);
}
.modal-visible:checked + .modal{
    transform: translate(-50%, -50%);
}
.modal-header{
    padding: 0;
    margin: 0;
    height: 3rem;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 3rem;
    vertical-align: bottom;
    text-align: center;
}
.modal-body{
    padding:0;
    margin: 0 auto;
    width: 80%;
    height: calc(80vh - 7rem);
}
.modal-footer{
    padding:0;
    margin: 0 2rem 0 0;
    text-align: right;
    height: 4rem;
}
.modal-footer *{
}
.modal-bg{
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    transition: .2s ease-in-out;
    z-index: 90;
}
.modal-visible ~ .modal-bg{
    top: -100%;
}
.modal-visible:checked ~ .modal-bg{
    top: 0%;
}
.modal-open{
    position: fixed;
    top: 1.4rem;
    right: 2rem;
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    vertical-align: bottom;
    text-align: center;
    border-radius: 50%;
    z-index: 200;
    box-shadow: 0px 0px 6px #3f4c63;
}
.icon{
  font-family: 'icomoon';
  font-size: 2rem;
  color: #fefefe;
}
.modal-visible ~ .modal-open{
    background: #1e74e6;
}
.modal-visible:checked ~ .modal-open{
    background: #e61e53;
}
.modal-visible ~ .icon:before{
  content: "\e93a";
}
.modal-visible:checked ~ .icon:before{
  content: "\ea0f";
}

.badge{
    position: absolute;
    top: 0;
    right: 0;
    width: 1.4rem;
    height: 1.4rem;
    font-size: 1rem;
    font-family: sans-serif;
    border-radius: 50%;
    background: #f00;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 1.4rem;
    vertical-align: middle;
}
.button-modal{
    margin-top: 0.2rem;
    margin-right: 0.4rem;
    text-decoration: none;
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #444;
    border-radius: 4px;
    border: solid 1px #888;
}
