/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::after,
*::before {
  box-sizing: border-box;
}

/*
  2. Remove default margin
*/
* {
  margin: 0;
}

/*
  3. Allow percentage-based heights in the application
*/
html {
  height: 100%;
  min-height: 100%;
}

/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/*
  6. Improve media defaults
*/
canvas,
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

/*
  7. Remove built-in form typography styles
*/
button,
input,
select,
textarea {
  font: inherit;
}

/*
  8. Avoid text overflows
*/
h1,
h2,
h3,
h4,
h5,
h6,
p {
  overflow-wrap: break-word;
}

@media screen and (min-width: 960px) {
  html {
    overflow-y: scroll;
  }
}

body {
  background-image: linear-gradient(#FFE29C, #fef8e8);
  font-family: Arial, sans-serif;
  font-size: 12px;
  height: 100%;
}

@media all and (min-width: 720px) and (min-height: 720px) {
  body {
    font-size: 16px;
  }
}

#wrapper {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  min-height: 500px;
  color: #000000;
  display: flex;
  flex-direction: column;
}

header {
  font-family: Helvetica, Arial, sans-serif;
  text-align: center;
  padding: 0;
  background-color: #FFE29C;
  color: #ffffff;
  line-height: 1;
  padding-bottom: 0.5rem;
  padding-top: 0.25rem;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(#254d9a, #003361);
  width: 100%;
}

header img {
  margin: 0 auto;
  display: none;
}

header h1 {
  font-variant: normal;
  font-size: 1rem;
  line-height: 1;
  text-shadow: black 3px 0 0px, black 2.83487px 0.98158px 0px, black 2.35766px 1.85511px 0px, black 1.62091px 2.52441px 0px, black 0.70571px 2.91581px 0px, black -0.28717px 2.98622px 0px, black -1.24844px 2.72789px 0px, black -2.07227px 2.16926px 0px, black -2.66798px 1.37182px 0px, black -2.96998px 0.42336px 0px, black -2.94502px -0.5717px 0px, black -2.59586px -1.50383px 0px, black -1.96093px -2.27041px 0px, black -1.11013px -2.78704px 0px, black -0.13712px -2.99686px 0px, black 0.85099px -2.87677px 0px, black 1.74541px -2.43999px 0px, black 2.44769px -1.73459px 0px, black 2.88051px -0.83825px 0;
}

header h1 strong {
  font-size: 2rem;
}

@media all and (min-width: 720px) and (min-height: 720px) {
  header {
    padding-bottom: 1rem;
  }
  header h1 {
    font-size: 2.25rem;
  }
  header h1 strong {
    font-size: 4rem;
  }
}

nav {
  font-variant: small-caps;
  display: flex;
  justify-content: center;
  gap: 0.25em;
  width: 100%;
}

nav a {
  border-color: #000000;
  border-style: solid;
  text-align: center;
  background-color: #FFFFEE;
  font-weight: bold;
  display: block;
  padding: 0.25em 1em;
}

main {
  padding: 1em;
  text-align: center;
  min-height: 320px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}

@media all and (min-width: 810px) {
  main {
    box-shadow: 0 0 20px -10px black;
  }
}

h2 {
  font-variant: small-caps;
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 0;
}

#vereine {
  border: 1px solid #545454;
  width: 100%;
  margin: 1em auto 0;
  border-collapse: collapse;
}

#vereine th {
  border: 1px solid #545454;
  padding: 0.25em 0.5em;
  text-align: center;
  background-color: #f5b930;
  font-weight: bold;
}

#vereine tr {
  border: none;
}

#vereine tr:nth-of-type(even) td {
  background-color: #ececec;
}

#vereine tr td {
  border: 1px solid #545454;
  text-align: center;
  background-color: #FFFFFF;
}

#vereine tr td:nth-of-type(1) {
  font-weight: bold;
}

#vereine tr td:nth-of-type(2) {
  font-size: 0.8em;
  padding: 0.25em 0.5em;
}

#vereine tr td a {
  display: block;
  padding: 0.25em 0.5em;
}

nav a:visited {
  color: #000000;
  text-decoration: none;
}

nav a:active {
  color: #000000;
  text-decoration: none;
}

nav a:link {
  color: #000000;
  text-decoration: none;
}

nav a:hover {
  text-decoration: none;
  color: #6699CC;
}

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

a:active:hover,
a:link:hover,
a:visited:hover {
  text-decoration: none;
  color: #6699CC;
}

.bgpop {
  background-image: none;
  background-color: #6699CC;
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #FFFFFF;
}

footer {
  background-color: #FFFFEE;
  color: #000000;
  text-align: center;
  padding: 0.5em;
  border-top: 1px solid black;
  margin: 0 auto;
  font-size: 0.5rem;
  font-style: italic;
  width: 100%;
}

@media all and (min-width: 600px) {
  footer {
    font-size: 0.8rem;
  }
}

footer a:visited {
  color: #165696;
  text-decoration: none;
}

footer a:active {
  color: #165696;
  text-decoration: none;
}

footer a:link {
  color: #165696;
  text-decoration: none;
}

footer a:hover {
  text-decoration: none;
  color: #6699CC;
}

p {
  margin-bottom: 1em;
}
