/* Globals */
* {
  box-sizing: border-box;
}

body {
  font-family: "Libre Franklin", serif;
  margin: 0;
  color: #010101;
}

p {
  font-size: 18px;
  line-height: 24px;
  /* line-height: 1.5rem; */
  letter-spacing: 0.02px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Libre Baskerville", sans-serif;
  letter-spacing: 0.1px;
  color: #001619;
  text-align: left;
  margin-block: 0;
}

button {
  font-family: "Libre Franklin", sans-serif;
  letter-spacing: 1px;
  font-size: 16px;
  padding: 10px 20px;
  border: 0;
  /* border-radius: 5px; */
  background: #004f59;
  color: #fff;
  cursor: pointer;
  transition: 0.5s;
}

h1 {
  font-size: 2.5rem;
  line-height: 2.5rem;
}

h4 a {
  color: #001619;
}

a {
  color: #004f59;
}

.sfw-title {
  font-family: "Libre Baskerville", sans-serif;
  letter-spacing: 0.1px;
}

.text-ellipsis {
  font-family: "Libre Franklin", serif;
  font-size: 16px;
}

.background-img {
  z-index: -1;
  position: relative;
  background-image: url("images/grain.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.main-container {
  /* margin-top: 15vh !important; */
  max-width: 880px;
  padding: 40px;
  margin: auto;
  background-color: #fefefe;
  /* background: #ecdcc1; */
  /* box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); */
}

@media screen and (max-width: 768px) {
  .main-container {
    padding: 10px 0px;
  }

  .justify-text {
    text-align: left;
  }
}

/* Utils */

.content-splitter {
  margin: 40px 0 30px 0;
}

.centre-text {
  text-align: center;
}

.justify-text {
  text-align: justify;
}

.container {
  max-width: 800px;
  margin: auto;
  /* padding: 20px; */
}

.border-thick {
  border-radius: 10px;
  border: 4px solid #fff;
}

.border-round-thin {
  border-radius: 5px;
  border: 2px solid #004f59;
  /* border: 2px solid #fff; */
}

.right-align {
  text-align: right;
}

.left-align {
  text-align: left;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 10px;
}

.flex-gap-10 {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
}

.flex-gap-20 {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 20px;
}

.margin-btm-20 {
  padding-bottom: 20px;
}

/* Intro */

.logo {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.header {
  margin-top: 20vh;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

header-flex h1,
header-flex h4 {
  margin: 0;
}

.intro-summary {
  margin-top: 40px;
  padding: 0px 40px;
}

.intro-summary hr {
  margin-bottom: 20px;
}

/* Body */

.content-container {
  padding: 0 40px;
}

.start-here-section {
  position: absolute;
  top: 50px;
  left: 0;
  transform: translateX(-60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.start-here {
  z-index: 10;
  transform: translateX(-55%) translateY(50%) rotate(-15deg);
  background: #84011e;
  color: #fff;
  padding: 0 10px;
  border: #fff 2px solid;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.arrow {
  z-index: 9;
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  -webkit-filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.video-wrapper {
  box-sizing: border-box;
  width: 100%;
  margin: 40px auto;
  background: #000;
  overflow: hidden;
}

.iframe-wrapper {
  transform: scale(1.01);
  aspect-ratio: 16 / 9;
}

/* Substack */

.substack-container {
  background: #004f59;
  padding: 0;
}

.substack-wrapper {
  padding: 20px 40px;
}

.substack-feed-widget {
  /* padding-bottom: 20px; */
}

.substack-form {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  /* padding: 10px 20px 15px 15px; */
}

/* .substack-header-text {
  margin-left: 15px;
  margin-bottom: 0;
} */

/* Involvement */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px auto 20px auto;
}

.button-action {
  width: 100%;
  padding: 15px 30px;
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 5px;
  display: block;
  border: 0px;
  font-weight: 600;
  border: 2px solid rgba(0, 192, 217, 0.1);
  box-shadow: 0px 0px 14px -7px #004f59;
  background-image: linear-gradient(
    45deg,
    #00aac0 0%,
    #008798 51%,
    #00aac0 100%
  );
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-action:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

.button-action:active {
  transform: scale(0.95);
}

.involvement-container {
  background: #84011e;
}

.involvement-wrapper {
  padding: 20px 40px;
}

.involvement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px auto 20px auto;
}

.involvement-card {
  /* background: #004f59; */
  padding: 20px;
  border: 2px solid #004f59;
  border-radius: 7px;
  /* box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.involvement-card-img-wrapper {
  margin: auto;
  width: 50%;
}

.involvement-button {
  background: #fff;
  color: #004f59;
  padding: 10px 20px;
  border: 2px solid #004f59;
  border-radius: 4px;
  /* box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); */
  margin-top: 10px;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  font-size: smaller;
}

.involvement-button:hover {
  color: #fff;
  background: #84011e;
}

#discord {
  filter: brightness(0);
  -webkit-filter: brightness(0);
}

/* About Nic */

.gruen-container {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .gruen-container {
    display: flex;
    flex-direction: column;
  }
}

.headshot-wrapper {
  height: 100%;
  min-height: 300px;
  background-image: url(images/ng.webp);
  background-size: cover;
  background-position: center;
}

/* Footer */

.footer-container {
  padding: 20px;
  margin: auto;
  margin-top: 20px;
  border-radius: 7px;
  width: 100%;
  background: #ecdcc1;
  color: #001619;
  text-align: center;
}

/* Form */
.form-wrapper {
  /* border: 2px solid #004f59; */
  background: #004f59;
  color: #fff;
  /* border: #fbfbfb 2px solid; */
  border-radius: 5px;
  padding: 20px 20px;
  margin: 10px 0px;
  overflow: hidden;
  box-shadow: 0px 0px 10px 0px #dbdbdb;
}

.form-wrapper h3 {
  color: #fff;
}

.form-container {
  width: 100%;
  padding-top: 20px;
  /* padding: 20px 40px; */
  /* padding: 2rem 1rem 0; */
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
  grid-template-columns: auto;
  grid-template-rows: 1;
  grid-auto-flow: column;
  /* flex-grow: 1; */
}

@media screen and (max-width: 768px) {
  .form-container {
    display: flex;
    flex-direction: column;
  }
}

.input {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  padding-top: 1.5rem;
}

/* .input + .input {
  margin-top: 1.5rem;
} */

.input-label {
  color: #fff;
  position: absolute;
  top: 0.25rem;
  font-size: smaller;
  transition: 0.25s ease;
}

.input-field,
.form-control {
  color: #fff;
  border: 0;
  z-index: 1;
  background-color: transparent;
  border-bottom: 2px solid #eee;
  font: inherit;
  /* font-size: 1.125rem; */
  /* padding: 5px 0; */
}

.input-field::placeholder,
select:invalid,
option:invalid {
  color: rgba(255, 255, 255, 0.5);
}

.input-field:focus,
.input-field:valid {
  outline: 0;
  border-bottom-color: #008798;
}

.input-field:focus + .input-label,
.input-field:valid + .input-label {
  color: #008798;
  transform: translateY(-1.5rem);
}

select {
  appearance: none;
  width: 100%;
  font-size: 1.125rem;
  padding: 5px 0 0 0;
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid #eee;
  color: #fff;
  cursor: pointer;
  font: inherit;
  z-index: 1;
}

select:focus {
  outline: 0;
  border-bottom-color: #6658d3;
}

select:focus + .input-label,
select:valid + .input-label {
  color: #6658d3;
  transform: translateY(-1.5rem);
}

/* MailerLite */

.ml-form-embedWrapper {
  width: 100%;
  max-width: 800px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ml-form-embedContent h4 {
  font-family: "Libre Baskerville", sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  color: #fff;
}

.ml-form-formContent {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .ml-form-formContent {
    display: flex;
    flex-direction: column;
  }
}
