/**
 * CSS for all the pages
 * Code Challenge
 * @author Jim A Kinsman <relipse@gmail.com>
 * @copyright 2022 Jim A Kinsman
 */

.hidden {
    display: none;
}

.box {
    border: 1px dashed;
    padding: 10px;
    margin-bottom: 10px;
}

.error.box {
    border: orangered;
    color: orangered;
    background-color: lightpink;
}

.success.box {
    border: green;
    color: green;
    background-color: lightgreen;
}

/** thanks to https://stackoverflow.com/a/6663566 **/
.tbl {
    display: table;
    width: auto;
    background-color: #eee;
    border: 1px solid #666666;
    border-spacing: 5px; /* cellspacing:poor IE support for  this */
}
.tblrow {
    display: table-row;
    width: auto;
    clear: both;
}
.tblcell {
    float: left; /* fix for  buggy browsers */
    display: table-cell;
    width: 200px;
    background-color: #ccc;
}

@font-face {
    font-family: HVD_Comic_Serif_Pro;
    src: url("fonts/HVD_Comic_Serif_Pro.otf") format("opentype");
}

footer {
    width: 100%;
    height: 2.5rem;            /* Footer height */
    position: relative;
}

footer .footer-credit {
    position: absolute;
    right: 5px;
    bottom: 2px;
    font-size: 0.7rem;
}

footer .copyright {
    float: left;
    margin-right: 10px;
}
footer nav ul {
    list-style-type: none;
}
.hp{
    display: none;
}

body {
    background: rgb(229,124,12);
    background: radial-gradient(circle, rgba(229,124,12,1) 0%, rgba(255,165,64,1) 35%, rgba(229,124,12,1) 100%);
    font-family: HVD_Comic_Serif_Pro;
}

header nav {
    margin-top: -5px;
}

header nav ul {
    display: flex;
    list-style: none;
    margin-top: 0;
    justify-content: center;
}

footer nav ul {
    display: flex;
    margin-left: 0;
}

footer nav ul li {
    padding-left: 20px;
}

footer nav ul li:first-child {
    padding-left: 7px;
}

header nav ul li {
    padding: 5px;
    font-size: 43px;
    /*color: #FFA540;*/
    color: black;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    border-radius: 5px;
    margin-right: 7px;
    /*background: rgb(229,124,12);
    background: linear-gradient(90deg, rgba(229,124,12,1) 0%, rgba(255,165,64,1) 35%, rgba(229,124,12,1) 100%);*/
}

header nav ul li:last-child {

}

header nav ul a,
header nav ul a:default,
header nav ul a:visited,
header nav ul a:hover{
    color: black;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-decoration: none;
}

a,
a:default,
a:visited,
a:hover{
    color: #FFA744;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-decoration: none;
}

a:hover,
a.selected {
    text-decoration: underline;
}


header nav ul a.selected {
    border-bottom: 5px outset #FFA540;
}

header nav ul a:hover{
    text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
}

header nav ul a.declare img {
    width: 140px;
}

header nav ul a.declare.selected img {
    width: 250px;
}


header nav ul a.fresh img {
    width: 100px;
}

header nav ul a.fresh.selected img {
    width: 250px;
}

header nav ul a.browse img {
    width: 130px;
}
header nav ul a.browse.selected img {
    width: 260px;
}

.user-options {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.user-options .rating img {
    width: 45px;
}
h1 {
    margin: 0;
}
h1 img {
    max-width: 600px;
    width: 100%;
}
h2 {
    margin: 0;
    font-style: italic;
    font-weight: lighter;
    font-size: 20px;
    margin-top: -15px;
    margin-bottom: 1px;
    padding-left: 10px;
}

main {
    min-height: 300px;
    color: black;
    padding: 15px;
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
    font-size: 1.3em;
}

.fresh-foot {
    display: flex;
    border-top: 1px outset #FFA540;
    padding: 10px;
}
.fresh-foot .flex-item:last-child {
    margin-left: auto;
}
.fresh-foot img.previous {
   height: 40px;
}
.fresh-foot img.next {
    height: 40px;
}

input[name=author_nick] {
    width: 50%;
}

.meta {
    font-style: italic;
    font-size: smaller;
    margin-top: 10px;
    border: 1px dashed gray;
}

.meta span {
    padding: 3px;
}

textarea[name=encounter] {
    width: 100%;
    height: 200px;
}

.encounter .rules {
    font-style: italic;
    color: darkblue;
    font-size: smaller;
    margin-left: 10px;
    padding: 7px;
}

button {
    font-family: HVD_Comic_Serif_Pro;
    border-radius: 5px;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    color: white;
    background-color: #E57C0C;
}

button.react {
    font-size: 20px;
    padding: 5px;
    background-color: #E57C0C;
    color: white;
    margin: 3px;
    cursor: pointer;
}

button[disabled=disabled] {
    color: gray;
    background-color: silver;
    cursor: default;
}

form.frmPostStory button{
    margin-top: 10px;
    background-color: #E57C0C;
}

.user-reactions {
    background-color: #fcba03;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    margin-top: 0;
    border: 1px solid black;
    background: rgb(229,124,12);
    background: radial-gradient(circle, rgba(229,124,12,1) 0%, rgba(247,255,64,1) 35%, rgba(229,124,12,1) 100%);
}

/* styling paper

<div class="paper">
  <div class="pattern">
    <div class="content">
 */
.paper {
    max-width: 600px;
    width: 100%;
    /*height: 700px;*/
    position: relative;
    margin: 20px auto;
    margin-bottom: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: white;
    box-shadow: 0px 0px 5px 0px #888;
}

/* styling red vertical line */
.paper::before {
    content: '';
    width: 2px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 40px;
    background-color: rgba(255,0,0,0.6);
}

/* styling blue horizontal lines */
.pattern {
    height: 100%;
    background-image: repeating-linear-gradient(white 0px, white 24px, teal 25px);
}

/* styling text content */
.content {
    padding-top: 6px;
    padding-left: 56px;
    padding-right: 16px;
    line-height: 25px;
    /*font-family: 'Dancing Script', cursive;*/
    font-size: 19px;
    letter-spacing: 1px;
    word-spacing: 5px;
}

.reveal{
    /*position: relative;
    transform: translateY(150px);*/
    opacity: 0;
    transition: 5s all ease;
}
.reveal.active{
    /*transform: translateY(0);*/
    opacity: 1;
}

.boxofthought {
    background-color: white;
    box-shadow: 0px 0px 5px 0px #888;
    margin: 20px auto;
    padding-top: 12px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 10px;
}

h3 {
    font-size: 35px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

.encounter.snippet {
   background-color: white;
    margin: 5px;
    border-radius: 35px;
    padding: 10px;
    position: relative;
    width: 100%;
    max-width: 300px;
}

.encounter.snippet a.viewstory {
    /*position: absolute;
    bottom: 5px;
    right: 5px;*/
}

.encounter.snippet.viewed{
    background-color: #ddd;
}

.encounter.snippet .snippet-text,
.encounter.snippet .author-info{
    text-align: left;
}

.encounter.snippet .author-info{
    margin-bottom: 3px;
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: stretch;
}
.grid-container div.vh-center {
    flex-direction: column;
}
.grid-container div.vh-center > div {
    text-align: center;
}

.grid-container div.vh-center {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}
.grid-container.moderate {
    grid-template-columns: auto;
}

.grid-container.moderate .encounter.snippet{
    max-width: 600px;
}
@media only screen and (max-width: 700px) {
    footer nav ul {
        width: 100%;
        flex-direction: column;
        text-align: left;
    }

    footer nav ul li,footer nav ul li:first-child{
        padding-left: 0;
    }

    header nav ul {
        width: 100%;
        margin-left: -40px;
    }
    header nav ul a.declare img {
        width: 100px;
    }

    header nav ul a.declare.selected img {
        width: 120px;
    }


    header nav ul a.fresh img {
        width: 60px;
    }

    header nav ul a.fresh.selected img {
        width: 110px;
    }

    header nav ul a.browse img {
        width: 90px;
    }
    header nav ul a.browse.selected img {
        width: 130px;
    }
    h2 {
        font-size: 11px;
        margin-top: -5px;
        margin-bottom: 5px;
    }

    .grid-container {
        grid-template-columns: auto;
    }

    .encounter.snippet {
        width: 100%;
        max-width: 100%;
    }
}