:root {
    --bg: #ccc ;
    --fg: #222 ;
    --behind: #fff0 ;
    --h1: #008 ;
    --red: #400 ;
    --yellow: #440 ;
    --blue: #004 ;
    --link: #037 ;
    --linksec: #059 ;
    --border: #333 ;
    --box: #444 ;
    --lime: #070 ;
}

#background {
    background-image: url("ai-mountain.avif");
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-repeat:no-repeat;
    background-size:cover;
}

@media only screen and (max-width: 699px) {
.navbar {
    font-weight: bold;
    padding: 0%;
    font-size: 120%;
    background-color: #8F9DF7;
}

.navbar li {
    border: 1px darkblue solid;
    text-align: center;
    list-style: none;
}


.navbar a {
    text-decoration: none;
}

.navbar a:link {
    text-decoration: none;
    color: black;
}

.navbar a:visited {
    text-decoration: none;
    color:dimgrey;
}

.navbar a:hover {
    color: grey;
}

.navbar ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}
}

@media only screen and (min-width: 700px) {

.navbar {
    font-weight: bold;
    padding: 0%;
    font-size: 120%;
    background-color: #8F9DF7;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr; 

}

.navbar li {
    border: 1px darkblue solid;
    text-align: center;
    list-style: none;
}


.navbar a {
    text-decoration: none;
}

.navbar a:link {
    text-decoration: none;
    color: black;
}

.navbar a:visited {
    text-decoration: none;
    color:dimgrey;
}

.navbar a:hover {
    color: grey;
}

.navbar ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
}
}

dt {
    font-weight: bold ;
}
main {
    background: var(--behind) ;
    color: var(--fg) ;
    filter: blur(0px);
    margin-bottom: 200px ;
    font-family: "Garamond", Georgia, serif, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji';
}

aside {
    padding: 0 5em;
    font-style: italic;
}

a:hover {
    color: var(--linksec) ;
}

.lw, p img,  li img, h1 img, h2 img, h3 img, h4 img, dt img, td img, button img {
    max-height: .8em;
    max-width: 1em;
    vertical-align: middle ;
}

img { max-width: 90% ; }

main {
    max-width: 800px ;
    margin: auto ;
}

#blueborder {
    border-color: #8F9DF7 ;
    border-width: 1em 1em 1em 1em ;
    border-style: solid ;
    border-radius: 20px ;
}

main article {
    background: tan ;
    margin-bottom: 0 ;
    padding: 1em ;
    margin: auto ;
    border: thick solid black;
}

.taglist {
    max-width: 400px ;
    margin: auto ;
    text-align: center ;
    margin-bottom: 1em ;
}

h1,h2,h3,h4,h5,h6 {
    text-align: center ;
}

.menuname {
    display: none ;
}

.buttonlist {
    display: none ;
    position: absolute ;
    bottom: 1em ;
}

.menuactive li {
    background: #111 ;
}

    .buttonlist {
        display: block ;
    }

    .buttonlist img {
        max-height: inherit ;
        max-width: inherit ;
        vertical-align: middle ;
    }


    .menuname {
        display: inline-block ;
    }


code {
    color: var(--lime) ;
    overflow-wrap: break-word ;
    font-size: 10pt ;
}

.resright {
    margin: auto ;
    display: block ;
    text-align: center ;
}

.resright img {
    max-height: 300px ;
}

.profile {
    text-align: center ;
    max-height: 250px ;
}
.profile img {
    max-height: inherit ;
    border-radius: 50px ;
}

figcaption {
    text-align: center ;
    display: block ;
    font-style: italic ;
}

math {
    display: block ;
    text-align: center ;
}

h1 { color: #000 ; }
h2 { color: var(--yellow) ; }
h3 { color: var(--red) ; }
h4 { color: var(--blue) ; }

sup {
    vertical-align: top;
    font-size: 0.6em;
}

a {
    color: var(--link) ;
    text-decoration: none ;
}
.qr { max-width: 150px ; padding: 10px }


li .summary {
    display: none;
}

li:hover .summary {
    display: block ;
    font-style: italic ;
}

input, textarea {
    background: #222 ;
    color: white ;
    margin: auto ;
    border-color: #333 ;
    font-size: large ;
}


#name {
    max-width: 25em ;
}
#amount {
    max-width: 25em ;
}
#message {
    width: 100% ;
}

form {
    margin: auto ;
    width: 30em ;
}

pre {
    border-radius: 20px ;
    padding: 1em ;
}

.loc {
    color: #777 ;
    display: none ;
}

.mainmenucont {
    position: relative ;
    text-align: center ;
    height: 100px ;
    width: 100px ;
    display: inline-block ;

}

.menulink {
    text-decoration: none ;
}

.mainmenucont:hover {
    background: darkmagenta ;
    border-radius: 20px ;
}

.mainmenuimg {
    height: 100px ;
    width: 100px ;
}

.mainmenutext {
    position: absolute ;
    top: 50% ;
    left: 50% ;
    transform: translate(-50%, -50%) ;
    font-size: 24px ;
    color: white ;
    text-shadow: 0px 0px 3px black ;
}

.mainmenucont:hover .mainmenutext {
    color: var(--lime) ;
}

.backforth {
    animation: bf .5s linear both infinite alternate ;
    position: absolute ;
}

@keyframes bf{
    from{transform: translateX(.25em);}
    to{transform: translateX(0em);}
}

time {
    font-family: monospace ;
    color: #333 ;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

input, textarea {
    background: black ;
}

.type_updates a, .type_updates {
    color: #000303 ;
}


/* For NEXTPREV.HTML */
#prevart {
    float: left ;
    text-align: left ;
}
#nextart {
    float: right ;
    text-align: right ;
}
#nextart,#prevart {
    max-width: 33% ;
}

blockquote {
    font-style: italic ;
    font-size: small ;
}

#title {
    padding-top: 0px;
    margin-top: 0px;
}

hr {
    border: thin dashed darkblue;
}

.resright, .profile{
        max-width: 300px ;
        border: 3px solid black;
}

#intropic img {
    display:block;
    margin-left: auto; 
    margin-right: auto; 

}

@media only screen and (min-width: 600px) {

.resright, .profile{
        display: block ;
        float: right;
        clear: both ;
        max-width: 300px ;
        border: 3px solid black;
}

#intropic {
		display: flex; 
		align-items: center;
}

#intropic img {
		order: 1;
}

#intropic #intro {
		float: none;
        margin-right:4vw;
		order: 0;
}
}


.center {
    display: block;
    text-align: center;
}
