@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://use.typekit.net/pdd8igz.css");

/* ============= ELEMENT SELECTORS ============ */

body {
  font-size: 20px;
  line-height: 1.5;
}
body.frontpage::before {
  content: "";
  display: block;
  height: 100vh;
  background: url(../img/page-bg.jpg) no-repeat bottom center;
  background-size: border-box;
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-weight: bold;
  text-align: center;
  color: #004731;
}
h1 {
  font-size: 70px;
  margin: 0 0 50px 0;
}
h2 {
  font-size: 50px;
  margin: 50px 0;
}
h3 {
  text-align: left;
  font-size: 30px;
  margin: 40px 0 10px 0;
}
h4 {
  margin: 20px 0 10px 0;
  font-size: 22px;
}
p {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.content ul {
  margin: 40px 0;
  padding-left: 40px;
  list-style-type: disc;
}

/* ============= STRUCTURE ============ */

.page-wrapper {
  display: flex;
  flex-direction: column;
}
.inner-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 100px;
}

.page-header {
  margin-top: 55px;
  position: absolute;
  background-color: #004731;
  color: #f2d457;
  padding: 20px 0;
}

.main {
  flex: 1;
}
.footer__top,
.footer__bottom {
  padding: 30px;
  text-align: center;
  line-height: 2.5;
  font-family: Arial, Helvetica, sans-serif;
}
.footer__top {
  background-color: #42464f;
  text-transform: uppercase;
  letter-spacing: 5px;
}
.footer__bottom {
  background-color: #30333d;
  color: #999;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============= MENU ============ */

.menu-primary {
  font-size: 20px;
  padding: 0 20px;
  text-transform: uppercase;
  width: 100%;
}
.menu-primary ul {
  display: flex;
}
.menu-primary li {
  background-color: #004731;
}
.menu-primary li:nth-child(3) {
  margin-right: auto;
}
.menu-primary a {
  display: flex;
  padding: 15px 30px;
  text-decoration: none;
  color: #fff;
  color: #f2d457;
}
#menu-primary__button-trigger {
  display: none;
}

/* ============= LOGO ============ */

.logo {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  margin: 0 auto;
}
.logo__text {
  font-family: nueva-std, serif;
  font-weight: 700;
  font-style: normal;
  font-size: 30px;
  text-transform: uppercase;
  background-color: #004731;
  color: #fff;
  padding: 10px 30px;
  transition: font-size 0.5s;
}
.logo__text::before,
.logo__text::after {
  content: "";
  background-color: #0c6d4f;
  display: block;
  width: 30px;
  height: 10px;
  position: absolute;
  bottom: -18px;
  z-index: -1;
}
.logo__text::before {
  left: 0;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.logo__text::after {
  right: 0;
  clip-path: polygon(0 0, 0 100%, 100% 0);
}
.logo__symbol {
  position: absolute;
  top: 15px;
  transform: translateY(-100%);
  transition: top 0.5s;
}
.logo::before,
.logo::after {
  content: "";
  display: block;
  background-color: #01371f;
  width: 60px;
  height: 60px;
  position: absolute;
  z-index: -2;
  bottom: -18px;
}
.logo::before {
  left: 30px;
  transform: translateX(-100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%);
}
.logo::after {
  right: 30px;
  transform: translateX(100%) rotate(180deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%);
}

/* ============= HERO ============ */

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.frontpage .hero {
  margin: 0 40px;
}
.hero:not(.frontpage .hero) {
  min-height: 600px;
  margin-top: 220px;
  background: #ccc center no-repeat;
  border-top: solid 1px #000;
  border-bottom: solid 1px #000;
}

/* ============= SEARCH ============ */

.search {
  display: flex;
  width: 800px;
  max-width: 100%;
}
.search input {
  font-size: 30px;
  color: #000;
  width: 100%;
  height: 60px;
  border: none;
  padding: 15px;
  box-sizing: border-box;
  outline: none;
}
.search input[type="submit"] {
  color: #fff;
  width: 60px;
  height: 60px;
  background: #004731 url(../img/search_white_24dp.svg) no-repeat center;
  background-size: 80%;
}

/* ============= SECTIONS ============ */

.section {
  background-color: #fff;
  padding: 50px 30px;
}
main .section:nth-child(2n + 2) {
  background-color: #eee;
}

/* ============= TABLES ============ */

.content table {
  margin-top: 40px;
}
.content table thead tr {
  background-color: #004731;
  color: #fff;
}
.content table tbody tr:nth-child(even) {
  background-color: #eee;
  color: #000;
}
.content table th,
.content table td {
  padding: 15px;
  text-align: left;
}

/* ============= CARD ============ */

.cards-large,
.cards-small {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.card {
  position: relative;
  flex: 1;
}
.card__img {
  position: relative;
}
.card__img::before {
  content: "";
  display: block;
  position: absolute;
  width: 52px;
  height: 26px;
  border-radius: 0 0 26px 26px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background-color: #fff;
}
.card__img img {
  display: block;
}
.card__text {
  background-color: #004731;
  color: #fff;
  line-height: 1.5;
  font-size: 20px;
  padding: 10px 20px;
  width: calc(100% + 20px);
  margin-left: -20px;
  box-sizing: border-box;
  position: absolute;
  text-transform: uppercase;
  text-align: center;
  bottom: 50px;
}
.card__text::before {
  content: "";
  display: block;
  width: 21px;
  height: 10px;
  background-color: #0c6d4f;
  position: absolute;
  top: -9px;
  left: 0;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  text-transform: uppercase;
}

/* ============= CARD SMALL ============ */

.card-small {
  display: flex;
  flex-wrap: wrap;
  width: calc(calc(100% / 3) - 27px);
}
.card-small__img {
  width: 100px;
  height: 100px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}
.card-small__text {
  flex: 1;
  color: #000;
  padding-left: 20px;
  box-sizing: border-box;
  font-size: 24px;
  display: flex;
  align-items: center;
  font-weight: bold;
}
.card-small a {
  text-decoration: none;
  color: #004731;
}

/* ============= GRID ============ */

.grid-parent {
  display: flex;
  gap: 40px;
}
.grid-child-50 {
  width: 50%;
}

/* ============= WEB ANIMATION ============ */

@keyframes move {
  100% {
    transform: translateY(-50%);
  }
}

.arrow-down {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.8) url(../img/arrow_downward_white_24dp.svg)
    no-repeat center;
  background-size: 60%;
  position: absolute;
  bottom: 50px;
  left: 50%;
  margin-left: -50px;
  border-radius: 50%;
  animation: move 0.5s alternate infinite;
}

.btn {
  background-color: #004731;
  color: #f2d457;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: 150px;
  position: relative;
  font-size: 24px;
  margin: 0 auto;
  margin-top: 40px;
}
.btn::before,
.btn::after {
  content: "";
  display: inline-block;
  background-color: inherit;
  width: 25px;
  height: 25px;
  position: absolute;
}
.btn::before {
  border-radius: 25px;
  left: -12px;
}
.btn::after {
  border-radius: 25px;
  right: -12px;
}

/* ============= Login Page ============ */

/* Center the login form */
.login-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 20vh auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.login-wrapper h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.login-wrapper label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin: 10px 0 5px;
  color: #555;
}

input[type="text"],
input[type="password"] {
  width: 92%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #0066cc;
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

.login-wrapper input[type="submit"] {
  width: 100%;
  background: #008000;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.login-wrapper input[type="submit"]:hover {
  background: #00aa00;
}

.login-wrapper .error-message {
  color: red;
  margin-top: 10px;
}
