@keyframes fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeout {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes open-modal {
  0% { 
    opacity: 0;
    top: 20px; 
  }
  100% { 
    opacity: 1; 
    top:150px;
  }
}

@keyframes close-modal {
  0% {
    opacity: 1;
    top: 150px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-5px);}
  60% {transform: translateY(-2px);}
}

.block-backend-link-warning .menu-bar {
  position: fixed;
  left: 0;
  right: 0; 
  display: block;
  background: #2E86AB;
  color: #FFF;
  text-shadow: 1px 1px #000;
  background-position: left center;
  z-index: 101;
  padding: 5px 35px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  border-bottom: 1px solid #002a5c;
  box-shadow: 0 0 5px #000000;
}

.logged-in .block-backend-link-warning .menu-bar {
  box-shadow: 0 0 5px #FFFFFF;
}

.block-backend-link-warning.restricted .menu-bar {
  background: linear-gradient(to bottom, #FFE39A 0%, #FFBB00 100%);
  border-bottom-color: #FFE39A;
  color: #000000;
  text-shadow: 0 0 3px #FFE39A;
}

.block-backend-link-warning.restricted .menu-bar p {
  margin: 0.5em 0;
}

.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  animation: fadein 0.5s;
}

.modal.closing .modal-contents {
  animation: close-modal 0.5s;
}

.modal.closing {
  animation: fadeout 0.5s;
}

.modal .modal-contents {
  position:relative;
  width: 400px;
  top:150px;
  margin: 0 auto;
  padding: 2em;
  border-radius: 6px;
  box-shadow: 0 0 3px 3px #666;
  background: #F9F9F9;
  font-family: Arial;
  z-index: 1000;
  animation: open-modal 0.5s;
  overflow: hidden;
  max-width: 80%;
}

.modal .screen-reader-only {
  position: absolute;
  left: -999em;
}

.modal a.modal-close {
  width: 25px;
  height: 25px;
  line-height: 25px;
  font-size: 1.4em;
  background: linear-gradient(to bottom, #FFFFFF 0%, #e1e1e1 100%);
  color: #444444;
  border: 1px solid #444444;
  text-shadow: none;
  border-radius: 6px;
  text-align: center;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 100; 
}

.modal h2 {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: 0;
  padding: 10px;
  background: rgba(0,42,92,0.9);
  color: #FFFFFF;
  text-shadow: 1px 1px 3px #000000;
}

.restricted .modal .modal-body {
  text-shadow: none;
}

.modal .modal-body {
  margin-top: 30px;
}

.modal.information .modal-contents {
  color: #222;
  text-shadow: none;
}

.modal.information .modal-contents .status-message {
  display: block;
  padding: 0.5em;
  margin-top: 1em;
  background: #31FF42;
  border-radius: 6px;
}

.modal.information .field-wrapper {
  margin: 1em auto;
  display: inline-block;
}

.modal.information .radio-wrapper {
  width: 300px;
  margin: 0 auto;
  text-align: left;
}

.modal.information .radio-wrapper label {
  display: inline;
}

.modal .field-wrapper input[type="text"],
.modal .field-wrapper a.field-attach {
  font-size: 14px;
  font-weight: normal;
  float: left;
  padding: 0.5em;
  border: 1px solid #aaa;
}

.modal .field-wrapper input[type="text"] {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  width: 300px;
}

.modal .field-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #0b64a2;
  box-shadow: 0 0 3px #0b64a2;
}

.modal .field-wrapper input[type="text"].needs-value:focus {
  border-color: #ed541d;
  background-color: #fef5f1;
  box-shadow: 0 0 3px #ed541d;
}

.modal .field-wrapper a.field-attach {
  display: block;
  color: #222;
  float: left;
  position: relative;
  background: linear-gradient(to bottom, #FFFFFF 0%, #e1e1e1 100%);
  border-left: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  text-shadow: none;
}

.modal.social .modal-contents.expanded {
  max-height: 500px;
  overflow-y: scroll;
  transition: height 0.5s;
}

.settings-header {
  text-shadow: none;
  margin-bottom: 1em;
}

.settings-panel {
  color: #222;
  text-align:left;
  text-shadow: none;
}

.settings-panel .settings-instructions {
  font-weight: normal;
  padding: 0.5em;
  background: #e1e1e1;
  border-radius: 6px;
}

.settings-panel .campaign-clipboard {
  width: 50%;
  margin: 0 auto;
}

.settings-panel .campaign-clipboard a {
  color: #222;
  margin-top: 1em;
  padding: 0.5em;
  display: block;
  background: linear-gradient(to bottom, #FFFFFF 0%, #e1e1e1 100%);
  border: 1px solid #aaaaaa;
  border-radius: 6px;
  text-align: center;
  font-weight: normal;
}

.settings-panel .campaign-clipboard a:hover,
.settings-panel .campaign-clipboard a:focus,
.field-wrapper a.field-attach:hover,
.field-wrapper a.field-attach:focus {
  text-decoration: none;
  border-color: #444444;
}

.settings-panel .campaign-clipboard a i {
  margin-right: 0.5em;
}

.settings-panel .campaign-clipboard-status {
  margin: 1em 0;
}

.settings-panel input.needs-value {
  border-color: #ed541d;
}

.settings-panel .more-info {
  font-weight: normal;
  background: #e1e1e1;
  padding: 5px 10px;
}

.settings-panel legend {
  padding: 5px 10px;
  border-radius: 6px;
}

.settings-panel legend i {
  margin-right: 0.5em;
}

.settings-panel fieldset {
  border-radius: 6px;
  margin-bottom: 1em;
}

.modal-contents input[type="checkbox"],
.modal-contents input[type="radio"] {
  width: 12pt;
  height: 12pt;
  vertical-align: middle;
}

.standard-settings legend {
  background: #183D6B;
  color: #ffffff;
  text-shadow: 1px 1px 3px #000000;
}

.standard-settings {
  border: 1px solid #183D6B;
}

.analytics-settings legend.analytics {
  background: #fb8c00;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px #000000;
}

.analytics-settings {
  border: 1px solid #fb8c00;
}

.analytics-settings .setting-help {
  font-size: small;
  font-weight: normal;
  color: #888;
}

.analytics-settings .setting-input {
  margin: 0.5em 0;
}

.settings-panel .setting-input.setting-checkbox label,
.radio-wrapper label {
  display: inline;
  margin-left: 1em;
}

.radio-wrapper {
  line-height: 1.5em;  
}

/*
.analytics-settings .field-wrapper input,
.analytics-settings .field-wrapper a {
  padding: 5px;
  float: left;
  font-size: 14px;
  height: 25px;
  line-height: 25px;
  
}

.analytics-settings .field-wrapper input[type="text"] {
  border-radius: 6px;
  border: 1px solid #aaaaaa;
}
*/

.sharer a {
  border-radius: 6px;
  display: block;
  padding:5px 10px;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-size: 2em;
  text-decoration: none;
  text-align: left;
  border: 1px solid transparent;
}

.sharer a:hover,
.sharer a:focus {
  text-decoration: none;
  border: 1px solid #444;
}

.sharer a:hover i,
.sharer a:focus i {

  animation: wiggle ease-in-out 1s;
  animation-delay: 1s;
}

.sharer a i,
.option label i {
  margin-right: 0.5em;
}

.sharer a[data-intent="facebook"] { background: #3b5998; color:white; }
.sharer a[data-intent="twitter"] { background: #55acee; color:white; }
.sharer a[data-intent="googleplus"] { background: #dd4b39; color:white; }
.sharer a[data-intent="email"] { background: #999; color:white; }
.sharer a[data-intent="pinterest"] { background: #bd081c; color:white; }
.sharer a[data-intent="linkedin"] { background: #0077b5; color:white; }


.header-button {
  display: inline-block;
}

.header-button a {
  display: block;
  padding: 10px;
  /* background: #2E86AB; */
  color: #FFFFFF;
}

.header-buttons {
  margin: 0;
  padding: 0;
  list-style: none;
}

.restricted .header-button a {
  color: #000000;
  height: 2em;
  line-height: 2em;
  max-height: 2em;
}

.header-button a:hover,
.header-button a:focus {
  background: rgba(68,68,68,0.8);
  transition: background 0.5s;
  border-radius: 6px;
  text-decoration: none;
}

.restricted .header-button a:hover,
.restricted .header-button a:focus {
  background: rgba(255,255,255,0.8);
  box-shadow: inset 1px 1px 3px #999;
}

.header-button a i {
  margin-right: 0.5em;
}

.modal-contents .tooltip {
  background: #222222;
  color: #FFFFFF;
  padding: 10px 5px;
  border-radius: 6px;
  margin-top: 0.5em;
  text-align: center;
}

@media (max-width:780px) {
  .block-backend-link-warning .menu-bar { 
    font-size: 0.8em;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
  }

  .modal .modal-contents,
  .modal.social .modal-contents.expanded {
    max-height: 50%;
    overflow-y: scroll;
  }

  .modal .field-wrapper input[type="text"] {
    width: 70%;
  }
}
