
/*    Town Tales CSS    */


html {
    font-size: 100%; /* 1rem = 16px = 100% */
    font-family: Calibri;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: auto;
    padding: 0;
    width: 80%;
    min-width: 300px;
    height: 100vh;
    min-height: 300px;
    background-image: url("pictures/20220208-code.PNG");
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    background-color: #1e1e1eff;
    box-sizing: border-box;
    color: #000;
}

@media (prefers-color-scheme: light) {
    body {
        background-color: #e1e1e1ff;
    }
}

/* --- */
h1 {
    border: none;
    line-height: inherit;
    margin: 0;
    padding: 4px;
    text-align: inherit;
    font-size: 2.0rem;
    text-decoration: underline;
}

h2 {
    border: none;
    line-height: inherit;
    margin: 0;
    padding: 3px;
    text-align: inherit;
    font-size: 1.1rem;
    text-decoration: underline;
}

p {
    border: none;
    margin: 0;
    padding: 2px;
    font-size: inherit;
    line-height: inherit;
    text-align: inherit;
    text-decoration: none;
}

a {
    border: none;
    font-size: inherit;
    line-height: inherit;
    text-align: inherit;
    margin: 0;
    padding: 2px;
    color: #ffffff;
    text-decoration: underline;
}

    a:hover,
    a:focus {
        color: #D1FDF1;
        text-decoration: none;
    }


h2,
h3,
h4,
h5,
h6,
blockquote,
address,
big,
cite,
code,
em,
font,
img,
small,
strike,
sub,
sup,
ol,
ul,
fieldset,
form,
label,
legend,
button,
caption,
tr,
th,
td {
    border: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    text-align: inherit;
}

li {
    border: none;
    font-size: inherit;
    line-height: inherit;
    margin: 0 25px;
    padding: 0;
    text-align: inherit;
}

table {
    border: 0.1rem solid #dcd7ca;
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    margin: 0;
    padding: 0;
    text-align: inherit;
    font-size: 1.0rem;
    line-height: inherit;
    margin: 4rem 0;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

tr,
td {
    border: 0.1rem solid #dcd7ca;
}



/* --- */
header {
    box-sizing: border-box;
    border: 0px;
    margin: auto;
    padding: 0.5rem;
    width: 100%;
    min-height: 20px;
    overflow: visible;
    display: block;
    float: left;
    border-radius: 16.0rem;
}

nav {
    margin: 20px auto;
    width: 40%;
    min-width: 400px;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 75px;
    flex-wrap: wrap;
    justify-content: flex-start;
    background-color: #04B7C4f2;
    border-radius: 2.4rem;
    padding: 0.6rem;
}

main {
    box-sizing: border-box;
    border: 0px;
    margin: 10px 0;
    width: 100%;
    min-width: 625px;
    min-height: 250px;
    display: flex;
    justify-content: space-between;
    border-radius: 0.9rem;
    overflow: auto;
}

footer {
    box-sizing: border-box;
    border: 0px;
    margin: auto;
    padding: 0.3rem 0.5rem;
    width: 100%;
    min-width: 400px;
    min-height: 50px;
    overflow: auto;
    display: block;
    background-color: #04B7C4f2;
    border-radius: 3.5rem;
}


/* IDs */
#head {
    box-sizing: border-box;
    border: 0px;
    margin: auto;
    padding: 0.2rem;
    width: 256px;
    height: 256px;
    overflow: auto;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: -85px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    background-image: url("pictures/towntales512.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #00fffff0;
    border-radius: 16.0rem;
    font-size: 5.2rem;
}
    #head:hover {
        -webkit-transform: scale(1.15);
        transform: scale(1.15);
    }

#discord {
    padding: 1rem 0.1rem;
    min-width: 250px;
    float: left;
    overflow: auto;
    display: block;
}

/* Classes */
.navlink {
    margin: auto;
    width: 120px;
    border-radius: 1.9rem;
    padding: 0;
    font-size: 1.6rem;
    list-style: none;
    text-align: center;
}
/*
    .navlink > p {
        margin: auto;
        font-size: 1.5rem;
        list-style: none;
        text-align: center;
    }
    */
.content {
    box-sizing: border-box;
    border: 0px;
    margin: 20px 20px 20px 0px;
    width: 100%;
    min-width: 350px;
    min-height: 250px;
    display: block;
    background-color: #ffffffee;
    border-radius: 3.5rem;
    padding: 1.9rem;
    overflow: auto;
}

.content > p > a {
    color: #04B7C4f2;
}

.wrapper {
    margin: 20px;
    width: 200px;
    float: left;
    background-color: #ffffffee;
    border-radius: 1.5rem;
    padding: 0.6rem 0.8rem;
    font-size: 1.0rem;
    text-align: left;
}

.footerlink {
    margin: 0;
    width: 155px;
    float: left;
    border-radius: 1.5rem;
    padding: 1.4rem 4.5rem;
    font-size: 1.0rem;
    list-style: none;
    text-align: left;
}

.active {
    background-color: #04B7C4f2;
    text-align: left;
    padding-left: 4px;
}

.now {
    background-color: lightcyan;
    padding-left: 4px;
}

.done {
    background-color: lightgreen;
    text-align: left;
    padding-left: 4px;
}

