/* main color definition */
:root {
  --primary: #ffffff;
  --menu: #54c22d;
  --menuhover: #208807;
  --background: #eeeeee;
  --focus: #c32e04;
}


/* dom object definition */

* {
  -moz-box-sizing: content-box;
  box-sizing: border-box;
}

a:link, a:visited, a:active {
  text-decoration: none;
  color: black;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: blue;
  text-decoration-thickness: 5px;
}


body {
  background-color: var(--background);
  font-size: 1.5em;
}

form {
  width: 90%;
  display: inline-block;
}

form * {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
}

input, select {
  font-size: 1em;
  width: 50%;
  border-radius: 0.5em;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

label {
  text-align: right;
  float: left;
  width: 25%;
}

textarea {
  font-size: 1em;
  width: 60%;
  border-radius: 0.5em;
  padding: 0.5em;
}

button, input[type="button"] {
  font-size: 1em;
  border-radius: 0.5em;
  width: 30%;
  background-color: var(--menu);
}

button:hover, input[type="button"]:hover {
  background-color: var(--menuhover);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.50em;
}

tr:nth-child(even) {
  background-color: #eeeeee;
}


/* definitions by id */

#header {
  width: 100%;
  text-align: center;
  color: black;
  padding: 0.1em;
  position: relative;
}

#header > img {
  width: 100%;
}

#header > h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#content {
  text-align: center;
  min-height: 600px;
  max-width: 1400px;
  margin: auto;
}

#footer {
  text-align: center;
  margin-top: 1em;
  width: 100%;
  background-color: var(--primary);
}

#footer * {
  border: 0.5em;
}


/* dom class definition */

.spacer {
  padding: 0.5em;
}

.textblock {
  width: 90%;
  display: inline-block;
  background-color: #fff;
  border-radius: 1em;
  padding: 0.5em;
  margin: 1em;
}

.textblock > ul {
  list-style: none;
}

.textblock > h1 {
  font-size: 1.25em;
  font-weight: bold;
}

.textblock > img {
  max-width: 98%;
  max-height: 98%;
}

.error {
  background-color: #eeee00;
  text-align: left;
  margin: auto;
  padding: 0.5em;
  border-radius: 1em;
  width: 90%;
}

/* news classes */

.news_article {
  background-color: #fff;
  text-align: left;
  margin: auto;
  margin-top: 1em;
  padding: 0.5em;
  border-radius: 1em;
  width: 90%;
}

.news_title {
  font-weight: bold;
  font-size: 2em;
  color: black;
  margin-bottom: 0.5em;
}

.news_description {
}

.news_info {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #777777;
}

.news_img {
  margin-top: 2em;
  text-align: center;
  font-size: 0.6em;
  color: #777777;
}

.news_img > img {
  max-width: 100%;
  height: auto;
}

.news_text {
  margin-top: 2em;
  margin-bottom: 1em;
}

.news_article > a {
  font-weight: bold;
}

.timetable > li {
  margin-top: 0.5em;
}

/* Navigation elements */

nav {
  width: 100%;
  background-color: var(--primary);
  text-align: center;
  position: sticky;
  top: 0px;
  margin-bottom: 1em;
}

nav ul {
    list-style: none;
    padding-left: 0;
}

nav ul li {
    display: inline-block;
    text-align: left;
}

nav a {
    display: block;
    padding: 0 16px;
    transition: color 0.2s;
    line-height: 2;
    text-decoration: none;
}

nav ul ul {
    display: none;
    position: absolute;
    background: var(--primary);
    border: 1px solid black;
    padding: 8px 0 8px 0;
}
nav ul ul li {
    display: list-item;
    position: relative;
}

nav ul li:focus > ul,
nav ul li:hover > ul,
nav ul li:active > ul {
    display: inherit;
}

nav a:focus + ul,
nav a:hover + ul,
nav a:active + ul {
    display: inherit;
}


/* group classes */

.group_presentation {
  background-color: #fff;
  text-align: left;
  margin: auto;
  margin-top: 1em;
  padding: 0.5em;
  border-radius: 1em;
  width: 80%;
}

.group_title {
  font-weight: bold;
  font-size: 2em;
  text-align: center;
  color: black;
  margin-bottom: 0.5em;
}

.group_description {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #777777;
}

.group_text {
  margin-top: 2em;
  margin-bottom: 1em;
}

.group_img {
  margin-top: 2em;
  text-align: center;
  font-size: 0.6em;
  color: #777777;
}

.group_img > img {
  max-width: 100%;
  height: auto;
}
