/* ----------- importing fonts ----------- */
@import "/assets/css/fonts.css";

/* ----------- main styling ----------- */
* {
    cursor: url("/assets/img/frogcrs.gif"), url("/assets/img/frogcrs.gif"), default;
}

html {
    /* variables */
    --bg-color: #0F1A1E;
    --accent-color: #283618;
    --lighter-color: #FEFAE0;
    --darker-color: #854414;
    --accent-color-alt: #ABBE56;

    --corner-rounding: 15px;
    --corner-rounding-inset: 10px;

    --text-bg: url(/assets/img/bg/silver-scales.png);

    background-color: var(--bg-color);
    background-image: url(/assets/img/bg/leaves.jpg);
    background-size: cover;
    background-attachment: fixed;
}

body {
    font-family: Verdana;
    justify-content: center;
    margin: 50px 100px 100px 100px;
}

header {
    text-align: auto;
    margin: 0px 10px 50px 10px;
}

header img {
    display: block;
    object-fit: scale-down;
    max-width: 100%;
    min-width: 250px;
    height: auto;
    margin: auto;
}

div.flex {
    display: flex;
    gap: 5rem;
    max-width: 1600px;
    margin: auto;
}

main,nav {
    background-color: var(--lighter-color);
    background-image: var(--text-bg);
    color: var(--darker-color);
    border-radius: var(--corner-rounding);
    border: 2px solid var(--darker-color);
    box-shadow: -10px 10px 0px 0px var(--darker-color);
}

main {
    padding: 0.5em 2em;
    width: 100%;
    position: relative;
}

main img:not(div.gallery-block, div.blog-entry) {
    max-width: 100%;
    object-fit: scale-down;
}

nav {
    padding: 1em 1em;
}

nav h2 {
    margin: 0px;
}

nav ul {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
}

nav ul li {
    margin: 0.3em 0em;
}

nav ul a {
    text-decoration: none;
}

nav ul a:hover {
    text-decoration: underline;
}

#sidebar-left, #sidebar-right {
    justify-content: center;
    max-width: 300px;
}

nav#changelog {
    margin-bottom: 50px;
}

#right-nav div.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav div.changelog-box {
    max-width: 300px;
    max-height: 300px;
    font-size: 11px;
    overflow: auto;
    scrollbar-color: var(--darker-color) transparent;
    scrollbar-width: thin;
}

nav div.changelog-box hr {
    border: 1px solid var(--darker-color);
    max-width: 90%;
    margin: 8px auto;
}

footer {
    background-color: var(--lighter-color);
    background-image: var(--text-bg);
    color: var(--darker-color);
    padding: 0.4em 2em;
    border-radius: var(--corner-rounding) var(--corner-rounding) 0px 0px;
    border: 2px solid var(--darker-color);
    border-bottom: 0px;
    box-shadow: -10px 10px 0px 0px var(--darker-color);
    font-family: "Pulang", "Verdana";
    text-align: center;
    max-width: 100%;
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 0);
    height: 20px;
}

footer a {
    text-decoration: none;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Pulang", "Verdana";
}

h1 {
    font-size: 2.5em;
}

h2 {
    text-align: center;
}
  
h3 {
    margin-top: 15px;
    margin-bottom: 5px;
}

hr {
    border: 2px solid var(--darker-color);
    border-radius: var(--corner-rounding-inset);
    max-width: 80%;
    margin: 20px auto;
}

div.img-caption {
    text-align: center;
    font-style: italic;
}

.float-right {
    position: relative;
    float: right;
}

.float-left {
    position: relative;
    float: left;
}

.pagedoll {
    max-width: 200px;
    margin: 10px;
}

div.todo {
    max-width: 600px;
    margin: auto;
    background-color: var(--darker-color);
    color: var(--lighter-color);
    border-radius: var(--corner-rounding-inset);
    padding: 0.25em 0.5em;
}

div.wyrmtalk {
    display: block;
    position: absolute;
    display: flex;
    bottom: -30px;
    right: 30px;
}

.secret {
    text-decoration: none;
    transition: all .2s ease-in-out;
}

.secret:hover {
    color: var(--accent-color) !important;
}

a:link { color: var(--accent-color); }
a:visited { color: var(--accent-color); }

/* ----------- speech bubbles ----------- */

div.speech {
    color: var(--lighter-color);
    background: var(--darker-color);
    position: relative;
    padding: 8px 20px;
    border-radius: var(--corner-rounding-inset);
    margin: 0px 25px;
    max-width: 240px;
    font-size: 14px;
    text-align: center;
    height: max-content;
    align-self: center;
}

div.speech::after {
    content: "";
    border: 20px solid transparent;
    border-right-color: transparent;
    border-right-style: solid;
    border-right-width: 20px;
    border-left-color: transparent;
    position: absolute;
}

div.right.speech::after {
    border-left-color: var(--darker-color);
    border-right: 0;
    right: -15px;
    top: 50%;
    margin-top: -20px;
}

/* ----------- warning styling ----------- */

div.alert {
    max-width: 400px;
    margin: auto;
}

div.warning {
    background-color: var(--darker-color);
    color: var(--lighter-color);
    border-radius: var(--corner-rounding-inset);
    display: inline-flex;
    padding: 1em 1em;
    align-items: center;
    font-size: 14px;
}

div.warning img {
    display: block;
    max-height: 75px;
    margin-right: 15px !important;
}

.flex-center {
    display: flex;
    justify-content: center;
}

/* ----------- gallery styling ----------- */
div.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-height: 800px;
    overflow: auto;
    scrollbar-color: var(--darker-color) transparent;
    scrollbar-width: thin;
    padding: 1em;
}

div.gallery img {
    border-radius: var(--corner-rounding-inset);
    max-width: 300px;
    max-height: 250px;
    margin-bottom: 8px !important;
    transition: all .2s ease-in-out;
}
  
div.gallery img:hover {
    transform: scale(1.1);
}

div.gallery-block {
    max-width: 30%;
    margin: 8px;
    text-align: center;
}

div.caption {
    background-color: var(--darker-color);
    color: var(--lighter-color);
    border-radius: var(--corner-rounding-inset);
    padding: 0.8em;
    text-align: center;
    font-size: 14px;
}

div.caption img {
    margin: 0px !important;
    border-radius: 0px;
}

div.caption p {
    margin-top: 8px;
    margin-bottom: 0px;
}

div.caption p:first-of-type {
    margin: 0px;
}

div.caption div.desc {
    max-height: 100px;
    overflow: auto;
    scrollbar-color: var(--lighter-color) transparent;
    scrollbar-width: thin;
}

div.caption div.info {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--lighter-color);
}

/* ----------- blog styling ----------- */
div.blog-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

div.blog-entry {
    max-width: 30%;
    margin: 8px;
    background-color: var(--darker-color);
    color: var(--lighter-color);
    border-radius: var(--corner-rounding-inset);
    overflow: hidden;
    block-size: fit-content;
}

div.blog-entry div.cover {
    width: 100%;
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    object-fit: scale-down;
}

div.blog-entry div.cover img {
    visibility: hidden;
    width: 100%;
}

div.blog-entry div.blog-desc {
    margin: 1em 1em;
    font-size: 14px;
}

div.blog-entry p.blog-date {
    font-style: italic;
    margin: 0px;
    font-size: 14px;
}

div.blog-entry h2 {
    margin: 0px;
    text-align: left;
}

div.blog-entry a {
    color: var(--lighter-color);
}

div.blogimg img {
    max-width: 500px;
    max-height: 500px;
}

div.lilimg img {
    max-width: 300px;
    max-height: 200px;
    width: auto;
    height: auto;
}

/* ----------- vpets styling ----------- */
div.vpet-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

div.pasture {
    width: 45%;
    min-height: 200px;
    background-image: url(/assets/img/bg/grasstileflowers.png);
    border-radius: var(--corner-rounding-inset);
    margin: 8px;
    font-family: 'Pulang', 'Verdana';
    font-size: 1.3em;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

div.pasture div.sign {
    background-color: var(--darker-color);
    border-radius: var(--corner-rounding-inset);
    text-align: center;
    padding: 1em;
    margin: 1.2em;
    width: 100%;
}

div.pasture div.sign div.title {
    margin-top: 8px;
}

div.pasture div.sign a {
    color: var(--lighter-color);
    text-decoration: none;
}

div.pasture div.sign img {
    display: block;
    object-fit: scale-down;
    max-width: 100%;
    height: auto;
    margin: auto;
}

/* ----------- compatibility ----------- */
.mobile-only {
    display: none;
}

@media only screen and (max-width: 1400px) {
    .mobile-only {
        display: block;
    }

    .mobile-hide {
        display: none;
    }

    body {
        margin: 0px 20px;
    }

    div.flex {
        flex-wrap: wrap;
        max-width: 800px;
    }

    #sidebar-left, #sidebar-right {
        margin: auto;
        max-width: 100%;
    }

    #main-nav {
        display: flex;
        gap: 2em;
        max-width: 100%;
    }

    #main-nav .nav-group h2 {
        text-align: center;
    }

    #main-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0px 1.3em;
    }

    #main-nav img {
        position: relative;
        top: 50%;
        transform: translate(0%, -50%);
        min-width: 50%;
        height: auto;
        object-fit: scale-down;
    }

    main {
        padding: 0.5em 2em;
        width: 100%;
        margin-bottom: 0px;
    }

    #sidebar-right {
        margin-bottom: 100px;
    }

    nav div.changelog-box {
        max-width: 100%;
    }

    footer {
        max-width: 100%;
    }

    div.gallery-block, div.blog-entry {
        max-width: 45%;
    }

    div.wyrmtalk {
        position: relative;
        float: right;
        right: 0px !important;
    }

    div.right.speech {
        margin-left: 0px;
    }
}

@media only screen and (max-width: 800px) {
    div.gallery-block, div.blog-entry, div.pasture {
        max-width: 100%;
    }

    div.gallery-block img {
        max-width: 100%;
        max-height: 300px;
    }

    div.pasture {
        width: 100%;
    }
}