/* >>> VARIABLES <<< */

:root {
	--cultRed: #8e1a1d;
    --cultRedLight: #c9474b;
	--scienceGreen: #72c900;
}

/* >>> GLOBAL LAYOUT <<< */
html {
    height: 100%;
}

body {
    background-color: #3d3d3d;
    color: #ddd;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    min-width: 275px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

header {
    color: white;
    background-color: black;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

footer {
    margin-top: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--cultRed);
    color: white;
    flex-shrink: 0;
}

img {
    height: auto;
    height: 100%;
    margin: 0 auto;
}

.hero-image {
    max-width: 100%;
}

.cta {
    display: inline-block;
    text-align: center;
    width: max-content;
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    color: yellow;
    background-color: var(--cultRed);
    border-radius: 1rem;
    padding: 1rem 1.5rem 1rem 1.5rem;
    font-weight: 900;
    cursor: pointer;
}

.linkable:hover {
    cursor: pointer;
    color: var(--cultRed);
}

.science {
    color: var(--scienceGreen);
}

h1 {
    margin: 0 auto;
    text-transform: uppercase;
    font-size: 1.4rem;
}

h2 {
    margin: 0 auto; 
    margin-bottom: .5rem;
    font-size: 1.4rem;
}

h3 {
    margin: 0 auto;
    font-size: 1rem;
}

p {
    font-size: 1.1rem;
    font-weight: 300;
}

a {
    text-decoration: underline;
    color: var(--cultRedLight);
}

.byline {
    font-size: .8rem;
    text-transform: uppercase;
    margin: 0;
    font-weight:bolder;
}

.quote-box {
    background-color: lightgrey;
    color: #5d5d5d;
    margin-right: 1rem;
    margin-left: 1rem;
    width: 100%;
}

.fine-print {
    font-size: .9rem;
}

@keyframes flash {
  0% {
    background-color: initial;
  }
  50% {
    background-color: yellow;
  }
  100% {
    background-color: initial;
  }
}

.flashing {
  animation: flash 1s infinite;
}

/* >>> FEATURE-SPECIFIC <<< */

/* void overlay */

.void-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    z-index: -1;
}

/* navigation menu */

nav {
    margin: 0 auto;
    padding: 0;
    font-size: .9rem;
    font-weight: bolder;
    text-transform: uppercase;
}

#navSocials {
    background-color: black;
    color: white;
    padding-bottom: 1.5rem;
}

.nav-icon {
    text-align: center;
    background-color: black;
    cursor: pointer;
    padding: 0 !important;
}

.nav-icon a, .nav-icon a:visited {
    color: white;
    text-decoration: none;
}

.nav-icon svg {
    height: 2rem;
    width: auto;
}

.nav-icon svg:hover {
    fill: #bc2326;
}

.drop-shadow {
    filter: drop-shadow(-3px -4px 3px rgba(0, 0, 0, 0.5));
}

.nav-tab {
    background-color: var(--cultRed);
    padding: .2em .2em .4em .2em !important;
    margin: 0em .3em 0em .3em;
    border-radius: 0rem 0rem 1rem 1rem;
    color: yellow;
    cursor: pointer;
}

.nav-tab a, .nav-tab a:visited {
    color: yellow;
    text-decoration: none;
}

/* twitch on-air status */

.twitch-status {
    width: 80%;
    background-color: black;
    border-radius: 1rem 1rem 1rem 1rem;
    padding: .5rem;
    outline: 3px solid black;
}

.twitch-status img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* comic gallery */

#comics {
    text-transform: uppercase;
    padding: 1em;
}

#comics-panel {
    margin-bottom: 1em;
}

#comics-panel img {
    max-width: 95vw;
    border: 3px solid black;
}

#comics-nav {
    text-align: center;
    font-weight: bolder;
}

#comics-nav div {
    padding: 0;
}

#comics-nav div i {
    line-height: 2rem;
}

#comics-nav div p {
    font-size: .7rem;
    font-weight: bolder;
}

#share-modal {
    display: none;
    z-index: 1; 
    background: rgba(0, 0, 0, 0.73);
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    margin: 0 auto;
}

#share-modal-body {
    z-index: 2; 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min-content;
    height: auto;
    border: 2px solid black;
    background-color: white;    
    padding: 1rem;
}

#share-modal input {
    width: 250px;
    font-size: 1.3rem;
    line-height: 2rem;
    margin: .3em;
    text-align: center;
}

#share-modal .cta {
    transform: scale(0.7)
}

/* merch page */
.merch-item {
    background-color: #333;
}
.merch-item-title {
    padding: 10px;
    background-color: #111;
    text-align: left;
    font-size: 1.4em;
}
.merch-item-description {
    text-align: left;
    padding-right: 20px;

}
.merch-item-img {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    cursor: pointer;
}
.merch-item-img.fourthwall {
    background-image: url("../img/merch/merchpage-fourthwall-banner.png")
}
.merch-item-img.teespring {
    background-image: url("../img/merch/merchpage-teespring-banner.png")
}
.merch-item-img.zazzle {
    background-image: url("../img/merch/merchpage-zazzle-banner.png")
}
.merch-item-img.practicallypotion {
    background-image: url("../img/merch/merchpage-practicallypotion-banner.png")
}
.merch-item-img.goozlestudios {
    background-image: url("../img/merch/merchpage-goozlestudios-banner.png")
}


/* cultist welcome modal */

#new-reg-modal {
    height: min-content;
    position: fixed;
    z-index: 99;
    top: -100%;
}

#new-reg-modal div:first-child {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

#new-reg-modal.active {
  animation: dropIn 0.5s forwards;
}

#new-reg-modal.fade-out {
  animation: fadeOut 2s forwards;
}

@keyframes dropIn {
  from {
    top: -100%;
  }
  to {
    top: 100px;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* cultist stats card */

#stats-card-container {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

#character-sheet {
    font-family:'Courier New', Courier, monospace;
    background-color:#c9b49f;
    overflow: hidden;
}

#profile-cultist-name {
    background-color: #03184a;
    color: white;
    font-weight: bold;
    font-size: 1.6rem;
    -webkit-text-stroke: 1px black;
    text-stroke: 1px black;
}

#profile-header div {
    padding: 1rem 0 1rem 0;
}
.avatar-bg {
    position: relative;
    width: 100%;
    background-color: #03184a;
}
.profile-img {
    width: 175px;
    height: 175px;
    padding-left: 2em;
    padding-top: 2em;
}
.gold-star {
    position: absolute;
    top: 0;
    left: 1em;
    float:left;
    z-index: 2;
    scale: .75;
    text-align: center;
}
.gold-star p {
    color: #fff;
    line-height: 1rem;
    padding: 0;
    margin: 0 auto;
    text-align: center;
}

.profile-section {
    padding-top: 1rem;
}
.profile-section-title {
    padding: 1rem 0 1rem 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    text-align: left;
}
.profile-record {
    padding: .5rem 0 .5rem 0;
    border-bottom: 1px dotted grey;
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem;
}

#profile-badges {
    
}
.badge-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid black;
    overflow: hidden;
    background-color: #fff;
}
.badge-wrapper img {
    width: 100%;
    height: auto;
}


#profile-top-records {
    padding-bottom: 0;
}

#profile-other-records {
    overflow: hidden;
    max-height: 0px;
    transition: max-height 0.3s ease;
}

.seasonal-collection-item p {
    font-size: .7rem;
}

#avatar-collection-drawer, #gear-collection-drawer {
    overflow: hidden;
    max-height: 275px;
    transition: max-height 0.3s ease;
    box-shadow: inset 0px -10px 10px -10px rgba(0, 0, 0, 0.2);
}

.avatar-collection-drawer-control, .gear-collection-drawer-control, .profile-other-records-control {
    text-decoration: underline;
    cursor: pointer;
    padding-right: 1rem;
    text-align: right;
}

.avatar-collection-item-wrapper {
    padding-bottom: .5rem;
}

.avatar-collection-item {
    background-color: rgba(236, 217, 197, 0.8);
    position: relative;
    width: min-content;
    height: min-content;
    text-align: center;
    margin: auto;
    cursor: pointer;
}

.avatar-collection-item img {
    width: 100px;
    height: 100px;
}

.avatar-unlocked {
    border: 2px solid green;
}

.avatar-locked {
    border: 2px solid grey;
}

.avatar-locked img {
    filter: grayscale(1) opacity(20%);
    -webkit-filter: grayscale(1) opacity(20%);
}

.avatar-item-info {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    padding: 10px 20px 10px 20px;
    background-color: #fff;
    border: 2px solid black;
    z-index: 99;
    text-align: left;
    display: none;
}

.avatar-info-wiki-link {
    text-align: right;
    cursor: pointer;
    font-weight: 900;
}

/* registration page */

.reg-box {
    display: inline-block;
    margin: 1rem;
    text-align: center;
    text-decoration: none;
    background-color: rgb(172, 172, 172);
    border-radius: 1rem;
    padding: .5rem 1rem .5rem 1rem;
    font-size: 1rem;
}

.reg-box .title {
    font-weight: bold;
    font-size: 1.2rem;
}

.reg-box input {
    height: 2.6rem;
    padding: .5rem 1rem .5rem 1rem;
    font-size: 1.2rem;
    line-height: 1.2rem;
    border: none;
    border-radius: 1rem;
}

.reg-box i {
    margin-right:.3rem;
}

#err {
    font-weight: 900;
    color: #6b2e00;
    padding: .2rem;
}

/* the wiki */

#wiki-scroll div {
    padding: 0;
    margin: 0 auto;
}

#wiki-scroll {
    background-image: url("../img/wiki/scroll_back.png");
    background-size: cover;
    background-repeat: no-repeat;
    padding: 50px 0px 50px 0px;
}

#wiki-scroll-top {
    /* background-image: url("../img/wiki/scroll_top.png"); */
    height: 100px;
}

#wiki-scroll-bottom {
    /* background-image: url("../img/wiki/scroll_bottom.png"); */
    height: 100px;
}

.wiki-section {
    background-color: #eddeb7;
    color: #222;
    padding-bottom: 1rem;
}

.wiki-section-title {
    background-color: #ac842c;
    text-transform: capitalize;
    font-size: 1.5em;
    padding: 1.5rem;
}

.wiki-section-description {
    padding: 1rem;
    text-align: left;
}

.wiki-section-sub-links {
    padding: 1rem;
    text-align: left;
    font-size: 1em;
    font-family: "Courier New", monospace;
    text-transform: uppercase;
}

.wiki-section-sub-heading {
    background-color: #a38943;
    padding: .5rem;
    text-transform: uppercase;
    font-size: 1.2em;
}

.wiki-item-category {
    background-color: #dec890;
    padding-bottom: 2rem;
}

.wiki-item-category-heading {
    padding: .5rem;
    text-align: left;
    font-size: 1.2em;
}

.wiki-item {
    background-color: #eddeb7;
    font-family: "Courier New", monospace;
}

.wiki-item-title {
    background-color: #f0ba43;
    text-align: left;
    padding: .5rem;
    font-size: 1.2em;
}

.wiki-item-content {
    text-align: left;
    font-size: 1em;
    padding: 1em;
}

.wiki-table-row {
    padding: 0;
    margin: 0;
    text-align: left;
}

.wiki-table-data {
    border: 1px dotted black;
    padding: .3rem;
    margin: 0;
    text-align: left;
}

.wiki-img-wrapper {
    text-align: center;
    position: relative;
}

.wiki-img {
    width: 100%;
}


/* >>> UTILITY STYLES <<< */

/* border style */

/* hr */
.dotted-top {
  border-top: 1px dotted black;
}

.full-solid-border {
    border: 1px solid black;
}

/* spacing */

.space-top {
    margin-top: 2rem;
}

.space-bottom {
    margin-bottom: 2rem;
}

.desktop-only {
    display: none;
}

/* image scaling */

.rem1 {
    height: 1rem;
}

.rem2 {
    height: 3rem;
}

.rem3 {
    height: 5rem;
}

.rem4 {
    height: 7rem;
}

.rem5 {
    height: 10rem;
}

.hide {
    display: none;
}

.show {
    display: initial;
}

/*****************************************************************/
/* DESKTOP STYLE ADJUSTMENTS (ALL STYLES ABOVE ARE MOBILE-FIRST) */
/*****************************************************************/
@media only screen and (min-width: 48em) {
    nav {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }

    .button {
        font-size: 2rem;
    }


    /* image scaling */
    .rem1 {
        height: 3rem;
    }

    .rem2 {
        height: 5rem;
    }

    .rem3 {
        height: 9rem;
    }

    .rem4 {
        height: 13rem;
    }

    .rem5 {
        height: 20rem;
    }

    .mobile-only {
        display: none;
    }

    .desktop-only {
        display:initial;
    }

}

@media only screen and (min-width: 62em) {
    
}

@media only screen and (min-width: 75em) {
    
}