/* ---------------------------------------------------- */
/* BASIC SETUP */
/* ---------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: "Pathway Gothic One", "Árial", sans-serif;
  font-size: 17px;
  color: #555;
  background-image: url(images/dark_embroidery.png);
}

/* HEADINGS */

h1 {
  color: #555;
  font-size: 240%;
  font-weight: 100;
  margin-bottom: 10px;
  margin-left: 7px;
}

h2 {
  font-size: 160%;
  font-weight: 200;
  margin-left: 7px;
}

h3 {
  font-size: 140%;
  font-weight: 200;
  margin-left: 7px;
}

h4 {
  font-size: 100%;
  font-weight: 200;
  margin-left: 7px;
}

h1,
h2,
h3,
h4,
h5 {
  text-shadow:
    1px 1px 0 #fdfdfd,
    2px 2px 0 rgba(81, 81, 81, 0.5),
    0 0 1px #8779d2;
}

h1:after {
  display: block;
  height: 2px;
  background: #8779d2;
  background: -webkit-gradient(linear, left top, right top, from(#8779d2), to(#252040));
  background: linear-gradient(to right, #8779d2, #252040);
  content: " ";
  width: 350px;
  margin-top: 5px;
}

h2:after {
  display: block;
  height: 2px;
  background: #8779d2;
  background: -webkit-gradient(linear, left top, right top, from(#8779d2), to(#252040));
  background: linear-gradient(to right, #8779d2, #252040);
  content: " ";
  width: 200px;
  margin-top: 5px;
}

h4:after {
  display: block;
  height: 2px;
  background: #8779d2;
  background: -webkit-gradient(linear, left top, right top, from(#8779d2), to(#252040));
  background: linear-gradient(to right, #8779d2, #252040);
  content: " ";
  width: 200px;
  margin-top: 5px;
}

h4:after {
  display: block;
  height: 2px;
  background: #8779d2;
  background: -webkit-gradient(linear, left top, right top, from(#8779d2), to(#252040));
  background: linear-gradient(to right, #8779d2, #252040);
  content: " ";
  width: 150px;
  margin-top: 5px;
}

h5:after {
  display: block;
  height: 2px;
  background: #8779d2;
  background: -webkit-gradient(linear, left top, right top, from(#8779d2), to(#252040));
  background: linear-gradient(to right, #8779d2, #252040);
  content: " ";
  width: 100px;
  margin-top: 5px;
}

a:link,
a:visited {
  color: #252040;
  padding-bottom: 1px;
}

a:hover,
a:active {
  color: #555;
  text-decoration: underline;
}

.game-menu-links a {
  position: relative;
  display: inline-block;
  padding-left: 1.25rem;
  color: #2b214f;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.game-menu-links a::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: #7a69c7;
  transition: opacity 0.2s ease;
}

.game-menu-links a:hover,
.game-menu-links a:focus {
  color: #7a69c7;
  transform: translateX(2px);
  text-decoration: none;
}

.game-menu-links a:hover::before,
.game-menu-links a:focus::before {
  opacity: 1;
}

/* TITLE */

.navbar-brand {
  color: #fff !important;
  text-transform: uppercase;
  font-size: 180%;
}

/* CONTAINER */

.container {
  width: 800px;
  padding: 0;
  background-color: #fff;
}

/* ---------------------------------------------------- */
/*  NAVIGATION */
/* ---------------------------------------------------- */

.bg-dark {
  font-size: 140%;
  color: #fff !important;
  background-color: #252040 !important;
}

.navbar-dark .navbar-nav .nav-link {
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  color: #d3ccf7 !important;
  border-radius: 20px;
  margin-right: 5px;
}

.navbar-dark .navbar-nav .nav-link:active {
  color: #fff !important;
  text-decoration: none;
  font-weight: normal;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
  display: block;
  height: 1px;
  background: #8779d2;
  background: -webkit-gradient(linear, left top, right top, from(#5546a5), to(#252040));
  background: linear-gradient(to right, #5546a5, #252040);
  content: " ";
  width: 100%;
  margin-bottom: 5px;
}

.update-strip {
  background-color: #191631;
  color: #eee7dc;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.update-strip a {
  color: #eee7dc;
  text-decoration: none;
}

.update-strip a:hover {
  color: #c6a15b;
  text-decoration: none;
}

.chapter-menu {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d8d1e6;
  box-shadow: 0 4px 12px rgba(45, 38, 70, 0.08);
}

.chapter-menu-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #252040;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #7d72b8;
}

.chapter-title-icon {
  width: 22px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
}

.chapter-menu a {
  display: block;
  padding: 7px 8px;
  margin-bottom: 4px;
  color: #3d365a;
  text-decoration: none;
  border-bottom: 1px solid rgba(120, 110, 160, 0.18);
}

.chapter-menu a:hover {
  background: rgba(125, 114, 184, 0.12);
  color: #252040;
  text-decoration: none;
  padding-left: 12px;
}

html {
  scroll-behavior: smooth;
}

.return-top-fixed {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 999;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-width: 190px;
  padding: 10px 22px;

  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #7d72b8;
  box-shadow: 0 4px 14px rgba(45, 38, 70, 0.22);

  color: #2a2144;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.return-top-fixed.show {
  opacity: 1;
  pointer-events: auto;
}
.return-top-fixed:hover {
  color: #2a2144;
  text-decoration: underline;
  background: #fff;
}

.return-top-icon {
  width: 28px;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

.opera-accordion {
  margin-top: 10px;
  max-width: 520px;
}

.opera-accordion .card {
  border: 1px solid #ddd8e8;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
}

.opera-accordion .card-header {
  padding: 0;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid #ddd8e8;
}

.opera-accordion .btn-link {
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  color: #2a2144;
  font-weight: normal;
  text-decoration: none;
}

.opera-accordion .btn-link:hover,
.opera-accordion .btn-link:focus {
  color: #5d4ca0;
  text-decoration: none;
}

.card-body .reflection {
  height: 100px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.45);
}

.card-img-portrait {
  height: 200px;
  object-fit: cover;
  object-position: top center;
}

.card-img-full-width {
  height: 150px;
  position: sticky;
  bottom: 20px;
  object-fit: cover;
  object-position: top center;
}

.card-img-wide {
  width: 250x;
  object-fit: cover;
  object-position: center;
}

/* ---------------------------------------------------- */
/*  HEADER*/
/* ---------------------------------------------------- */

.header {
  background-image: url(images/Restless-header.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  width: 800px;
  height: 380px;
}

/* ---------------------------------------------------- */
/*  CONTENT */
/* ---------------------------------------------------- */

.content {
  padding: 5px;
  width: 800px;
}

.fanlisting-card {
  width: 400px;
  margin: 40px auto;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #7b6fd6;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  font-family: inherit;
}

.fanlisting-card h2 {
  margin-top: 0;
  color: #2b1b3f;
  font-family: Cinzel, serif;
}

.subtext {
  font-size: 0.9em;
  color: #6b5a8a;
  margin-bottom: 20px;
}

.fanlisting-card form {
  display: flex;
  flex-direction: column;
}

.fanlisting-card label {
  margin-top: 12px;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #3a2f4a;
}

.fanlisting-card input {
  padding: 8px;
  border: 1px solid rgba(123, 111, 214, 0.4);
  border-radius: 6px;
  outline: none;
  transition: 0.2s;
}

.fanlisting-card input:focus {
  border-color: #7b6fd6;
  box-shadow: 0 0 5px rgba(123, 111, 214, 0.4);
}

.fanlisting-card button {
  margin-top: 20px;
  padding: 10px;
  background: #7b6fd6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.fanlisting-card button:hover {
  background: #5f52b3;
  transform: translateY(-1px);
}

select {
  padding: 6px;
  border: 1px solid #7b6fd6;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
}

.icon {
  margin-right: 6px;
  opacity: 0.8;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.member-card {
  width: 400px;
  background: #fff;
  border: 1px solid #7b6fd6;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.member-card h3 {
  margin: 0 0 5px 0;
  font-family: Cinzel, serif;
  color: #2b1b3f;
}

.member-card p {
  margin: 3px 0;
  font-size: 0.9em;
}

.media {
  margin-bottom: 40px;
}

.news-img,
.mr-3,
.mx-3 {
  margin-right: 0 !important;
  margin-bottom: 15px;
}

.card-deck {
  margin-bottom: 10px;
}

.news-content {
  padding: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  border: 1px solid #cad3df;
  width: 100%;
  background: #f5eee1 url("images/handmade-paper.png") repeat;
  color: #555;
  box-shadow: 0 0 8px rgba(70, 55, 35, 0.1);
}

.chapter-page {
  padding-bottom: 60px;
}

.avatar {
  background-color: transparent;
  width: 150px;
  height: auto;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  padding: 4px;
}


.page-image {
  margin: 22px 0;
  text-align: center;
}

.page-image img {
  max-width: 100%;
  height: auto;
  align-content: center;
  border: 1px solid #ddd8e8;
  padding: 4px;
  background: rgba(255, 255, 255, 0.7);
}

.page-image .figure-caption {
  margin-top: 6px;
  font-size: 0.9em;
}

.small-image img {
  max-width: 49%;
  height: auto;
  align-content: center;
  border: 1px solid #ddd8e8;
  padding: 4px;
  background: rgba(255, 255, 255, 0.7);
}

.about {
  background-color: #f7f7f7;
  padding: 20px;
  border: 1px solid #cad3df;
  margin-bottom: 20px;
}

.shrine {
  padding: 10px;
}

.date {
  color: #5546a5;
  font: bold;
  font-size: 100%;
  padding: 5px 34px;
  margin-bottom: 10px;
  float: left;
  border-top-right-radius: 25px;
  height: auto;
  width: 100%;
}

.reflection {
  color: #5546a5;
  font: bold;
  font-size: 100%;
}

/* SQUARE */

.square {
  margin-top: 20px;
}

ul .banner {
  list-style: none;
}

.banner .square-ani {
  display: inline-block;
  width: 40px;
  height: 40px;
  position: relative;
  top: calc(50% - 60px);
  text-shadow: 3px white;
}

.square-ani:nth-child(1) {
  width: 100px;
  height: 10px;
  background-color: #252040;

  -webkit-animation: fade 4s infinite 200ms;
  animation: fade 4s infinite 200ms;
}
.square-ani:nth-child(2) {
  width: 80px;
  height: 10px;
  background-color: #5546a5;
  -webkit-animation: fade 4s infinite 400ms;
  animation: fade 4s infinite 400ms;
}
.square-ani:nth-child(3) {
  width: 60px;
  height: 10px;
  background-color: #d3ccf7;
  -webkit-animation: fade 4s infinite 600ms;
  animation: fade 4s infinite 600ms;
}
.square-ani:nth-child(4) {
  width: 40px;
  height: 10px;
  background-color: #dedbee;
  -webkit-animation: fade 4s infinite 800ms;
  animation: fade 4s infinite 800ms;
}

@-webkit-keyframes fade {
  50% {
    opacity: 0.02;
  }
}

@keyframes fade {
  50% {
    opacity: 0.02;
  }
}

/* ICONS */

.fab {
  padding: 10px;
}

.col {
  width: 300px;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social-button {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #8b6fa8;
  background: #f4e9ff;
  color: #f4e9ff;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-align: center;
  line-height: 14px;
  text-transform: uppercase;
}

.social-button:hover {
  background: #252040;
  color: #ffffff;
}

/*  AVATAR */

.img-avatar {
  display: block;
  border-radius: 20px;
  height: auto;
  padding: 4px;
  width: auto;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 6px #efefef;
}

.img-thumbnail {
  display: block;
  border-radius: 20px;
  height: auto;
  padding: 4px;
  width: 200px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 6px #efefef;
}

.shrine-sidebar {
  float: right;
  width: 128px;
  margin: -2px;
  margin-bottom: 10px;
  padding: 15px;
  background-color: #dedbee;
  border-left: 5px solid #8779d2;
  color: #252040;
  font-size: 0.85em;
  line-height: 1.4;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
}
.tribute-button {
  display: inline-block;
  width: 88px;
  height: 31px;
  background: #dedbee;
  border: 1px solid #8779d2;
  color: #252040;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 14px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.tribute-button span {
  display: block;
  font-size: 8px;
  color: #252040;
}

ul li .list-group {
  text-align: center;
}

hr.border {
  border: 0;
  height: 2px;
  background: #333;
  background-image: -webkit-linear-gradient(left, #dedbee, #8779d2, #dedbee);
  background-image: -moz-linear-gradient(left, #dedbee, #8779d2, #dedbee);
  background-image: -ms-linear-gradient(left, #dedbee, #8779d2, #dedbee);
  background-image: -o-linear-gradient(left, #dedbee, #8779d2, #dedbee);
}

.icon-img {
  width: 100px;
  height: 100px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: block;
  opacity: 100;
  filter: drop-shadow(0 0 1px rgba(70, 55, 95, 0.12));
  border: 2px solid #ddd;
  box-shadow: 0 6px 6px #efefef;
  border-radius: 25px;
}

.reflection-box {
  margin-bottom: 20px;
  padding: 12px;
}

@media (max-width: 768px) {
  .reflection-box {
    margin-bottom: 15px;
  }
}

.related-note {
  margin: 18px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid #7d72b8;
  font-size: 0.95em;
}

.related-note strong {
  color: #2a2144;
}

.social-links {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 15px 4px;
}

.social-links a {
  color: #34275f;
  font-size: 1.4rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.social-links a:hover {
  color: #7b63c7;
  transform: translateY(-2px);
  text-decoration: none;
}

.sticker-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin: 20px 0;
}

.sticker-note img {
  width: 90px;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .sticker-note {
    display: block;
  }

  .sticker-note img {
    float: right;
    width: 75px;
    margin: 0 0 10px 12px;
  }
}

.restless-nav a {
  color: #3b2d7a;
  text-decoration: none;
}

.restless-nav a:hover {
  color: #7a69c7;
  text-decoration: none;
}

.restless-link-list a {
  color: #3b2d7a;
  text-decoration: none;
}

.restless-link-list a:hover {
  color: #555;
  text-decoration: underline;
}

.restless-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.35rem;
}

.restless-list li::before {
  content: "✦";
  color: #7a69c7;
  position: absolute;
  left: 0;
  top: 0;
}

/* ---------------------------------------------------- */
/* GALLERY */
/* ---------------------------------------------------- */

.design-gallery {
  display: block;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.design-gallery img {
  width: 240px;
  height: 135px;
  object-fit: cover;
  border: 1px solid #d8d3e8;
  padding: 4px;
  margin: 5px;
  background: #fff;
  transition: opacity 0.2s ease;
}

.design-gallery img:hover {
  opacity: 0.8;
}

@media (max-width: 576px) {
  .design-gallery img {
    width: 100%;
    height: auto;
  }
}

/* ---------------------------------------------------- */
/* GALLERY - MEDIA */
/* ---------------------------------------------------- */

.design-gallery-media {
  display: block;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.design-gallery-media img {
  width: 128px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #d8d3e8;
  padding: 4px;
  margin: 5px;
  background: #fff;
  transition: opacity 0.2s ease;
}

.design-gallery-media img:hover {
  opacity: 0.8;
}

.box:hover svg line {
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
}

.box svg line.top,
.box svg line.bottom {
  stroke-dasharray: 330 240;
}

.box svg line.left,
.box svg line.right {
  stroke-dasharray: 490 400;
}

.box:hover svg line.top {
  -webkit-transform: translateX(-600px);
  transform: translateX(-600px);
}

.box:hover svg line.bottom {
  -webkit-transform: translateX(600px);
  transform: translateX(600px);
}

.box:hover svg line.left {
  -webkit-transform: translateY(920px);
  transform: translateY(920px);
}

.box:hover svg line.right {
  -webkit-transform: translateY(-920px);
  transform: translateY(-920px);
}

@media (max-width: 576px) {
  .design-gallery-media img {
    width: 100%;
    height: auto;
  }
}

/* ---------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------- */

.footer {
  padding: 20px 40px;
  color: #f2f2f2;
  background-color: #252040;
}

.footer a:link,
.footer a:visited {
  color: #d3ccf7;
  text-decoration: none;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.footer a:hover,
.footer a:active {
  color: #fff;
  text-decoration: none;
  font-weight: normal;
}
