*, *:after, *:before {
  box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {text-wrap: balance;}

h1 {
    float: left;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    margin: 0; 
    color: rgb(255, 255, 255);
}

h2 {
    font-size: 1.6rem;
    color: rgb(53, 100, 126);
}

h3 {
    font-size: 1.4rem;
    color: rgb(53, 100, 126);
}

h4 {
    font-size: 1.2rem;
    color: rgb(53, 100, 126);
    margin-block: .5rem;
}
ul {
    margin: 0;
}
li {
    list-style: none;
}

p {
    line-height: 1.6;
    word-wrap: break-word;
}

a {
    color: rgb(53, 100, 126);
    font-weight: 600;
}
p, li, figcaption { 
    /*max-width: 75ch; */
    text-wrap: pretty;
}
/* ------ HEADER ------ */
header {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100px;
    background-color: rgb(52, 60, 68);
    padding: 1em 0 0;
}
.logo {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: center;
}
.logo a {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
	text-decoration: none;
}

h1 span {
    font-size: 3.2rem;
    color: rgb(154, 205, 50);
    font-family: Calibri, Helvetica, sans-serif;
}

.tag {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgb(220, 220, 220);
    margin: 0;
    padding-inline-start: 2rem;
}

nav {
    float: left;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
nav ul {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}
nav li { 
    padding: 1em;
    align-content: center;
    font-size: 1.25rem;
}

nav a {
    width: 100%;
    padding: 1em 1.5em;
}
nav a:link {
    color: rgb(255, 140, 0);
}
nav a:visited {
    color: rgb(255, 140, 0);
}
nav a:hover {
    color: rgb(67, 83, 99);
    background-color: rgb(255, 140, 0);
}
nav a:focus {
    color: rgb(154, 205, 50);
    background-color: rgb(67, 83, 99);
}
nav a:active {
    color: rgb(255, 255, 255);
    background-color: rgb(67, 83, 99);
}
nav li .active {
    color: rgb(255, 255, 255);
    background-color: rgb(67, 83, 99);
}

/* ------ MAIN ------ */
main {
    min-height: calc( 100vh - 182px);
    display: flex;
    flex-direction: column;
    width: 100%;
    float: left;
}

.pgecontent {
    float: left;
    display: flex;
    flex-direction: column;
    flex-flow: wrap;
    text-align: left;
    width: 100%;
    padding: .8rem;
    align-self: center;
    justify-content: space-around;
}
.form_pgecontent {
    float: left;
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    text-align: left;
    width: 100%;
    padding: 1em;
}
.frontpanel,
.panel,
.frontpanel_contact,
.cookie_panel,
.site_panel {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    margin: .5rem 0 .5rem;
    background-color: rgb(248, 248, 255);
}
.panel_title {
    width: 100%;
    background-color: rgb(154, 205, 50);
    text-align: center;
    padding: .5rem 2rem;
}
.panel_title2 {
    width: 100%;
    background-color: rgb(0, 191, 255);
    text-align: center;
    padding: .5rem 2rem;
}
.panel_title h2,
.panel_title2 h2 {
    color: rgb(52, 60, 68);
    margin-block: 0;
}
.panel_text {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	font-size: 1.1rem;
}
.panel_text h2, .panel_text h3 {
    margin: .375rem 0;
}
.ulcent {
    display: flex;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 500; 
    line-height: 1.5;
}
.ulcent li {
	list-style-type: circle;
	color: rgb(0, 116, 206);
}
.ulcent li::marker {color: rgb(154, 205, 50);font-size: 1.5rem;line-height: 1.1;}
.frontpanel p,
.panel p,
.frontpanel_contact p {
    width: 100%;
	padding: 0;
    margin: .25rem 0;
}
.cookie_panel p {
    margin: .5rem 0;
}
.cookie_panel > .panel_text {
    padding: 0 2rem;
}
.blank {
    background-color: transparent; 
}
.site_panel {
    justify-content: space-evenly;
}
.site_links {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 200px;
    justify-content: space-evenly;
    align-items: center;
}
.panel_link {
    float: left;
    display: flex;
    width: 90%;
    height: 80px;
    color: rgb(255, 255, 255);
    margin: .5rem .2rem;
}
.panel_link a {
    display: flex;
    width: 100%;
    color: rgb(255, 255, 255);
    background: rgb(67, 83, 99);
    text-decoration: underline;
    font-size: 1.3rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
}
.panel_link a:hover {
    color: rgb(67, 83, 99);
    background-color: rgb(255, 140, 0); 
}
.jws {border: solid 2px rgb(4, 98, 94);border-radius: 16px;padding-inline: 1rem;margin-block: 1rem;margin-inline: 5rem;}

@media only screen and (max-width: 500px) {
.jws {margin-inline: 1rem;}
}

/* ----- Form Fields ----- */
form {
float: left;
max-width: 600px; 
min-width: 100%;
margin: 0;
padding: 10px 20px;
background: rgb(248, 248, 255);
border: 2px solid rgb(154, 205, 50);
}

input,
textarea,
select {
cursor: pointer;
background: rgb(255,255,255);
font-family: inherit;
font-size: 16px;
height: auto;
outline: 0;
padding: 15px;
color: rgb(105, 108, 113);
border: 1px solid rgb(154, 205, 50);
box-shadow: 2px 2px 3px rgba(0,0,0,0.06) inset;
margin: 0 0 8px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
}

input[type="checkbox"] {
  margin: 0 4px 8px 0;
}

select {
  padding: 6px;
  height: 32px;
  border-radius: 2px;
}

button {
    float: right;
  cursor: pointer;
  padding: 1em;
  color: rgb(102, 51, 153);
  background-color: rgb(255, 255, 255);
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
  font-style: normal;
  border-radius: 5px;
  border: 1px solid rgb(19, 167, 216);
  box-shadow: 0 -2px 0 rgb(19, 167, 216) inset;
  margin-bottom: 10px;
}

label {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgb(67, 83, 99);
    display: block;
}

.error {
    color: rgb(220, 20, 60);
    font-size: 1.2rem;
}

button:hover {
    background-color: rgb(0, 191, 255);
}
.order {
    order: -1;
}
/* ------ FOOTER ------ */
footer {
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgb(67, 83, 99);
    padding: 1rem;
    font-weight: 500;
    font-size: 1.2rem;
}
.contact,
.foot_nav,
.copy {
    float: left;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.copy {
    justify-content: flex-end;
}
.foot_nav {
    order: -1;
}
.contact a,
.foot_nav a {
    padding: .75rem;
}
footer a:link {
    color: rgb(255, 255, 255);
}
footer a:visited {
    color: rgb(255, 255, 255);
}
footer a:hover {
    color: rgb(239, 118, 34);
}
footer a:focus {
    color: rgb(255, 255, 255);
}
footer a:active {
    color: rgb(255, 255, 255);
}

footer p {
    margin: 0;
}
.it {
    color: rgb(163, 211, 77);
    font-family: Calibri, Helvetica, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}
 
@media only screen and (min-width: 48em) {
    
    header {
        flex-direction: row;
        padding: 0;
        padding-inline-start: 1rem;
    }
    .logo {
        width: 60%;
    }
    .logo a {
        width: 58%;
    }
    nav {
        width: 40%;
    }
    .panel h2 {
        text-align: left;
    }
    .contact,
    .foot_nav {
        width: 25%;
    }
    .foot_nav {
        order: 1;
    }
    .copy {
        width: 50%;
    }
    .site {
        float: right;
        padding: 0 1rem 0 0;
    }
    form {
        min-width: 50%;
    }    
    .frontpanel_contact {
        float: left;
        width: 40%;
    }
    .form_pgecontent {
        width: 100%;
        justify-content: space-around;
        padding: 2rem 0;
    }
    .site_links {
        flex-direction: row;
    }
    .panel_link {
        width: 30%;
    }
    footer {
        flex-direction: row;
    }
    .order {
        order: 1;
    }
}
@media only screen and (min-width: 50.5em) {

    .pgecontent {
        width: 100%;
        justify-content: space-around;
    }
    .frontpanel {
        float: left;
        width: 49%;
        margin: 0 0 .5rem;
    }
    .frontpanel:nth-of-type(odd) {
        margin: 0 .5rem .5rem 0;
    }
    .cookie_panel {
        width: 80%;
        margin: 0;
    }

    @supports (display: flex) {
    
        .pgecontent {
            display: flex;
            flex-direction: row;
            flex-flow: wrap;
            width: 95%;
            text-align: left;
            padding: 1rem 0;
        }
    }
} 