* {
    box-sizing: border-box;
    image-rendering: pixelated;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ae5b04 black;
    transition: 0.4s;
    margin: 0;
    padding: 0;
}

:root {
    --orange: #ae5b04;
    --orange-transparent: #ae5b0488;
    --teal: #008080;
}

body {
    background: black;
    color: white;
    font-family: arial;
}

a img:hover {
    transform: scale(1.2);
}

.border_teal {
    border-image-slice: 4;
    border-image-width: 12px;
    border-image-outset: 8px;
    border-image-repeat: stretch;
    border-image-source: url("/assets/border_teal.png");
    border-style: solid;
    padding: 8px 16px;
}

.border_orange {
    border-image-slice: 4;
    border-image-width: 12px;
    border-image-outset: 8px;
    border-image-repeat: stretch;
    border-image-source: url("/assets/border_orange.png");
    border-style: solid;
    padding: 8px 16px;
}

.container {
    display: grid;
    grid-template-columns: 160px 200px 160px 200px 160px;
    grid-template-rows: 120px 120px 1fr 8px;
    grid-auto-columns: 1fr;
    gap: 36px 28px;
    grid-auto-flow: row;
    grid-template-areas:
        "logo logo logo logo logo"
        "fire-one links-left icon links-right fire-two"
        "side-left main main main side-right"
        "footer footer footer footer footer";
    margin: auto;
    margin-bottom: 48px;
    width: 1000px;
}

.logo {
    grid-area: logo;
    background: url(assets/logo.png);
    background-size: 280px;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: -28px;
}

.fire-one {
    grid-area: fire-one;
    background: url(assets/fire.gif);
    background-size: 120px;
    background-repeat: no-repeat;
    background-position: center;
}

.fire-two {
    grid-area: fire-two;
    background: url(assets/fire.gif);
    background-size: 120px;
    background-repeat: no-repeat;
    background-position: center;
}

.icon {
    grid-area: icon;
    background: url(assets/icon.png);
    background-size: 320px;
    background-repeat: no-repeat;
    background-position: left;
    transition: 0s;
}

.icon:hover {
    background: url(assets/icon.png);
    background-size: 320px;
    background-repeat: no-repeat;
    background-position: right;
    transition: 0s;
}

.links-left {
    grid-area: links-left;
    text-align: center;
}
.links-left a {
    font-size: 24px;
    color: white;
    margin: 12px;
    line-height: 50px;
}

.links-left a:hover {
    color: var(--orange);
    font-size: 28px;
}

.links-right {
    grid-area: links-right;
}

.side-left {
    grid-area: side-left;
}

.side-left hr {
    border-bottom: 4px solid var(--orange);
    margin: 4px 0;
}

.my-sites {
    width: 88px;
    margin: 12px auto;
}

.artfight {
    width: 80px;
    margin: 12px auto;
}

.tamanotchi {
    background: var(--orange-transparent);
    border: 4px solid var(--orange);
    padding: 8px 28px;
    margin-top:8px;
}

#statuscafe {
    background: var(--orange-transparent);
    padding: 4px;
    margin: 0 0;
    border: 4px solid #ae5b04;
    max-height: 100px;
    overflow-y: auto;
}
#statuscafe-username {
    color: white;
    font-size: 12px;
    line-height: 12px;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 4px solid var(--orange);
}

#statuscafe-username a {
    color: white;
    font-family: "Press Start 2P", system-ui;
    font-size: 10px;
    text-decoration: none;
}
#statuscafe-content {
    font-size: 16px;
    margin: 4px;
}

.side-right {
    grid-area: side-right;
    text-align: center;
}

.side-right a {
    text-transform: uppercase;
    text-decoration: none;
    color: white;
}

.side-right a:hover {
    color: var(--teal);
    font-weight: bold;
}

.side-right small {
    font-size: 12px;
}

.side-right hr {
    border-bottom: 4px solid var(--orange);
    margin: 4px 0;
}

.side-right h2 {
    border-color: var(--orange);
}

.chest {
    background: url(/assets/chests.png);
    background-size: 240px;
    background-position: 0 0;
    width: 120px;
    height: 120px;
    transition: 0s;
}

.chest:hover {
    background: url(/assets/chests.png);
    background-size: 240px;
    background-position: -120px 0;
    width: 120px;
    height: 120px;
    transition: 0s;
}

#treasure {
    display: none;
    font-size: 10px;
    width: 400px;
    position: fixed;
    inset: 0;
    margin: auto;
    top: 160px;
    z-index: 100;
}

.treasure-content {
    background: black;
    border: 2px solid white;
    border-radius: 12px;
    font-family: "Silkscreen", sans-serif;
    padding: 4px;
}

.treasure-content p {
    margin: 0px;
    text-align: center;
    line-height: 40px;
}

.treasure-content img {
    display: block;
    width: 88px;
    margin: auto;
}

.close {
    position: relative;
    right: -176px;
    top: 4px;
    color: var(--orange);
}

.close:hover,
.close:focus {
    cursor: pointer;
}

.close img {
    width: 16px;
}

.main {
    grid-area: main;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 128px 544px 1fr;
    gap: 24px 24px;
    grid-auto-flow: row;
    grid-template-areas:
        "greeting greeting updates"
        "map map map"
        "playlist player player";
}

.main a {
    color: white;
    text-decoration: none;
    border-bottom: 4px dashed var(--teal);
}

.main a:hover {
    filter: brightness(1.2);
    letter-spacing: 1px;
}

.greeting {
    grid-area: greeting;
}

.greeting a img {
    border-bottom: 0;
    width: 120px;
    height:36px;
    float: right;
    transform:scale(1);
}

.greeting a img:hover {
    transform: scale(1.2);
}

.updates {
    grid-area: updates;
    overflow-y: auto;
}

.updates p {
    font-size: 12px;
}

.map {
    grid-area: map;
    background: url(assets/map.png);
    height: 528px;
    width: 576px;
    background-position: center;
    margin: auto;
    display: grid;
    grid-template-columns: 48px 48px 48px 48px 48px 48px 48px 48px 48px 48px 48px;
    grid-template-rows: 48px 48px 48px 48px 48px 48px 48px 48px 48px 48px 48px;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        ". . . . . . . . . . ."
        ". grass-village . . . . . . . desert-village desert-village"
        ". . . tower . . . . . . ."
        ". . . tower . . . . . . ."
        ". . . . . . . . . . ."
        ". . . . . . . . . . shrine"
        ". . . . . sign . . . . ."
        ". . . . . . . . . . ."
        ". . . . slime . . . . . ."
        ". . . . . . . . . . ."
        ". . . . . . . . . ship .";
}

.map a {
    border: 0;
}

.map a:hover {
    transform: scale(1.2);
    filter: brightness(1);
}

.sprite {
    background-image: url(/assets/map_sprites.png);
    background-repeat: no-repeat;
    z-index: 2;
}

/*Desert Town*/
.desert-village {
    background-image: url(/assets/map_sprites.png);
    width: 96px;
    height: 48px;
    background-position: 0 0;
    grid-area: desert-village;
}
/*Tower*/
.tower {
    width: 48px;
    height: 96px;
    background-position: -96px 0;
    grid-area: tower;
}
/*Ship*/
.ship {
    width: 48px;
    height: 48px;
    background-position: 0 -96px;
    grid-area: ship;
}
/*Sign*/
.sign {
    width: 48px;
    height: 48px;
    background-position: -96px -96px;
    grid-area: sign;
}
/*Grass Village*/
.grass-village {
    width: 48px;
    height: 48px;
    background-position: 0 -48px;
    grid-area: grass-village;
}
/*Shrine*/
.shrine {
    width: 48px;
    height: 48px;
    background-position: -144px -49px;
    grid-area: shrine;
}

/*slime*/
.slime {
    width:48px;
    height:48px;
    background: url(/secrets/assets/slimes/slime-teal.png);
    background-repeat: no-repeat;
    background-size: 48px;
    grid-area: slime;
}

.playlist {
    grid-area: playlist;
}

.player {
    grid-area: player;
}

#musicplayer {
    font-family: "Arial";
    /* default font */
    background: black;
    color: white;
    /* background color of player */
    width: 100%;
    /* width of the player - make it 100% if you want it to fill your container */
    padding: 8px;
    margin: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.songtitle,
.track-info,
.now-playing {
    padding: 4px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buttons {
    display: flex;
    justify-content: center;
    font-size: 16px !important;
    /* size of controls */
    width: 100%;
    cursor: pointer;
}

.buttons div {
    width: 33.3%;
}

.playpause-track,
.prev-track,
.next-track {
    color: var(--orange);
    /* color of buttons */
    font-size: 36px !important;
    /* size of buttons */
}

.volume-icon {
    font-size: 24px !important;
    /* size of volume icon */
}

.seeking,
.volume {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.now-playing,
.track-info {
    background-color: var(--teal);
    /* background color of top two boxes */
    color: white;
}

.now-playing {
    font-weight: bold;
}

input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    /* removes default appearance of the tracks */
    width: 100%;
    background: black;
}

input[type="range"]:focus {
    outline: none;
    /* removes outline around tracks when focusing */
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    /* thickness of seeking track */
    background: var(--teal);
    /* color of seeking track */
}

input[type="range"]::-webkit-slider-thumb {
    height: 10px;
    /* height of seeking square */
    width: 10px;
    /* width of seeking square */
    border-radius: 0;
    /* change to 5px if you want a circle seeker */
    background: var(--teal);
    /* color of seeker square */
    -webkit-appearance: none;
    margin-top: -3px;
    /* fixes the weird margin around the seeker square in chrome */
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    /* thickness of seeking track */
    background: var(--teal);
    /* color of seeking track */
}

input[type="range"]::-moz-range-thumb {
    height: 10px;
    /* height of seeking square */
    width: 10px;
    /* width of seeking square */
    border-radius: 0;
    /* change to 5px if you want a circle seeker */
    background: var(--orange);
    /* color of seeker square */
    border: 2px solid black;
    /* removes weird border around seeker square in firefox */
    cursor: pointer;
}

.footer {
    grid-area: footer;
    text-align-last: center;
    font-family: silkscreen;
}

p {
    font-size: 18px;
    margin-top: 12px;
}

b {
    color: white;
    font-family: silkscreen;
}

h1 {
    font-family: "Press Start 2P", system-ui;
    font-size: 32px;
    line-height: 34px;
    text-align: center;
}

h2 {
    font-family: "Press Start 2P", system-ui;
    font-size: 20px;
    line-height: 22px;
    text-align: center;
    border-bottom: 4px solid var(--teal);
}

h3 {
    font-family: "Press Start 2P", system-ui;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    border-bottom: 4px solid var(--orange);
}

h3 a {
    color: white;
    font-family: "Press Start 2P", system-ui;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    text-decoration: none;
}

ol {
    margin-left: 28px;
    list-style: upper-roman;
}

ol li {
    text-align: left;
}

ol li::marker {
    font-family: silkscreen;
}

ul {
    margin-left: 16px;
}

ul li {
    list-style: square url(/assets/bullet.png);
    text-align: left;
}

.accent {
    background: url(assets/accentsheet.gif);
    background-size: 96px;
    background-position: 0 0;
    height: 48px;
    width: 48px;
    position: relative;
    right: -800px;
    top: -1230px;
    transition: 0s;
}

.accent:hover {
    background: url(assets/accentsheet.gif);
    background-size: 96px;
    background-position: -48px 0;
    height: 48px;
    width: 48px;
    transition: 0s;
}

/*RESPONSIVENESS*/
@media only screen and (max-width: 1020px) {
    .container {
        display: grid;
        grid-template-columns: 160px 200px 160px 200px 160px;
        grid-template-rows: 120px 120px 1fr 1fr 8px;
        grid-auto-columns: 1fr;
        gap: 36px 28px;
        grid-auto-flow: row;
        grid-template-areas:
            "logo logo logo logo logo"
            ". links-left icon links-right ."
            ". main main main ."
            "side-left side-left . side-right side-right"
            "footer footer footer footer footer";
        margin: auto;
        margin-bottom: 48px;
        width: 1000px;
    }

    .side-left,
    .side-right {
        width: 160px;
        margin: auto;
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media only screen and (max-width: 920px) {
    .container {
        display: grid;
        grid-template-columns: 160px 200px 160px;
        grid-template-rows: 120px 120px 1fr 1fr 8px;
        grid-auto-columns: 1fr;
        gap: 36px 28px;
        grid-auto-flow: row;
        grid-template-areas:
            "logo logo logo"
            "links-left icon links-right"
            "main main main"
            "side-left . side-right"
            "footer footer footer";
        margin-left: 24px;
        margin-bottom: 48px;
        width: 1000px;
    }
}

@media only screen and (max-width: 650px) {
    .container {
        display: grid;
        grid-template-columns: 160px 200px 160px;
        grid-template-rows: 120px 120px 1fr 1fr 8px;
        grid-auto-columns: 1fr;
        gap: 36px 28px;
        grid-auto-flow: row;
        grid-template-areas:
            "logo logo logo"
            "links-left icon links-right"
            "main main main"
            "side-left . side-right"
            "footer footer footer";
        margin-left: 24px;
        margin-bottom: 48px;
        width: 1000px;
    }

    .main {
        grid-area: main;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 128px 230px;
        gap: 24px 24px;
        grid-auto-flow: row;
        grid-template-areas:
            "greeting greeting updates"
            "playlist player player";
    }

    .map {
        display: none;
        margin: 0;
    }

    .side-left,
    .side-right {
        margin-top: -136px;
    }

    .links-left a {
        font-size: 18px;
        color: white;
        margin: 12px;
        line-height: 50px;
    }

    .links-left a:hover {
        color: var(--orange);
        font-size: 20px;
    }
}

@media only screen and (max-width: 620px) {
    .container {
        display: grid;
        grid-template-columns: 160px 160px;
        grid-template-rows: 120px 120px 1fr 1fr 8px;
        grid-auto-columns: 1fr;
        gap: 36px 28px;
        grid-auto-flow: row;
        grid-template-areas:
            "logo logo"
            "links-left links-right"
            "main main"
            "side-left side-right"
            "footer footer";
        margin-left: 24px;
        margin-bottom: 48px;
        width: 1000px;
    }

    .main {
        display: inline;
    }

    .greeting,
    .updates, .playlist, .player {
        margin: 24px 0px;
    }
    
    .greeting {
        margin-top: -10px;
    }
    
    .side-left, .side-right {
        margin-top:-36px;
    }
}




