html,
body,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
dl,
dt,
dd,
form,
fieldset,
caption,
table,
tr,
td,
th,
address,
blockquote,
img {
  margin: 0;
  padding: 0;
}

img,
fieldset,
object {
  border: none;
}

ul {
  list-style: none;
}

*,
*:after,
*:before {
  flex: 1 0 auto;
  /* safari bugfix */
  box-sizing: border-box;
  font-family: "noto sans", sans-serif;
}

button,
select,
textarea,
input {
  font-family: "noto sans", sans-serif;
}

button,
label {
  cursor: pointer;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--primary-text-color);
  background-color: rgba(64, 150, 175, .10);
}

body>header {
  border-bottom: 1px solid #033030;
  flex-grow: 0;
  background-color: var(--logo-blue);
  color: var(--color-header-text);
}

body>header>a {
  color: var(--color-header-text);
  text-decoration: none;
}

body>header>a:hover,
body>header>a:active,
body>header>a:focus {
  color: var(--color-header-text);
}
body>main {
  max-width: min(100%, 45rem);
  padding: 2rem 4rem;
  flex-grow: 1;
  justify-content: stretch;
  justify-self: stretch;
  align-self: center;
}

body>footer {
  border-top: 1px solid #030303;
  padding: 2rem;
  flex-grow: 0;
  background-color: var(--logo-blue);
  color: var(--color-footer-text);
  justify-self: stretch;
}

body>main>section {
  margin-bottom: 2rem;
}

body>main>header {
  margin-top: 1rem;
}


form#login>header {
  display: flex;
  flex-direction: column;
}

body>main>form>fieldset,
form#login>fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body>main>form>fieldset>label,
form#login>fieldset>label {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
}

body>main>form>fieldset>label>small {
  padding: 0 1em;
  padding-top: 0.25em;
}

body>main>form>header,
form#login>header {
  margin-bottom: 2rem;
}

body>main h2,
body>main h3,
body>main h4 {
  font-family: var(--accent-font-bold-family);
  color: var(--logo-red);
}

body>main h2 {
  font-size: 1.5rem;
}

body>main h3, 
body>main h4 {
  font-size: 1rem;
  font-family: 'lovelo';
  font-weight: normal;
}

body>main .errors,
body>main .success {
  border: 1px solid transparent;
  padding: 1em;
  margin: 1em 0;
}

body>main .errors a,
body>main .success a {
  text-decoration: none;
  color: inherit;
}

body>main .errors a:hover,
body>main .errors a:focus,
body>main .success a:focus,
body>main .success a:hover {
  text-decoration: underline;
}

body>main .errors {
  background-color: rgba(225, 0, 0, 0.1);
  border-color: darkred;
  color: darkred;
}

body>main .success {
  color: var(--success-text);
  background-color: var(--success-background);
  border-color: var(--success-text);
}

body>main .success a {
  color: var(--success-link);
}

body>footer {
  margin-top: 2rem 1rem;
  display: flex;
  flex-direction: row;
  color: var(--secondary-text-color);
  font-size: .8rem;
}

body>footer>* {
  flex-grow: 0;
}

body>footer *:first-child {
  flex-grow: 1;
}

/* primary header */

#top {
  padding: 0 0.75rem;
}

#top h1 {
  font-size: 3rem;
  font-family: var(--accent-font-bold-family);
  justify-self: center;
  margin-top: 1rem;
  color: var(--logo-red);
}

#top h1~* {
  flex-grow: 0;
}

#top a {
  text-decoration: none;
}

#top nav {
  margin: 0.75rem 0;
}

#top nav ul {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  gap: 2rem;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 1rem;
}

#top nav li {
  list-style: none;
  flex-grow: 0;
}

form button[type="submit"] {
  appearance: none;
  border: none;
  opacity: 1;
}

#top li a,
form button[type="submit"] {
  padding: 0.25rem 1rem;
  transition: 0.2s;
  font-size: 1.1rem;
  display: inline-block;
  position: relative;
  color:purple;
  font-weight: bold;
  font-variant: small-caps;
  text-transform: uppercase;
  xfont-family: var(--accent-font-family);
  background-color: var(--logo-gold);
  border: 1px solid purple;
  border-radius: .5rem;
}

#top li a:hover,
#top li a:focus,
form button[type="submit"]:hover,
form button[type="submit"]:focus {
  transform: scale(1.25);
  color: white;
  font-weight: bold;
  border-color: white;
  background-color: var(--logo-red);
}

form button[type="submit"]:hover,
form button[type="submit"]:focus {
  transform: unset;
}

input.required::after {
  content: "*";
  position: relative;
  color: red;
  font-size: 4rem;
  left: 2%;
  right: 2%;
  z-index: 2;
}

.modal,
.modal>.modal-close {
  position: fixed;
  top: 110%;
  left: 110%;
  right: 0;
  bottom: 0;
  overflow: auto;
  scroll-behavior: smooth;
  cursor: default;
}

.modal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  flex-direction: column;
  opacity: 0;
}

.modal .modal-close>span {
  position: absolute;
  right: -100%;
  bottom: -100%;
  width: 0;
  height: 0;
  display: none;
}

.modal>div,
form#login {
  border: var(--border-thick);
  background-color: var(--flow-background);
  color: var(--primary-text-color);
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  max-width: min(80%, 40rem);
  flex-grow: 0;
  box-shadow: .25rem .25rem .5rem gray;
}

.modal:target {
  opacity: 1;
  transition: opacity .25s;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
}

.modal>div>header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-bottom: 1rem;
}

.modal>div>header .modal-close {
  flex-grow: 0;
  text-decoration: none;
}

.modal>div>footer,
form#login>footer {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.actions>*,
form#login>footer>* {
  flex-grow: 0;
}

.icon-close::after {
  content: 'X';
  font-size: 1rem;
  color: var(--primary-text-color);
}

form#login {
  margin-top: min(10rem, 20%);
  min-width: min(80%, 30rem);
  box-shadow: unset;
  border: var(--border-thin);
}

form#login .errors,
body>main>section p:not(:last-child) {
  margin-bottom: 1rem;
}

form#login .errors {
  margin-top: 0;
  margin-bottom: 2rem;
}

#mailing-list {
  background-color: var(--mailing-list-background);
  color: var(--mailing-list-text);
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  border: var(--border-thin);
}

#mailing-list>header {
  display: block;
}

#mailing-list>form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 1rem;
}

#mailing-list>header p {
  color: var(--mailing-list-header);
  margin-bottom: 1rem;
}

#mailing-list>form>fieldset {
  flex-grow: 1;
}

#mailing-list>form>fieldset input {
  width: 100%;
}

#mailing-list>form>footer {
  flex-grow: 0;
}

.news {
  padding: 1rem 0rem;
  margin: 0;
}

.news h3 {
  font-size: 1.25rem;
  font-family: "noto sans", sans-serif;
  font-weight: bold;
}

.news > div {
  color: var(--secondary-text-color);
}

.newslist li:not(:last-child) {
  border-bottom: 1px solid plum;
}

.news>small {
  margin-top: .5rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.news>small>a {
  flex-grow: 0;
  text-decoration: none;
  color: var(--secondary-text-color);
}

.news>small>a:hover,
.news>small>a:focus {
  text-decoration: underline;
  color: var(--primary-text-color);
}