@font-face {
    font-family: 'Junebug';
    src: url('/font/Junebug.ttf'); /*URL to font*/
}
@font-face {
    font-family: 'JunebugSans'; 
    src: url('/font/JunebugSans_Engjpn-Regular.ttf'); /*URL to font*/
}
@font-face {
    font-family: 'JunebugFine';
    src: url('/font/JunebugSans_Engjpn-Regular.ttf'); /*URL to font*/
}
@font-face {
    font-family: 'BoldDoodle';
    src: url('/font/BoldDoodle-Regular.ttf'); /*URL to font*/
}
@font-face {
    font-family: 'JunebugSketch';
    src: url('/font/JunebugSketch_Eng-Regular.ttf'); /*URL to font*/
}

@font-face { 
    font-family: ecoder;
    src: url(https://dl.dropbox.com/s/2wrgv8i3jsqkv6p/Ecoder-Italic.otf);
  }

.error {
    background-image: url('img/404bg.jpg') !important;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}


.marquee {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 3.2em;
  overflow-x: hidden;
}

.track {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 10s linear infinite;
}

.track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marqueeRev {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 32px;
  overflow-x: hidden;
}

.trackRev {
  position: absolute;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 5s linear infinite reverse;
}

.trackRev:hover {
    animation-play-state: paused;
}

.title {
            filter: drop-shadow( 0 3px #80eb7c) drop-shadow( 2px 0 #80eb7c) drop-shadow( 0 -1px #d5ebb7d3) drop-shadow( -1px 0 #80eb7c) drop-shadow( 0 5px white) drop-shadow( 5px 0 white) drop-shadow( 0 -5px white) drop-shadow( -5px 0 white) drop-shadow(1px 1px 0 rgba(255, 255, 255, 0.6)) drop-shadow(1px 1px 0 rgba(243, 243, 243, 0.6)) drop-shadow( 0 0 2px #eeeeee);
            color:#cdffcd;
            font-family: JunebugSans;
 } 

/* WHOLE SITE STYLE */

body {
    margin: auto;
    background: #6b9984;
    background-image: url('img/bg.jpg');
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Junebug';
    font-size: 26px;
    line-height: 1em;
}

nav {
    display: flex;
    flex-direction: column;
    hr {
        width: 100%;
        border: 1px solid #FDFFF0;
    }

    a {
        text-align: center;
        margin: 0.3em;
        padding: 5px;
        border-radius: 10px;
        color: #FDFFF0;
    }
    a:visited {
        color: #FDFFF0;
    }

    .on {
        background-color: #A9E386;
        border: 2px solid #F1FCFE;
    }
    .on:hover {
        background-color: #7ED9B0;
    }
    .off {
        background-color: #EAC579;
        border: 2px solid #DBE8B8;
    }
    .off:hover {
        background-color: #E8EE6F;
    }
}

main {
    border: 2px solid #FEFFFA;
    background: #DBE8B8;
    background: linear-gradient(0deg,#6ee46ea6 0%, #d5ebb762 100%);
    border-radius: 10px;
    padding: 1em;
    color: #46793c;
}

main > * {
    border: 2px solid #FDFFF0;
    background: #80eb7c;
    background: linear-gradient(0deg,#6ee46ed3 0%, #d5ebb7d3 100%);
    border-radius: 10px;
    padding: 0.2em 1em;
}

header {
    font-family: 'BoldDoodle';
        font-size: 36px;
        text-align: center;
        padding: 1px;
        p {
            color: #cdffcd;
            text-shadow: 
                -3px -3px 0 #80eb7c,  
                3px -3px 0 #80eb7c,
                -3px  3px 0 #80eb7c,
                3px  3px 0 #80eb7c,
                0px -3px 0 #80eb7c,
                0px  3px 0 #80eb7c,
                -3px  0px 0 #80eb7c,
                3px  0px 0 #80eb7c;
        }
}

footer {
    text-align: right;
    padding: 0.5em;
    padding-right: 3em;
    a {
        background: linear-gradient(90deg, var(--c1, #c0ffe5), var(--c2, #ffffff) 51%, var(--c1, #b2ffcb)) var(--x, 0)/ 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #fff;
    }
    a:hover { transition: 2s;--x: 100%; }
}


/* INDEX PAGE CODE */

.index {
    display: grid;
    grid:
    [row1-start] "header header header header" auto [row1-end]
    [row2-start] "icon icon welcome nav" auto [row2-end]
    [row3-start] "intro intro welcome nav" auto [row3-end]
    [row4-start] "intro intro text nav" 10em [row4-end]
    [row5-start] "stamps stamps stamps status" 80px [row5-end]
    [row6-start] "folio folio extra extra" auto [row6-end]
    [row7-start] "folio folio sites sites" auto [row7-end]
    [row8-start] "footer footer footer footer" auto [row8-end]
    / 1fr 1fr 3fr 2fr;
    width: 50em;
    margin: 2em auto;
    gap: 1em;

/* Grid pieces are listed top to bottom, left to right, EXCEPT header and footer
    header -> icon -> intro -> ads -> folio -> welcome -> text, etc. -> footer */

    header {
        grid-area: header;
    }
    .icon {
        grid-area: icon;
        justify-self: center;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        width: 90%;
    }
    .intro {
        grid-area: intro;
        text-align: center;
        padding: 0.2em 0.8em;
    }
    .ads {
        grid-area: ads;
    }
    .folio {
        grid-area: folio;
        background: none;
        background-color: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        padding: 1em 2em;
        img {
            width: 250px;
        }
    }
    .welcome {
        grid-area: welcome;
        text-indent: 2em;
    }
    .text {
        grid-area: text;
        overflow-y: scroll;
        padding: 0.2em 0.8em;
    }
    .extra {
        grid-area: extra;
    }
    .stamps {
        grid-area: stamps;
    }
    .sites {
        grid-area: sites;
    }
    nav {
        grid-area: nav;
        padding-top: 2em;
        img {
            width: 70%;
            align-self: center;
        }
    }
    .status {
        grid-area: status;
    }
    footer {
        grid-area: footer;
    }
}

.adimg {
    margin: 0;
}

/* CHARACTER DATABASE CODE */
/* character SHEET code is in /c/sheet.css */

.characters {
    display: grid;
    grid:
    [row1-start] "header header" auto [row1-end]
    [row2-start] "select nav" auto [row2-end]
    [row3-start] "info extra" 30em [row3-end]
    [row4-start] "footer footer" auto [row4-end]
    / 3fr 1fr;
    gap: 1em;
    width: 45em;
    margin: 2em auto;
    gap: 1em;

    header {
        grid-area: header;
    }
    .select {
        padding: 1em;
        grid-area: select;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        flex-wrap: wrap;
        gap: 0.5em;

        a {
            font-weight: bold;
            text-decoration: none;
        }
        button {
            width: 125px;
            height: 125px;
            background-size: cover;
            font-family: JunebugSans;
            font-size: 30px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            color: #ffffff;
            text-shadow: 
                -1px -1px 0 #000,  
                1px -1px 0 #000,
                -1px  1px 0 #000,
                1px  1px 0 #000,
                0px -1px 0 #000,
                0px  1px 0 #000,
                -1px  0px 0 #000,
                1px  0px 0 #000;
        }
    }
    nav {
        grid-area: nav;
        padding: 1em;
    }
    .info {
        grid-area: info;
    }
    iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
    .extra {
        grid-area: extra;
        padding: 1em;
        img {
            width: 100%;
            height: auto;
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
        }
    }
    footer {
        grid-area: footer;
    }
}

.characters > * {
    border: 1px solid #FEFFFA;
    background: #80eb7c;
    background: linear-gradient(0deg,#6ee46ed3 0%, #d5ebb7d3 100%);
    border-radius: 10px;
    color: #46793c;
}


/* PORTFOLIO PAGE CODE*/

.portfolio {
    width: 55em;
    margin: 4em auto;
    background: none;
    display: grid;
    grid:
    [row1-start] "home . . ." auto [row1-end]
    [row2-start] "header header header header" auto [row2-end]
    [row3-start] "images images images images" auto [row3-end]
    [row4-start] "footer footer footer footer" auto [row4-end]
    / 1fr 1fr 1fr 1fr;
    gap: 1em;

.home {
    grid-area: home;
    padding: 0.7em;
    text-align: center;
    color: #FDFFF0;
}

header {
    grid-area: header;
}

footer {
    grid-area: footer;
}
}
.images {
    grid-area: images;
    padding: 2em;
    display: grid;
    grid:
    [row1-start] "pt ct at" auto [row1-end]
    [row2-start] "personal comm adopt" auto [row2-end]
    / 2fr 2fr 1fr;
    gap: 1em;


    img {
        width: 100%;
        transition: transform 0.7s;
        border-radius: 5px;
        margin-top: 1em;
    }
    img:hover {
        transform: scale(1.05);
        border: 2px solid #FEFFFA;
        box-shadow:
        0 0 1em #FEFFFA;
    }

    .pt {
        grid-area: pt;
    }
    .ct {
        grid-area: ct;
    }
    .at {
        grid-area: at;
    }
    .pt, .ct, .at {
        text-align: center;
    }

    .personal {
        grid-area: personal;
        column-count: 2;
        column-width: 50%;
    }
    .commission {
        grid-area: comm;
        column-count: 2;
        column-width: 50%;
        border-left: 2px solid #FEFFFA;
        border-right: 2px solid #FEFFFA;
        padding: 0 1em;
    }
    .adopt {
        grid-area: adopt;
        display: flex;
        flex-direction: column;
    }
}
/* PORTFOLIO CODE ENDS HERE
note: .portfolio is a <main> tag class, everything on the page is contained INSIDE the .portfolio {brackets} /*








/* MOBILE CSS */

@media only screen and (max-width: 600px) {
    body {
        margin: auto;
        background-image: none;
    }

    .title {
        font-size: 12px;
        text-align: center;
        margin: 2em auto;
    }

    .index, .portfolio, .characters {
        display: flex;
        flex-direction: column;
        width: 90vw;
        margin: 0;
        .icon {
            display: none;
        }
        nav {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            hr {
                display: none;
            }
        }
    }

    .index {
        border: none;
        background-color: transparent;
        background: transparent;
        * {
            width: 90%;
            align-self: center;
            text-align: center;
            font-size: 14px;
            padding: 5px;
        }
    }

    .characters {
        .select {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;

            button {
            width: 75px;
            height: 75px;
            }
            
        }
    }

    .portfolio {
        .home {
            width: 30%;
        }
        .images {
            display: inline-block;
            padding: 0.5em;
        .personal {
            column-count: 1;
        }
        .commission {
            column-count: 1;
            border: none;
            padding: 0;
        }
    }
    }
}

