/* spillerfarm theme */

:root {
    --farm-green: #246120;
    --farm-lime: #7fc41c;
    --farm-ltgreen: #a4bf94;
}
body {
    min-height: 100vh;
    min-width: 360px;
    max-width: 960px;
    background-color: var(--farm-green);
    font-family: "Lucida Grande", "Lucida Sans Unicode",
		 "Trebuchet MS", Verdana, sans-serif;
    line-height: 1.4;
    margin: auto;
}
header {
    padding-top: 1em;
    text-align: center;
    border-radius: 5px;
    margin: auto;
    background-color: var(--farm-ltgreen);
    background-image: url(assets/bg.jpg);
    background-size: 100% auto;
    background-repeat: repeat-y;
    border-bottom: 3px solid var(--farm-lime);
    max-width: 960px;
}
header h1, address {
    font-size: xx-large;
    font-family: serif;
    margin: 0;
}
header address {
    font-size: x-large;
    margin: -10px;
}
header h1 {
    margin-bottom: .5em;
    color: green;
}
header img {
    width: 100%;
    max-width: 960px;
    height: auto;
    margin: 1em auto 0 ;
}
nav {
    margin: 0;
    padding: 0;
}
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}
nav a {
    text-decoration: none;
    color: black;
    font-weight: bolder;
    padding: 5px 6px;
    background-color: rgb(169, 195, 154);
}
nav a:hover {
    background-color: var(--farm-green);
    color: white !important;
}
main {
    background-color: rgb(238,238,238);
    max-width: 960px;
    margin: auto;
}
aside {
    display : none;
    background-color: rgb(169,195,154)
}
body, h3 {
    font-size: medium;
}
h2 {
    font-size: large ;
}
p, h2, h3 {
    padding: 0; margin: 0 1em;
}
#current-date {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgb(238,238,238);
    border: 0;
    margin: 0;
    padding: 5px;
    color: #888888;
}
body[data-route="index"] main {
    position: relative;
    margin: 0;
    display: flex;
    min-height: 100vh;
}
body[data-route="index"] aside {
    display: block;
    flex: 0 0 300px;
}
body[data-route="index"] article {
    flex: 1;
}
body[data-route="index"] nav a[href="/home"],
body[data-route="upick"] nav a[href="/upick"],
body[data-route="markets"] nav a[href="/markets"],
body[data-route="school"] nav a[href="/school"],
body[data-route="directions"] nav a[href="/directions"] {
    color: green
}
.ctl--edit {
    opacity: 0.55;
}
.ql-container {
    height: inherit;
}

/* Phones: stack the home page body  */
@media (max-width: 800px) {
    body[data-route="index"] {
	main { flex-direction: column; }
	article, aside { flex: 0 0 auto; }
    }
    nav ul {
	margin: auto;
	width: 360px;
	gap: 5px;
    }
}
@media (min-width: 900px) {
    body[data-route="upick"] article {
	background-image:
	    url("assets/legacy/pickingberries.jpg"),
	    url("assets/legacy/rasp3.jpg"),
	    url("assets/legacy/images.jpg"),
	    url("assets/legacy/pumpkins.jpg");
	background-repeat: no-repeat;
	background-size: 200px auto;
	background-position:
	    left 24px top 30%,   /* strawberry picking — by Strawberries */
	    right 24px top 30%,  /* raspberries        — by Strawberries */
	    left 24px top 60%,   /* apples             — by Apples */
	    right 24px top 60%;  /* pumpkins           — by Apples */
    }
}
