.square {
    width: 0;
    margin-left: 108px;
    position: relative;
    left: 0;
}

body p {
    font-family: "Source Serif Pro", serif;
    font-size: 18pt;
    margin-top: none;
}

body p2 {
    font-size: 14pt;
    font-family: "Source Serif Pro", serif;
}

a {
    color: darkslategray;
}

a:hover {
    color: black;
}

a:active {
    color: black;
}

.modal-content {
    max-height: 600px;
}

body p3{
    font-family: "Fredoka One", sans-serif;
}

.landing {
    background: url("../assets/images/background2.png"), linear-gradient(180deg, rgba(255,255,255,1) 15%, rgba(127,127,127,1) 100%);
    height: 100%;
}

body {
    background: rgba(127, 127, 127, 1);
    overflow-x: hidden;
}

.landing-wrapper {
    max-width: 1200px;
    margin: auto;
}

.row {
    margin: 2.5%;
    margin-top: 0;
    padding-top: 2.5%;
}

.landing img{
    max-height: 500px;
    max-width: 500px;
    display: block;
    float: left;
}

.landing .text {
    margin-left: 10px;
    
}

h1 {
	color: #000;
    font-family: "Fredoka One", sans-serif;
    font-size: 5rem;
}

#logo {
    width: 50vw;
    display: inline;
    padding-top: 5vh;

}

.landing p {
	color: #000;
	font-size: 1.3rem;
	line-height: 1.5;
    font-family: "Fredoka One", sans-serif;
}

.landing button {
    border:5px solid #000000;
    background:#ffffff;
    border-radius: 2.5;
    color:#000000;
    font-family: "Fredoka One", sans-serif;
    margin-top: 5px;
    margin-right: 0px;
}

.btn2 {
    font-family: "Fredoka One", sans-serif;
    margin-top: 2px;
}

.quartzIcon {
    height: 64px;
}

.landing button:hover {
	border:5px solid #000000;
    background:#000000;
    border-radius: 2.5;
    color:#ffffff;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    padding-top: 2.5vh;
}

.nav-buttons a {
    border:5px solid #ffffff;
    background:#ffffff;
    border-radius: 2.5;
    color:#000000;
    font-family: "Fredoka One", sans-serif;
    font-size: 300%;
    margin-top: 20px;
    margin-bottom: 10px;
    max-width: 100px;
    max-height: 100px;
    min-width: 100px;
    min-height: 100px;
    width: 10%;
    height: 10%;
    padding: auto;
}

.nav-buttons a:hover {
    background: #ffffff;
    border: 5px solid #ffffff;
}

@media (max-width: 768px) {

    .nav-buttons a {
        width: 100px;
        height: 100px;
        font-size: 50px;
        margin: 4px;
        margin-bottom: 10px;
    }

    .button-column button {
        max-width: 45%;
        min-width: 30%;
        margin: auto;
    }

    .landing {
        height: auto;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .landing img { 
        padding-top: 5%;
        max-width: 100%;
        max-height: 100%;
        margin: auto;
        display: block;
    }

    .quartzIcon {
        padding-top: 0 !important;
    }

    .modal-content {
        max-height: 80%;
    }

    .landing h1 {
        font-size: 4.5rem;
    }

    #logoMobile {
        width: 90vw;
        padding-top: 5vh;
    }

    .mobile-landing-grid-container {
        display: grid;
        text-align: center;
    }

    .mobile-landing-row1 {
        grid-column: 1;
        grid-row: 1;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .mobile-landing-row2 {
        grid-column: 1;
        grid-row: 2;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .mobile-landing-row3 {
        grid-column: 1;
        grid-row: 3;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .mobile-landing-row4 {
        grid-column: 1;
        grid-row: 4;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

.quartz-button {
    background: black;
    border: white;
    padding: 0;
    position: relative;
    top: 0;

    z-index: 2;
}

#credits-button {
    transform: scaleY(-1);
    position: relative;
    top: -78.5px;
    left: 0;
    z-index: 1 !important;
}

#credits-button-mobile {
    transform: scaleY(-1);
    position: relative;
    top: -78.5px;
    left: 0;
    z-index: 1 !important;
}

.none {
    display: none;
}

.nav-buttons .one {
    background: #db0000;
}

.nav-buttons .one:hover {
    color:#db0000;
}

.nav-buttons .one-deactivated {
    background: #db0000;

    background: #aaa;
    color: #aaa;
}

.nav-buttons .one-deactivated:hover {
    color:#db0000;

    background: #fff;
    border: 5px solid #db0000;
    cursor: default;
}

.nav-buttons .two {
    background: #848484;
}

.nav-buttons .two:hover {
    color:#848484;
}

.nav-buttons .two-deactivated{
    background: #848484;

    background: #aaa;
    color: #aaa;
}

.nav-buttons .two-deactivated:hover{
    color:#848484;

    background: #fff;
    border: 5px solid #848484;
    cursor: default;
}


.nav-buttons .three {
    background: #eae400;
}

.nav-buttons .three:hover {
    color:#eae400;
}

.nav-buttons .three-deactivated {
    background: #eae400 !important;

    background: #aaa !important;
    color: #aaa !important;
}

.nav-buttons .three-deactivated:hover {
    color:#eae400 !important;

    background: #fff !important;
    border: 5px solid #eae400 !important;
    cursor: default !important;
}

.nav-buttons .four {
    background: #00c90e;

    background: #aaa;
    color: #aaa;
}

.nav-buttons .four:hover {
    color:#00c90e;

    background: #fff;
    border: 5px solid #00c90e;
    cursor: default;
}

.nav-buttons .five {
    background: #731799;

    background: #aaa;
    color: #aaa;
}

.nav-buttons .five:hover {
    color:#731799;

    background: #fff;
    border: 5px solid #731799;
    cursor: default;
}

.nav-buttons .six {
    background: #3b3be0;

    background: #aaa;
    color: #aaa;
}

.nav-buttons .six:hover {
    color:#3b3be0;

    background: #fff;
    border: 5px solid #3b3be0;
    cursor: default;
}

.nav-buttons .seven {
    background: #000000;
    color: #ffffff;

    background: #aaa;
    color: #aaa;
}

.nav-buttons .seven:hover {
    color:#000000;

    background: #fff;
    border: 5px solid #000000;
    cursor: default;
}

#button-to-top {
    position: fixed;
    bottom: -150px;
    left: 7.5%;
    height: 100px;
    transform: rotate(-90deg);
    padding-top: 0;
}

#chapter-wrapper1 {
    
    background-image: 
        linear-gradient(180deg, rgba(127,127,127,1) 0%, rgba(127,127,127,1) 5px, rgba(127,127,127,0) 200px), 
        linear-gradient(90deg, rgba(200,0,0,1) 0%, rgba(255,255,255,1) 5%, rgba(255,255,255,1) 95%, rgba(200,0,0,1) 100%); 
    padding: 0;
    margin: 0;
}

.all-chapters {
    height: 100%;
}

#secret-button {
    position: absolute;
    width: 64px;
    height: 64px;
    right: 0px;
    z-index: 10;
    border-radius: 32px;
    animation-play-state: running;
    opacity: 0;
    border: black 4px dashed;
}

#secret-button img {
    width: 70%;
    height: 70%;
    margin: 15%;
}

@keyframes spin {
    0% {
        transform: rotate(0turn);
    }
    100% {
        transform: rotate(1turn);
    }
}

@keyframes move-secret-button {
    0% {
        right: 0px;
        opacity: 0;
        display: block;
    }
    5% {
        right: 64px;
        opacity: 1;
    }
    95% {
        right: 64px;
        opacity: 1;
    }
    100% {
        right: 0px;
        opacity: 0;
        display: none;
    }
}

.collection {
    position: absolute;
    width: 20vw;
    height: 50vh;
    left: -100%;
    transform-origin: 0% 50%;
    top: calc(50vh - 25%);
    z-index: 10;
    max-width: 300px;
    max-height: 500px;
}

@media (max-width: 768px) {

    .collection {
        position: absolute;
        width: 70vw;
        height: 70vh;
        left: -70vw;
        transform-origin: 0% 50%;
        top: calc(50vh - 25%);
    }

}

.collection-box {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: white;
    border-style: solid;
    border-radius: 10px;
    border-color: black;
    border-width: 2px;
    margin-right: 20px;
    padding: 10px;
}

#collection2-box {
    margin-right: initial;
    margin-left: 20px;
}

.collection-tab {
    position: absolute;
    top: 50%;
    left: 100%;
    max-width: 20px;
    text-align: center;
    transform: translateY(-50%);
    cursor: pointer;
}

#collection2-tab {
    left: initial;
    right: 100%;
    transform: rotateZ(180deg);
}

.collection-text {
    width: 100%;
    height: 100%;
    /*transform: perspective(400px) rotateY(-10deg);*/
    position: relative;
    overflow: auto;
    padding-right: 16px;
    padding-bottom: 16px;
    z-index: 5;
}

.collection-text ol {
    font-size: 16px;
    font-family: "Source Serif Pro", serif;
}

#chapter1 .pangram {
    font-weight: bold;
    animation: blinkingTextCh1 1.5s infinite;
    cursor: pointer;
}

#chapter2 .pangram {
    font-weight: bold;
    animation: blinkingTextCh2 1.5s infinite;
    cursor: pointer;
}

#chapter3 .pangram {
    font-weight: bold;
    animation: blinkingTextCh3 1.5s infinite;
    cursor: pointer;
}

@keyframes blinkingTextCh1{
    0%{     color: #000000;    }
    50%{    color: rgba(200,0,0,1); }
    100%{   color: #000000}
}

@keyframes blinkingTextCh2{
    0%{     color: #000000;    }
    50%{    color: rgba(100,100,100,1); }
    100%{   color: #000000}
}

@keyframes blinkingTextCh3{
    0%{     color: #000000;    }
    50%{    color: rgba(200,200,0,1); }
    100%{   color: #000000}
}


#collection-test-button {
    position: absolute;
    right: 50px;
    width: 100px;
    height: 50px;
}

.chapter-one-end {
    height: 48px;
    background: linear-gradient(170deg, rgba(200, 0, 0, 0) 20%, rgba(200, 0, 0, 1) 100%);
    margin-top: 25vh;                        
}

.chapter-two-start {
    height: 48px;
    background: linear-gradient(170deg, rgba(100, 100, 100, 1) 0%, rgba(100, 100, 100, 0) 80%);
    margin-bottom: 25vh;
}

.chapter-two-end {
    height: 48px;
    background: linear-gradient(170deg, rgba(100, 100, 100, 0) 20%, rgba(100, 100, 100, 1) 100%);
    margin-top: 25vh;                        
}

#chapter-wrapper2 {
    background-image: 
        linear-gradient(90deg, rgba(100,100,100,1) 0%, rgba(255,255,255,1) 5%, rgba(255,255,255,1) 95%, rgba(100,100,100,1) 100%); 
}

.chapter-three-start {
    height: 48px;
    background: linear-gradient(170deg, rgb(230, 230, 130) 0%, rgba(100, 100, 100, 0) 80%);
    margin-bottom: 25vh;
}

#chapter-wrapper3 {
    background-image: 
        linear-gradient(90deg, rgb(230, 230, 130) 0%, rgba(255,255,255,1) 5%, rgba(255,255,255,1) 95%, rgb(230, 230, 130) 100%); 

    padding-bottom: 50vh;
}

.chapter {
    margin-left: 20%;
    margin-right: 20%;
}

.header-image {
    max-width: 500px;
    margin: auto;
    display: block;
}

.chapter-body-text {
    margin-top: 64px !important;
    max-width: 1080px;
    margin: auto;
}

.chapter p {
    font-family: "Source Serif Pro", serif;
    font-size: 18pt;
    text-indent: 2em;
}

.chapter ol {
    margin: 0;
    padding-left: 3em;
    font-family: "Source Serif Pro", serif;
    font-size: 18pt;
}


@media (max-width: 768px) {

    .chapter p {
        font-size: 16pt;
        margin-bottom: .75em;
        text-indent: 1.5em;
    }
    .chapter {
        margin-left: 7.5%;
        margin-right: 7.5%;
    }
    .header-image {
        max-width: 100%;
    }
    #ch1Cover {
        content: url("../assets/ch1/coverMobile.png");
    }
    .portraitB {
        right: 7.5%;
    }

    .chapter ol {
        font-family: "Source Serif Pro", serif;
        font-size: 16pt;
    }
}

.statBlock {
    float: right;
    margin-left: 5px;
    display: grid;
    grid-template-rows: auto;
}

.portraitA {
    max-width: 108px;
    max-height: 108px;
    cursor: pointer;
    position: relative;
    right: 0;
    z-index: 3;
    transform: translateX(0);
}

.portraitB {
    max-width: 108px;
    max-height: 108px;
    cursor: pointer;
    position: absolute;
    z-index: 3;
}

.hand {
    max-height: 108px;
    position: absolute;
    top: 100%;
}

.hp {
    height: 142.5px;
    display: none;
    opacity: 0;   
    object-fit: fill;
    position: relative;
    z-index: 2;
    right: 0;
}

.arrow {
    width: 100%;
    max-width: 360px;
    max-height: 19.5px;
    display: none;
    cursor: pointer;
    position: relative;
    bottom: 19.5px;
    z-index: 0;
}

.stats {
    max-width: 360px;
    max-height: 216px;
    position: absolute;
    bottom: 0;
}

.row1 {
    grid-column: 1;
    grid-row: 1;
    row-gap: 0;
}

.row2 {
    grid-column: 1;
    grid-row: 2;
    row-gap: 0;
    margin: 0;
    padding: 0;
    display: none;
    height: 0;
    position: relative;
    z-index: 1;
}

.row3  {
    grid-column: 1;
    grid-row: 3;
    row-gap: 0;
    margin-top: -7px;
}

.portrait-grid {
    float: right;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto;
    margin-left: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    perspective-origin: 0% 50%;
}

.portrait-row-1 {
    grid-column: 1;
    grid-row: 1;
    display: relative;
    margin-bottom: 32px;
    min-height: 108px;
    min-width: 108px;
}

.portrait-row-2 {
    grid-column: 1;
    grid-row: 2;
    display: relative;
    min-height: 108px;
    min-width: 108px;
}

#beta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #666;
    z-index: 20;
    color: white;
}
#beta h1 {
    color: white;
    font-size: 32pt;
}

#beta p {
    font-family: "Fredoka One", sans-serif;
}

#beta-text {
    padding: 2.5%;
}

.beta-input {
    font-family: "Source Serif Pro", serif;
    font-size: 14pt;
    margin-top: none;
}

#beta-input {
    background-color: #666;
    border: white 1px solid;
    border-radius: 4px;
    color: white;
}

#beta-art {
    width: 256px;
    height: 256px;
    z-index: 10;
    border-radius: 128px;
    animation: spin linear infinite 12s;
    opacity: 1;
    border: white 12px dashed;
}

#beta-art img {
    width: 80%;
    height: 80%;
    margin: 10%;
}

#beta-button {
    display: inline-block;
    background-color: #666;
    font-family: "Source Serif Pro", serif;
    border: white 1px solid;
    border-radius: 4px;
    color: white;
}
