@import "colors.css";

@keyframes SlideIn {
  0% {
    transform: translateX(-10%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.appearAnimation {
  opacity: 1;
  animation: 1s cubic-bezier(.09, .68, .47, .92) SlideIn;
}

.article-image-left {
  max-width: 30rem;
  max-height: 40rem;
  float: left;
  margin: 2rem 2rem 2rem 0rem;
}

.article-image-right {
  max-width: 30rem;
  max-height: 40rem;
  float: right;
  margin: 2rem 0rem 2rem 2rem;
}

.article-wide {
  max-width: 60vw;
  margin-left: auto;
  margin-right: auto;
  display: block;
  object-fit: cover;
}

table {
  table-layout: auto;
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #aaa;
  border-bottom: 0.2rem solid var(--secondary);
  text-align: center;
  filter: drop-shadow(3px 3px 0.2rem rgba(0, 0, 0, 0.3));
}

table a {
  color: var(--ternary);
}

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

tr:nth-child(odd) {
  background-color: var(--shadow);
}

td,
th {
  padding: 0.7rem 0.3rem;
}

td {
  max-width: 9rem;
}

th {
  background-color: var(--secondary);
  font-weight: normal;
  font-size: large;
  color: white;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Helvetica";

}

body h1,
body h2,
body h3 {
  font-family: Georgia;
}

p {
  text-align: justify;
}

h1 {
  font-weight: bold;
}

.content {
  margin-top: 5rem;
  margin-left: 20vw;
  margin-right: 20vw;
  margin-bottom: 5rem;
}

.content h1 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.content h2 {
  margin-top: 2rem;
  margin-bottom: 0;
}

.content#our-team {
  text-align: center;
}

.content#our-team h1 {
  margin-top: 3em;
  font-family: Georgia;
  font-weight: bold;
}

.content#our-team h1::after {
  content: ' ';
  display: block;
  border: 3px solid var(--secondary);
  border-radius: 32px;
  width: 3em;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.2em;
}

.banner {
  position: relative;
  width: 100%;
  height: 35rem;
  display: flex;
  align-items: flex-end;
}

.banner::after {
  content: "";
  width: 100%;
  height: 0.5rem;
  background-color: var(--secondary);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
}

.banner-content {
  margin-left: 12vw;
  margin-right: 20vw;
  margin-bottom: 3rem;
  color: var(--primary);
}

h1.banner-title {
  margin-top: 0;
  font-family: Georgia;
  font-size: 3.5rem;
}

h1.banner-title::before {
  content: ' ';
  border: 3px solid var(--primary);
  border-radius: 32px;
  width: 3em;
  margin-top: 0.2em;
  margin-right: 2rem;
}

h1.banner-title::after {
  display: none;
}

.portraits {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
  max-width: 1100px;
  gap: 5em 9em;
}

.portrait {
  width: 15em;
  height: 100%;
}

.portrait-image {
  position: relative;
  align-self: center;
  width: 14em;
  border-radius: 50%;
  filter: drop-shadow(1px 5px 0px var(--portrait-shadow))
}

.portrait-name {
  margin: 0;
  font-family: Georgia;
  font-size: 1.6rem;
}

.portrait-function {
  margin: 0;
  font-family: Helvetica;
  font-weight: normal;
  color: var(--ternary);
}

@media only screen and (max-width: 1200px) {
  .content {
    margin-left: 5vw;
    margin-right: 5vw;
  }

  .banner-content {
    width: 80%;
    margin: 0 0 6vw 6vw;
  }

  h1.banner-title {
    font-size: min(10vw, 3.2rem);
  }

  h1.banner-title::before {
    display: none;
  }

  .article-image-left {
    max-width: 90vw;
    float: none;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .article-image-right {
    max-width: 90vw;
    float: none;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 483px) {
  .portrait-image {
    width: 55vw;
  }
}
