/* start dark mode styling */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f0f0f0;
        --border: #4e6e4d;
        --accent: #a8cba0;
        --bg: #1b3a1a;
        --gradientBottom: black;
        --gradientTop: #1b3a1a;
        a:link { color: #f2bfbf; }
    }
    header {
        background: url('imgs/cavepixelated.png');
    }
}
/* end dark mode styling */
/* colors: #4e6e4d, #1b3a1a  */


* { 
box-sizing: border-box;
}
body {
padding: 10px;
font-family: 'MS PGothic', sans-serif;
color: var(--text);
text-align: center;
/* page background pattern */
background-color: black;
}


.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 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));
}
/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }


header {
background-color: var(--gradientTop);
background-size: cover;
background-position: center;
width: 100%;
height: 120px; /* change banner height here*/
border: 2px ridge var(--border);
border-radius: 5px;
position: relative;
}

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);
}


nav {
border: 2px ridge var(--border);
border-radius: 5px;
padding: 5px;
background: rgba(0, 0, 0, 0.449);
}

nav div {
text-align: center;
font-size: 1.25rem;
margin: 5px 5px 10px 5px;
}
nav a {
    text-align: center;
    font-size: 1.20rem;
    display: block;
    margin: 5px;
    background: var(--gradientBottom);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 10px 7px;
    text-decoration: none;
}

nav a:link, a:visited {
    color: #f2bfbf;
}

nav a:hover, nav a:focus {
background:  var(--gradientBottom);
}

/* optional button styling like in the preview */
div.small > img {
display: block;
margin: 5px auto;
border:2px ridge var(--border);
border-radius: 5px;
}


section {
border: 2px ridge var(--border);
border-radius: 5px;
background: var(--gradientBottom);
padding: 5px;
background: rgba(0, 0, 0, 0.449);

}

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;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
font-style: italic;
}
