/**
@file
CSS for a modal window for subscribing to an email list.
*/

.subscribe-magazine {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    opacity: 1;
    -webkit-transition: opacity 0.4s, visibility 0.4s;
    transition: opacity 0.4s, visibility 0.4s;
}

.subscribe-magazine.not-shown {
    visibility: hidden;
    opacity: 0;
}

.subscribe-magazine .subbox {
    position: absolute;
    background: #fff;
    width: 640px;
    height: 384px;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.subscribe-magazine .subbox-cover {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 256px;
}

.subscribe-magazine .subbox-cover img {
    display: block;
    width: 100%;
    max-width: none;
}

.subscribe-magazine .subform,
.subscribe-magazine .loading,
.subscribe-magazine .done {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: 256px;
    padding: 20px 40px;
}

.subscribe-magazine .subform h4 {
    margin-top: 1.5em;
    text-align: center;
    font-size: 1.5em;
    font-weight: normal;
}

.subscribe-magazine .subform h4 strong {
    font-size: 115%;
}

.subscribe-magazine label {
    font-size: 1em;
    padding-bottom: 6px;
    display: block;
}

.subscribe-magazine input {
    font-family: inherit;
}

.subscribe-magazine .close-btn {
    position: absolute;
    top: 4px;
    right: 2px;
    color: #000;
    color: rgba(0,0,0,0.3);
    font-size: 30px;
    cursor: pointer;
}

.subscribe-magazine .close-btn:hover {
    color: rgba(0,0,0,0.8);
}

.subscribe-magazine .field-area {
    margin: 1em 0;
}

.subscribe-magazine .field-area input {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

.subscribe-magazine .submit {
    display: inline-block;
    padding: 0.4em 1.4em;
    /*
    font-size: 1.4em;
    */
    font-size: 18px;
    margin-bottom: 0;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: none;
    background: #4779B3;
    color: #fff;
}

.subscribe-magazine .end {
    margin-top: 2.5em;
    text-align: center;
}

.subscribe-magazine .loading {
    display: none;
}

.subscribe-magazine .done {
    display: none;
    font-size: 20px;
    padding: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 36px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
}

@media (max-width: 767px) {
    .subscribe-magazine .subbox {
        width: 100%;
        height: 100%;
        border: 0;
    }
}

.subscribe-magazine a.btn:active,
.subscribe-magazine a.btn:hover {
    text-decoration: none;
}

.subscribe-magazine .subbox {
    background: #ffffff; /* Old browsers */
    background: -moz-radial-gradient(center, ellipse cover,  #ffffff 0%, #ffffff 50%, #c6e8ff 100%); /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#ffffff), color-stop(50%,#ffffff), color-stop(100%,#c6e8ff)); /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover,  #ffffff 0%,#ffffff 50%,#c6e8ff 100%); /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover,  #ffffff 0%,#ffffff 50%,#c6e8ff 100%); /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover,  #ffffff 0%,#ffffff 50%,#c6e8ff 100%); /* IE10+ */
    background: radial-gradient(ellipse at center,  #ffffff 0%,#ffffff 50%,#c6e8ff 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#c6e8ff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
