/* ===============================
   Fonts
=============================== */
@font-face {
    font-family: "NasinNanpa";
    src: url("fonts/nasin-nanpa.otf?#iefix") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "NotoSansRunic";
    src: url("fonts/NotoSansRunic.ttf?#iefix") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* ===============================
   Light/Dark Mode Colors
=============================== */
:root {
    --text: white;
    --border: #65619a;
    --accent: #74C365;
    --bg: rgba(96, 92, 156, 0.9);
    --gradientBottom: #55518f;
    --gradientTop: #7e7ab8;
}



/* ===============================
   Global Styles
=============================== */
* { box-sizing: border-box; }

body {
    padding: 10px;
    font-family: 'MS PGothic', 'NotoSansRunic', 'NasinNanpa', "Deltarune", "Mojangles", sans-serif;
    color: var(--text);

    /* tiled cloud background at 60% scale */

    background: url('clouds3.jpg') repeat;
    background-size: 20% auto;
    background-position: top left;
    animation: bgMove 0s linear infinite;
}

@keyframes bgMove {
    from {
        background-position: top left; /* start at top-left */
    }
    to {
        background-position: bottom right; /* move diagonally to bottom-right */
    }
}


/* ===============================
   Container
=============================== */
.container {
    max-width: 55rem;
    margin: 5vw auto 12px auto;
    border: 6px ridge var(--border);
    outline: 3px solid var(--gradientTop);
    outline-offset: 4px;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    gap: 5px;

    /* container background gradient pattern */
    background-color: var(--gradientBottom);
    background-image: 
        repeating-radial-gradient(circle at 0 0, transparent 0, var(--gradientBottom) 9px), 
        repeating-linear-gradient(var(--bg), var(--bg));
}

/* ===============================
   Flex Column Widths
=============================== */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.top {
    overflow: hidden;
    white-space: nowrap;
}

.scroll {
    width: 100%;
}

.track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 67s linear infinite;
}

.track p {
    display: inline-block;
    margin-right: 40px;
}

@keyframes ticker {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}
.half { flex: 1 1 49%; }
.half2 {
    flex: 1 1 49%;  
    max-width: 49%; 
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   Top Header
=============================== */
header {
    background-image: url('SB089.jpg');
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: 150% auto;

    width: 100% !important;
    height: 120px;
    border: 2px ridge var(--border);
    border-radius: 5px;
    position: relative;

    animation: headerScroll 45s linear infinite;
}

@keyframes headerScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -1000px 0;
    }
}

header span {
    font-size: 2.5rem;
    position: absolute;
    bottom: 0;
    right: 10px;
    margin: 10px;
    font-weight: bold;
    text-shadow: 1px 1px var(--text),
                 -1px 1px var(--text),
                 1px -1px var(--accent),
                 -1px -1px var(--accent);
    color: var(--gradientTop);
}

/* ===============================
   Navigation
=============================== */
nav {
    border: 2px ridge var(--border);
    border-radius: 5px;
    padding: 5px;
    background: linear-gradient(var(--gradientTop), var(--gradientBottom));
}
nav div {
    text-align: center;
    font-size: 1.25rem;
    margin: 5px 5px 10px 5px;
}
nav a {
    display: block;
    margin: 5px;
    background: linear-gradient(to right,var(--bg), var(--gradientBottom));
    border-radius: 5px;
    padding: 2px 7px;
    text-decoration: none;
}
nav a:link, nav a:visited { color: var(--text); }
nav a:hover, nav a:focus {
    background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* optional small image */
div.small > img {
    display: block;
    margin: 5px auto;
    border:2px ridge var(--border);
    border-radius: 5px;
}

/* ===============================
   Sections
=============================== */
section {
    border: 2px ridge var(--border);
    border-radius: 5px;
    padding: 5px;
    background: linear-gradient(var(--gradientTop), var(--gradientBottom));
}

/* ===============================
   Footer
=============================== */
footer {
    text-align: center;
    margin-bottom: 5vw;
    font-size: 0.8rem;
}
footer a { text-decoration: none; }

/* ===============================
   Headings & Paragraphs
=============================== */
h1, h2, h3, h4, h5, h6, p  { 
    margin: 5px;
    line-height: 1.2;
}
h1 { 
    font-size: 1.4rem;
    letter-spacing: 2px;
    font-weight: normal;
    text-align: center;
    border-bottom: 2px ridge var(--border);
    padding-bottom: 5px;
}
h2 { 
    font-size: 1.25rem;
    font-weight: normal;
    text-align: center;
}
h3 { font-size: 1.1rem; }
h4 { 
    font-size: 1rem;
    color: var(--accent);
    padding-left: 12px;
}

/* ===============================
   Images & Overflow
=============================== */
img { max-width: 100%; }
pre { overflow-x: auto; }

/* ===============================
   Image + Text Flex Blocks
=============================== */
/* Container for image + text */
.minceraft img {
 width: 40%;
 height: 40%;
 display: block;
 margin: 5px auto; }
 
 .tadc img {
 width: 25%;
 height: 25%;
 display: block;
 margin: 5px auto; }

.image-text {
    overflow: hidden; /* clears floats */
    margin-top: 10px;
}

/* The image floats left, text wraps around it */
.image-text img {
    float: left;
    width: 60%;      /* or fixed px if you want */
    max-width: 200px;
    margin-right: 10px;
    margin-bottom: 5px;
}

/* The paragraph just flows naturally */
.image-text p {
    margin: 0;
    line-height: 1.3;
}

/* ===============================
   Links
=============================== */
a:hover, a:focus { font-style: italic; }
a:visited { color: var(--accent); }