@import "fonts.css";
@import "colors.css";

body * {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  flex-flow: column nowrap;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

a, a:visited {
  text-decoration: none;
}

article a, section a {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  padding: 0 0.2em;
}

article a:hover, section a:hover {
  border-bottom-width: 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 0.8;
  font-family: var(--font-header);
  margin: 0.75em 0;
  align-self: center;
}

h1 {
  font-size: 2em;
  border-image-repeat: round;
  border-bottom-width: 60px;
  border-bottom-style: solid;
  margin-bottom: 0;
}

h2 {
  font-size: 1.5em;
}

h2, h3 {
  border-width: 1px;
  border-style: solid;
  padding: 0.5em;
}

h4, h5, h6 {
  align-self: center; 
  border-bottom-width: 30px;
  border-bottom-style: solid;
}

strong {
  font-weight: 900;
}

.focus-1 {
  background-image: var(--gradient-focus-1);
  font-weight: 500;
}

.focus-2 {
  background-image: var(--gradient-focus-2);
  font-weight: 500;
}

.focus-big {
  font-family: var(--font-rowdies);
  font-weight: 500;
  font-size: 1.25em;
  letter-spacing: -0.05em;
}

.tight {
  line-height: 0.9;
}

.small {
  font-size: 0.6em;
}

.italic {
  font-style: italic;
}

.heavy {
  font-weight: 700;
}

.rounded {
  border-radius: 3em;
}

.h-padding {
  padding: 0 0.5em;
}

.v-padding {
  padding: 0.5em 0;
}

a>* { 
  transition: transform 0.2s;
}

a:hover>* {
  transform: scale(1.1);
}

header {
  height: 15em;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#logotype {
  display: flex;
  justify-content: center;
  align-items: center;
}

#logotype img {
  max-height: 10em;
}

.badges {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  gap: 1em;
}

.badges a {
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-weight: 500;
  font-size: 1.5em;
  font-family: var(--font-rowdies);
}

main {
  font-size: 1.5em;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  width: 100%;
}


section>ul, section>ol, section>table {
  align-self: center;
}

section ul li {
  margin: 0 0 1em 0;
}

article {
  text-indent: 2em;
}

article, section {
  padding: 3em;
  max-width: 75%;
  line-height: 1.5;
  display: flex;
  flex-flow: column nowrap;
  align-items: start;
}

article p, section p {
}

section table {
  margin: 1em;
  border-style: solid;
  border-width: 1px;
}

section table th {
  padding: 1em; 
}

section table td {
  border-top-width: 1px;
  border-top-style: solid;
  padding: 0.5em;
}

.tiles {
  display: flex;
  flex-flow: row wrap;
  width: 100%;
}

.tiles p {
  box-sizing: border-box;
  border-width: 10px;
  border-style: solid;
}

.tiles>* {
  flex: 1 0 30%;
  display: flex;
  flex-flow: column wrap;
  min-height: 8em;
  text-align: center;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  padding: 0.5em;
}

.tiles picture {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tiles>a img {
  max-width: 70%;
  max-height: 70%;
}

.tiles>a>div {
  box-sizing: border-box;
  border-width: 10px;
  border-style: solid;
  font-size: 1.25em;
  width: 80%;
}

.tiles>a>div * {
  margin: 0;
}

.tiles .subtitle {
  font-size: 0.75em;
  padding: 0.5em;
  font-weight: 300em;
}

.vertical {
  flex-flow: column nowrap;
  justify-content: space-around;
  flex-basis: 1;
}

.socials {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 0.5em;
}

.socials>a {
  position: relative;
  flex: 0 1 30%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

.socials>a span {
  font-size: 0.75em;
  margin: 0;
}

.socials>a picture img {
  width: 1em;
}

footer {
  bottom: 0;
  width: 100%;
  text-align: center;
  margin: 2em 0;
  padding: 0 1em;
}

@media screen and (max-width: 1024px) {
  .tiles>* {
    flex: 1 0 40%;
  }
  article, section {
    max-width: 90%;
    padding: 0;
    margin: 0;
  }
}
@media screen and (max-width: 600px) {
  .tiles {
    flex-flow: column nowrap;
  }
  header img {
    height: 75%;
  }
  h1 {
    margin-top: 1em;
    font-size: 2em;
  }
  table * {
    padding: 0;
    font-size: 0.9em;
  }
}
