@font-face {
    font-family: 'Dirty Headline';
    font-weight: 300;
    src: url('../img/fonts/JunTitle.ttf');
}

@font-face {
    font-family: 'Birth of a Hero';
    font-weight: 400;
    src: url('../img/fonts/JohnnyTitle.ttf');
}

@font-face {
    font-family: 'OoohBaby';
    src: url('../img/fonts/OoohBaby-Regular.ttf')
}

.GSBack {
    background-image: url('../img/visuals/Background/Back1.jpg');
}

/* INTRODUCING... CRUSH 40! */
.intro {
    position: relative;
    z-index: 0;

    background-color: var(--crush40-gray);
    color: white;
    overflow: hidden;
}

.intro h2 {
    text-align: center;

    color: var(--crush40-red);
    font-size: 200%;
}

.intro h2 img {
    vertical-align: middle;
    width: 180px;
}

.openBg {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;
    background-repeat: repeat-y;
    background-position: 50% 30%;
    background-size: cover;
    background-image: url('../img/visuals/Background/Vector/Crowd1.svg');
}

.intro .blockTitle {
    color: black;
    background-color: var(--crush40-red);
    width: 300px;
    padding: 20px;

    z-index: 1;
}

.intro .blockTitleRight {
    display: flex;
    justify-content: flex-end;
}

.intro .strip {
    margin-top: 30px;
    margin-bottom: 50px;

    color: black;
}

@media (min-width: 800px)
{
    .intro .stripDown {
        padding-left: 50px;
    }
}

.intro .stripBack {
    padding: 10px;
    margin-left: -100px;

    z-index: -1;
    position: absolute;
    width: 150%;
    height: 100%;
}

.intro .introSection {
    font-size: 160%;
}

.intro .whoIsC40 .stripBack {
    background-color: var(--crush40-red);
}

.intro .otherBandMembers .stripBack {
    background-color: var(--crush40-blue);
}

@keyframes animIntroTitle {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes animIntroStrip {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animIntro .blockTitle { animation: animIntroTitle 0.5s ease-out paused; }
.animIntro .stripText { animation: animIntroStrip 0.4s 0.5s ease-in-out backwards paused; }
.animIntro .strip img { animation: animIntroStrip 0.5s 0.9s ease-in-out backwards paused; }

.intro .bandMembers {
    position: relative;

    justify-items: center;
    text-align: center;
    flex-direction: row;
    
    /* Smallscreen: */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro .bandMembers .bg {
    position: absolute;
    z-index: -1;

    top: -250px;
    left: 0;
    width: 100%;
    height: 130%;

    background-image: url('../img/visuals/Background/Montage.png');
    background-attachment: fixed;
}

.intro .bandMembers .centreSeparator {
    /* Smallscreen: */
    background-image: url('../img/visuals/GuitarLoop/Horizontal.svg');
    background-repeat: repeat-x;
    background-size: contain;
    width: 100%;
    height: 80px;

    transition: background-position 0.1s ease-out;

    grid-area: gtr;
}

.intro .bandMembers .johnnyTogetherImg {

    grid-area: johnnyTogetherImg;
    align-self: center;

    transform: rotate(6deg);
    max-width: 50%;

    /* Smallscreen */
    margin-top: 50px;
    margin-bottom: 40px;
}

.intro .bandMembers .junMrJun {
    grid-area: junMrJun;
    justify-self: center;

    width: 85%;

    margin: 0 0 -100px 15px;

    padding: 15px;
    padding-bottom: 100px;

    background-color: var(--crush40-darkgray);
}

.intro .bandMembers .junMrJun .contents {
    width: 400px;
    height: 300px;
}

.intro .bandMembers .img {
    height: 500px;
    max-width: 100%;
    object-fit: scale-down;
}

@media (min-width: 1000px) {
    /* Largescreen: */
    .intro .bandMembers {
        display: grid;
        align-items: flex-start;

        grid-template-rows: auto auto auto auto auto;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas:
            "johnnyIndicator gtr junIndicator"
            "johnnyTitle gtr junTitle"
            "johnnyDesc gtr junDesc"
            "johnnyImg gtr junImg"
            "johnnyTogetherImg gtr junMrJun";
    }

    .intro .bandMembers .centreSeparator {
        margin-top: -193px;
        margin-left: 50%;

        background-image: url('../img/visuals/GuitarLoop/Vertical.svg');
        background-repeat: repeat-y;
        width: 80px;
        height: calc(100% + 250px);
    }

    .intro .bandMembers .johnnyTogetherImg {
        margin-top: 0;
        margin-bottom: 0;
    }
}

.intro .bandMembers .indicator {
    font-family: 'Dimentia';
    color: #ff0000;
    margin-bottom: 5px;
}

.intro .bandMembers .title {
    font-size: 125%;
    margin: 0px;
}

.intro .bandMembers .johnnyTitle .aka {
    font-family: 'OoohBaby';
    font-size: 150%;

    grid-area: johnnyAka;
    margin: 0;
}

.intro .bandMembers .junTitle { 
    font-family: 'Dirty Headline'; 
    font-weight: 300;
    font-size: 170%;
    grid-area: junTitle; 
}

.intro .bandMembers .johnnyTitle .title { 
    font-family: 'Birth of a Hero';
    font-weight: 300;
    font-size: 240%;
    grid-area: johnnyTitle;
}

.intro .bandMembers .johnnyDesc { grid-area: johnnyDesc; padding: 10px; }
.intro .bandMembers .johnnyImg { grid-area: johnnyImg; }
.intro .bandMembers .johnnyIndicator { grid-area: johnnyIndicator; }
.intro .bandMembers .johnnyTitle { grid-area: johnnyTitle; }
.intro .bandMembers .junDesc { grid-area: junDesc; padding-left: 25px; padding-right: 5px; }
.intro .bandMembers .junImg { grid-area: junImg; }
.intro .bandMembers .junIndicator { grid-area: junIndicator; }

@keyframes animMembersTitle {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

@keyframes animMembersLeft {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes animMembersRight {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes animMembersBottom {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animMembers .blockTitleRight { animation: animMembersTitle 0.5s ease-out paused; }
.animMembers .animLeft { animation: animMembersLeft 0.8s 0.5s backwards ease-in-out paused; }
.animMembers .animRight { animation: animMembersRight 0.8s 0.5s backwards ease-in-out paused; }
.animMembers .animBottom { animation: animMembersBottom 0.8s 0.5s backwards ease-in-out paused; }

.intro .otherBandMembers {
    margin-bottom: 50px;
}

@keyframes animOtherMembersText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes animOtherMembersImg {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animOtherMembers .stripText { animation: animOtherMembersText 0.4s backwards ease-in-out paused; }
.animOtherMembers img { animation: animOtherMembersText 0.4s 0.4s backwards ease-in-out paused; }

.intro .naming {
    display: flex;
    flex-direction: column;
    align-items: center;

    background-image: url('../img/visuals/Background/Vector/Johnny1.svg');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: contain;
}

.intro .naming .imgContainer {
    max-width: 100%;
    overflow: auto;
}

.intro .naming .img {
    margin: 15px;
    height: 300px;
}

@keyframes animNamingTitle {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes animNamingImg {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes animNamingFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animNaming .blockTitle { animation: animNamingTitle 0.8s backwards ease-in-out paused; }
.animNaming .imgContainer { animation: animNamingImg 0.8s backwards ease-in-out paused; }
.animNaming .para { animation: animNamingFade 0.4s 0.8s backwards ease-in-out paused; }

.intro {
    padding-bottom: 200px;
}

/* GUITARS */
.guitars {
    position: relative;
    margin-top: -125px;
}

@media (min-width: 800px) {
    .guitars {
        margin-top: -170px;
    }
}

.guitar {
    width: 100%;
    position: relative;

    display: flex;
    align-items: center;
}

.guitar .neck {
    position: absolute;
    height: 100%;
    background-repeat: repeat-x;

    /* Smallscreen */
    width: 100%;
    background-size: auto 30px;
}

.guitar-top .neck {
    background-image: url('../img/visuals/GuitarLoop/Horizontal.svg');
    background-position: 531px 107px;
}

.guitar .body {
    grid-area: body;
    z-index: 1;
    width: 400px;

    margin-left: -65px;
}

.guitar .headstock {
    visibility: hidden;
    position: absolute;
    z-index: 1;

    right: -72px; /* This is overriden by JS to use a snapping system instead, to avoid weirdly lining up with frets - this is just here for non-JS */

    /* Smallscreen */
    --snap-size: 15px;
    --offset-from-right: 70px;
}

.guitar-top .headstock {
    width: 134px;
}

@media (min-width: 600px) {
    .guitar .neck {
        width: calc(100% - 30px);
    }

    .guitar .headstock {
        visibility: visible;
    }
}

@media (min-width: 800px) {
    .guitar .body {
        width: 600px;
        margin-left: -40px;
    }

    .guitar .headstock {
        --snap-size: 23px;
        --offset-from-right: 139px;
    }

    .guitar-top .headstock {
        right: -32px;
        width: 200px;
    }

    .guitar .neck {
        width: calc(100% - 100px);
        background-size: auto 45px;
    }

    .guitar-top .neck {
        background-position: 558px 160px;
    }
}

.guitars .middle {
    padding-top: 140px;

    color: white;

    display: flex;
    justify-content: center;

    /* Smallscreen */
    margin-top: -120px; 
    height: 500px;
}

.guitars .middle .GSBackContainer {
    margin-top: -200px;
}

.guitars .middle .contents {
    text-align: center;
    margin-top: 50px;
    padding: 10px;
}

.guitars .middle .heading {
    font-size: 200%;
    margin-bottom: 0;
}

.guitars .middle .subheading {
    font-size: 150%;
    margin-top: 10px;
}

@media (min-width: 800px) {
    .guitars .middle {
        /* Largescreen */
        height: 500px;
        margin-top: -180px;
    }
}

.guitar-bottom {
    margin-top: -110px;
}

.guitar-bottom .neck {
    background-image: url('../img/content/guitars/Shadow-II/NeckHorizontal.svg');
    background-position: 531px 109px;
    background-clip: content-box;
}

.guitar-bottom .headstock {
    margin-top: -8px;
    width: 138px;
}

@media (min-width: 800px)
{
    .guitar-bottom {
        margin-top: -200px;
    }

    .guitar-bottom .neck {
        background-position: 558px 163px;
    }

    .guitar-bottom .headstock {
        right: -32px;
        margin-top: -12px;
        width: 213px;
    }
}

@keyframes animGuitarsHeading {
    0% { transform: scale(0); }
    100% { transform: scale(100%); }
}

@keyframes animGuitarsText {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes animGuitarsBtn {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.animGuitars .heading { animation: animGuitarsHeading 0.5s ease-in-out backwards paused; }
.animGuitars .subheading { animation: animGuitarsText 0.5s 0.5s ease-in-out backwards paused; }
.animGuitars button { animation: animGuitarsBtn 0.5s 0.5s ease-in-out backwards paused; }

.trivia {
    margin-top: -120px;
}

@media (min-width: 800px) {
    .trivia {
        margin-top: -180px;
    }    
}

/* TRIVIA */
.trivia {
    padding-top: 160px;
    height: 300px;
    text-align: center;
    color: white;

    background-color: black;
    background-image: url('../img/visuals/Background/Vector/Jun4.svg');
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
}

.trivia h2 {
    font-size: 150%;
}

.trivia .description {
    font-size: 150%;
}

.trivia .takeTrivia {
    color: white;
}

@keyframes animTriviaTitle {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes animTriviaDesc {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes animTriviaBtn {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.animTrivia h2 { animation: animTriviaTitle 0.5s ease-in-out backwards paused; }
.animTrivia .description { animation: animTriviaDesc 0.5s ease-in-out backwards paused; }
.animTrivia button { animation: animTriviaBtn 0.5s ease-in-out backwards paused; }