@import url("https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap");

/* TYPOGRAPHY*/
h1 {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  margin: auto;
  display: block;
  width: fit-content;
  margin-top: 50px;
}

.google-sans-mainclass {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  margin: auto;
  display: block;
  width: fit-content;
  margin-top: 50px;
}

.google-sans-subclass {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  margin: auto;
  display: block;
  width: fit-content;
  margin-top: 50px;
}

.google-sans-tagclass {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  margin: auto;
  display: block;
  width: fit-content;
  margin-top: 50px;
}



.details-group sl-details {
  margin-top: 5px;
  margin-bottom: 10px;
}

#no-auto-center {
  margin-left: 0 !important;
  margin-right: auto !important;
  width: auto !important;
}

h1,
ul {
  font-family: "Google Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "GRAD" 0;
  margin: auto;
  display: block;
  width: fit-content;
  margin-top: 50px;
}

#site-title {
  font-size: clamp(2rem, 2vw, 2rem);
  line-height: 1.05;
}

#welcome {
  color: transparent;
  -webkit-text-stroke: 0.75px #8a2b3a;
  text-shadow: -2px -2px black;
  text-align: center;
  font-size: clamp(1.85rem, 6vw, 3rem);
  line-height: 1.24;
  width: min(94vw, 24ch);
  margin-top: 10px;
  text-wrap: balance;
}

#home-title {
  font-size: clamp(1rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 0;
}

#interest-title {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1.2;
  margin-top: 28px;
}

#welcome:hover {
  color: transparent;
  -webkit-text-stroke: 0.75px #1f6f3e;
  text-shadow: 2px 2px black;
  text-align: center;
  font-size: clamp(1.85rem, 6vw, 3rem);
}

/* NAVBAR STYLING START */
.navbar {
  top: 0;
  position: sticky;
  overflow: hidden;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
  display: flex;
  z-index: 1000;
}

.navbar li:first-child a {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

.navbar li:last-child a {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

.navbar ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: fit-content;
  background-color: #1f6f3e;
  border-radius: 15px;
}

.background {
  border: #111111 solid 1px;
  width: fit-content;
  margin: 0 auto;
  border-radius: 5px;
  border-width: 2px;
  padding: 30px;
  padding-bottom: 10px;
  margin-bottom: 40px;
}


.navbar li a {
  display: block;
}

.navbar ul li a {
  display: flex;
  color: #ffffff;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar ul li a:hover {
  background-color: #8a2b3a;
}
/* END OF NAVBAR STYLING */

/* FLEX THINGIES FOR CONTAINERIZING*/
.flex-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.image {
  width: 300px;
  height: auto;
}

.text-container {
  flex: 1;
}

/* STUFF FOR SMALL SCREENS */
@media (max-width: 600px) {
  .flex-container {
    flex-direction: column;
    text-align: center;
  }

  .image {
    width: 100%;
    max-width: 400px;
  }
}

/* TWO-COLUMN TEXT SECTION FOR THE ABOUT PAGE */
.flex-container-textonly {
  display: flex;
  align-items: stretch;
  gap: 40px;
  margin: 50px auto;
  max-width: 900px;
}

.lefttext {
  text-align: left;
  flex: 1;
  height: fit-content;
}

.righttext {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-content: flex-start;
  justify-content: center;
  border-left: 2px solid #111111;
  padding-left: 20px;
}

.righttext h3 {
  margin-left: 0;
  margin-right: auto;
  padding-right: 40px;
  width: 100%;
}

#bullets,
#title {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  margin-top: 15px;
}

/* CSS FOR FORMS SPECFICALLY THE ONES IN THE POST PAGE */
#write-post {
  width: min(85vw, 1000px);
  margin-left: max(24px, 7vw);
  margin-right: auto;
  margin-top: 20px;
  margin-bottom: 14px;
  text-align: left;
}

#post-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(85vw, 1000px);
  min-width: 200px;
  margin-left: max(24px, 7vw);
  margin-right: auto;
  margin-top: 0;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2.5px solid #1f6f3e;
  border-radius: 20px;
}

#editor-container {
  border: 2.5px solid #1f6f3e;
  border-radius: 10%;
  height: 50%;
  width: 100%;
  margin-bottom: -50px;
}

#submitbutton {
  background-color: #6b1f2b;
  color: #ffffff;
  padding: 12px;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  align-self: stretch;
  margin: 28px 0 0;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

#submitbutton:hover {
  background-color: #2a8f52;
}


#welcome {
  width: min(94vw, 24ch);
}

@media (max-width: 600px) {
  #welcome,
  #welcome:hover {
    -webkit-text-stroke: 0.6px;
    text-shadow: -1px -1px black;
    line-height: 1.3;
  }

  #welcome:hover {
    text-shadow: 1px 1px black;
  }
}

#tag {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2.5px solid #1f6f3e;
  border-radius: 20px;
  background-color: #ffffff;
}

/* STUFF FOR THE MEMBERS AREA PAGE */

#post {
  margin-right: 20px;
}

#posts-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 85vw;
  margin: 0 auto;
  padding: 0;
}

.tiny-post-container {
  display: flex;
  align-items: center;
  gap: 2.2vw;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  pointer-events: none;
}

.tiny-post-container .google-sans-subclass,
.tiny-post-container .google-sans-tagclass {
  margin: 0;
  width: auto;
}

.tiny-post-container .google-sans-tagclass {
  margin-left: 0;
  text-align: right;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tiny-post-container h3,
.tiny-post-container p {
  font-size: 1.1rem;
  line-height: 1.35;
}

.tiny-post-container h3 {
  font-weight: 400;
}

.tiny-post-container h3 {
  font-weight: 700;
}

#posts-filter-row .google-sans-subclass {
  margin: 0;
  width: auto;
}

#post-title {
  margin-right: 0;
}

#filter-btn {
  display: inline-flex;
  flex-direction: row;
}

#posts-filter-row,
#posts-search-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

#posts-search-row {
  width: 280px;
  margin: 0 auto 14px;
  justify-content: center;
  position: relative;
}

#posts-filter-row {
  gap: 1.2vw;
  flex-wrap: wrap;
  width: 85vw;
  margin: 14px auto 12px;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

#posts-header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#posts,
#search {
  display: flex;
  justify-self: center;
  padding: 0;
}

#posts {
  margin-top: 18px;
  margin-bottom: 10px;
}

#search {
  margin-top: 0;
}

#search-btn {
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}

#search-input {
  width: 280px;
  height: 42px;
  margin: 0;
}

/* MODAL TO DISPLAY THE ACTUAL POST */
.modal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1;
  left: 0;
  top: 0;
  background-color: rgba(17, 17, 17, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: #ffffff;
  margin: 15% auto;
  padding: 20px;
  width: 80%;
  border: 1px solid #111111;
  border-radius: 12px;
  padding-bottom: 5%;
}

.close {
  color: #6b1f2b;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #2a8f52;
  text-decoration: none;
  cursor: pointer;
}

/* SOME CLICKY STUFF */
.tiny-post-container h3,
.tiny-post-container p,
.tiny-post-container .google-sans-tagclass {
  pointer-events: auto;
  cursor: pointer;
}

button[type="button"]:not([class*="plyr"]):not([class*="ql-"]) {
  background-color: #1f6f3e;
  border: 1px solid #1f6f3e;
  border-radius: 6px;
  color: #ffffff;
  padding: 9px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

button[type="button"]:not([class*="plyr"]):not([class*="ql-"]):hover {
  background-color: #8a2b3a;
  border-color: #8a2b3a;
}

button[type="button"]:not([class*="plyr"]):not([class*="ql-"]):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body .plyr {
  width: 50%;
  max-width: 900px;
}

body .plyr video {
  height: auto;
  flex: 1;
}

.paragraph {
  flex: 1;
  margin-left: 20px;
}

.video-and-text-container {
  display: flex;
}

#pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2vw;
  width: 85vw;
  margin: 20px 0 32px;
}

#page-info {
  margin: 0;
  width: auto;
}

#page-prev {
  margin-right: 10px;
}

#page-next {
  margin-left: 10px;
}

#page-prev:disabled,
#page-next:disabled {
  opacity: 0.5;
}

/* MEDIA QUERY FOR SCREENS 800PX AND WIDER */

@media (min-width: 800px) {
  #posts-container,
  #posts-filter-row,
  #pagination-row {
    width: min(93vw, 1600px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  #posts-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    column-gap: 2rem;
    align-items: center;
  }

  .tiny-post-container {
    display: contents;
  }

  .tiny-post-container h3,
  .tiny-post-container p.google-sans-subclass,
  .tiny-post-container .google-sans-tagclass {
    margin: 0 !important;
    width: auto !important;
    padding: 10px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .tiny-post-container h3 {
    grid-column: 1;
    text-align: left;
  }

  .tiny-post-container p.google-sans-subclass {
    grid-column: 2;
    text-align: left;
    min-width: 0;
  }
}
  .tiny-post-container .google-sans-tagclass {
    grid-column: 3;
    text-align: right;
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-transform: uppercase; 
  }

@media (min-width: 1300px) {
  #posts-container {
    column-gap: 2.75rem;
  }
}

#search-btn:hover {
  cursor: pointer;
}

.reveal-text {
  animation: blur-to-clear 2s ease-out forwards;
}



@keyframes blur-to-clear {
  0% {
    filter: blur(10px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    opacity: 1;
  }
}
