.cards {
  margin: 0px;
  padding: 0px 10px;
}

.card {
  font-family: Verdana, sans-serif;
  display: inline-block;
  vertical-align: top;
  border: 10px solid #8b59cc;
  border-radius: 0;
  box-shadow: 10px 10px 5px silver;
  margin: 0px 10px 30px 10px;
  width: 300px;
  color: #8b59cc;
  cursor: pointer;
}

.card:hover {
  border-color: #6635a5;
  color: #6635a5;
}

.card .title {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  flex-wrap: wrap;

  text-align: center;
  font-weight: bold;
  padding: 5px;
  height: 38px;
  width: 288px;
  margin: auto;
  float: left;
}
.card.reading-mode .title {
  width: 252px;
}

.card .details-toggle {
  padding: 8px 5px 2px 5px;
  height: 38px;
  float: left;
}

.card .details-toggle a {
  font-size: x-large;
  text-decoration: none;
  border: none;
}
.card .details-toggle a::after {
  content: "◮";
  display: inline-block;
}
.card.collapsed .details-toggle a::after {
  content: "◮";
  display: inline-block;
  -webkit-transform: scaleY(-1);
  transform: scaleY(-1);
}

.card.collapsed .details {
  display: none;
}
.card .details {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  clear: both;

  text-align: left;
  padding: 25px 10px;

  color: white;
  background-color: #8b59cc;
  background-size: cover;
  background-position: center;
}
.card:hover .details {
  opacity: 1.0;
  background-color: #6635a5;
}

.card .details.with-background-image {
  color: #6635a5;
  background-blend-mode: color-dodge;
  min-height: 125px;
  opacity: 0.5;
}
.card:hover .details.with-background-image {
  opacity: 1.0;
}

.card.collapsed .cta-panel {
  display: none;
}
.card .cta-panel {
  padding: 10px;
}

form#strip-access-form {
    display: inline-block;
    position: relative;
}

form#strip-access-form img {
    width: 142px;
    margin-top: 2px;
    vertical-align: top;
}

.strip-access-input-fields {
    position: relative;
    z-index: 1;
    font-weight: bold;
}

input#comments_count {
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
    width: 3rem;
}
.page-period {
    font-size: 1.24rem;
    margin-bottom: 15px;
}

.page-nav {
    font-size: 1.1rem;
}

.page-nav .nav-link {
    margin: 0px 20px;
}

#comics-page-layout-panel {
    float: right;
    margin: 4px;
}

#comics-page-layout-panel .label {
    display: inline-block;
    line-height: 1.8rem;
    vertical-align: middle;
    padding: 4px;
    font-family: Verdana, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
}

#comics-page-layout-panel .icon {
    display: inline-block;
    font-weight: bold;
    line-height: 1.8rem;
    vertical-align: middle;
    padding: 4px;
    margin: 0px;
    color: black;
    text-shadow: 3px 3px 3px silver;
    border-radius: 4px;
    border-bottom: none;
}
#comics-page-layout-panel .icon.selected {
    background-color: #8b59cc;
}

#comics-page-layout-panel .icon:not(.selected):hover {
    background-color: #6635a5;
}

#comics-page-layout-panel .compact.icon {
    font-size: 1.2rem;
}

#comics-page-layout-panel .wide.icon {
    font-size: 1.8rem;
}

.page {
    clear: both;
    display: block;
    margin: 15px auto 0px auto;
    padding: 0px;
}

.page .page-image {
    display: block;
    background-color: white;
    margin: 0px auto;
    padding: 5px 16px;
    max-width: 100%;
}
.page .page-image:first-child {
    padding-top: 12px;
}
.page .page-image:last-child {
    padding-bottom: 12px;
}

.page .page-image.compact {
    max-width: 70%;
    padding: 2px 8px;
}
.page .page-image.compact:first-child {
    padding-top: 6px;
}
.page .page-image.compact:last-child {
    padding-bottom: 6px;
}

.page .page-image img {
    max-width: 100%;
    min-width: 300px;
    min-height: 100px;
}

.page .page-image .image-source {
    float: right;
    position: relative;
    margin: -18px -18px 0px 0px;
    border: none;
    opacity: 0.4;
}
.page .page-image .image-source:hover {
    opacity: 1;
}
.page .page-image .image-source::after {
    content: "\1F5E8"; /* WARNING: "\1F6C8 " for (i) does not render on Android phone; "\1F4CB " for checklist is an alternative */
    color: white;
    text-shadow: -1px -1px 0 #8b59cc, 1px -1px 0 #8b59cc, -1px 1px 0 #8b59cc, 1px 1px 0 #8b59cc; /* needed only for "\1F5E8 " as word balloon */
    vertical-align: unset; /* unset works better than middle for word balloon icon */
    margin-right: 5px;
    line-height: 1.4rem;
    font-weight: bold;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}
.page .page-image .image-source:hover::after {
    color: #8b59cc;
}
@media (orientation: portrait) {
    .page .page-image .image-source::after {
        font-size: 0.8rem;
    }

    .page .page-image.compact .image-source::after {
        font-size: 0.7rem;
    }
}
@media (orientation: landscape) {
    .page .page-image .image-source::after {
        font-size: 1.2rem;
    }

    .page .page-image.compact .image-source::after {
        font-size: 1.1rem;
    }
}

.page .page-image.compact .image-source {
    float: right;
    margin: -20px -14px 0px 0px;
    border: none;
}

.comics-source {
    text-align: left;
    margin: 5px 0px 0px 5px;
}
.user-content-form {
    margin: 0px 0px 20px 0px;
}

.user-content-form fieldset {
    display: inline-block;
    vertical-align: top;
    border: none;
    padding: 0px;
    margin: 20px 20px 0px 0px;
}
.user-content-form fieldset:last-child {
    display: block;
}

.user-content-form label {
    display: block;
    margin: 20px 0px 0px 0px;
}
.user-content-form label:first-child {
    margin: 0px;
}

.user-content-form input, .user-content-form textarea {
    display: block;
    margin: 4px 0px 0px 0px;
    font-family: Verdana, sans-serif;
    font-size: 0.9rem;
}

.user-content-form label.protect, .user-content-form input.protect {
    display: block;
    margin: 0px;
    height: 0px;
    line-height: 0px;
    border: 0px;
    font-size: 0px;
}

.user-content-form input[type="submit"] {
    display: block;
    margin: 0px;
    padding: 8px;
    font-family: Verdana, sans-serif;
    font-size: 0.9rem;
}

.user-content {
    margin: 25px 0px 0px 0px;
    padding: 0px 0px 25px 0px;
    border-bottom: 1px solid #8b59cc;
    font-family: Verdana, sans-serif;
}
.user-content:last-child {
    border-bottom: none;
}

.user-content .text {
    margin: 0px 0px 10px 0px;
    font-size: 1rem;
}

.user-content .by {
    text-align: right;
    font-style: italic;
    font-size: 0.9rem;
}

.user-content .by .name {
    font-weight: bold;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
    font-family: sans-serif;
    margin: auto;
    background-color: #8b59cc;
    background-image: url(/assets/graphics/blue-paper-background-5ff6e363bfe3c733478f85aa7c9445937af6e8d54a326a7fa3345da423154b32.jpg);
    color: white;
    width: 98.2%;
}

a {
    color: #8b59cc;
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid #8b59cc;
    padding-bottom: 0px;
    margin-bottom: 2px;
}

a:hover {
    color: #6635a5;
    border-color: #6635a5;
    text-decoration: none;
}

a[target="_blank"]::after {
    content: " \21F1";
    display: inline-block;
    margin: 0px 0px 0px 2px;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

#header {
    margin: 10px auto;
    padding: 1px 0px 20px 0px;
    text-align: center;
    background-color: black;
    opacity: 0.7;
    font-size: 1.2rem;
}
#header a {
    color: #b795e5;
}
#header a:hover {
    color: #e5d2ff;
}
#header h1 a {
    text-decoration: none;
    border-bottom: 0px;
}

#main {
    background-color: white;
    background-image: url(/assets/graphics/white-noise-background-d772ffa08c07fb6181333c9ae328039f997a8456f76d828a96dd335920713389.gif);
    text-align: center;
    margin: auto;
    padding: 20px 0px;
    color: black;
}

#footer {
    margin: 30px auto;
    width: 90%;
    text-align: center;
    font-size: .9rem;
}

#footer a {
    color: white;
    border-bottom: 1px solid white;
}

#footer .smallprint {
    font-size: .65rem;
}

.heading {
    display: inline-block;
    margin-bottom: 20px;
}

.heading h1 {
    display: inline-block;
    margin-bottom: 5px;
}

.heading-tagline {
    display: block;
    text-align: left;
    font-size: 1.1rem;
}

.content {
    display: block;
    color: black;
    background-color: white;
    border: 1px solid #8b59cc;
    padding: 10px 30px;
    margin: 0px auto 30px auto;
    width: 80%;
    text-align: justify;
}

.content.secondary {
    background-color: transparent;
}

.success {
    display: block;
    color: white;
    background-color: green;
    border: 1px solid green;
    padding: 10px 30px;
    margin: 0px auto 30px auto;
    width: 80%;
    font-family: Verdana, sans-serif;
}
.success:not(.without_icon)::before {
    content: "\2713";
    color: green; text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.1rem;
    vertical-align: text-bottom;
    margin-right: 10px;
}

.error {
    display: block;
    color: white;
    background-color: #cd1818;
    border: 1px solid #cd1818;
    padding: 10px 30px;
    margin: 0px auto 30px auto;
    width: 80%;
    font-family: Verdana, sans-serif;
}
.error:not(.without_icon)::before {
    content: "\2715";
    color: #cd1818; text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.1rem;
    vertical-align: text-bottom;
    margin-right: 10px;
}

.info {
    display: block;
    color: #8b59cc;
    background-color: white;
    border: 1px solid #8b59cc;
    padding: 10px 30px;
    margin: 0px auto 30px auto;
    width: 80%;
    font-family: Verdana, sans-serif;
}
.info:not(.without_icon)::before {
    content: "\1F5E8"; /* WARNING: "\1F6C8 " for (i) does not render on Android phone; "\1F4CB " for checklist is an alternative */
    color: white; text-shadow: -1px -1px 0 #8b59cc, 1px -1px 0 #8b59cc, -1px 1px 0 #8b59cc, 1px 1px 0 #8b59cc; /* needed only for "\1F5E8 " as word balloon */
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.1rem;
    vertical-align: unset; /* unset works better than middle for word balloon icon */
    margin-right: 10px;
}

.warning {
    display: block;
    color: orange;
    background-color: white;
    border: 1px solid orange;
    padding: 10px 30px;
    margin: 0px auto 30px auto;
    width: 80%;
    font-family: Verdana, sans-serif;
}
.warning:not(.without_icon)::before {
    content: "\26A0";
    font-size: 1.8rem;
    font-weight: normal;
    line-height: 1.1rem;
    vertical-align: text-bottom;
    margin-right: 2px;
}

.note {
    color: grey;
}

.smallprint {
    font-size: .80rem;
}

.success a, .error a, .warning a, .info a, .note a, .smallprint a {
    color: inherit;
    border-color: inherit;
}

.cta {
  font-size: 0.9rem;
  cursor: pointer;
}

.cta.primary {
  background-color: #8b59cc;
  color: white;
  border: 5px solid #8b59cc;
  border-radius: 10px;
  box-shadow: 5px 5px 5px silver;
  padding: 3px 10px;
}
.cta.primary:hover {
  background-color: #6635a5;
  color: white;
  border: 5px solid #6635a5;
}

.cta.secondary {
  background-color: white;
  color: #8b59cc;
  border: 2px solid #8b59cc;
  border-radius: 8px;
  box-shadow: 3px 3px 3px silver;
  padding: 5px 10px;
}
.cta.secondary:hover {
  background-color: #6635a5;
  color: white;
  border: 2px solid #6635a5;
} 

@media (orientation: portrait) {
    .portrait-orientation.warning {
        display: block;
    }
}

@media (orientation: landscape) {
    .portrait-orientation.warning {
        display: none;
    }
}

.portrait-orientation.warning {
    margin: 10px auto;
}

.portrait-orientation.warning img {
    float: left;
    margin: -5px 5px 0px -5px;
    padding: 0px;
    opacity: .8
}

#spinner {
    visibility: hidden;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.5em;
    text-shadow: 3px 3px 3px silver;
}

/* Source: https://codepen.io/lodybo/pen/povbPXP */
/* Add spinner symbol */
.spinner::before {
	/* You can choose from a few below */
	--lighthouse-symbol: "\26EF";
	--dotted-circle: "\25CC";
	--hourglass: "\23F3";
	
	/* Assign the spinner icon as content for the pseudo element */
	content: var(--hourglass);
}
.spinner {
	/* In our demo, the spinner uses an <i/> tag which by default has font-styling. We reset that here */
	font-style: normal;
	
	/* Increase font size to make it more appealing */
	font-size: 5em;
	
	/* Add infinite rotation animation */
	animation: rotation 4s infinite linear;
}

/* Specify rotation */
@keyframes rotation {
	from {
		transform: rotate(0deg);
	}
	
	to {
		transform: rotate(359deg);
	}
}
