/* Styling of website logo */
.nav .brand {
    font-family: 'Courier New';
    font-size: 40px;
    text-decoration: none;
    font-weight: 800;
    color: #54585a;
}

/* Centers images in posts */
.list-item a.post-item {
  display: block;
}

/* Keeps inline links from looking weird on frontpage */
.list-item a {
  display: inline;
  white-space: normal;
  word-wrap: break-word;
  
}

.postDivider {
  margin-top: 3em;
  margin-bottom: 3em;
}

.article-content a {
  font-weight: bold;
  color: #514689;
}

/* Styling for 'alert' boxes that show up in some posts */
.alert {
  position: relative;
  padding: .75rem 1.23rem;
  margin-bottom: 1rem;
  border-top-style: solid; 
  border-top-width: 1px; 
  border-right-style: solid; 
  border-right-width: 1px; 
  border-left-style: solid; 
  border-left-width: 1px; 
  border-bottom-style: solid; 
  border-bottom-width: 1px; 
  border-radius: .25rem; 
}

/* Standard alert box */
.alert-orig {
  border-color:#FAEBCC;
  background-color: #FCF8E3;
  color: #8A6D3B;
}

/* Standard alert box */
.alert-warning {
  border-color: #5d59a9;
  background-color: #a7a4e0;
  color: #54585a;
}

/* light alert box */
.alert-light {
  border-color: #5d59a9;
  background-color: #c9b5f0;
  color: #54585a;
}

/* Standard alert box */
.alert-warning-orig {
  border-color: rgb(250, 235, 204); 
  background-color: rgb(252, 248, 227); 
  color: rgb(138, 109, 59);  
}

/* Red alert box */
.alert-failure {
  border-color: #d43f3a;
  background-color: #f37672;
  color: #54585a;
}

hr.spoiler-warning-top {
  width:400px;
  height:1px;
  border:none;
  overflow:hidden;
  background:red;
  margin-top:50px;
  margin-bottom:0px;
}

hr.spoiler-warning-bottom {
  width:400px;
  height:1px;
  border:none;
  overflow:hidden;
  margin-bottom:50px;
  margin-top:0px;
  background:red;
}

/* Alert box that is green */
.alert-success {
  border-color: #d6e9c6;
  background-color: #dff0d8;
  color: #3c763d;
}

/* For spoiler tags */
[tooltip]:active::after {
    content: attr(tooltip);
}

video {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

/** CSS for iMessage style chat bubbles*/
/***************************************************************/
.chat {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  font-family: helvetica;
  display: flex ;
  flex-direction: column;
  width: 500px;
  border: solid 1px #EEE;
  flex-direction: column;
  padding: 10px;
}

.messages {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}

.message {
  border-radius: 20px;
  padding: 8px 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: inline-block;
}

.yours {
  align-items: flex-start;
}

.yours .message {
  margin-right: 25%;
  background-color: #eee;
  position: relative;
}

.yours .message.last:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: -7px;
  height: 20px;
  width: 20px;
  background: #eee;
  border-bottom-right-radius: 15px;
}
.yours .message.last:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-right-radius: 10px;
}

.mine {
  align-items: flex-end;
}

.mine .message {
  color: white;
  margin-left: 25%;
  background: linear-gradient(to bottom, #00D0EA 0%, #0085D1 100%);
  background-attachment: fixed;
  position: relative;
}

.mine .message.last:before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  right: -8px;
  height: 20px;
  width: 20px;
  background: linear-gradient(to bottom, #00D0EA 0%, #0085D1 100%);
  background-attachment: fixed;
  border-bottom-left-radius: 15px;
}

.mine .message.last:after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  right: -10px;
  width: 10px;
  height: 20px;
  background: white;
  border-bottom-left-radius: 10px;
}
/***************************************************************/

/** Styles the HR that is used to separate out footnotes */
.article-content hr {
   border: 0; 
   width: 100%;
  height: 3px; 
  background-image: -webkit-linear-gradient(left, #f0f0f0, #a7a4e0, #f0f0f0);
  background-image: -moz-linear-gradient(left, #f0f0f0, #a7a4e0, #f0f0f0);
  background-image: -ms-linear-gradient(left, #f0f0f0, #a7a4e0, #f0f0f0);
  background-image: -o-linear-gradient(left, #f0f0f0, #a7a4e0, #f0f0f0); 
}


* {box-sizing: border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */

/* Next & previous buttons */
.slideshow-prev, .slideshow-next {
  cursor: pointer;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.slideshow-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.slideshow-prev:hover, .slideshow-next:hover {
  background-color: rgba(0,0,0,0.8);
}

.slideshow-guides {
  text-align:center;
}

/* Caption text */
.slideshow-text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.slideshow-numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.slideshow-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.slideshow-active, .slideshow-dot:hover {
  background-color: #717171;
}

/* Fading animation */
.slideshow-fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.chat-box-left {
  margin: 50px auto;
  background: #a7a4e0;
  padding: 20px;
  text-align: center;
  font-weight: 900;
  color: #fff;
  font-family: arial;
  position:relative;
}

.chat-box-right {
  margin: 50px auto;
  background: #54585a;
  padding: 20px;
  text-align: center;
  font-weight: 900;
  color: #fff;
  font-family: arial;
  position:relative;
}

.chat-box-right-quote:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid #54585a;
  border-right: 10px solid transparent;
  border-top: 10px solid #54585a;
  border-bottom: 10px solid transparent;
  right: -19px;
  top: 6px;
}

.chat-box-left-quote:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid #a7a4e0;
  border-top: 10px solid #a7a4e0;
  border-bottom: 10px solid transparent;
  left: -19px;
  top: 6px;
}

.sb3:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid #00bfb6;
  border-right: 10px solid transparent;
  border-top: 10px solid #00bfb6;
  border-bottom: 10px solid transparent;
  left: 19px;
  bottom: -19px;
}

.sb4:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 10px solid transparent;
  border-right: 10px solid #00bfb6;
  border-top: 10px solid #00bfb6;
  border-bottom: 10px solid transparent;
  right: 19px;
  bottom: -19px;
}